幼儿评估

This commit is contained in:
paidaxing444 2020-11-06 16:55:47 +08:00
parent db2ac25df1
commit e81717bcd6

View File

@ -269,27 +269,38 @@ export default {
// }, // },
/** 提交按钮 */ /** 提交按钮 */
submitForm: function () { submitForm: function () {
var items = ""; this.$confirm("确认生成图表数据?生成后数据不能取消", "警告", {
this.checkList.forEach((item) => { confirmButtonText: "确定",
// cancelButtonText: "取消",
items = items + item + ","; type: "warning",
}); callback: (action) => {
// console.log(items); if (action === "confirm") {
// console.log(""+this.checkList.length); // console.log(' ')
if (this.checkList.length == 0) { var items = "";
this.msgError("请至少选择一项数据"); this.checkList.forEach((item) => {
} else { //
this.form.childid = this.childId; items = items + item + ",";
this.form.classid = this.classid; });
this.form.items = items; // console.log(items);
this.form.type = "Y"; // console.log(""+this.checkList.length);
this.form.xn = this.trem; if (this.checkList.length == 0) {
addAssessmentchild(this.form).then((response) => { this.msgError("请至少选择一项数据");
if (response.code === 200) { } else {
this.msgSuccess("评估成功"); this.form.childid = this.childId;
this.form.classid = this.classid;
this.form.items = items;
this.form.type = "Y";
this.form.xn = this.trem;
addAssessmentchild(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("评估成功");
}
});
}
} else {
} }
}); },
} });
}, },
handleClick(tab) { handleClick(tab) {
// this.activeName = tab // this.activeName = tab