主数据修改、数据源、显示字段
This commit is contained in:
parent
b59d90b905
commit
b42c35b840
|
@ -224,9 +224,12 @@ export default {
|
|||
dj: 'queryMdmService'
|
||||
}, { remark: '' })
|
||||
service.attribute.forEach(item => {
|
||||
console.log(item, 'item')
|
||||
this.serviceOptions.push({
|
||||
id: item.dbName,
|
||||
label: item.remark
|
||||
label: item.remark,
|
||||
dbId: item.id,
|
||||
|
||||
})
|
||||
})
|
||||
},
|
||||
|
@ -426,6 +429,7 @@ export default {
|
|||
this.$vmNews('保存成功', 'success')
|
||||
this.mainTableDialogShow = false
|
||||
this.getMainTableHandle()
|
||||
this.initSelect()
|
||||
}
|
||||
} else {
|
||||
this.openLoading('submit')
|
||||
|
@ -437,6 +441,7 @@ export default {
|
|||
this.$vmNews('保存成功', 'success')
|
||||
this.mainTableDialogShow = false
|
||||
this.getMainTableHandle()
|
||||
this.initSelect()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -547,11 +547,16 @@ export default {
|
|||
async typeSelectChangeHanlde(val, index, indexRow, row, initFlag = false) {
|
||||
if (row.id === 'service') {
|
||||
if (val) {
|
||||
console.log(row, 'row')
|
||||
let obj = row.options.find(item => {
|
||||
return val === item.id
|
||||
})
|
||||
console.log(obj,'obj')
|
||||
const res = await getApiModuleApi({
|
||||
tl: 'mdmModuleService',
|
||||
as: '',
|
||||
dj: 'queryMdmServiceField'
|
||||
}, { mdmId: this.$route.query.id, dbId: this.mainTempClick.id })
|
||||
}, { mdmId: this.$route.query.id, dbId: obj.dbId })
|
||||
this.labelOptions = []
|
||||
res.attribute.forEach(item => {
|
||||
this.labelOptions.push({
|
||||
|
|
Loading…
Reference in New Issue