幼儿评估
This commit is contained in:
parent
db2ac25df1
commit
e81717bcd6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user