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