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

View File

@ -264,53 +264,49 @@ export default {
}; };
}, },
methods: { 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() { async saveAll() {
this.ruleForm.ippz_ip = this.Merge( this.ruleForm.ippz_ip =
this.ruleForm.ippz_ip, this.ippz_ip1 +
this.ippz_ip1, "." +
this.ippz_ip2, this.ippz_ip2 +
this.ippz_ip3, "." +
this.ippz_ip4 this.ippz_ip3 +
); "." +
this.ruleForm.ippz_zwym = this.Merge( this.ippz_ip4;
this.ruleForm.ippz_zwym, this.ruleForm.ippz_zwym =
this.ippz_zwym1, this.ippz_zwym1 +
this.ippz_zwym2, "." +
this.ippz_zwym3, this.ippz_zwym2 +
this.ippz_zwym4 "." +
); this.ippz_zwym3 +
this.ruleForm.ippz_mrwg = this.Merge( "." +
this.ruleForm.ippz_mrwg, this.ippz_zwym4;
this.ippz_mrwg1,
this.ippz_mrwg2, this.ruleForm.ippz_mrwg =
this.ippz_mrwg3, this.ippz_mrwg1 +
this.ippz_mrwg4 "." +
); this.ippz_mrwg2 +
this.ruleForm.ippz_dns_zy = this.Merge( "." +
this.ruleForm.ippz_dns_zy, this.ippz_mrwg3 +
this.ippz_dns_zy1, "." +
this.ippz_dns_zy2, this.ippz_mrwg4;
this.ippz_dns_zy3, this.ruleForm.ippz_dns_zy =
this.ippz_dns_zy4 this.ippz_dns_zy1 +
); "." +
this.ruleForm.ippz_dns_by = this.Merge( this.ippz_dns_zy2 +
this.ruleForm.ippz_dns_by, "." +
this.ippz_dns_by1, this.ippz_dns_zy3 +
this.ippz_dns_by2, "." +
this.ippz_dns_by3, this.ippz_dns_zy4;
this.ippz_dns_by4 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({ let res = await SaveUserAnswer({
mark: "CKFWQ_yx", mark: "CKFWQ_yx",

View File

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

View File

@ -226,15 +226,35 @@ export default {
this.ruleForm.ippz_mrwg = obj.ippz_mrwg; this.ruleForm.ippz_mrwg = obj.ippz_mrwg;
this.ruleForm.ippz_dns_zy = obj.ippz_dns_zy; this.ruleForm.ippz_dns_zy = obj.ippz_dns_zy;
this.ruleForm.ippz_dns_by = obj.ippz_dns_by; this.ruleForm.ippz_dns_by = obj.ippz_dns_by;
console.log(this.ruleForm);
} }
}, },
async savePort() { async savePort() {
this.ruleForm.dkpz_snckxtb = Number(this.ruleForm.dkpz_snckxtb); 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({ let { data } = await SaveUserAnswer({
mark: "CKFWQ_yx", mark: "CKFWQ_yx",
// user_id: "USER202311140204340206", // user_id: "USER202311140204340206",
user_id: this.user_id, user_id: this.user_id,
mark_value: JSON.stringify(this.ruleForm), mark_value: JSON.stringify(obj),
}); });
if (data.state) { if (data.state) {
this.$message({ this.$message({

View File

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

View File

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