修改禅道已知bug
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
/>
|
||||
<a-table
|
||||
:columns="columns"
|
||||
rowKey="id"
|
||||
rowKey="serial_number"
|
||||
:scroll="{x: 1500}"
|
||||
:data-source="dataList"
|
||||
:pagination="false"
|
||||
@@ -132,7 +132,7 @@
|
||||
if (res.success) {
|
||||
this.dataList = res.result.records
|
||||
this.total = res.result.total
|
||||
this.selectedRowKeys = this.standard[this.query.db_field_name + '_id'] ? this.standard[this.query.db_field_name + '_id'].split(',') : []
|
||||
this.selectedRowKeys = this.standard[this.query.db_field_name] ? this.standard[this.query.db_field_name].split(',') : []
|
||||
} else {
|
||||
this.dataList = []
|
||||
}
|
||||
@@ -143,15 +143,16 @@
|
||||
},
|
||||
handleSubmit() {
|
||||
let content = []
|
||||
let replace_standard_id = []
|
||||
if (this.content && this.content.length > 0) {
|
||||
this.content.forEach(res => {
|
||||
content.push(res.serial_number)
|
||||
replace_standard_id.push(res.id)
|
||||
})
|
||||
// let replace_standard_id = []
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
let content = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
// this.content.forEach(res => {
|
||||
// content.push(res.serial_number)
|
||||
// replace_standard_id.push(res.id)
|
||||
// })
|
||||
this.$emit('input', content.join(','))
|
||||
this.$emit('change', this.query.db_field_name, replace_standard_id.join(','))
|
||||
this.$emit('changecontent', this.content)
|
||||
// this.$emit('change', this.query.db_field_name, replace_standard_id.join(','))
|
||||
// this.$emit('changecontent', this.content)
|
||||
this.visible = false
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
@@ -161,15 +162,16 @@
|
||||
this.$emit('input', event.target.value)
|
||||
},
|
||||
onSelectChange(value) {
|
||||
console.log(value)
|
||||
this.selectedRowKeys = value
|
||||
this.content = []
|
||||
value.forEach(val => {
|
||||
this.dataList.forEach((res) => {
|
||||
if (res.id === val) {
|
||||
this.content.push(res)
|
||||
}
|
||||
})
|
||||
})
|
||||
// this.content = []
|
||||
// value.forEach(val => {
|
||||
// this.dataList.forEach((res) => {
|
||||
// if (res.id === val) {
|
||||
// this.content.push(res)
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
},
|
||||
searchQuery(queryParam) {
|
||||
let queryParamQuery = JSON.parse(JSON.stringify(queryParam))
|
||||
|
||||
@@ -163,7 +163,6 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
||||
<Standardselection :query="item"
|
||||
@change="StandardselectionChange"
|
||||
:disabled="disabled"
|
||||
:standard="formInline"
|
||||
v-model="formInline[item.db_field_name]"/>
|
||||
@@ -473,10 +472,10 @@
|
||||
this.type = 'add'
|
||||
this.getForm()
|
||||
},
|
||||
StandardselectionChange(value, id) {
|
||||
this.formInline[value + '_id'] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
// StandardselectionChange(value, id) {
|
||||
// this.formInline[value + '_id'] = id
|
||||
// this.formInline = { ...this.formInline }
|
||||
// },
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.formInline[value + '_id'] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
|
||||
@@ -169,8 +169,6 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
||||
<Standardselection :query="item"
|
||||
@changecontent='changeContent'
|
||||
@change="StandardselectionChange"
|
||||
:disabled="disabled"
|
||||
:standard="formInline"
|
||||
v-model="formInline[item.db_field_name]"/>
|
||||
@@ -1128,19 +1126,19 @@
|
||||
this.type = 'add'
|
||||
|
||||
},
|
||||
changeContent(val) {
|
||||
this.standardSelectionContent = val
|
||||
},
|
||||
StandardselectionChange(value, id) {
|
||||
// changeContent(val) {
|
||||
// this.standardSelectionContent = val
|
||||
// },
|
||||
// StandardselectionChange(value, id) {
|
||||
// todo
|
||||
// this.valueItem = value
|
||||
// if(this.formInline[value] !== undefined) {
|
||||
// this.formArrayName = this.formInline[value].split(',')
|
||||
// this.formArrayId = id.split(',')
|
||||
// }
|
||||
this.formInline[value + '_id'] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
// this.formInline[value + '_id'] = id
|
||||
// this.formInline = { ...this.formInline }
|
||||
// },
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.formInline[value + '_id'] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
|
||||
@@ -629,10 +629,10 @@
|
||||
this.$refs.ruleForm.validateField([value])
|
||||
})
|
||||
},
|
||||
StandardselectionChange(value, id) {
|
||||
this.formInline[value + '_id'] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
// StandardselectionChange(value, id) {
|
||||
// this.formInline[value + '_id'] = id
|
||||
// this.formInline = { ...this.formInline }
|
||||
// },
|
||||
dateChange(item) {
|
||||
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user