修改标准选择的回显
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
components: {
|
||||
currencySearch
|
||||
},
|
||||
props: ['query', 'value', 'replace_standard_id'],
|
||||
props: ['query', 'value', 'standard'],
|
||||
computed: {
|
||||
isDisabled() {
|
||||
if (this.query.db_field_name === 'replaced_standard') {
|
||||
@@ -110,7 +110,7 @@
|
||||
standardClick() {
|
||||
this.visible = true
|
||||
this.queryParam = {}
|
||||
this.replacePage(this.replace_standard_id)
|
||||
this.replacePage()
|
||||
},
|
||||
replacePage() {
|
||||
let query = {
|
||||
@@ -125,9 +125,7 @@
|
||||
if (res.success) {
|
||||
this.dataList = res.result.records
|
||||
this.total = res.result.total
|
||||
if (this.replace_standard_id) {
|
||||
this.selectedRowKeys = this.replace_standard_id.split(',')
|
||||
}
|
||||
this.selectedRowKeys = this.standard[this.query.db_field_name + '_id'] ? this.standard[this.query.db_field_name + '_id'].split(',') : []
|
||||
} else {
|
||||
this.dataList = []
|
||||
}
|
||||
@@ -144,7 +142,7 @@
|
||||
replace_standard_id.push(res.id)
|
||||
})
|
||||
this.$emit('input', content.join(','))
|
||||
this.$emit('change', replace_standard_id.join(','))
|
||||
this.$emit('change',this.query.db_field_name,replace_standard_id.join(','))
|
||||
this.visible = false
|
||||
},
|
||||
indexclick(event) {
|
||||
|
||||
Reference in New Issue
Block a user