import event from "../../tda/event"; export default { mixins: [event], methods: { save() { this.$refs['modelForm'].validate(async (validStatic) => { if (validStatic) { if (this.model.pblmod.dectyp === "D") { this.$confirm('系统将删除主信息,是否确认?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.saveTda(); }) } } else { // 前端校验失败 this.$notify({ title: '失败', message: '校验失败', type: 'error', }); } }) }, // async del() { // let rtnmsg = await Api.post('/report/rmbsel/deleteTda', this.model.tda2101) // if (rtnmsg.respCode == SUCCESS) { // this.$notify({ // title: "成功", // message: "提交成功", // type: "success", // }); // this.$store.commit('delTagsArry', this.$route.path); // this.$router.back() // }else{ // this.$notify({ // title: "失败", // message: "提交失败", // type: "error", // }); // } // }, // flgChange(val) { // if (val == 'X') { // this.model.tda2101.tdaVo.opertype = '3' // this.model.filterKeys = ['3'] // } else { // this.model.tda2101.tdaVo = cloneDeep(this.model.old2101) // this.model.filterKeys = ['1','2','3'] // } // this.$nextTick(() => { // this.root.$refs['modelForm'].validateField(['tda2101.tdaVo.actiondesc']); // }) // }, } }