Compare commits

..

No commits in common. "5eabeaa062cfc2995bc94d93b60ee6e8395b29eb" and "225f1719a5cc76e4d7cd167b7b9b2febb5dae757" have entirely different histories.

3 changed files with 8 additions and 7 deletions

View File

@ -783,9 +783,9 @@ export default {
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({
mark:this.$store.state.type,
mark: "GYWZ_yx",
user_id: "USER202307301109254198",
mark_value: JSON.stringify({ ...json, ...obj }),
});

View File

@ -955,8 +955,6 @@ export default {
type: "success",
});
this.dialogVisible1 = false;
} else {
this.$message.error("操作失败");
}
},
//

View File

@ -221,23 +221,26 @@ export default {
this.ruleForm.dkpz_snckxtb = Boolean(obj.dkpz_snckxtb);
}
},
async savePort() {
savePort() {
this.ruleForm.dkpz_snckxtb = String(Number(this.ruleForm.dkpz_snckxtb));
let datas = localStorage.getItem("CKFWQ_yx");
datas = { ...JSON.parse(datas), ...this.ruleForm };
let { data } = await SaveUserAnswer({
SaveUserAnswer({
mark: "CKFWQ_yx",
user_id: `${this.user_id}`,
mark_value: JSON.stringify(datas),
}).then((res) => {
console.log(res);
});
if (data.state) {
localStorage.setItem("CKFWQ_yx", JSON.stringify(datas));
this.$message({
message: "保存成功",
type: "success",
});
} else {
this.$message.error("保存失败");
this.$message.error("错了哦,这是一条错误消息");
}
},
submitForm(formName) {