Compare commits
No commits in common. "5eabeaa062cfc2995bc94d93b60ee6e8395b29eb" and "225f1719a5cc76e4d7cd167b7b9b2febb5dae757" have entirely different histories.
5eabeaa062
...
225f1719a5
|
|
@ -783,9 +783,9 @@ export default {
|
||||||
clgl_wdyml: this.ruleForm1.clgl_wdyml,
|
clgl_wdyml: this.ruleForm1.clgl_wdyml,
|
||||||
};
|
};
|
||||||
//拿缓存数据
|
//拿缓存数据
|
||||||
var json = JSON.parse(sessionStorage.getItem(this.$store.state.type));
|
var json = JSON.parse(sessionStorage.getItem("GYWZ_yx"));
|
||||||
let { data } = await SaveUserAnswer({
|
let { data } = await SaveUserAnswer({
|
||||||
mark:this.$store.state.type,
|
mark: "GYWZ_yx",
|
||||||
user_id: "USER202307301109254198",
|
user_id: "USER202307301109254198",
|
||||||
mark_value: JSON.stringify({ ...json, ...obj }),
|
mark_value: JSON.stringify({ ...json, ...obj }),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -955,8 +955,6 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
this.dialogVisible1 = false;
|
this.dialogVisible1 = false;
|
||||||
} else {
|
|
||||||
this.$message.error("操作失败");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取缓存数据
|
//获取缓存数据
|
||||||
|
|
|
||||||
|
|
@ -221,23 +221,26 @@ export default {
|
||||||
this.ruleForm.dkpz_snckxtb = Boolean(obj.dkpz_snckxtb);
|
this.ruleForm.dkpz_snckxtb = Boolean(obj.dkpz_snckxtb);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async savePort() {
|
savePort() {
|
||||||
this.ruleForm.dkpz_snckxtb = String(Number(this.ruleForm.dkpz_snckxtb));
|
this.ruleForm.dkpz_snckxtb = String(Number(this.ruleForm.dkpz_snckxtb));
|
||||||
let datas = localStorage.getItem("CKFWQ_yx");
|
let datas = localStorage.getItem("CKFWQ_yx");
|
||||||
datas = { ...JSON.parse(datas), ...this.ruleForm };
|
datas = { ...JSON.parse(datas), ...this.ruleForm };
|
||||||
let { data } = await SaveUserAnswer({
|
SaveUserAnswer({
|
||||||
mark: "CKFWQ_yx",
|
mark: "CKFWQ_yx",
|
||||||
user_id: `${this.user_id}`,
|
user_id: `${this.user_id}`,
|
||||||
mark_value: JSON.stringify(datas),
|
mark_value: JSON.stringify(datas),
|
||||||
|
}).then((res) => {
|
||||||
|
console.log(res);
|
||||||
});
|
});
|
||||||
if (data.state) {
|
if (data.state) {
|
||||||
localStorage.setItem("CKFWQ_yx", JSON.stringify(datas));
|
localStorage.setItem("CKFWQ_yx", JSON.stringify(datas));
|
||||||
|
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "保存成功",
|
message: "保存成功",
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error("错了哦,这是一条错误消息");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submitForm(formName) {
|
submitForm(formName) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue