Commit e4a1d0bf by peiqiQQQ

元素字典表维护下拉修改

1 parent ec4e06c9
Showing with 16 additions and 13 deletions
......@@ -23,9 +23,9 @@
>
<el-option
v-for="item in search_select1"
:key="item.belongId"
:label="item.name"
:value="item.belongId"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
......@@ -293,9 +293,9 @@
</el-input> -->
<el-option
v-for="item in search_select1"
:key="item.belongId"
:label="item.name"
:value="item.belongId"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
......@@ -874,7 +874,7 @@ export default {
this.get_table()
// 适用范围
// getDictTypeOptions('scope_application').then((res) => {
query_jia_gou_ceng_ci_new({"typeValue": "archi_level"}).then(res => {
query_jia_gou_ceng_ci_new({"typeValue": "scope_application"}).then(res => {
// this.scopeApplicationOptions = res
this.scopeApplicationOptions = res.data
})
......@@ -994,14 +994,14 @@ export default {
//编辑
this.ruleForm.let1 = row.elementName
this.ruleForm.let2 = row.archiLevelId + ''
this.ruleForm.let3 = row.archiBelongId
this.ruleForm.let3 = row.archiBelongId + ''
this.ruleForm.let4 = row.content
this.ruleForm.let5 = row.eaLevel
this.ruleForm.let6 = row.color
this.ruleForm.definition = row.definition
this.ruleForm.referenceRelationship = row.referenceRelationship
this.ruleForm.example = row.example
this.ruleForm.scope = row.scope
this.ruleForm.scope = row.scope + ''
this.is_add_edit = 'edit'
this.elementId = row.elementId
this.state = row.state
......@@ -1504,8 +1504,8 @@ export default {
get_dialog_select2() {
//查询架构归属下拉框值
return new Promise((resolve, reject) => {
query_jia_gou_gui_shu({}).then((res) => {
// query_jia_gou_ceng_ci_new({"typeValue": "archi_level"}).then(res => {
// query_jia_gou_gui_shu({}).then((res) => {
query_jia_gou_ceng_ci_new({"typeValue": "archi_belong"}).then(res => {
if (res.code == 200) {
resolve(res.data)
} else {
......@@ -1611,11 +1611,14 @@ export default {
(item2) => item2.value == item.archiLevelId,
)
let result2 = res2[1].find(
(item2) => item2.belongId == item.archiBelongId,
// (item2) => item2.belongId == item.archiBelongId,
(item2) => item2.value == item.archiBelongId,
)
// item['archiLevelName'] = result1 ? result1.name : ''
// item['archiBelongName'] = result2 ? result2.name : ''
item['archiLevelName'] = result1 ? result1.label : ''
item['archiBelongName'] = result2 ? result2.name : ''
item['archiBelongName'] = result2 ? result2.label : ''
})
this.tableData = result.data.records
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!