[update] 标准选择修改

This commit is contained in:
lideqin
2023-09-14 09:52:06 +08:00
parent ffb1eaa6c5
commit e8953b848e
2 changed files with 3 additions and 2 deletions
@@ -21,7 +21,7 @@ export default {
props: ['query', 'value', 'standard'],
computed: {
isDisabled () {
if (this.query.db_field_name === 'replaced_standard') {
if (this.query.dbFieldName === 'replaced_standard') {
return true
}
return false
@@ -58,6 +58,7 @@ import JDictSelectTag from '../dict/JDictSelectTag'
export default {
name: 'StandardSelectionModal',
components: { JDictSelectTag },
props: ['query', 'standard'],
data () {
return {
visible: false,
@@ -131,7 +132,7 @@ export default {
if (res.success) {
this.dataList = res.result.records
this.ipagination.total = res.result.total
this.selectedRowKeys = this.standard[this.query.db_field_name] ? this.standard[this.query.db_field_name].split(',') : []
this.selectedRowKeys = this.standard[this.query.dbFieldName] ? this.standard[this.query.dbFieldName].split(',') : []
} else {
this.dataList = []
}