update 文档拆分

This commit is contained in:
赵霄
2023-10-12 17:42:03 +08:00
parent 505c07fd88
commit 999ca5f719
15 changed files with 388 additions and 62 deletions
@@ -100,6 +100,12 @@ export default {
default: () => {
return ''
}
},
// 是否校验必选
checkRequired: {
type: Boolean,
required: false,
default: false
}
},
watch: {
@@ -297,6 +303,10 @@ export default {
this.selectedRowKeys = this.selectedRowKeys.filter(item => item !== record.id)
},
handleOk () {
if (this.checkRequired && (!this.selectedRowKeys || this.selectedRowKeys.length === 0)) {
this.$message.warning(this.$t('docTool.split.pleaseSelectUser'))
return
}
this.$emit('change', this.selectedRowKeys.join(','))
this.$emit('nameChange', this.dataSourceRight.map(item => item.realname + '(' + item.username + ')').join(','))
this.close()