Commit 608c2cfb by peiqiQQQ

元素字典表维护下拉修改

1 parent b0368c94
......@@ -22,8 +22,8 @@
<el-option
v-for="(item, idnex) in search_select1"
:key="idnex"
:label="item.name"
:value="item.belongId"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
......@@ -349,8 +349,8 @@
<el-option
v-for="(item, idnex) in search_select1"
:key="idnex"
:label="item.name"
:value="item.belongId"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
......@@ -712,20 +712,22 @@ export default {
eleList: [],
radioName: '',
search_select1: [
{
name: '架构之间',
belongId: 0,
},
// {
// name: '架构之间',
// belongId: 0,
// },
],
is_add_edit2: 'add',
}
},
mounted() {
// 适用范围下拉
this.get_dialog_select2().then((res) => {
this.search_select1 = this.search_select1.concat(res)
// this.get_dialog_select2().then((res) => {
query_jia_gou_ceng_ci_new({"typeValue": "scope_application"}).then(res => {
// this.search_select1 = this.search_select1.concat(res)
this.search_select1 = res.data
this.search_select1.forEach((item) => {
this.dicObj.scope[item.belongId] = item.name
this.dicObj.scope[item.value] = item.label
})
})
// 初始化查询列表
......@@ -1222,8 +1224,9 @@ export default {
lastStr = str1
}
this.search_select1.forEach((itemX) => {
if (lastStr == itemX.belongId) {
this.formData.arrList[index].scope = itemX.belongId
if (lastStr == itemX.value) {
this.formData.arrList[index].scope = itemX.value
// if (itemX.name == "系统架构") {
// this.formData.arrList[index].scope = 1;
// }else if (itemX.name == "业务架构") {
......
......@@ -19,10 +19,12 @@
clearable
class="search_item"
>
<el-option label="总体架构" :value="1"></el-option>
<el-option label="系统架构" :value="2"></el-option>
<el-option label="概设架构" :value="3"></el-option>
<el-option label="其他架构" :value="4"></el-option>
<el-option
v-for="(item, idnex) in archiStageList"
:key="idnex"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
<div class="search_menu_item">
......@@ -52,8 +54,8 @@
<el-option
v-for="(item, idnex) in belongList"
:key="idnex"
:label="item.name"
:value="item.belongId"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
......@@ -65,9 +67,12 @@
placeholder="请选择"
class="search_item"
>
<el-option label="已发布" value="1"></el-option>
<el-option label="已停用" value="0"></el-option>
<el-option label="暂存" value="2"></el-option>
<el-option
v-for="(item, idnex) in stateList"
:key="idnex"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
</div>
......@@ -319,8 +324,8 @@
<el-option
v-for="(item, idnex) in belongList"
:key="idnex"
:label="item.name"
:value="item.belongId"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
......@@ -702,22 +707,10 @@ export default {
archiLevelId: {},
archiBelongId: {},
},
stateList: [
{
label: '已停用',
value: 0,
},
{
label: '已发布',
value: 1,
},
{
label: '暂存',
value: 2,
},
],
stateList: [],
levelList: [],
belongList: [],
archiStageList: [],
viewNameList: [],
selectData1: [],
......@@ -734,8 +727,10 @@ export default {
this.set_table_height()
// 获取下拉
this.getArchiStageList()
this.getLevelList()
this.getBelongList()
this.getStateList()
// 初始化查询列表
this.getList()
......@@ -749,6 +744,22 @@ export default {
},
created() {},
methods: {
// 架构大类
getArchiStageList(){
query_jia_gou_ceng_ci_new({"typeValue": "archi_stage"}).then(res => {
if (res.code == 200) {
this.archiStageList = res.data
}
})
},
// 状态
getStateList(){
query_jia_gou_ceng_ci_new({"typeValue": "sys_state"}).then(res => {
if (res.code == 200) {
this.stateList = res.data
}
})
},
indexMethod(index) {
return (this.page.current - 1) * this.page.size + index + 1
},
......@@ -967,11 +978,12 @@ export default {
})
},
getBelongList() {
query_jia_gou_gui_shu().then((res) => {
// query_jia_gou_gui_shu().then((res) => {
query_jia_gou_ceng_ci_new({"typeValue": "archi_belong"}).then(res => {
if (res.code == 200) {
this.belongList = res.data
this.belongList.forEach((item) => {
this.dicObj.archiBelongId[item.belongId] = item.name
this.dicObj.archiBelongId[item.value] = item.label
})
}
})
......@@ -1108,6 +1120,7 @@ export default {
this.getDicyTable()
this.formData = item
this.formData.archiLevelId = this.formData.archiLevelId + ''
this.formData.archiBelongId = this.formData.archiBelongId + ''
this.transferValue1 = this.formData.archiEleId
.split(',')
.map((item) => Number(item))
......
......@@ -18,9 +18,12 @@
placeholder="请选择"
class="search_item"
>
<el-option label="已发布" :value="1"></el-option>
<el-option label="已停用" :value="0"></el-option>
<el-option label="暂存" :value="2"></el-option>
<el-option
v-for="(item, idnex) in stateList"
:key="idnex"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
</div>
......@@ -353,6 +356,7 @@ import {
dicyUpdateTableEdit,
dicyUpdateTableDelete,
queryDicyUpdateTable,
query_jia_gou_ceng_ci_new,
} from '@/api/index.js'
import { MessageBox, Message } from 'element-ui'
import $ from 'jquery'
......@@ -385,6 +389,7 @@ export default {
},
dialog1: false,
tableData: [],
stateList: [],
loading: false,
pager: {
current: 1,
......@@ -408,6 +413,8 @@ export default {
}
},
mounted() {
this.getStateList()
window.addEventListener('resize', () => {
this.set_table_height()
})
......@@ -415,6 +422,14 @@ export default {
this.get_table()
},
methods: {
// 状态
getStateList(){
query_jia_gou_ceng_ci_new({"typeValue": "sys_state"}).then(res => {
if (res.code == 200) {
this.stateList = res.data
}
})
},
indexMethod(index) {
return (this.pager.current - 1) * this.pager.size + index + 1
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!