This commit is contained in:
lll 2023-11-14 22:48:35 +08:00
parent a7b672e3d3
commit bfe493e431
6 changed files with 38 additions and 33 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -315,13 +315,15 @@ export default {
mark_value: JSON.stringify(this.ruleForm),
});
console.log(this.ruleForm);
if (res.data.state) {
// alert(JSON.stringify(res.data.data.mark_value));
this.$message({
message: "保存成功",
message: res.data.message,
type: "success",
});
} else {
this.$message.error("保存失败");
this.$message.error(res.data.message);
}
},
async GetUserAnswer() {
@ -367,6 +369,7 @@ export default {
this.ruleForm.dkpz_tbbtl = obj.dkpz_tbbtl;
this.ruleForm.dkpz_snckxtb = obj.dkpz_snckxtb;
}
// alert(JSON.stringify(answers.data.data.mark_value));
}
this.loading = false;
},

View File

@ -134,7 +134,7 @@ export default {
this.ruleForm.ckcssz_tzw = obj.ckcssz_tzw;
this.ruleForm.ckcssz_485 = obj.ckcssz_485;
this.ruleForm.qtsz_ckzdcz = obj.qtsz_ckzdcz;
this.ruleForm.qtsz_zcblx = obj.qtsz_zdyxtb;
this.ruleForm.qtsz_zcblx = obj.qtsz_zcblx;
this.ruleForm.qtsz_zdyxtb = obj.qtsz_zdyxtb;
this.ruleForm.qtsz_tjzffgn = obj.qtsz_tjzffgn;
this.ruleForm.wxpz_gzms = obj.wxpz_gzms;

View File

@ -212,7 +212,7 @@ export default {
let obj = {
wlgl_nw_name: this.wlgl_nw_name,
wlgl_nw_ip: this.wlgl_ww_ip,
wlgl_nw_ip: this.wlgl_nw_ip,
wlgl_nw_zwym: this.wlgl_nw_zwym,
wlgl_ww_name: this.wlgl_ww_name,
wlgl_ww_ip: this.wlgl_ww_ip,
@ -225,10 +225,10 @@ export default {
clgl_ydx: this.clgl_ydk,
clgl_ydk: this.clgl_ydk,
clgl_mddx: this.clgl_mddk,
clgl_mddx: this.clgl_mddx,
clgl_mddk: this.clgl_mddk,
clgl_rkwg: this.clgl_rkwg,
clgl_rkwk: this.clgl_ckwk,
clgl_rkwk: this.clgl_rkwk,
clgl_rkip: this.clgl_rkip,
clgl_ckwg: this.clgl_ckwg,
clgl_ckwk: this.clgl_ckwk,

View File

@ -359,7 +359,7 @@ export default {
(this.dxgl = obj.dxgl),
(this.wlgl_nw_name = obj.wlgl_nw_name),
(this.wlgl_nw_ip = obj.wlgl_nw_ip),
(this.wlgl_nw_zwym = obj.wlgl_ww_zwym),
(this.wlgl_nw_zwym = obj.wlgl_nw_zwym),
(this.wlgl_ww_name = obj.wlgl_ww_name),
(this.wlgl_ww_ip = obj.wlgl_ww_ip),
(this.wlgl_ww_zwym = obj.wlgl_ww_zwym),

View File

@ -147,13 +147,6 @@ export default {
dialogVisible: true,
labelPosition: "left",
ruleForm: {
ippz_ip_hqfs: "",
ippz_dns_hqfs: "",
ippz_ip: "",
ippz_zwym: "",
ippz_mrwg: "",
ippz_dns_zy: "",
ippz_dns_by: "",
dkpz_btl: "",
dkpz_sjw: "8",
dkpz_jyw: "",
@ -164,6 +157,13 @@ export default {
dkpz_tbbtl: "",
dkpz_snckxtb: false,
},
ippz_ip_hqfs: "",
ippz_dns_hqfs: "",
ippz_ip: "",
ippz_zwym: "",
ippz_mrwg: "",
ippz_dns_zy: "",
ippz_dns_by: "",
rules: {
dkpz_btl: [
{ required: true, message: "请选择波特率", trigger: "change" },
@ -209,7 +209,6 @@ export default {
});
if (data.data) {
let obj = JSON.parse(data.data.mark_value);
console.log(obj);
this.ruleForm.dkpz_btl = obj.dkpz_btl;
this.ruleForm.dkpz_sjw = obj.dkpz_sjw;
this.ruleForm.dkpz_jyw = obj.dkpz_jyw;
@ -219,26 +218,27 @@ export default {
this.ruleForm.dkpz_dbsj = obj.dkpz_dbsj;
this.ruleForm.dkpz_tbbtl = obj.dkpz_tbbtl;
this.ruleForm.dkpz_snckxtb = Boolean(obj.dkpz_snckxtb);
this.ruleForm.ippz_ip_hqfs = obj.ippz_ip_hqfs;
this.ruleForm.ippz_dns_hqfs = obj.ippz_dns_hqfs;
this.ruleForm.ippz_ip = obj.ippz_ip;
this.ruleForm.ippz_zwym = obj.ippz_ip;
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);
this.ippz_ip_hqfs = obj.ippz_ip_hqfs;
this.ippz_dns_hqfs = obj.ippz_dns_hqfs;
this.ippz_ip = obj.ippz_ip;
this.ippz_zwym = obj.ippz_zwym;
this.ippz_mrwg = obj.ippz_mrwg;
this.ippz_dns_zy = obj.ippz_dns_zy;
this.ippz_dns_by = obj.ippz_dns_by;
}
console.log(data.data);
// alert(JSON.stringify(data.data.mark_value));
},
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,
ippz_ip_hqfs: this.ippz_ip_hqfs,
ippz_dns_hqfs: this.ippz_dns_hqfs,
ippz_ip: this.ippz_ip,
ippz_zwym: this.ippz_zwym,
ippz_mrwg: this.ippz_mrwg,
ippz_dns_zy: this.ippz_dns_zy,
ippz_dns_by: this.ippz_dns_by,
dkpz_btl: this.ruleForm.dkpz_btl,
dkpz_sjw: this.ruleForm.dkpz_sjw,
dkpz_jyw: this.ruleForm.dkpz_jyw,
@ -250,6 +250,7 @@ export default {
dkpz_snckxtb: this.ruleForm.dkpz_snckxtb,
};
console.log(obj);
alert(JSON.stringify(obj));
let { data } = await SaveUserAnswer({
mark: "CKFWQ_yx",
// user_id: "USER202311140204340206",
@ -257,12 +258,13 @@ export default {
mark_value: JSON.stringify(obj),
});
if (data.state) {
alert(JSON.stringify(data.data.mark_value));
this.$message({
message: "保存成功",
message: data.message,
type: "success",
});
} else {
this.$message.error("保存失败");
this.$message.error(data.message);
}
},
submitForm(formName) {