|
|
|
|
@ -302,6 +302,7 @@ export default {
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if(this.form.items.length>0){
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
updateTemplate(this.form).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功")
|
|
|
|
|
@ -315,6 +316,11 @@ export default {
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.$alert(`考核项不能为空,请选择考核项!`, `提示`, {
|
|
|
|
|
type: 'warning'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|