Commit 614f3a7d by peiqiQQQ

修改

1 parent 8505a50f
...@@ -480,7 +480,7 @@ ...@@ -480,7 +480,7 @@
<el-button class="greenButton" @click="operate('pushAdd')" <el-button class="greenButton" @click="operate('pushAdd')"
>发布</el-button >发布</el-button
> >
<el-button class="greenButton" @click="operate('create')" <el-button class="greenButton" v-debounce:click="operate('create')"
>保存</el-button >保存</el-button
> >
<el-button @click="add_dialog = false">取消</el-button> <el-button @click="add_dialog = false">取消</el-button>
...@@ -737,30 +737,32 @@ export default { ...@@ -737,30 +737,32 @@ export default {
selectData3: [], selectData3: [],
selectData4: [], selectData4: [],
tableHeight: null, tableHeight: null,
openType: '',
} }
}, },
created(){ created(){
// 获取下拉 // 获取下拉
this.getArchiStageList()
this.getLevelList() this.getLevelList()
this.getArchiStageList()
this.getBelongList() this.getBelongList()
this.getStateList() this.getStateList()
}, },
mounted() { mounted() {
window.addEventListener('resize', () => { this.$nextTick(() => {
window.addEventListener('resize', () => {
this.set_table_height()
})
this.set_table_height() this.set_table_height()
// 查询视图下拉
// this.getViewNameList();
// 获取元素和元素关系列表
this.getEleList()
this.gtEleRelList()
// 初始化查询列表
this.getList()
}) })
this.set_table_height()
// 初始化查询列表
this.getList()
// 查询视图下拉
// this.getViewNameList();
// 获取元素和元素关系列表
this.getEleList()
this.gtEleRelList()
}, },
methods: { methods: {
// 架构大类 // 架构大类
...@@ -1196,7 +1198,7 @@ export default { ...@@ -1196,7 +1198,7 @@ export default {
// }); // });
// }); // });
} else if (type == 'create') { } else if (type == 'create') {
this.$refs.viewForm.validate((valid) => { this.$refs.viewForm && this.$refs.viewForm.validate((valid) => {
if (valid) { if (valid) {
if (!this.formData.eleName) { if (!this.formData.eleName) {
this.$message.error('请勾选元素范围') this.$message.error('请勾选元素范围')
...@@ -1245,7 +1247,7 @@ export default { ...@@ -1245,7 +1247,7 @@ export default {
} }
}) })
} else if (type == 'pushAdd') { } else if (type == 'pushAdd') {
this.$refs.viewForm.validate((valid) => { this.$refs.viewForm && this.$refs.viewForm.validate((valid) => {
if (valid) { if (valid) {
if (!this.formData.eleName) { if (!this.formData.eleName) {
this.$message.error('请勾选元素范围') this.$message.error('请勾选元素范围')
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
class="search_item" class="search_item"
></el-input> ></el-input>
</div> </div>
<div class="search_menu_item"> <!-- <div class="search_menu_item">
<span class="search_title">创建人</span> <span class="search_title">创建人</span>
<el-input <el-input
v-no-backslash v-no-backslash
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
placeholder="请输入内容" placeholder="请输入内容"
class="search_item" class="search_item"
></el-input> ></el-input>
</div> </div> -->
<div class="search_menu_item"> <div class="search_menu_item">
<span class="search_title">所属元素</span> <span class="search_title">所属元素</span>
<el-select <el-select
...@@ -176,6 +176,12 @@ ...@@ -176,6 +176,12 @@
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
prop="parentElement"
label="上级元素"
align="center"
show-overflow-tooltip
></el-table-column>
<el-table-column width="100" label="图标" align="center"> <el-table-column width="100" label="图标" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<img <img
...@@ -697,6 +703,9 @@ export default { ...@@ -697,6 +703,9 @@ export default {
}, },
created() { created() {
this.getDicts() this.getDicts()
this.getZuJianLeiXingSelect(null).then((res) => {
this.zuJianLeiXingSelect = res
})
}, },
mounted() { mounted() {
this.getTreeData() this.getTreeData()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!