Commit 608c2cfb by peiqiQQQ

元素字典表维护下拉修改

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