|
@@ -25,7 +25,8 @@
|
|
<p class="name-p">{{item.subjectName}}-{{item.roomNumber}}</p>
|
|
<p class="name-p">{{item.subjectName}}-{{item.roomNumber}}</p>
|
|
<p class="type-p" v-if="item.isOverdue == 1">已逾期</p>
|
|
<p class="type-p" v-if="item.isOverdue == 1">已逾期</p>
|
|
<p class="null-p"></p>
|
|
<p class="null-p"></p>
|
|
- <img src="@/assets/ZDimages/safetyCheck/icon_gzt_bg.png">
|
|
|
|
|
|
+ <img v-if="item.isAttachment == 1" @click="lookDocumentListButton(true,item)"
|
|
|
|
+ src="@/assets/ZDimages/safetyCheck/icon_gzt_bg.png">
|
|
</div>
|
|
</div>
|
|
<div class="for-title-box">
|
|
<div class="for-title-box">
|
|
<p>{{item.title}}</p>
|
|
<p>{{item.title}}</p>
|
|
@@ -37,9 +38,9 @@
|
|
</div>
|
|
</div>
|
|
<div class="for-time-box">
|
|
<div class="for-time-box">
|
|
<p>计划周期:{{item.cycleStartTime}}至{{item.cycleEndTime}}</p>
|
|
<p>计划周期:{{item.cycleStartTime}}至{{item.cycleEndTime}}</p>
|
|
- <p v-if="queryParams.manageStatus == 0" :class="item.checkIsStatus?'':'noButton'">{{item.checkIsStatus?'开始检查':'计划未开始'}}</p>
|
|
|
|
- <p v-if="queryParams.manageStatus == 1">编辑</p>
|
|
|
|
- <p v-if="queryParams.manageStatus == 2">复核</p>
|
|
|
|
|
|
+ <p v-if="queryParams.manageStatus == 0" :class="item.checkIsStatus?'':'noButton'" @click="goPage(item)">{{item.checkIsStatus?'开始检查':'计划未开始'}}</p>
|
|
|
|
+ <p v-if="queryParams.manageStatus == 1" @click="goPage(item)">编辑</p>
|
|
|
|
+ <p v-if="queryParams.manageStatus == 2" @click="addDialogOpen(true,item)">复核</p>
|
|
</div>
|
|
</div>
|
|
<img class="position-img" v-if="item.checkRange == 1" src="@/assets/ZDimages/safetyCheck/icon_xyxc_qx.png">
|
|
<img class="position-img" v-if="item.checkRange == 1" src="@/assets/ZDimages/safetyCheck/icon_xyxc_qx.png">
|
|
<img class="position-img" v-if="item.checkRange == 2" src="@/assets/ZDimages/safetyCheck/icon_xyxc_xy.png">
|
|
<img class="position-img" v-if="item.checkRange == 2" src="@/assets/ZDimages/safetyCheck/icon_xyxc_xy.png">
|
|
@@ -47,15 +48,28 @@
|
|
</div>
|
|
</div>
|
|
<p class="null-p" v-if="!tableList[0]">暂无数据</p>
|
|
<p class="null-p" v-if="!tableList[0]">暂无数据</p>
|
|
</div>
|
|
</div>
|
|
|
|
+ <infoDialog v-if="infoDialogType" :propsInfoDialogData="propsInfoDialogData"></infoDialog>
|
|
|
|
+ <lookDocumentListDialog v-if="lookDocumentListType" :propsLookDocumentListData="propsLookDocumentListData"></lookDocumentListDialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { todoList, tobeReviewed } from '@/api/safetyCheck/index'
|
|
import { todoList, tobeReviewed } from '@/api/safetyCheck/index'
|
|
|
|
+ import lookDocumentListDialog from '@/components/lookDocumentDialog/lookDocumentListDialog.vue'
|
|
|
|
+ import infoDialog from '@/views/safetyCheck/components/infoDialog/infoDialog.vue'
|
|
export default {
|
|
export default {
|
|
name: 'toDoListBox',
|
|
name: 'toDoListBox',
|
|
|
|
+ components: {
|
|
|
|
+ infoDialog,
|
|
|
|
+ lookDocumentListDialog
|
|
|
|
+ },
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ //子组件数据
|
|
|
|
+ infoDialogType:false,
|
|
|
|
+ propsInfoDialogData:{},
|
|
|
|
+ lookDocumentListType:false,
|
|
|
|
+ propsLookDocumentListData:{},
|
|
queryParams:{
|
|
queryParams:{
|
|
manageStatus:0,
|
|
manageStatus:0,
|
|
searchValue:"",
|
|
searchValue:"",
|
|
@@ -73,15 +87,63 @@
|
|
},
|
|
},
|
|
],
|
|
],
|
|
total:0,
|
|
total:0,
|
|
|
|
+ //跳转巡查权限
|
|
|
|
+ goInspectionManagement:false,
|
|
|
|
+ //跳转自查权限
|
|
|
|
+ goSelfInspectionManagement:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
this.getList();
|
|
this.getList();
|
|
|
|
+ this.setButtonList();
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
|
|
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ goPage(item){
|
|
|
|
+ //跳转 巡查/自查页面
|
|
|
|
+ if(item.checkType == 1){
|
|
|
|
+ //巡查
|
|
|
|
+ if(this.goInspectionManagement){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: `/safetyCheck/schoolInspection/inspectionManagement`,
|
|
|
|
+ query:{
|
|
|
|
+ id:item.id
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.msgError('没有相关权限,请联系管理员')
|
|
|
|
+ }
|
|
|
|
+ }else if(item.checkType == 2){
|
|
|
|
+ //自查
|
|
|
|
+ if(this.goSelfInspectionManagement){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: `/safetyCheck/laboratorySelfTest/selfInspectionManagement`,
|
|
|
|
+ query:{
|
|
|
|
+ id:item.id
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.msgError('没有相关权限,请联系管理员')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //开关详情页面
|
|
|
|
+ addDialogOpen(type,data){
|
|
|
|
+ if(this.infoDialogType != type){
|
|
|
|
+ if(type){
|
|
|
|
+ let obj = {
|
|
|
|
+ id:data.hazardId
|
|
|
|
+ }
|
|
|
|
+ console.log(obj)
|
|
|
|
+ this.$set(this,'propsInfoDialogData',obj);
|
|
|
|
+ this.$set(this,'infoDialogType',type);
|
|
|
|
+ }else{
|
|
|
|
+ this.$set(this,'infoDialogType',type);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
titleClickButton(type){
|
|
titleClickButton(type){
|
|
if(this.queryParams.manageStatus != type){
|
|
if(this.queryParams.manageStatus != type){
|
|
this.$set(this.queryParams,'manageStatus',type);
|
|
this.$set(this.queryParams,'manageStatus',type);
|
|
@@ -105,6 +167,40 @@
|
|
handleQuery() {
|
|
handleQuery() {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
+ //查看多个文档
|
|
|
|
+ lookDocumentListButton(type,item){
|
|
|
|
+ if(type==1){
|
|
|
|
+ this.$set(this,'propsLookDocumentListData',{
|
|
|
|
+ title:"查看附件",
|
|
|
|
+ list:item.data7
|
|
|
|
+ });
|
|
|
|
+ this.$set(this,'lookDocumentListType',true);
|
|
|
|
+ }else{
|
|
|
|
+ this.$set(this,'lookDocumentListType',false);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //权限查找
|
|
|
|
+ setButtonList() {
|
|
|
|
+ let localRoute = JSON.parse(localStorage.getItem("routeData"))
|
|
|
|
+ this.forRouteData('inspectionManagement',localRoute);
|
|
|
|
+ this.forRouteData('selfInspectionManagement',localRoute);
|
|
|
|
+ },
|
|
|
|
+ forRouteData(item,list){
|
|
|
|
+ let self = this;
|
|
|
|
+ for(let i=0;i<list.length;i++){
|
|
|
|
+ if(item == list[i].path){
|
|
|
|
+ if(item == 'inspectionManagement'){
|
|
|
|
+ self.$set(self,'goInspectionManagement',true);
|
|
|
|
+ }else if(item == 'selfInspectionManagement'){
|
|
|
|
+ self.$set(self,'goSelfInspectionManagement',true);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ if(list[i].children){
|
|
|
|
+ self.forRouteData(item,list[i].children)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|