|
|
@@ -6,14 +6,14 @@
|
|
|
<img class="left_t_l" src="@/assets/image/index_icon5.png"/>
|
|
|
<div class="left_t_l1"></div>
|
|
|
<div class="left_t_c">
|
|
|
- <li :class="{'checked_li':checkedNum==0}" @click="checkedNumButton(0)">校院通知</li>
|
|
|
+ <li :class="{'checked_li':checkedNum==0}" @click="checkedNumButton(0)" v-if="deptId">校院通知</li>
|
|
|
<li :class="{'checked_li':checkedNum==1}" @click="checkedNumButton(1)">预警事件</li>
|
|
|
- <li :class="{'checked_li':checkedNum==2}" @click="checkedNumButton(2)">工作计划</li>
|
|
|
+ <li :class="{'checked_li':checkedNum==2}" @click="checkedNumButton(2)" v-if="deptId">工作计划</li>
|
|
|
</div>
|
|
|
<div class="left_t_n">
|
|
|
<el-carousel ref="el-carousel" class="swiper-container" @change="checkedNumChange" :interval="6000"
|
|
|
trigger="click" direction="vertical" indicator-position="none" height="410px">
|
|
|
- <el-carousel-item class="swiper-wrapper">
|
|
|
+ <el-carousel-item v-if="deptId" class="swiper-wrapper">
|
|
|
<div class="swiper-slide">
|
|
|
<!--院校通知-->
|
|
|
<div class="left_t_r" v-if="infoList">
|
|
|
@@ -59,7 +59,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-carousel-item>
|
|
|
- <el-carousel-item class="swiper-wrapper">
|
|
|
+ <el-carousel-item v-if="deptId" class="swiper-wrapper">
|
|
|
<div class="swiper-slide">
|
|
|
<!--工作计划-->
|
|
|
<div class="left_t_r3" v-if="workList">
|
|
|
@@ -149,7 +149,6 @@
|
|
|
return {
|
|
|
showType:true,
|
|
|
circularLogo: localStorage.getItem('circularLogo'),
|
|
|
- deptName: null,
|
|
|
deptId: null,
|
|
|
mtopicTwo: 'manage/work' + localStorage.getItem('userId'),
|
|
|
timer: null,//定时器
|
|
|
@@ -196,7 +195,6 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.$set(this, 'deptName', localStorage.getItem('deptName'))
|
|
|
this.$set(this, 'deptId', localStorage.getItem('deptId'))
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -213,6 +211,7 @@
|
|
|
checkDept(){
|
|
|
let self = this;
|
|
|
if(!this.warningList[0]){
|
|
|
+ this.$set(this, 'deptId', localStorage.getItem('deptId'))
|
|
|
this.$set(this,'showType',false);
|
|
|
setTimeout(function(){
|
|
|
self.$set(self,'showType',true);
|
|
|
@@ -313,7 +312,11 @@
|
|
|
//预案执行统计
|
|
|
laboratoryBigViewCollegeEventStatistics() {
|
|
|
let self = this
|
|
|
- laboratoryBigViewCollegeEventStatistics({}).then((res) => {
|
|
|
+ let obj = {};
|
|
|
+ if(!localStorage.getItem('deptId')){
|
|
|
+ obj.buildId = localStorage.getItem('buildId');
|
|
|
+ }
|
|
|
+ laboratoryBigViewCollegeEventStatistics(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
let dataX = []
|
|
|
let dataValue = []
|
|
|
@@ -343,7 +346,11 @@
|
|
|
//预警事件
|
|
|
warningPlanFun: function() {
|
|
|
let self = this
|
|
|
- systemWarningNoticeNoMenuList({ page: 1, pageSize: 6 }).then((res) => {
|
|
|
+ let obj = { page: 1, pageSize: 6 };
|
|
|
+ if(!localStorage.getItem('deptId')){
|
|
|
+ obj.buildId = localStorage.getItem('buildId');
|
|
|
+ }
|
|
|
+ systemWarningNoticeNoMenuList(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$set(self, 'planList', res.data.records)
|
|
|
}
|
|
|
@@ -508,7 +515,7 @@
|
|
|
},
|
|
|
//获取报警信息
|
|
|
laboratoryBigViewSelectTriggerInfo: function() {
|
|
|
- let self = this
|
|
|
+ let self = this;
|
|
|
laboratoryBigViewSelectTriggerInfo().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
for (let i = 0; i < res.data.length; i++) {
|