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

'hidePartMenu'

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