|
@@ -32,6 +32,7 @@
|
|
|
-->
|
|
|
<template>
|
|
|
<el-dialog class="safetyHazard-info-dialog-box" @close="outDialog"
|
|
|
+ :class="fullScreenType?'lookDocumentDataDialog-fullScreen':''"
|
|
|
v-loading="loading"
|
|
|
:title="infoDialogData.checkHazardApplyDto.rectifyStatus==1?'已完成':(infoDialogData.checkHazardApplyDto.rectifyStatus==2?'待整改':(infoDialogData.checkHazardApplyDto.rectifyStatus==3?'待复核':(infoDialogData.checkHazardApplyDto.rectifyStatus==4?'暂无法整改':'')))"
|
|
|
:visible.sync="infoDialogType" v-if="infoDialogType"
|
|
@@ -100,8 +101,8 @@
|
|
|
</div>
|
|
|
<div class="button-box">
|
|
|
<p>{{infoDialogData.rectifyNotice == 1?'整改告知书':(infoDialogData.rectifyNotice == 2?'整改通知书':'')}}</p>
|
|
|
- <p class="inquire-button-one" @click="lookDocument(1,infoDialogData.data18)">查看</p>
|
|
|
- <p class="add-button-one-90">下载</p>
|
|
|
+ <p class="inquire-button-one" @click="lookDocument(1)">查看</p>
|
|
|
+ <p class="add-button-one-90" @click="downloadButton">下载</p>
|
|
|
</div>
|
|
|
<div class="text-box-two-box">
|
|
|
<div>
|
|
@@ -299,13 +300,14 @@
|
|
|
<p class="bottom-num-text">{{imgIndex+1}} / {{imgList.length}}</p>
|
|
|
<p class="out-button" @click="outLook">返回</p>
|
|
|
</div>
|
|
|
+ <!--通知书/告知书-->
|
|
|
<div class="info-dialog-content-document" v-if="imgDocumentType == 2">
|
|
|
- <iframe
|
|
|
- class="iframe"
|
|
|
- :src="iframeSrc" scrolling="auto" frameborder="0">
|
|
|
- </iframe>
|
|
|
- <p class="out-button" @click="outLook">返回</p>
|
|
|
+ <informDom v-if="infoDialogData.rectifyNotice == 1" :propsInformDomData="propsInformDomData"></informDom>
|
|
|
+ <noticeDom v-if="infoDialogData.rectifyNotice == 2" :propsNoticeDomData="propsNoticeDomData"></noticeDom>
|
|
|
+ <p class="out-button" v-if="!fullScreenType" @click="outLook">返回</p>
|
|
|
+ <p class="positionButton" @click="fullScreenButton">{{fullScreenType?'退出':'全屏'}}</p>
|
|
|
</div>
|
|
|
+ <!--材料附件(暂时废弃)-->
|
|
|
<div class="info-dialog-content-document-list" v-if="imgDocumentType == 3">
|
|
|
<div class="left-box">
|
|
|
<div class="left-title-box">
|
|
@@ -342,13 +344,24 @@
|
|
|
<script>
|
|
|
import { getHazardById,addOrApprove } from '@/api/safetyCheck/index'
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
+ import informDom from '@/components/lookDocumentDialog/components/informDom.vue'
|
|
|
+ import noticeDom from '@/components/lookDocumentDialog/components/noticeDom.vue'
|
|
|
export default {
|
|
|
name: 'infoDialog',
|
|
|
+ components: {
|
|
|
+ informDom,
|
|
|
+ noticeDom
|
|
|
+ },
|
|
|
props:{
|
|
|
propsInfoDialogData:{},
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
+ //子组件传参
|
|
|
+ propsNoticeDomData:{},
|
|
|
+ propsInformDomData:{},
|
|
|
+ //全屏状态
|
|
|
+ fullScreenType:false,
|
|
|
loading:false,
|
|
|
upDataName:"",
|
|
|
uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
|
|
@@ -403,6 +416,9 @@
|
|
|
this.getHazardById();
|
|
|
},
|
|
|
methods:{
|
|
|
+ fullScreenButton(){
|
|
|
+ this.fullScreenType = !this.fullScreenType;
|
|
|
+ },
|
|
|
//提交
|
|
|
upDataButton(type){
|
|
|
this.$refs["addForm"].validate(valid => {
|
|
@@ -493,15 +509,41 @@
|
|
|
this.$set(this.addForm,'examineOpinion',val);
|
|
|
},
|
|
|
//点击查看文档
|
|
|
- lookDocument(type,data){
|
|
|
- if(type == 1){
|
|
|
- this.$set(this,'iframeSrcIndex',0);
|
|
|
- this.$set(this,'iframeSrcList',data);
|
|
|
- this.$set(this,'iframeSrc',this.urlJudge(data[0].url));
|
|
|
- this.$set(this,'imgDocumentType',3);
|
|
|
- }else if(type == 2){
|
|
|
- this.$set(this,'iframeSrc',this.urlJudge(data));
|
|
|
+ lookDocument(type){
|
|
|
+ if(type==1){
|
|
|
+ if(this.infoDialogData.rectifyNotice == 1){
|
|
|
+ //告知书
|
|
|
+ this.$set(this,'propsInformDomData',{
|
|
|
+ id:this.infoDialogData.id,
|
|
|
+ });
|
|
|
+ }else if(this.infoDialogData.rectifyNotice == 2){
|
|
|
+ //通知书
|
|
|
+ this.$set(this,'propsNoticeDomData',{
|
|
|
+ id:this.infoDialogData.id,
|
|
|
+ });
|
|
|
+ }
|
|
|
this.$set(this,'imgDocumentType',2);
|
|
|
+ }else{
|
|
|
+ this.$set(this,'imgDocumentType',0);
|
|
|
+ }
|
|
|
+ // if(type == 1){
|
|
|
+ // this.$set(this,'iframeSrcIndex',0);
|
|
|
+ // this.$set(this,'iframeSrcList',data);
|
|
|
+ // this.$set(this,'iframeSrc',this.urlJudge(data[0].url));
|
|
|
+ // this.$set(this,'imgDocumentType',3);
|
|
|
+ // }else if(type == 2){
|
|
|
+ // this.$set(this,'iframeSrc',this.urlJudge(data));
|
|
|
+ // this.$set(this,'imgDocumentType',2);
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ // 单个下载按钮
|
|
|
+ downloadButton(){
|
|
|
+ if(this.infoDialogData.rectifyNotice == 1){
|
|
|
+ //告知
|
|
|
+ this.download('/zd-security/checkManage/getRectifyNotification/'+this.infoDialogData.id, {}, this.infoDialogData.title+'(整改告知书).docx')
|
|
|
+ }else if(this.infoDialogData.rectifyNotice == 2){
|
|
|
+ //通知
|
|
|
+ this.download('/zd-security/checkManage/getRectifyAdviceNote/'+this.infoDialogData.id, {}, this.infoDialogData.title+'(整改通知书).docx')
|
|
|
}
|
|
|
},
|
|
|
lookDocumentListCheck(val){
|
|
@@ -532,10 +574,6 @@
|
|
|
this.imgIndex++
|
|
|
}
|
|
|
},
|
|
|
- // 单个下载按钮
|
|
|
- downloadButton(row){
|
|
|
- this.download('/zd-security/checkRectify/genReport/'+row.id, {}, row.title+'(整改报告).docx')
|
|
|
- },
|
|
|
/*==========上传相关==========*/
|
|
|
handleAvatarSuccess(res,item) {
|
|
|
this.$set(this,'loading',false);
|
|
@@ -1167,9 +1205,6 @@
|
|
|
display: flex;
|
|
|
flex:1;
|
|
|
height:570px;
|
|
|
- .iframe{
|
|
|
- flex:1;
|
|
|
- }
|
|
|
.out-button{
|
|
|
width:60px;
|
|
|
line-height:30px;
|
|
@@ -1183,6 +1218,23 @@
|
|
|
right:17px;
|
|
|
z-index:99999;
|
|
|
}
|
|
|
+ .positionButton{
|
|
|
+ position: absolute;
|
|
|
+ top:160px;
|
|
|
+ right: 20px;
|
|
|
+ border:1px solid #0183fa;
|
|
|
+ border-radius:4px;
|
|
|
+ line-height:30px;
|
|
|
+ width:60px;
|
|
|
+ text-align: center;
|
|
|
+ cursor: pointer;
|
|
|
+ color:#0183fa;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+ .positionButton:hover{
|
|
|
+ background-color:#0183fa;
|
|
|
+ color:#fff;
|
|
|
+ }
|
|
|
}
|
|
|
.info-dialog-content-document-list{
|
|
|
display: flex;
|
|
@@ -1268,4 +1320,38 @@
|
|
|
display: flex;
|
|
|
}
|
|
|
}
|
|
|
+ .lookDocumentDataDialog-fullScreen{
|
|
|
+ background-color: #666;
|
|
|
+ .info-dialog-title-box{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .info-dialog-content-box{
|
|
|
+ height:100%;
|
|
|
+ }
|
|
|
+ .info-dialog-content-document{
|
|
|
+ height:100%;
|
|
|
+ }
|
|
|
+ .positionButton{
|
|
|
+ top:25px!important;
|
|
|
+ right: 15px!important;
|
|
|
+ }
|
|
|
+ ::v-deep .el-dialog{
|
|
|
+ width:100% !important;
|
|
|
+ height:100% !important;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+ ::v-deep .el-dialog__header{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ ::v-deep .el-dialog__body{
|
|
|
+ height:100% !important;
|
|
|
+ background-color: #666;
|
|
|
+ .lookDocumentDataDialog-page{
|
|
|
+ height:100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ::v-deep .el-dialog__footer{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|