BUG 修改

This commit is contained in:
zhaoxiao
2021-09-26 18:36:50 +08:00
parent 3c9c9c5df8
commit df5b0b6142
9 changed files with 16 additions and 12 deletions
@@ -9,7 +9,7 @@
@cancel="handleCancel"
cancelText="关闭">
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form :form="form" v-if="memberList.length > 0">
<a-row>
<a-col :span="2"></a-col>
<a-col :span="20">
@@ -25,6 +25,7 @@
</a-col>
</a-row>
</a-form>
<a-empty v-else></a-empty>
</a-spin>
<template slot="footer">
<a-button @click="handleCancel">关闭</a-button>
@@ -147,6 +148,10 @@ export default {
this.memberList = []
},
handleOk() {
if (this.memberList.length === 0) {
this.$message.warn('当前工作组暂无成员,无法分发文件')
return
}
if (this.checkedKeys.length === 0) {
this.form.validateFields()
return