|
@@ -39,8 +39,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="level">
|
|
|
- <view class="level-li" :id="levelId==item.levelId?'levelColor-A':'levelColor-B'" @click="levelClick(item.levelId)"
|
|
|
- v-for="(item,index) in levelList">{{item.levelName}}</view>
|
|
|
+ <view class="level-li" :id="levelId==item.levelId?'levelColor-A':'levelColor-B'"
|
|
|
+ @click="levelClick(item.levelId)" v-for="(item,index) in levelList">{{item.levelName}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="hidden">
|
|
@@ -98,11 +98,11 @@
|
|
|
tabListTow: ['检查任务', '复查验证', '隐患整改'],
|
|
|
tabIndexTow: 0,
|
|
|
//学院选择
|
|
|
- deptData:{
|
|
|
- index:null,
|
|
|
- list:[],
|
|
|
- id:null,
|
|
|
- name:null
|
|
|
+ deptData: {
|
|
|
+ index: null,
|
|
|
+ list: [],
|
|
|
+ id: null,
|
|
|
+ name: null
|
|
|
},
|
|
|
deptIndex: null,
|
|
|
deptList: [],
|
|
@@ -116,17 +116,17 @@
|
|
|
planCategory: [], //检查类别
|
|
|
},
|
|
|
//实验室/房间号
|
|
|
- searchValue:'',
|
|
|
- subId:'',
|
|
|
- planSetId:null,
|
|
|
+ searchValue: '',
|
|
|
+ subId: '',
|
|
|
+ planSetId: null,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
page: 1,
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
dataList: [],
|
|
|
- total:0,
|
|
|
- getDataType:false,
|
|
|
+ total: 0,
|
|
|
+ getDataType: false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -141,10 +141,10 @@
|
|
|
this.$set(this, 'optionData', optionData);
|
|
|
this.$set(this, 'planSetId', optionData.checkPlanSetVoList.planSetId);
|
|
|
},
|
|
|
- created() {
|
|
|
+ created() {
|
|
|
this.systemDeptDropList();
|
|
|
this.laboratoryClassLevelGetList();
|
|
|
- },
|
|
|
+ },
|
|
|
mounted() {
|
|
|
let self = this;
|
|
|
setTimeout(() => {
|
|
@@ -166,31 +166,31 @@
|
|
|
},
|
|
|
//级别切换
|
|
|
levelClick(id) {
|
|
|
- if(this.levelId == id){
|
|
|
- this.$set(this,'levelId',null);
|
|
|
- }else{
|
|
|
- this.$set(this,'levelId',id);
|
|
|
+ if (this.levelId == id) {
|
|
|
+ this.$set(this, 'levelId', null);
|
|
|
+ } else {
|
|
|
+ this.$set(this, 'levelId', id);
|
|
|
}
|
|
|
this.$set(this, 'getDataType', false);
|
|
|
- this.$set(this.queryParams,'page',1);
|
|
|
+ this.$set(this.queryParams, 'page', 1);
|
|
|
this.getList();
|
|
|
},
|
|
|
//查询类型切换
|
|
|
tabClickTow(index) {
|
|
|
- this.$set(this.queryParams,'page',1);
|
|
|
- this.$set(this,'deptData',{
|
|
|
- index:null,
|
|
|
- list:this.deptData.list,
|
|
|
- id:null,
|
|
|
- name:null
|
|
|
+ this.$set(this.queryParams, 'page', 1);
|
|
|
+ this.$set(this, 'deptData', {
|
|
|
+ index: null,
|
|
|
+ list: this.deptData.list,
|
|
|
+ id: null,
|
|
|
+ name: null
|
|
|
});
|
|
|
- this.$set(this,'searchValue',null);
|
|
|
- this.$set(this,'levelId',null);
|
|
|
+ this.$set(this, 'searchValue', null);
|
|
|
+ this.$set(this, 'levelId', null);
|
|
|
this.$set(this, 'getDataType', false);
|
|
|
this.$set(this, 'dataList', []);
|
|
|
this.$set(this, 'total', 0);
|
|
|
- this.$set(this,'tabIndexTow',index);
|
|
|
- this.$nextTick(()=>{
|
|
|
+ this.$set(this, 'tabIndexTow', index);
|
|
|
+ this.$nextTick(() => {
|
|
|
this.getList();
|
|
|
})
|
|
|
},
|
|
@@ -264,25 +264,28 @@
|
|
|
});
|
|
|
},
|
|
|
//扫一扫查询数据
|
|
|
- async saoList(subId){
|
|
|
+ async saoList(subId) {
|
|
|
let obj = {
|
|
|
- planSetId:this.planSetId,
|
|
|
- subId:subId,
|
|
|
+ planSetId: this.planSetId,
|
|
|
+ subId: subId,
|
|
|
}
|
|
|
- if(this.tabIndexTow == 0){
|
|
|
+ if (this.tabIndexTow == 0) {
|
|
|
//检查计划
|
|
|
- const { data } = await securityAppCheckManageList(obj);
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await securityAppCheckManageList(obj);
|
|
|
if (data.code == 200) {
|
|
|
- if(data.data.records[0]){
|
|
|
+ if (data.data.records[0]) {
|
|
|
//跳转检查项列表页面
|
|
|
let infoData = data.data.records[0];
|
|
|
infoData.pageType = this.tabIndexTow;
|
|
|
infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
|
|
|
- JSON.stringify(infoData))
|
|
|
+ url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
|
|
|
+ encodeURIComponent(
|
|
|
+ JSON.stringify(infoData))
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
//未找到数据提示
|
|
|
uni.showToast({
|
|
|
title: '未找到该实验室与本计划批次关联的数据',
|
|
@@ -292,21 +295,24 @@
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- }else if(this.tabIndexTow == 1){
|
|
|
+ } else if (this.tabIndexTow == 1) {
|
|
|
//复查计划
|
|
|
obj.planId = this.optionData.planId;
|
|
|
- const { data } = await securityAppCheckDangerReviewSubList(obj);
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await securityAppCheckDangerReviewSubList(obj);
|
|
|
if (data.code == 200) {
|
|
|
- if(data.data.records[0]){
|
|
|
+ if (data.data.records[0]) {
|
|
|
//跳转检查项列表页面
|
|
|
let infoData = data.data.records[0];
|
|
|
infoData.pageType = this.tabIndexTow;
|
|
|
infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
|
|
|
- JSON.stringify(infoData))
|
|
|
+ url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
|
|
|
+ encodeURIComponent(
|
|
|
+ JSON.stringify(infoData))
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
//未找到数据提示
|
|
|
uni.showToast({
|
|
|
title: '未找到该实验室与本计划批次关联的数据',
|
|
@@ -316,21 +322,24 @@
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- } else if(this.tabIndexTow == 2){
|
|
|
+ } else if (this.tabIndexTow == 2) {
|
|
|
//整改计划
|
|
|
obj.planId = this.optionData.planId;
|
|
|
- const { data } = await securityAppCheckDangerGetCheckDangerSubList(obj);
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await securityAppCheckDangerGetCheckDangerSubList(obj);
|
|
|
if (data.code == 200) {
|
|
|
- if(data.data.records[0]){
|
|
|
+ if (data.data.records[0]) {
|
|
|
//跳转检查项列表页面
|
|
|
let infoData = data.data.records[0];
|
|
|
infoData.pageType = this.tabIndexTow;
|
|
|
infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
|
|
|
- JSON.stringify(infoData))
|
|
|
+ url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
|
|
|
+ encodeURIComponent(
|
|
|
+ JSON.stringify(infoData))
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
//未找到数据提示
|
|
|
uni.showToast({
|
|
|
title: '未找到该实验室与本计划批次关联的数据',
|
|
@@ -346,18 +355,18 @@
|
|
|
deptChange(e) {
|
|
|
let self = this;
|
|
|
self.deptData.list.forEach(function(item, index) {
|
|
|
- if (index == e.detail.value) {
|
|
|
- if(!item.deptId){
|
|
|
- self.$set(self.deptData, 'id', null)
|
|
|
- self.$set(self.deptData, 'name', null)
|
|
|
- }else{
|
|
|
- self.$set(self.deptData, 'id', item.deptId)
|
|
|
- self.$set(self.deptData, 'name', item.deptName)
|
|
|
- }
|
|
|
+ if (index == e.detail.value) {
|
|
|
+ if (!item.deptId) {
|
|
|
+ self.$set(self.deptData, 'id', null)
|
|
|
+ self.$set(self.deptData, 'name', null)
|
|
|
+ } else {
|
|
|
+ self.$set(self.deptData, 'id', item.deptId)
|
|
|
+ self.$set(self.deptData, 'name', item.deptName)
|
|
|
}
|
|
|
+ }
|
|
|
})
|
|
|
this.$set(this, 'getDataType', false);
|
|
|
- this.$set(this.queryParams,'page',1);
|
|
|
+ this.$set(this.queryParams, 'page', 1);
|
|
|
this.getList();
|
|
|
},
|
|
|
//获取院系
|
|
@@ -371,10 +380,10 @@
|
|
|
});
|
|
|
if (data.code == 200) {
|
|
|
data.data.unshift({
|
|
|
- deptid:null,
|
|
|
- deptName:'全部'
|
|
|
+ deptid: null,
|
|
|
+ deptName: '全部'
|
|
|
})
|
|
|
- this.$set(this.deptData,'list',data.data);
|
|
|
+ this.$set(this.deptData, 'list', data.data);
|
|
|
}
|
|
|
},
|
|
|
//获取分级
|
|
@@ -383,13 +392,13 @@
|
|
|
data
|
|
|
} = await laboratoryClassLevelGetList({});
|
|
|
if (data.code == 200) {
|
|
|
- this.$set(this,'levelList',data.data);
|
|
|
+ this.$set(this, 'levelList', data.data);
|
|
|
}
|
|
|
},
|
|
|
//回车触发
|
|
|
carriageReturnRequest() {
|
|
|
this.$set(this, 'getDataType', false);
|
|
|
- this.$set(this.queryParams,'page',1);
|
|
|
+ this.$set(this.queryParams, 'page', 1);
|
|
|
this.getList();
|
|
|
},
|
|
|
//检查任务
|
|
@@ -397,12 +406,14 @@
|
|
|
let self = this;
|
|
|
let obj = JSON.parse(JSON.stringify(this.queryParams));
|
|
|
obj.planSetId = this.planSetId;
|
|
|
- obj.deptId = this.deptData.id?this.deptData.id:'';
|
|
|
- obj.searchValue = this.searchValue?this.searchValue:'';
|
|
|
- obj.levelId = this.levelId?this.levelId:'';
|
|
|
- if(this.tabIndexTow == 0){
|
|
|
+ obj.deptId = this.deptData.id ? this.deptData.id : '';
|
|
|
+ obj.searchValue = this.searchValue ? this.searchValue : '';
|
|
|
+ obj.levelId = this.levelId ? this.levelId : '';
|
|
|
+ if (this.tabIndexTow == 0) {
|
|
|
//检查计划
|
|
|
- const { data } = await securityAppCheckManageList(obj);
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await securityAppCheckManageList(obj);
|
|
|
if (data.code == 200) {
|
|
|
if (self.queryParams.page == 1) {
|
|
|
this.dataList = data.data.records;
|
|
@@ -418,10 +429,12 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }else if(this.tabIndexTow == 1){
|
|
|
+ } else if (this.tabIndexTow == 1) {
|
|
|
//复查计划
|
|
|
obj.planId = this.optionData.planId;
|
|
|
- const { data } = await securityAppCheckDangerReviewSubList(obj);
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await securityAppCheckDangerReviewSubList(obj);
|
|
|
if (data.code == 200) {
|
|
|
this.dataList = data.data;
|
|
|
this.$set(this, 'getDataType', true);
|
|
@@ -440,11 +453,13 @@
|
|
|
// }
|
|
|
// }
|
|
|
}
|
|
|
-
|
|
|
- }else if(this.tabIndexTow == 2){
|
|
|
+
|
|
|
+ } else if (this.tabIndexTow == 2) {
|
|
|
//整改计划
|
|
|
obj.planId = this.optionData.planId;
|
|
|
- const { data } = await securityAppCheckDangerGetCheckDangerSubList(obj);
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await securityAppCheckDangerGetCheckDangerSubList(obj);
|
|
|
if (data.code == 200) {
|
|
|
this.dataList = data.data;
|
|
|
this.$set(this, 'getDataType', true);
|
|
@@ -463,7 +478,7 @@
|
|
|
// }
|
|
|
// }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -479,12 +494,14 @@
|
|
|
height: 100%;
|
|
|
display flex;
|
|
|
overflow: hidden;
|
|
|
- .info-max-box{
|
|
|
- padding-top:20rpx;
|
|
|
+
|
|
|
+ .info-max-box {
|
|
|
+ padding-top: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
.title {
|
|
|
width: 690rpx;
|
|
|
- margin:0 30rpx 20rpx;
|
|
|
+ margin: 0 30rpx 20rpx;
|
|
|
height: 150rpx;
|
|
|
background: #FFFFFF;
|
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
@@ -605,13 +622,15 @@
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
- >view{
|
|
|
- width:124rpx;
|
|
|
- display:block;
|
|
|
- overflow:hidden;
|
|
|
- text-overflow:ellipsis;
|
|
|
- white-space:nowrap;
|
|
|
+
|
|
|
+ >view {
|
|
|
+ width: 124rpx;
|
|
|
+ display: block;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
+
|
|
|
>img {
|
|
|
display: block;
|
|
|
width: 24rpx;
|
|
@@ -816,9 +835,11 @@
|
|
|
.hidden {
|
|
|
box-sizing: border-box;
|
|
|
margin: 20rpx 0;
|
|
|
- .hidden-li:nth-child(1){
|
|
|
- border-top:none;
|
|
|
+
|
|
|
+ .hidden-li:nth-child(1) {
|
|
|
+ border-top: none;
|
|
|
}
|
|
|
+
|
|
|
.hidden-li {
|
|
|
padding: 0 30rpx;
|
|
|
height: 80rpx;
|
|
@@ -859,30 +880,32 @@
|
|
|
height: 24rpx;
|
|
|
}
|
|
|
}
|
|
|
- .manageClass{
|
|
|
- color: #009c1f !important;;
|
|
|
+
|
|
|
+ .manageClass {
|
|
|
+ color: #009c1f !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.hidden-li:last-of-type {
|
|
|
border: none;
|
|
|
}
|
|
|
+
|
|
|
.get-data-p {
|
|
|
height: 100rpx;
|
|
|
text-align: center;
|
|
|
-
|
|
|
+
|
|
|
.get-data-img {
|
|
|
width: 30rpx;
|
|
|
height: 30rpx;
|
|
|
margin: 0 auto;
|
|
|
margin-top: 15rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.get-data-text {
|
|
|
text-align: center;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.get-data-null-p {
|
|
|
height: 100rpx;
|
|
|
line-height: 100rpx;
|
|
@@ -902,4 +925,4 @@
|
|
|
color: #16B531;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|