合并分支 'fix_foton_20230613' 到 'master'

Fix foton 20230613

查看合并请求 laws-foton-slrs/foton-laws-system-front!90
This commit is contained in:
高嵩
2023-06-14 12:00:29 +08:00
3 changed files with 57 additions and 3 deletions
@@ -478,7 +478,7 @@
</el-form-item>
<el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled">
<el-select :disabled="disabledXX" v-model="form.CYCD" filterable clearable
placeholder="请先选择采标程度"
placeholder="请先选择采标程度" @change="selectChange"
>
<el-option
v-for="item in cbcdOptions"
@@ -1266,7 +1266,7 @@
this.addForm.addFlag = '1'
this.addForm.prcCreateUser = this.$store.getters.userInfo.userId
this.addForm.prcCreateUserName = this.$store.getters.userInfo.userName
this.addForm.nowEsId = res.message
this.addForm.nowEsId = res.data
this.addForm.type = '5'
var json = Object.assign(this.addForm)
this.$http.post('lawss/activiti/startProcessRollBack', {
@@ -1,7 +1,7 @@
<template>
<div class="AddFileDetails">
<div class="left">
<iframe name = "iframeMap" id="iframeMapViewComponent" v-bind:src="'/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + $route.query.attId)"
<iframe name = "iframeMap" id="iframeMapViewComponent" v-bind:src="iframeUrl"
width="100%" height="100%"
frameborder="0" scrolling="no" ref="iframeDom"
></iframe>
@@ -53,6 +53,7 @@
data () {
return {
options: [],
iframeUrl:"",
opinionContent: { // 抽屉数据
partCode: '',
oldText: '',
@@ -125,8 +126,61 @@
}
}
},
previewShow(attId) {
this.iframeLoading = true
return new Promise((resolve, reject) => {
this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId: attId
}, {
_this: this
}, res => {
if (res.data) {
let fileObj = {}
fileObj.fileId = res.data.attId
fileObj.fileName = res.data.fileOldName
let fileList = []
let repeatData = 0
if (sessionStorage.getItem('fileInfo')) {
fileList = JSON.parse(sessionStorage.getItem('fileInfo'))
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
if (fileList[i].fileId === res.data.attId) {
repeatData = 1
break
}
}
if (repeatData === 0) {
fileList.push(fileObj)
fileList = JSON.stringify(fileList)
sessionStorage.setItem('fileInfo', fileList)
}
}
} else {
fileList.push(fileObj)
fileList = JSON.stringify(fileList)
sessionStorage.setItem('fileInfo', fileList)
}
this.iframeUrl = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId)
} else {
this.$message.error('文档未转换成功或该文档无法读取')
}
this.iframeLoading = false
this.$forceUpdate()
resolve(history)
}, e => {
this.iframeLoading = false
this.$forceUpdate()
resolve(history)
this.$message.error('文档未转换成功或该文档无法读取')
})
})
console.log(this.iframeUrl);
},
},
mounted() {
const attId = this.$route.query.attId
this.previewShow(attId)
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
standId: this.$route.query.standId,
fileType: this.$route.query.fileType,