From 1a16e01e12b31ef0beff8ee6159c7459e02ef55e Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 26 Jun 2023 17:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/mixins/JeecgListMixin.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js b/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js index 67ca457..eb25fdf 100644 --- a/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js +++ b/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js @@ -361,9 +361,15 @@ export const JeecgListMixin = { this.$refs.modalForm.disableSubmit = true; }, handleAddxqlx: function (num,record) { - this.$refs.modalForm.add(num,record); - this.$refs.modalForm.title = "新增"; - this.$refs.modalForm.disableSubmit = false; + getAction(this.url.checkqx,{createBy:record.createBy}).then((res)=>{ + if (res.success) { + this.$refs.modalForm.add(num,record); + this.$refs.modalForm.title = "新增"; + this.$refs.modalForm.disableSubmit = false; + }else{ + this.$message.warning(res.message); + } + }); }, /* 导出 */ handleExportXls2() {