From 3d13889e8119736a3a9b867062623af3e6eb8391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=93=B6=E4=B8=AD=E6=B2=99?= <464652163@qq.com> Date: Tue, 25 Jun 2024 15:52:15 +0800 Subject: [PATCH] 12 --- src/components/AddData.vue | 3 --- src/components/AddMb.vue | 3 --- src/components/AddPoint.vue | 2 -- src/components/AddReport.vue | 3 --- src/components/AddRule.vue | 5 ----- src/components/AddSet.vue | 4 ---- src/components/AddTransparent.vue | 1 - src/components/EditPass.vue | 1 - src/components/Header.vue | 2 -- src/components/PzSet.vue | 6 +----- src/components/ViewPoint.vue | 2 +- src/components/ViewSet.vue | 1 - src/store/index.js | 1 - src/views/Home.vue | 1 - src/views/Level.vue | 4 ---- src/views/Login.vue | 1 - src/views/Model.vue | 2 -- src/views/Page.vue | 7 +------ src/views/Report.vue | 2 -- src/views/Rules.vue | 8 -------- src/views/Transparent.vue | 1 - 21 files changed, 3 insertions(+), 57 deletions(-) diff --git a/src/components/AddData.vue b/src/components/AddData.vue index 1fc51b2..87aed7d 100644 --- a/src/components/AddData.vue +++ b/src/components/AddData.vue @@ -247,7 +247,6 @@ export default { name: props.qudongOptions[i] } state.typeOptions.push(obj); - console.log(33,state.typeOptions); } } const closeDialog = () => { @@ -264,7 +263,6 @@ export default { ElMessage.error(res.data || res.message); } } else { - console.log("error submit!"); } }); }; @@ -288,7 +286,6 @@ export default { const res = await infoApi.getCom(); if (res.code == 0) { state.comArr = res.data.com; - console.log('comlist',state.comArr) state.com_select = []; infodata.com.forEach(e => { if (!e.used) { diff --git a/src/components/AddMb.vue b/src/components/AddMb.vue index b15f57d..4ae4fc1 100644 --- a/src/components/AddMb.vue +++ b/src/components/AddMb.vue @@ -61,7 +61,6 @@ export default { }); const getTypeOptions = () => { - console.log(11,props.templateData) state.typeOptions = []; for (let i in props.templateData) { let obj = { @@ -69,7 +68,6 @@ export default { name: props.templateData[i] } state.typeOptions.push(obj); - console.log(33,state.typeOptions); } } @@ -94,7 +92,6 @@ export default { ElMessage.error(res.message); } } else { - console.log("error submit!"); } }); }; diff --git a/src/components/AddPoint.vue b/src/components/AddPoint.vue index d363142..efa9a78 100644 --- a/src/components/AddPoint.vue +++ b/src/components/AddPoint.vue @@ -172,7 +172,6 @@ export default { }; const saveP = async () => { - console.log(ruleFormRef.value); await ruleFormRef.value.validate(async (valid) => { if (valid) { const param = { @@ -189,7 +188,6 @@ export default { ElMessage.error(res.data || res.message); } } else { - console.log("error submit!"); } }); diff --git a/src/components/AddReport.vue b/src/components/AddReport.vue index 8c6875b..5b4427b 100644 --- a/src/components/AddReport.vue +++ b/src/components/AddReport.vue @@ -93,7 +93,6 @@ export default { if (ret.code == 0) { // 获取数据 const infodata = sb_drive_list.decode(ret.data).sbDrive; - console.log('驱动类型', infodata); state.qudongOptions = infodata; } } @@ -104,7 +103,6 @@ export default { const saveData = async () => { await ruleFormRef.value.validate(async (valid) => { if (valid) { - console.log(123, props.formData); const req_databuf = sb_add.encode(props.formData).finish(); // 截取有效长度 const req_data = req_databuf.slice(0, req_databuf.length); @@ -117,7 +115,6 @@ export default { ElMessage.error(res.msg); } } else { - console.log("error submit!"); } }); }; diff --git a/src/components/AddRule.vue b/src/components/AddRule.vue index c477c72..2349fe0 100644 --- a/src/components/AddRule.vue +++ b/src/components/AddRule.vue @@ -105,20 +105,15 @@ export default { const res = props.type === 'I' ? await infoApi.postJsonRequest(req_data1) : await infoApi.postJsonRequest(req_data2); - console.log(555, res) const ret = response.decode(new Uint8Array(res)); - console.log(555, ret) if (ret.code == 0) { // 获取数据 - console.log(new TextDecoder().decode(ret.data)); ElMessage.success(new TextDecoder().decode(ret.data) || "请求成功"); // 关闭弹框 ctx.emit("dialogSuccess"); } else { - console.log(res); } } else { - console.log("error submit!"); } }); }; diff --git a/src/components/AddSet.vue b/src/components/AddSet.vue index 2b3b9e1..2d951af 100644 --- a/src/components/AddSet.vue +++ b/src/components/AddSet.vue @@ -62,7 +62,6 @@ export default { onMounted(() => { state.addForm = props.setData; - console.log(123, props.formData) // 获取模板数据 getTxTemplate(); }); @@ -82,7 +81,6 @@ export default { name: data[i] } state.modelArr.push(obj); - console.log(33,state.modelArr); } state.addForm.template_name = state.modelArr[0].name; } else { @@ -96,7 +94,6 @@ export default { const scanData = () => { }; const saveSet = async () => { - console.log(ruleFormRef.value); await ruleFormRef.value.validate(async (valid) => { if (valid) { const param = { @@ -112,7 +109,6 @@ export default { ElMessage.error(res.data || res.message); } } else { - console.log("error submit!"); } }); diff --git a/src/components/AddTransparent.vue b/src/components/AddTransparent.vue index 4ee7475..64117da 100644 --- a/src/components/AddTransparent.vue +++ b/src/components/AddTransparent.vue @@ -398,7 +398,6 @@ export default { ElMessage.error(res.msg); } } else { - console.log("error submit!"); } }); }; diff --git a/src/components/EditPass.vue b/src/components/EditPass.vue index 5d5b6ef..57e6b60 100644 --- a/src/components/EditPass.vue +++ b/src/components/EditPass.vue @@ -101,7 +101,6 @@ export default { ElMessage.error(res.message); } } else { - console.log("error submit!"); } }); }; diff --git a/src/components/Header.vue b/src/components/Header.vue index 17fc291..53d0eeb 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -90,7 +90,6 @@ export default { localRemove("token"); window.location.reload(); } else { - console.log(res); } }; @@ -101,7 +100,6 @@ export default { router.back(); }; router.afterEach((to) => { - console.log("to", to); const { id } = to.query; state.name = pathMap[to.name]; // state.hasBack = ['level2', 'level3', 'order_detail'].includes(to.name) diff --git a/src/components/PzSet.vue b/src/components/PzSet.vue index 1e81d98..320a89e 100644 --- a/src/components/PzSet.vue +++ b/src/components/PzSet.vue @@ -248,7 +248,7 @@ export default { }, }); const onSubmit = async () => { - console.log(555, props.formData.name); + (555, props.formData.name); var header = { driver_name: props.formData.name } @@ -270,7 +270,6 @@ export default { ElMessage.error(res.message); } } else { - console.log("error submit!"); } }); } else if (props.pztypecode === 2) { @@ -306,7 +305,6 @@ export default { ElMessage.error(res.message); } } else { - console.log("error submit!"); } }); } else if (props.pztypecode === 3) { @@ -328,7 +326,6 @@ export default { ElMessage.error(res.message); } } else { - console.log("error submit!"); } }); } @@ -348,7 +345,6 @@ export default { const res = await infoApi.getCom(parm); if (res.code == 0) { state.comArr = res.data; - console.log(44, state.comArr); state.form2.com_name = state.comArr[0].name; } }; diff --git a/src/components/ViewPoint.vue b/src/components/ViewPoint.vue index 2be66ff..ebf3d91 100644 --- a/src/components/ViewPoint.vue +++ b/src/components/ViewPoint.vue @@ -219,7 +219,7 @@ export default { link.setAttribute('download', `${decodeURI(fileName.split('"')[1])}`); document.body.appendChild(link); link.click(); - }).catch(error => console.log(error)); + }).catch(); } return { diff --git a/src/components/ViewSet.vue b/src/components/ViewSet.vue index 5a00a26..83ae594 100644 --- a/src/components/ViewSet.vue +++ b/src/components/ViewSet.vue @@ -79,7 +79,6 @@ export default { if (res.code == 0) { state.propertiesData = res.data || []; } else { - console.log(res); } }; const closeDialog = () => { diff --git a/src/store/index.js b/src/store/index.js index 6766193..6650d69 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -12,7 +12,6 @@ const store = createStore({ state.currentPath = path }, setUserInfo(state, data) { - console.log(123, data); state.userInfo = data; } }, diff --git a/src/views/Home.vue b/src/views/Home.vue index 6da3ae5..e691c3c 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -95,7 +95,6 @@ export default { const res = await infoApi.getSys(); if (res.code == 0) { state.deviceData = res.data; - console.log(44, state.deviceData); nextTick(() => { drawEchart(); }); diff --git a/src/views/Level.vue b/src/views/Level.vue index 41be5da..4cbd5c0 100644 --- a/src/views/Level.vue +++ b/src/views/Level.vue @@ -114,7 +114,6 @@ export default { // 规则校验通过,或者为空 callback(); } else { - console.log(value); callback(new Error("格式不正确")); } }; @@ -172,9 +171,7 @@ export default { if (res.code == 0) { // 获取数据 state.formData = res.data; - console.log(666, state.formData.ip); } else { - console.log(res); } }; @@ -196,7 +193,6 @@ export default { ElMessage.error(res.message); } } else { - console.log("error submit!"); } }); }; diff --git a/src/views/Login.vue b/src/views/Login.vue index 5b67533..d4689dc 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -92,7 +92,6 @@ export default { } }) } else { - console.log("error submit!!"); return false; } }) diff --git a/src/views/Model.vue b/src/views/Model.vue index 08db4a7..21f3c6d 100644 --- a/src/views/Model.vue +++ b/src/views/Model.vue @@ -79,7 +79,6 @@ export default { // 获取数据 state.templateData = res.data; } else { - console.log(res); } } const getTableData = async () => { @@ -88,7 +87,6 @@ export default { // 获取数据 state.tableData = res.data; } else { - console.log(res); } }; const editData = (item) => { diff --git a/src/views/Page.vue b/src/views/Page.vue index c436383..7d00668 100644 --- a/src/views/Page.vue +++ b/src/views/Page.vue @@ -4,7 +4,7 @@