Commit 1560ca73 authored by 张浩然's avatar 张浩然

'hidePartMenu'

parent d62645f2
......@@ -30,6 +30,7 @@
<el-col class="text_look" :span="12"><span @click="onTextLook(0, 'rydw')">查看</span></el-col>
</el-row>
<div v-if="hidePartBaseInfo">
<el-row class="text">
<el-col :span="12">降雨量</el-col>
<el-col class="text_look" :span="12"><span @click="onTextLook(1, 'jyl')">查看</span></el-col>
......@@ -64,6 +65,7 @@
<el-col :span="12">内部位移倾斜</el-col>
<el-col class="text_look" :span="12"><span @click="onTextLook(9, 'nbwyqx')">查看</span></el-col>
</el-row>
</div>
<el-row class="text">
<el-col :span="12">预警值</el-col>
......@@ -111,6 +113,7 @@ export default {
parentSerial: '',
list: [],
loading: true,
hidePartBaseInfo:1,
}
},
......@@ -174,6 +177,7 @@ export default {
index,
activeName: params,
dataObj: this.dataObj,
isShow: this.hidePartBaseInfo
}
eventBus.$emit('dialog_show', para)
},
......@@ -201,6 +205,7 @@ export default {
watch: {
compony_info(e) {
this.hidePartBaseInfo = e.id === 22 ? 0 : 1;
this.onGrouptree(e.name)
this.dataObj = e
},
......
......@@ -31,7 +31,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="降雨量" name="jyl">
<el-tab-pane label="降雨量" name="jyl" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -60,7 +60,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="浸润线" name="jrx">
<el-tab-pane label="浸润线" name="jrx" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -89,7 +89,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="库水位" name="ksw">
<el-tab-pane label="库水位" name="ksw" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -118,7 +118,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="干滩" name="gt">
<el-tab-pane label="干滩" name="gt" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -147,7 +147,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="表面位移" name="bmwy">
<el-tab-pane label="表面位移" name="bmwy" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -178,7 +178,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="内部位移沉降" name="nbwy">
<el-tab-pane label="内部位移沉降" name="nbwy" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -207,7 +207,7 @@
</el-table>
</el-tab-pane>
<el-tab-pane label="内部位移倾斜" name="nbwyqx">
<el-tab-pane label="内部位移倾斜" name="nbwyqx" v-if="hidePartBaseInfo">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
......@@ -365,11 +365,16 @@ export default {
comm_total: 0,
companycode: '',
hidePartBaseInfo:true
}
},
mounted() {
eventBus.$on('dialog_show', data => {
// 隐藏部分菜单
this.hidePartBaseInfo = data.isShow;
this.yjz_tableList = []
let arrName = ['降雨量', '浸润线', '库水位', '干滩', '表面位移']
for (let i of arrName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment