import event from "../../tdn/event";
import Utils from "../../../../../../utils";
export default {
	mixins: [event],
	methods: {
		async checkTdn() {
			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',
                    });
                }
            })
			
		}
  },
}