diff --git a/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js b/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js index eb25fdf..7c0764e 100644 --- a/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js +++ b/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js @@ -361,15 +361,22 @@ export const JeecgListMixin = { this.$refs.modalForm.disableSubmit = true; }, handleAddxqlx: function (num,record) { - 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); - } - }); + if(num===1){ + this.$refs.modalForm.add(num,record); + this.$refs.modalForm.title = "新增"; + this.$refs.modalForm.disableSubmit = false; + }else{ + 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() {