import event from "../../tga/event"; export default { mixins: [event], methods: { async checkTga() { this.$refs['modelForm'].validate(async (validStatic) => { if (validStatic) { const loading = this.loading('正在校验数据'); // 清除之前的校验状态 this.$refs.modelForm.clearValidate(); this.$notify({ title: "成功", message: "校验成功", type: "success", }); loading.close(); } else { // 前端校验失败 this.$notify({ title: '失败', message: '校验失败', type: 'error', }); } }) } // commitDel() { // this.$refs['modelForm'].validate(async (validStatic) => { // if (validStatic) { // this.del() // } else { // // 前端校验失败 // this.$notify({ // title: '失败', // message: '校验失败', // type: 'error', // }); // } // }) // }, // async del() { // let rtnmsg = await Api.post('/report/rmbsel/deleteTdb', this.model.tdb2111) // if (rtnmsg.respCode == SUCCESS) { // this.$notify({ // title: "成功", // message: "提交成功", // type: "success", // }); // this.$store.commit('delTagsArry', this.$route.path); // tthis.$router.back() // }else{ // this.$notify({ // title: "失败", // message: "提交失败", // type: "error", // }); // } // }, // flgChange(val){ // if(val == 'X'){ // this.model.tdb2111.tdbVo.opertype = '3' // }else{ // this.model.tdb2111.tdbVo = JSON.parse(JSON.stringify(this.model.old2111)) // } // this.$nextTick(() => { // this.root.$refs['modelForm'].validateField(['tdb2111.tdbVo.actiondesc']); // }) // } } }