[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'], props: ['query', 'value', 'standard'],
computed: { computed: {
isDisabled () { isDisabled () {
if (this.query.db_field_name === 'replaced_standard') { if (this.query.dbFieldName === 'replaced_standard') {
return true return true
} }
return false return false
@@ -58,6 +58,7 @@ import JDictSelectTag from '../dict/JDictSelectTag'
export default { export default {
name: 'StandardSelectionModal', name: 'StandardSelectionModal',
components: { JDictSelectTag }, components: { JDictSelectTag },
props: ['query', 'standard'],
data () { data () {
return { return {
visible: false, visible: false,
@@ -131,7 +132,7 @@ export default {
if (res.success) { if (res.success) {
this.dataList = res.result.records this.dataList = res.result.records
this.ipagination.total = res.result.total 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 { } else {
this.dataList = [] this.dataList = []
} }