合并分支 'fix_foton_20230613' 到 'master'
Fix foton 20230613 查看合并请求 laws-foton-slrs/foton-laws-system-front!90
This commit is contained in:
@@ -478,7 +478,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled">
|
<el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled">
|
||||||
<el-select :disabled="disabledXX" v-model="form.CYCD" filterable clearable
|
<el-select :disabled="disabledXX" v-model="form.CYCD" filterable clearable
|
||||||
placeholder="请先选择采标程度"
|
placeholder="请先选择采标程度" @change="selectChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cbcdOptions"
|
v-for="item in cbcdOptions"
|
||||||
|
|||||||
@@ -1266,7 +1266,7 @@
|
|||||||
this.addForm.addFlag = '1'
|
this.addForm.addFlag = '1'
|
||||||
this.addForm.prcCreateUser = this.$store.getters.userInfo.userId
|
this.addForm.prcCreateUser = this.$store.getters.userInfo.userId
|
||||||
this.addForm.prcCreateUserName = this.$store.getters.userInfo.userName
|
this.addForm.prcCreateUserName = this.$store.getters.userInfo.userName
|
||||||
this.addForm.nowEsId = res.message
|
this.addForm.nowEsId = res.data
|
||||||
this.addForm.type = '5'
|
this.addForm.type = '5'
|
||||||
var json = Object.assign(this.addForm)
|
var json = Object.assign(this.addForm)
|
||||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AddFileDetails">
|
<div class="AddFileDetails">
|
||||||
<div class="left">
|
<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%"
|
width="100%" height="100%"
|
||||||
frameborder="0" scrolling="no" ref="iframeDom"
|
frameborder="0" scrolling="no" ref="iframeDom"
|
||||||
></iframe>
|
></iframe>
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
options: [],
|
options: [],
|
||||||
|
iframeUrl:"",
|
||||||
opinionContent: { // 抽屉数据
|
opinionContent: { // 抽屉数据
|
||||||
partCode: '',
|
partCode: '',
|
||||||
oldText: '',
|
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() {
|
mounted() {
|
||||||
|
const attId = this.$route.query.attId
|
||||||
|
this.previewShow(attId)
|
||||||
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
|
this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', {
|
||||||
standId: this.$route.query.standId,
|
standId: this.$route.query.standId,
|
||||||
fileType: this.$route.query.fileType,
|
fileType: this.$route.query.fileType,
|
||||||
|
|||||||
Reference in New Issue
Block a user