diff --git a/src/api/infoApi.js b/src/api/infoApi.js index 2e42305..28fa52b 100644 --- a/src/api/infoApi.js +++ b/src/api/infoApi.js @@ -130,6 +130,10 @@ const infoApi = { editSet(params) { return postPBRequest('/driver', params, 54210, params.driver_name) }, + // 设备导入 + importDevice(params,driver_name) { + return postPBRequest('/driver', params, 54212,driver_name) + }, // 获取设备列表 getSet(params) { diff --git a/src/components/AddMb.vue b/src/components/AddMb.vue index 0c39a14..63ea785 100644 --- a/src/components/AddMb.vue +++ b/src/components/AddMb.vue @@ -27,7 +27,6 @@ import { onMounted, reactive, ref, toRefs, computed, nextTick } from "vue"; import infoApi from "@/api/infoApi.js"; import { ElMessage, ElMessageBox } from "element-plus"; -// import { mb_list, mb_info, response} from '../proto/data/pd' export default { props: ["formData", "dialogVisible", "type", "templateData"], emits: ["dialogClose", "dialogSuccess"], diff --git a/src/components/Details.vue b/src/components/Details.vue index ff3b728..9af5289 100644 --- a/src/components/Details.vue +++ b/src/components/Details.vue @@ -1,50 +1,50 @@ + diff --git a/src/components/ExportPoint.vue b/src/components/ExportPoint.vue index c872254..5ea0138 100644 --- a/src/components/ExportPoint.vue +++ b/src/components/ExportPoint.vue @@ -31,9 +31,6 @@ export default { return props.dialogVisible; }); - onMounted(() => { - state.addForm = props.pointData - }); const closeDialog = () => { ctx.emit("dialogClose"); }; diff --git a/src/components/PzSet.vue b/src/components/PzSet.vue index 64dac2b..2c28b6d 100644 --- a/src/components/PzSet.vue +++ b/src/components/PzSet.vue @@ -1,15 +1,15 @@