瓶中沙 2024-06-25 15:52:15 +08:00
parent f7af27b6ed
commit 3d13889e81
21 changed files with 3 additions and 57 deletions

View File

@ -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) {

View File

@ -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!");
}
});
};

View File

@ -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!");
}
});

View File

@ -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!");
}
});
};

View File

@ -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!");
}
});
};

View File

@ -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!");
}
});

View File

@ -398,7 +398,6 @@ export default {
ElMessage.error(res.msg);
}
} else {
console.log("error submit!");
}
});
};

View File

@ -101,7 +101,6 @@ export default {
ElMessage.error(res.message);
}
} else {
console.log("error submit!");
}
});
};

View File

@ -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)

View File

@ -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;
}
};

View File

@ -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 {

View File

@ -79,7 +79,6 @@ export default {
if (res.code == 0) {
state.propertiesData = res.data || [];
} else {
console.log(res);
}
};
const closeDialog = () => {

View File

@ -12,7 +12,6 @@ const store = createStore({
state.currentPath = path
},
setUserInfo(state, data) {
console.log(123, data);
state.userInfo = data;
}
},

View File

@ -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();
});

View File

@ -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!");
}
});
};

View File

@ -92,7 +92,6 @@ export default {
}
})
} else {
console.log("error submit!!");
return false;
}
})

View File

@ -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) => {

View File

@ -4,7 +4,7 @@
<div class="top-div">
<el-button type="primary" @click="addData"></el-button>
</div>
<el-table :data="tableData" height="730" style="width: 100%" border stripe
<el-table :data="tableData" height="400" border stripe
:header-cell-style="{ background: '#F6F7FC' }">
<el-table-column type="index" label="序号" width="80" align="center" />
<el-table-column prop="name" label="通讯名称" width="200" align="center" show-overflow-tooltip />
@ -139,7 +139,6 @@ export default {
const res = await infoApi.getTxSupport();
if (res.code == 0) {
state.qudongOptions = res.data;
console.log(123, state.qudongOptions)
}
@ -150,7 +149,6 @@ export default {
const res = await infoApi.getTxStatus();
if (res.code == 0) {
state.txStatus = res.data;
console.log(456, state.txStatus)
}
@ -211,7 +209,6 @@ export default {
};
const editData = (item) => {
console.log(777, item)
state.formData = JSON.parse(JSON.stringify(item));
state.dialogVisible = true;
state.type = '1'
@ -251,7 +248,6 @@ export default {
}
const changeStatus = async (item) => {
console.log(item.enable);
const param = {
name: item.name,
}
@ -267,7 +263,6 @@ export default {
const openPz = (item) => {
state.dialogVisible3 = true;
state.pztype = state.qudongOptions[item.type];
console.log(456, item.type);
state.pztypecode = item.type;
state.formData = JSON.parse(JSON.stringify(item));
}

View File

@ -126,7 +126,6 @@ export default {
if (ret.code == 0) {
//
const infodata = sb_list.decode(ret.data).sb;
console.log(123, infodata);
state.tableData = infodata;
}
};
@ -170,7 +169,6 @@ export default {
const res = await infoApi.delSc(req_data);
const ret = response.decode(new Uint8Array(res));
console.log('删除', ret)
if (ret.code == 0) {
ElMessage.success(res.msg || "请求成功");
getTableData();

View File

@ -99,15 +99,7 @@ export default {
if (ret.code == 0) {
//
state.tableData = rule.decode(ret.data).rule;
console.log(rule.decode(ret.data));
/**
* 组长看这里
*
*/
// lable
// info
} else {
console.log(res);
}
};
//

View File

@ -184,7 +184,6 @@ export default {
const editData = async (item) => {
const res = await infoApi.getCom();
console.log(res);
let obj = res.data.find(ele => {
return ele.name == item.serial
})