幼儿评估

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

@ -269,27 +269,38 @@ export default {
// },
/** 提交按钮 */
submitForm: function () {
var items = "";
this.checkList.forEach((item) => {
//
items = items + item + ",";
});
// console.log(items);
// console.log(""+this.checkList.length);
if (this.checkList.length == 0) {
this.msgError("请至少选择一项数据");
} else {
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("评估成功");
this.$confirm("确认生成图表数据?生成后数据不能取消", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
callback: (action) => {
if (action === "confirm") {
// console.log(' ')
var items = "";
this.checkList.forEach((item) => {
//
items = items + item + ",";
});
// console.log(items);
// console.log(""+this.checkList.length);
if (this.checkList.length == 0) {
this.msgError("请至少选择一项数据");
} else {
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) {
// this.activeName = tab