| | |
| | | import http from "../http"; |
| | | |
| | | export const AddData = (data) => http.post("/api/Parameters/AddData", data); |
| | | export const AddData = (data) => http.post("/api/Parameters/AddSpeed", data); |
| | | //èªå¨ä¼¸åºç¼©å |
| | | export const AutoPickAndDrop = (data) => http.post(`/api/Parameters/automation?ExtendedState=${data.ExtendedState}`); |
| | | //æå¨ä¼¸åºç¼©å |
| | | export const ManualOperation = (data) => http.post(`/api/Parameters/ManualOperation?position=${data.position}&ExtendedState=${data.ExtendedState}`); |
| | | export const ManualOperation = (data) => http.post(`/api/Parameters/ManualOperation?position=${data.position}&ExtendedState=${data.ExtendedState}`); |
| | | //è·ååæ° |
| | | export const GetParameter = (data) => http.post(`/api/Parameters/BackfillSpeed`); |
| | |
| | | import { dayjs } from "element-plus"; |
| | | // import XLSX from "xlsx"; //导å
¥xlsx |
| | | |
| | | export const baseUrl = "http://192.168.0.80:1598" |
| | | export const baseUrl = "http://192.168.2.103:9093" |
| | | // http://192.168.0.80:1598 |
| | | // http://115.159.85.185:9098/ |
| | | // http://192.168.2.103:9093 |
| | | |
| | | |
| | | //对象转FormDataçææ¹æ³ |
| | |
| | | > |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="'http://192.168.0.80:1598' + userInfo.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + userInfo.headImageUrl" |
| | | :fit="fit" |
| | | /> |
| | | <!-- <img |
| | | v-if="userInfo.headImageUrl" |
| | | :src="'http://192.168.0.80:5000' + userInfo.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + userInfo.headImageUrl" |
| | | class="avatar" |
| | | /> |
| | | <el-icon v-else class="avatar-uploader-icon"> |
| | |
| | | ref="upload" |
| | | name="fileInput" |
| | | class="avatar-uploader" |
| | | action="http://192.168.0.80:1598/api/User/SaveFiles" |
| | | action="http://192.168.2.103:9093/api/User/SaveFiles" |
| | | list-type="picture-card" |
| | | :auto-upload="true" |
| | | limit="1" |
| | |
| | | clearInterval(timer.value); |
| | | // å建WebSocketè¿æ¥ |
| | | //"ws://127.0.0.1:9295/admin" |
| | | client.value = new WebSocket("ws://192.168.0.80:5173/"); |
| | | client.value = new WebSocket("ws://192.168.2.103:5173/"); |
| | | client.value.onopen = function () { |
| | | console.log("WebSocket è¿æ¥æå"); |
| | | }; |
| | |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 5rem; height: 5rem" |
| | | :src="'http://192.168.0.80:1598' + scope.row.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + scope.row.headImageUrl" |
| | | show-progress |
| | | :initial-index="4" |
| | | fit="cover" |
| | |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 5rem; height: 5rem" |
| | | :src="'http://192.168.0.80:1598' + scope.row.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + scope.row.headImageUrl" |
| | | show-progress |
| | | :initial-index="4" |
| | | fit="cover" |
| | |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 5rem; height: 5rem" |
| | | :src="'http://192.168.0.80:1598' + scope.row.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + scope.row.headImageUrl" |
| | | show-progress |
| | | :initial-index="4" |
| | | fit="cover" |
| | |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 5rem; height: 5rem" |
| | | :src="'http://192.168.0.80:1598' + scope.row.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + scope.row.headImageUrl" |
| | | :fit="fit" |
| | | /> |
| | | </template> |
| | |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 5rem; height: 5rem" |
| | | :src="'http://192.168.0.80:1598' + scope.row.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + scope.row.headImageUrl" |
| | | :fit="fit" |
| | | /> |
| | | </template> |
| | |
| | | <el-form-item prop="extendSpeed"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >èªå¨ä¼¸åºé度m/minï¼</span |
| | | >å·¦PLCèªå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | <el-form-item prop="retractionSpeed"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >èªå¨ç¼©åé度m/minï¼</span |
| | | >å³PLCèªå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | <el-form-item prop="manualExtend"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >æå¨ä¼¸åºé度m/minï¼</span |
| | | >å·¦PLCæå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | <el-form-item prop="manualRetraction"> |
| | | <template #label> |
| | | <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem" |
| | | >æå¨ç¼©åé度m/minï¼</span |
| | | >å³PLCæå¨ä¼¸åºç¼©åé度m/minï¼</span |
| | | > |
| | | </template> |
| | | <el-input |
| | |
| | | </div> |
| | | </template> |
| | | <script setup> |
| | | import { ref } from "vue"; |
| | | import { onMounted, ref } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { AddData } from "@/api/newapi/Parameters"; |
| | | import { AddData, GetParameter } from "@/api/newapi/Parameters"; |
| | | const userInfo = JSON.parse(localStorage.getItem("user")); |
| | | const ruleForm = ref({ |
| | | creater: "string", |
| | |
| | | manualExtend: 0, |
| | | manualRetraction: 0, |
| | | depid: userInfo.depid, |
| | | account: userInfo.userName, |
| | | }); |
| | | |
| | | //ä¿å |
| | |
| | | } |
| | | }); |
| | | }; |
| | | //è·ååæ° |
| | | const getParameter = () => { |
| | | GetParameter().then((res) => { |
| | | if (res.code == 0) { |
| | | ruleForm.value.extendSpeed = res.data == null ? 0 : res.data.extendSpeed; |
| | | ruleForm.value.retractionSpeed = |
| | | res.data == null ? 0 : res.data.retractionSpeed; |
| | | ruleForm.value.manualExtend = |
| | | res.data == null ? 0 : res.data.manualExtend; |
| | | ruleForm.value.manualRetraction = |
| | | res.data == null ? 0 : res.data.manualRetraction; |
| | | } |
| | | }); |
| | | }; |
| | | onMounted(() => { |
| | | getParameter(); |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .Parametersettings { |
| | |
| | | }); |
| | | if (res.code === 0) { |
| | | ElMessage({ |
| | | message: `${position}ä¾§${ExtendedState}æå`, |
| | | message: `${position}ä¾§${ExtendedState}æåï¼${position}PLCæå¨${ExtendedState}é度为${res.data.manualExtend}`, |
| | | type: "success", |
| | | }); |
| | | } else { |
| | | ElMessage({ |
| | | message: `${position}侧${ExtendedState}失败`, |
| | | message: `${position}ä¾§${ExtendedState}失败ï¼${position}PLCæå¨${ExtendedState}é度为${res.data.manualExtend}`, |
| | | type: "error", |
| | | }); |
| | | } |
| | |
| | | min-width="3%" |
| | | /> |
| | | <el-table-column |
| | | prop="role_Id" |
| | | prop="userteam" |
| | | label="ç¨æ·åç»" |
| | | align="center" |
| | | min-width="2%" |
| | |
| | | <template #default="scope"> |
| | | <el-image |
| | | style="width: 5rem; height: 5rem" |
| | | :src="'http://192.168.0.80:1598' + scope.row.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + scope.row.headImageUrl" |
| | | show-progress |
| | | :initial-index="4" |
| | | fit="cover" |
| | |
| | | <span style="color: red; margin-right: 0.2rem">*</span> |
| | | <span |
| | | style="font-size: 0.88rem; color: black; font-weight: bold" |
| | | >é¨é¨</span |
| | | >轨éç«</span |
| | | > |
| | | </div> |
| | | </template> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item prop="dept_Id"> |
| | | <template #label> |
| | | <div style="display: flex; align-items: flex-end"> |
| | | <span style="color: red; margin-right: 0.2rem">*</span> |
| | | <span |
| | | style="font-size: 0.88rem; color: black; font-weight: bold" |
| | | >ç»</span |
| | | > |
| | | </div> |
| | | </template> |
| | | <el-input |
| | | size="small" |
| | | v-model="formUser.userteam" |
| | | placeholder="请è¾å
¥" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item prop="dept_Id"> |
| | | <template #label> |
| | | <div style="display: flex; align-items: flex-end"> |
| | | <span style="color: red; margin-right: 0.2rem">*</span> |
| | | <span |
| | | style="font-size: 0.88rem; color: black; font-weight: bold" |
| | | >å¡å·</span |
| | | > |
| | | </div> |
| | | </template> |
| | | <el-input |
| | | size="small" |
| | | v-model="formUser.carnuber" |
| | | placeholder="请è¾å
¥" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item> |
| | | <template #label> |
| | |
| | | ref="uploadRef" |
| | | name="files" |
| | | class="avatar-uploader" |
| | | action="http://192.168.0.80:1598/api/User/SaveFiles" |
| | | action="http://192.168.2.103:9093/api/User/SaveFiles" |
| | | list-type="picture-card" |
| | | limit="1" |
| | | :auto-upload="true" |
| | |
| | | path: "", |
| | | usertruename: "", |
| | | dept_Id: 1, |
| | | carnuber: null, |
| | | userteam: "", |
| | | }); |
| | | const rules = reactive({ |
| | | userName: { |
| | |
| | | userTrueName: { |
| | | required: true, |
| | | message: "请è¾å
¥çå®å§å", |
| | | trigger: "blur", |
| | | }, |
| | | userteam: { |
| | | required: true, |
| | | message: "请è¾å
¥ç»", |
| | | trigger: "blur", |
| | | }, |
| | | carnuber: { |
| | | required: true, |
| | | message: "请è¾å
¥å¡å·", |
| | | trigger: "blur", |
| | | }, |
| | | }); |
| | |
| | | enable: 1, |
| | | path: "", |
| | | user_Id: undefined, |
| | | userteam: "", |
| | | carnuber: null, |
| | | }; |
| | | fileList.value = []; |
| | | }; |
| | |
| | | enable: val.enable, |
| | | path: val.headImageUrl, |
| | | usertruename: val.userTrueName, |
| | | cardNumber: val.cardNumber, |
| | | userteam: val.userteam, |
| | | }; |
| | | UpdateUser(data).then((res) => { |
| | | ElMessage({ message: "ä¿®æ¹æå", type: "success" }); |
| | |
| | | enable: val.enable, |
| | | path: val.headImageUrl, |
| | | usertruename: val.userTrueName, |
| | | carnuber: val.cardNumber, |
| | | userteam: val.userteam, |
| | | dept_Id: val.dept_Id, |
| | | }; |
| | | formUser.value = { |
| | | ...obj, |
| | | }; |
| | | if (obj.headImageUrl != "") { |
| | | if (obj.headImageUrl != null) { |
| | | fileList.value = [ |
| | | { |
| | | name: "1", |
| | | url: "http://115.159.85.185:9098" + obj.headImageUrl, |
| | | url: "http://192.168.2.103:9093" + obj.headImageUrl, |
| | | }, |
| | | ]; |
| | | } |
| | |
| | | let obj = Object.assign({}, val); |
| | | formUser.value = obj; |
| | | formpassword.value = val; |
| | | newobj.value = Object.assign({}, val); |
| | | console.log(newobj.value); |
| | | |
| | | dialogVisible1.value = true; |
| | | }; |
| | | //ä¿åä¿®æ¹å¯ç |
| | | const savePassword = async (formEl) => { |
| | | let obj = Object.assign({}, newobj); |
| | | // obj.password = formpassword.value.password; |
| | | console.log(formUser.value); |
| | | |
| | | let formdata = { |
| | | id: formUser.value.user_Id, |
| | | oldPwd: formUser.value.userPwd, |
| | | newPwd: formUser.value.newPwd, |
| | | newPwd: newobj.value.newPwd, |
| | | }; |
| | | if (!formEl) return; |
| | | await formEl.validate((valid, fields) => { |
| | |
| | | server: { |
| | | proxy: { |
| | | '/api': { |
| | | target: 'http://115.159.85.185:9098/', // ç®æ æ¥å£çåå |
| | | target: 'http://192.168.2.103:9093', // ç®æ æ¥å£çåå |
| | | changeOrigin: true, // æ¯å¦è·¨å |
| | | rewrite: (path) => path.replace(/^\/api/, '') // è·¯å¾éå |
| | | } |
| | |
| | | ? err.data.message |
| | | : "æå¡å¨å¤çå¼å¸¸" |
| | | ); |
| | | |
| | | } |
| | | ) |
| | | .catch((error) => { |
| | |
| | | import { dayjs } from "element-plus"; |
| | | // import XLSX from "xlsx"; //导å
¥xlsx |
| | | |
| | | export const baseUrl = "http://192.168.0.80:1598" |
| | | export const baseUrl = "http://192.168.2.103:9093" |
| | | // http://192.168.0.80:1598 |
| | | // http://115.159.85.185:9098/ |
| | | // http://192.168.2.103:9093 |
| | | |
| | | |
| | | //对象转FormDataçææ¹æ³ |
| | |
| | | align-items: center; |
| | | margin-top: 6%; |
| | | padding-bottom: 10%; |
| | | height: 70%; |
| | | height: 60%; |
| | | box-sizing: border-box; |
| | | border-radius: 2rem; |
| | | background-color: rgba(39, 136, 214, 0.5); |
| | |
| | | height: 5rem; |
| | | font-size: 6rem; |
| | | font-weight: bold; |
| | | |
| | | display: flex; |
| | | align-items: center; |
| | | padding-left: 2rem; |
| | |
| | | empty-text="ææ æ°æ®" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | height="750" |
| | | height="400" |
| | | :header-cell-style="{ |
| | | height: '1.61rem', |
| | | color: '#fff', |
| | |
| | | pageSize: pageQuery.value.rows, |
| | | searchKeyword: queryForm.value.inputcontent, |
| | | status: queryForm.value.selectType, |
| | | account: "admin", |
| | | }).then((res) => { |
| | | tableData.value = res.data.items; |
| | | pageTotal.value = res.data.totalCount; |
| | |
| | | initData(); |
| | | //è·åå½åæ¶é´ |
| | | const date = new Date(); |
| | | await UpstreamInspectionRoad(); |
| | | timer.value = setInterval(() => { |
| | | currentTime.value = formatTime(date, "yyyy-MM-dd hh:mm:ss"); |
| | | date.setSeconds(date.getSeconds() + 1); |
| | | }, 1000); |
| | | // await UpstreamInspectionRoad(); |
| | | }); |
| | | onUnmounted(() => { |
| | | clearInterval(timer.value); |
| | |
| | | > |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="'http://192.168.0.80:1598' + userInfo.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + userInfo.headImageUrl" |
| | | :fit="fit" |
| | | /> |
| | | <!-- <img |
| | | v-if="userInfo.headImageUrl" |
| | | :src="'http://192.168.0.80:5000' + userInfo.headImageUrl" |
| | | :src="'http://192.168.2.103:9093' + userInfo.headImageUrl" |
| | | class="avatar" |
| | | /> |
| | | <el-icon v-else class="avatar-uploader-icon"> |
| | |
| | | ref="upload" |
| | | name="fileInput" |
| | | class="avatar-uploader" |
| | | action="http://192.168.0.80:1598/api/User/SaveFiles" |
| | | action="http://192.168.2.103:9093/api/User/SaveFiles" |
| | | list-type="picture-card" |
| | | :auto-upload="true" |
| | | limit="1" |
| | |
| | | server: { |
| | | proxy: { |
| | | '/api': { |
| | | target: 'http://115.159.85.185:9098/', // ç®æ æ¥å£çåå |
| | | target: 'http://192.168.2.103:9093/', // ç®æ æ¥å£çåå |
| | | changeOrigin: true, // æ¯å¦è·¨å |
| | | rewrite: (path) => path.replace(/^\/api/, '') // è·¯å¾éå |
| | | } |