fix 81074
This commit is contained in:
+25
-23
@@ -412,30 +412,32 @@ export default {
|
||||
let flag = ''
|
||||
const base = 'base'
|
||||
const user = 'user'
|
||||
// 节点1判断表格是否有数据
|
||||
if (this.isInitiate && this.$refs.baseInfoTable.dataSource.length === 0) {
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
if (!flag) {
|
||||
flag = base
|
||||
}
|
||||
} else if (!this.isInitiate && this.$refs.applyPermissionTable.dataSource.length === 0) {
|
||||
// 其他节点判断表单中的表格是否有数据
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
if (!flag) {
|
||||
flag = base
|
||||
}
|
||||
}
|
||||
// 校验表格中是否已有权限
|
||||
if (isValidate && this.isInitiate) {
|
||||
const ids = this.$refs.baseInfoTable.dataSource.map(item => item.id).join(',')
|
||||
await checkPermissionApply({ ids }).then(res => {
|
||||
if (!res.success) {
|
||||
this.$message.warning(res.message)
|
||||
if (!flag) {
|
||||
flag = base
|
||||
}
|
||||
if (isValidate) {
|
||||
// 节点1判断表格是否有数据
|
||||
if (this.isInitiate && this.$refs.baseInfoTable.dataSource.length === 0) {
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
if (!flag) {
|
||||
flag = base
|
||||
}
|
||||
})
|
||||
} else if (!this.isInitiate && this.$refs.applyPermissionTable.dataSource.length === 0) {
|
||||
// 其他节点判断表单中的表格是否有数据
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
if (!flag) {
|
||||
flag = base
|
||||
}
|
||||
}
|
||||
// 校验表格中是否已有权限
|
||||
if (isValidate && this.isInitiate) {
|
||||
const ids = this.$refs.baseInfoTable.dataSource.map(item => item.id).join(',')
|
||||
await checkPermissionApply({ ids }).then(res => {
|
||||
if (!res.success) {
|
||||
this.$message.warning(res.message)
|
||||
if (!flag) {
|
||||
flag = base
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
const params = {}
|
||||
// 收集所有表单信息
|
||||
|
||||
Reference in New Issue
Block a user