This commit is contained in:
unknown 2023-11-14 22:50:35 +08:00
commit e25757a21d
6 changed files with 116 additions and 112 deletions

View File

@ -681,7 +681,7 @@ export default {
mounted() {
alert(this.$route.query.id, this.$store.state.type);
console.log(this.user_id, this.$store.state.type);
this.GetUserAnswer();
// this.GetUserAnswer();
},
methods: {
@ -754,6 +754,7 @@ export default {
},
//---
async SaveUserAnswer() {
console.log(this.ruleForm1);
var obj = {
clgl_name: this.ruleForm1.clgl_name,
clgl_xy: this.ruleForm1.clgl_xy,
@ -830,46 +831,46 @@ export default {
this.$message.error("操作失败");
}
},
//
async GetUserAnswer() {
let { data } = await GetUserAnswer({
mark: this.$store.state.type,
user_id: this.$route.query.id,
// mark: "GYWZ_wx",
// user_id: "USER202307301109254198",
});
if (data.data && data.state) {
let res = JSON.parse(data.data.mark_value);
console.log(res);
this.clgl_name = res.clgl_name;
this.clgl_xy = res.clgl_xy;
this.clgl_gzms = res.clgl_gzms;
this.clgl_mddk = res.clgl_mddk;
this.clgl_ydx = res.clgl_ydx;
this.clgl_ydk = res.clgl_ydk;
this.clgl_mddk = res.clgl_mddk;
this.clgl_rkwk = res.clgl_rkwk;
this.clgl_wdyml = res.clgl_wdyml;
this.clgl_ckwk = res.clgl_ckwk;
this.wlgl_nw_name = res.wlgl_nw_name;
this.wlgl_nw_ip = res.wlgl_nw_ip;
this.wlgl_nw_zwym = res.wlgl_nw_zwym;
this.wlgl_ww_name = res.wlgl_ww_name;
this.wlgl_ww_ip = res.wlgl_ww_ip;
this.wlgl_ww_zwym = res.wlgl_ww_zwym;
this.dxgl = [].concat(res.dxgl);
this.cmdlist_ml = res.cmdlist_ml;
this.cmdlist_sbid = res.cmdlist_sbid;
this.cmdlist_qsdz = res.cmdlist_qsdz;
this.cmdlist_dzcd = res.cmdlist_dzcd;
this.cmdlist_ms = res.cmdlist_ms;
this.cmdlist_dz = res.cmdlist_dz;
}
// console.log(this.dxgl);
this.dxgl.forEach((item) => {
this.arr.push(item.dx_name);
});
},
// //
// async GetUserAnswer() {
// let { data } = await GetUserAnswer({
// // mark: this.$store.state.type,
// // user_id: this.$route.query.id,
// mark: "GYWZ_wx",
// user_id: "USER202307301109254198",
// });
// if (data.data && data.state) {
// let res = JSON.parse(data.data.mark_value);
// console.log(res);
// this.clgl_name = res.clgl_name;
// this.clgl_xy = res.clgl_xy;
// this.clgl_gzms = res.clgl_gzms;
// this.clgl_mddk = res.clgl_mddk;
// this.clgl_ydx = res.clgl_ydx;
// this.clgl_ydk = res.clgl_ydk;
// this.clgl_mddk = res.clgl_mddk;
// this.clgl_rkwk = res.clgl_rkwk;
// this.clgl_wdyml = res.clgl_wdyml;
// this.clgl_ckwk = res.clgl_ckwk;
// this.wlgl_nw_name = res.wlgl_nw_name;
// this.wlgl_nw_ip = res.wlgl_nw_ip;
// this.wlgl_nw_zwym = res.wlgl_nw_zwym;
// this.wlgl_ww_name = res.wlgl_ww_name;
// this.wlgl_ww_ip = res.wlgl_ww_ip;
// this.wlgl_ww_zwym = res.wlgl_ww_zwym;
// this.dxgl = [].concat(res.dxgl);
// this.cmdlist_ml = res.cmdlist_ml;
// this.cmdlist_sbid = res.cmdlist_sbid;
// this.cmdlist_qsdz = res.cmdlist_qsdz;
// this.cmdlist_dzcd = res.cmdlist_dzcd;
// this.cmdlist_ms = res.cmdlist_ms;
// this.cmdlist_dz = res.cmdlist_dz;
// }
// // console.log(this.dxgl);
// this.dxgl.forEach((item) => {
// this.arr.push(item.dx_name);
// });
// },
//-
saveMl() {
this.$refs["ruleForm2"].validate((valid) => {
@ -911,6 +912,7 @@ export default {
wlgl_ww_zwym: this.wlgl_ww_zwym,
dxgl: this.dxgl,
};
console.log(obj);
let { data } = await SaveUserAnswer({
mark: this.$store.state.type,
user_id: this.$route.query.id,

View File

@ -264,53 +264,49 @@ export default {
};
},
methods: {
//
Merge(value, value1, value2, value3, value4) {
value = value1 + "." + value2 + "." + value3 + "." + value4;
return value;
},
SliceData(value) {
let res = value.split(".");
// console.log(res);
return res;
},
// ,
async saveAll() {
this.ruleForm.ippz_ip = this.Merge(
this.ruleForm.ippz_ip,
this.ippz_ip1,
this.ippz_ip2,
this.ippz_ip3,
this.ippz_ip4
);
this.ruleForm.ippz_zwym = this.Merge(
this.ruleForm.ippz_zwym,
this.ippz_zwym1,
this.ippz_zwym2,
this.ippz_zwym3,
this.ippz_zwym4
);
this.ruleForm.ippz_mrwg = this.Merge(
this.ruleForm.ippz_mrwg,
this.ippz_mrwg1,
this.ippz_mrwg2,
this.ippz_mrwg3,
this.ippz_mrwg4
);
this.ruleForm.ippz_dns_zy = this.Merge(
this.ruleForm.ippz_dns_zy,
this.ippz_dns_zy1,
this.ippz_dns_zy2,
this.ippz_dns_zy3,
this.ippz_dns_zy4
);
this.ruleForm.ippz_dns_by = this.Merge(
this.ruleForm.ippz_dns_by,
this.ippz_dns_by1,
this.ippz_dns_by2,
this.ippz_dns_by3,
this.ippz_dns_by4
);
this.ruleForm.ippz_ip =
this.ippz_ip1 +
"." +
this.ippz_ip2 +
"." +
this.ippz_ip3 +
"." +
this.ippz_ip4;
this.ruleForm.ippz_zwym =
this.ippz_zwym1 +
"." +
this.ippz_zwym2 +
"." +
this.ippz_zwym3 +
"." +
this.ippz_zwym4;
this.ruleForm.ippz_mrwg =
this.ippz_mrwg1 +
"." +
this.ippz_mrwg2 +
"." +
this.ippz_mrwg3 +
"." +
this.ippz_mrwg4;
this.ruleForm.ippz_dns_zy =
this.ippz_dns_zy1 +
"." +
this.ippz_dns_zy2 +
"." +
this.ippz_dns_zy3 +
"." +
this.ippz_dns_zy4;
this.ruleForm.ippz_dns_by =
this.ippz_dns_by1 +
"." +
this.ippz_dns_by2 +
"." +
this.ippz_dns_by3 +
"." +
this.ippz_dns_by4;
let res = await SaveUserAnswer({
mark: "CKFWQ_yx",

View File

@ -298,6 +298,7 @@ export default {
cmdlist_ms: this.cmdlist_ms,
cmdlist_dz: this.cmdlist_dz,
};
console.log(obj);
let { data } = await SaveUserAnswer({
mark: this.$store.state.type,
user_id: this.user_id,

View File

@ -226,15 +226,35 @@ export default {
this.ruleForm.ippz_mrwg = obj.ippz_mrwg;
this.ruleForm.ippz_dns_zy = obj.ippz_dns_zy;
this.ruleForm.ippz_dns_by = obj.ippz_dns_by;
console.log(this.ruleForm);
}
},
async savePort() {
this.ruleForm.dkpz_snckxtb = Number(this.ruleForm.dkpz_snckxtb);
let obj = {
ippz_ip_hqfs: this.ruleForm.ippz_ip_hqfs,
ippz_dns_hqfs: this.ruleForm.ippz_dns_hqfs,
ippz_ip: this.ruleForm.ippz_ip,
ippz_zwym: this.ruleForm.ippz_zwym,
ippz_mrwg: this.ruleForm.ippz_mrwg,
ippz_dns_zy: this.ruleForm.ippz_dns_zy,
ippz_dns_by: this.ruleForm.ippz_dns_by,
dkpz_btl: this.ruleForm.dkpz_btl,
dkpz_sjw: this.ruleForm.dkpz_sjw,
dkpz_jyw: this.ruleForm.dkpz_jyw,
dkpz_tzw: this.ruleForm.dkpz_tzw,
dkpz_lkms: this.ruleForm.dkpz_lkms,
dkpz_dbcd: this.ruleForm.dkpz_dbcd,
dkpz_dbsj: this.ruleForm.dkpz_dbsj,
dkpz_tbbtl: this.ruleForm.dkpz_tbbtl,
dkpz_snckxtb: this.ruleForm.dkpz_snckxtb,
};
console.log(obj);
let { data } = await SaveUserAnswer({
mark: "CKFWQ_yx",
// user_id: "USER202311140204340206",
user_id: this.user_id,
mark_value: JSON.stringify(this.ruleForm),
mark_value: JSON.stringify(obj),
});
if (data.state) {
this.$message({

View File

@ -20,7 +20,7 @@
<el-form-item label="网络名称:" prop="wxpz_wlmc">
<el-col :span="10">
<el-select v-model="ruleForm.wxpz_wlmc" placeholder="无线网名称">
<el-option label="无线区无线网" value="无线区无线网"></el-option>
<el-option label="无线区无线网" value="shanghai"></el-option>
</el-select>
</el-col>
</el-form-item>
@ -139,7 +139,6 @@ export default {
this.ruleForm.qtsz_zdyxtb = obj.qtsz_zdyxtb;
this.ruleForm.qtsz_tjzffgn = obj.qtsz_tjzffgn;
this.ruleForm.wxpz_gzms = obj.wxpz_gzms;
1;
this.ruleForm.wxpz_wlmc = obj.wxpz_wlmc;
this.ruleForm.wxpz_jmms = obj.wxpz_jmms;
this.ruleForm.wxpz_jmsf = obj.wxpz_jmsf;

View File

@ -112,6 +112,12 @@ export default {
};
},
created() {
this.getClGrade();
this.getJtGrade();
this.getZzGrade();
this.getQxGrade();
this.getYxGrade();
this.getWxGrade();
// DB线-
// DB线-
// 线-
@ -128,13 +134,6 @@ export default {
decodeURIComponent(window.location.href).split("?")[1].split("|")[1]
);
this.getClGrade();
this.getJtGrade();
this.getZzGrade();
this.getQxGrade();
this.getYxGrade();
this.getWxGrade();
this.time = this.$moment().format("HH:mm:ss");
this.productChartOption = productChart;
this.mainshaftChartOption = mainshaftChart;
@ -204,6 +203,7 @@ export default {
mark: "DB-IotLite_wx",
});
this.jtgrade = data.data;
this.jtgrade = true;
},
//
async getZzGrade() {
@ -239,34 +239,20 @@ export default {
},
},
mounted() {
// alert(
// this.resultObj,
// "",
// this.clgrade,
// "",
// this.jtgrade,
// "",
// this.zzgrade,
// "",
// this.qxgrade,
// "",
// this.yxgrade,
// "",
// this.wxgrade
// );
this.getLoadEcharts("productChart", this.productChartOption);
this.getLoadEcharts("mainshaftChart", this.mainshaftChartOption);
this.getLoadEcharts("loadChart", this.loadChartChartOption);
this.getLoadEcharts("ratedChart", this.ratedChartOption);
this.getLoadEcharts("one", this.CuttingSpeedChartOption);
this.getLoadEcharts("two", this.stopChartOption);
//
this.timer = setInterval(() => {
this.time = this.$moment().format("HH:mm:ss");
this.data = this.$moment().format("YYYY.MM.DD");
}, 100);
},
beforeDestory() {
//
clearInterval(this.timer);