瓶中沙 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] name: props.qudongOptions[i]
} }
state.typeOptions.push(obj); state.typeOptions.push(obj);
console.log(33,state.typeOptions);
} }
} }
const closeDialog = () => { const closeDialog = () => {
@ -264,7 +263,6 @@ export default {
ElMessage.error(res.data || res.message); ElMessage.error(res.data || res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });
}; };
@ -288,7 +286,6 @@ export default {
const res = await infoApi.getCom(); const res = await infoApi.getCom();
if (res.code == 0) { if (res.code == 0) {
state.comArr = res.data.com; state.comArr = res.data.com;
console.log('comlist',state.comArr)
state.com_select = []; state.com_select = [];
infodata.com.forEach(e => { infodata.com.forEach(e => {
if (!e.used) { if (!e.used) {

View File

@ -61,7 +61,6 @@ export default {
}); });
const getTypeOptions = () => { const getTypeOptions = () => {
console.log(11,props.templateData)
state.typeOptions = []; state.typeOptions = [];
for (let i in props.templateData) { for (let i in props.templateData) {
let obj = { let obj = {
@ -69,7 +68,6 @@ export default {
name: props.templateData[i] name: props.templateData[i]
} }
state.typeOptions.push(obj); state.typeOptions.push(obj);
console.log(33,state.typeOptions);
} }
} }
@ -94,7 +92,6 @@ export default {
ElMessage.error(res.message); ElMessage.error(res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });
}; };

View File

@ -172,7 +172,6 @@ export default {
}; };
const saveP = async () => { const saveP = async () => {
console.log(ruleFormRef.value);
await ruleFormRef.value.validate(async (valid) => { await ruleFormRef.value.validate(async (valid) => {
if (valid) { if (valid) {
const param = { const param = {
@ -189,7 +188,6 @@ export default {
ElMessage.error(res.data || res.message); ElMessage.error(res.data || res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });

View File

@ -93,7 +93,6 @@ export default {
if (ret.code == 0) { if (ret.code == 0) {
// //
const infodata = sb_drive_list.decode(ret.data).sbDrive; const infodata = sb_drive_list.decode(ret.data).sbDrive;
console.log('驱动类型', infodata);
state.qudongOptions = infodata; state.qudongOptions = infodata;
} }
} }
@ -104,7 +103,6 @@ export default {
const saveData = async () => { const saveData = async () => {
await ruleFormRef.value.validate(async (valid) => { await ruleFormRef.value.validate(async (valid) => {
if (valid) { if (valid) {
console.log(123, props.formData);
const req_databuf = sb_add.encode(props.formData).finish(); const req_databuf = sb_add.encode(props.formData).finish();
// //
const req_data = req_databuf.slice(0, req_databuf.length); const req_data = req_databuf.slice(0, req_databuf.length);
@ -117,7 +115,6 @@ export default {
ElMessage.error(res.msg); ElMessage.error(res.msg);
} }
} else { } 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); 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)); const ret = response.decode(new Uint8Array(res));
console.log(555, ret)
if (ret.code == 0) { if (ret.code == 0) {
// //
console.log(new TextDecoder().decode(ret.data));
ElMessage.success(new TextDecoder().decode(ret.data) || "请求成功"); ElMessage.success(new TextDecoder().decode(ret.data) || "请求成功");
// //
ctx.emit("dialogSuccess"); ctx.emit("dialogSuccess");
} else { } else {
console.log(res);
} }
} else { } else {
console.log("error submit!");
} }
}); });
}; };

View File

@ -62,7 +62,6 @@ export default {
onMounted(() => { onMounted(() => {
state.addForm = props.setData; state.addForm = props.setData;
console.log(123, props.formData)
// //
getTxTemplate(); getTxTemplate();
}); });
@ -82,7 +81,6 @@ export default {
name: data[i] name: data[i]
} }
state.modelArr.push(obj); state.modelArr.push(obj);
console.log(33,state.modelArr);
} }
state.addForm.template_name = state.modelArr[0].name; state.addForm.template_name = state.modelArr[0].name;
} else { } else {
@ -96,7 +94,6 @@ export default {
const scanData = () => { }; const scanData = () => { };
const saveSet = async () => { const saveSet = async () => {
console.log(ruleFormRef.value);
await ruleFormRef.value.validate(async (valid) => { await ruleFormRef.value.validate(async (valid) => {
if (valid) { if (valid) {
const param = { const param = {
@ -112,7 +109,6 @@ export default {
ElMessage.error(res.data || res.message); ElMessage.error(res.data || res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });

View File

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

View File

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

View File

@ -90,7 +90,6 @@ export default {
localRemove("token"); localRemove("token");
window.location.reload(); window.location.reload();
} else { } else {
console.log(res);
} }
}; };
@ -101,7 +100,6 @@ export default {
router.back(); router.back();
}; };
router.afterEach((to) => { router.afterEach((to) => {
console.log("to", to);
const { id } = to.query; const { id } = to.query;
state.name = pathMap[to.name]; state.name = pathMap[to.name];
// state.hasBack = ['level2', 'level3', 'order_detail'].includes(to.name) // state.hasBack = ['level2', 'level3', 'order_detail'].includes(to.name)

View File

@ -248,7 +248,7 @@ export default {
}, },
}); });
const onSubmit = async () => { const onSubmit = async () => {
console.log(555, props.formData.name); (555, props.formData.name);
var header = { var header = {
driver_name: props.formData.name driver_name: props.formData.name
} }
@ -270,7 +270,6 @@ export default {
ElMessage.error(res.message); ElMessage.error(res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });
} else if (props.pztypecode === 2) { } else if (props.pztypecode === 2) {
@ -306,7 +305,6 @@ export default {
ElMessage.error(res.message); ElMessage.error(res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });
} else if (props.pztypecode === 3) { } else if (props.pztypecode === 3) {
@ -328,7 +326,6 @@ export default {
ElMessage.error(res.message); ElMessage.error(res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });
} }
@ -348,7 +345,6 @@ export default {
const res = await infoApi.getCom(parm); const res = await infoApi.getCom(parm);
if (res.code == 0) { if (res.code == 0) {
state.comArr = res.data; state.comArr = res.data;
console.log(44, state.comArr);
state.form2.com_name = state.comArr[0].name; state.form2.com_name = state.comArr[0].name;
} }
}; };

View File

@ -219,7 +219,7 @@ export default {
link.setAttribute('download', `${decodeURI(fileName.split('"')[1])}`); link.setAttribute('download', `${decodeURI(fileName.split('"')[1])}`);
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
}).catch(error => console.log(error)); }).catch();
} }
return { return {

View File

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

View File

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

View File

@ -95,7 +95,6 @@ export default {
const res = await infoApi.getSys(); const res = await infoApi.getSys();
if (res.code == 0) { if (res.code == 0) {
state.deviceData = res.data; state.deviceData = res.data;
console.log(44, state.deviceData);
nextTick(() => { nextTick(() => {
drawEchart(); drawEchart();
}); });

View File

@ -114,7 +114,6 @@ export default {
// //
callback(); callback();
} else { } else {
console.log(value);
callback(new Error("格式不正确")); callback(new Error("格式不正确"));
} }
}; };
@ -172,9 +171,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
// //
state.formData = res.data; state.formData = res.data;
console.log(666, state.formData.ip);
} else { } else {
console.log(res);
} }
}; };
@ -196,7 +193,6 @@ export default {
ElMessage.error(res.message); ElMessage.error(res.message);
} }
} else { } else {
console.log("error submit!");
} }
}); });
}; };

View File

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

View File

@ -79,7 +79,6 @@ export default {
// //
state.templateData = res.data; state.templateData = res.data;
} else { } else {
console.log(res);
} }
} }
const getTableData = async () => { const getTableData = async () => {
@ -88,7 +87,6 @@ export default {
// //
state.tableData = res.data; state.tableData = res.data;
} else { } else {
console.log(res);
} }
}; };
const editData = (item) => { const editData = (item) => {

View File

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

View File

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

View File

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

View File

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