Commit e4a1d0bf by peiqiQQQ

元素字典表维护下拉修改

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