技术标准-征求意见节点创建条款
This commit is contained in:
@@ -1444,11 +1444,9 @@
|
|||||||
emitDataLoading(boo){
|
emitDataLoading(boo){
|
||||||
this.dataLoading = boo
|
this.dataLoading = boo
|
||||||
},
|
},
|
||||||
previewShow(attId) {
|
previewShow(attId, label) {
|
||||||
this.iframeLoading = true
|
this.iframeLoading = true
|
||||||
console.log(attId);
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
console.log(attId.indexOf('ATT_FILE'));
|
|
||||||
if(attId.indexOf('ATT_FILE') === 0){
|
if(attId.indexOf('ATT_FILE') === 0){
|
||||||
getBusStandFileByAttId({
|
getBusStandFileByAttId({
|
||||||
attId
|
attId
|
||||||
@@ -1477,7 +1475,7 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res){
|
if(res){
|
||||||
const editFileInfo = res
|
const editFileInfo = res
|
||||||
const showName = ''
|
const showName = label
|
||||||
const editFilePath = editFileInfo.editFilePath.split("/")
|
const editFilePath = editFileInfo.editFilePath.split("/")
|
||||||
editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/'
|
editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/'
|
||||||
editFileInfo.fileName = editFilePath[2]
|
editFileInfo.fileName = editFilePath[2]
|
||||||
@@ -1487,36 +1485,37 @@
|
|||||||
editFileInfo.fileSuffix = 'docx'
|
editFileInfo.fileSuffix = 'docx'
|
||||||
const nowTime = new Date().getTime()
|
const nowTime = new Date().getTime()
|
||||||
this.iframeUrl = onlyOfficeUrl+'/onlyOffice?oldFileName=' + showName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName
|
this.iframeUrl = onlyOfficeUrl+'/onlyOffice?oldFileName=' + showName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName
|
||||||
// window.open()
|
|
||||||
this.iframeLoading = false
|
this.iframeLoading = false
|
||||||
|
resolve(res)
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
return
|
// return
|
||||||
axios({
|
// axios({
|
||||||
url: 'api/lawss/activiti/selectOnlineFile',
|
// url: 'api/lawss/activiti/selectOnlineFile',
|
||||||
method: 'get',
|
// method: 'get',
|
||||||
params: attId
|
// params: attId
|
||||||
}).then(res=>{
|
// }).then(res=>{
|
||||||
if(res){
|
// if(res){
|
||||||
const history = res;
|
// const history = res;
|
||||||
const editFileInfo = res.data
|
// const editFileInfo = res.data
|
||||||
if(editFileInfo.fileSuffix.toLowerCase() === 'pdg'){
|
// if(editFileInfo.fileSuffix.toLowerCase() === 'pdg'){
|
||||||
this.iframeUrl = 'book://ssreader/e0?url='+editFileInfo.downLoadUrl
|
// this.iframeUrl = 'book://ssreader/e0?url='+editFileInfo.downLoadUrl
|
||||||
}else if(editFileInfo.fileSuffix.toLowerCase() === 'pdf'){
|
// }else if(editFileInfo.fileSuffix.toLowerCase() === 'pdf'){
|
||||||
this.iframeUrl = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)
|
// this.iframeUrl = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)
|
||||||
}else {
|
// }else {
|
||||||
const nowTime = new Date().getTime()
|
// const nowTime = new Date().getTime()
|
||||||
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
// // window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
|
||||||
this.iframeUrl = kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))+'&office.preview.type=pdf';
|
// this.iframeUrl = kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))+'&office.preview.type=pdf';
|
||||||
}
|
// // onlyOfficeUrl+'/editor?fileId='+editFileInfo.id+'&pid='+editFileInfo.pId+'&taskIds='+editFileInfo.taskId+'&editType='+editFileInfo.editType+'&oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id +'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName
|
||||||
this.iframeLoading = false
|
// }
|
||||||
this.$forceUpdate()
|
// this.iframeLoading = false
|
||||||
resolve(history)
|
// this.$forceUpdate()
|
||||||
}
|
// resolve(history)
|
||||||
}).catch(e=>{
|
// }
|
||||||
console.log(e);
|
// }).catch(e=>{
|
||||||
})
|
// console.log(e);
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -1524,7 +1523,7 @@
|
|||||||
previewIframe(targetName, action){
|
previewIframe(targetName, action){
|
||||||
let attId = targetName.name
|
let attId = targetName.name
|
||||||
this.iframeUrl = ""
|
this.iframeUrl = ""
|
||||||
this.previewShow(attId)
|
this.previewShow(attId, targetName.label)
|
||||||
},
|
},
|
||||||
showDrawerClose () {
|
showDrawerClose () {
|
||||||
this.showForm.modelNum = ""
|
this.showForm.modelNum = ""
|
||||||
@@ -1722,7 +1721,7 @@
|
|||||||
// }
|
// }
|
||||||
if(this.FBGBUSSFileList.length > 0){
|
if(this.FBGBUSSFileList.length > 0){
|
||||||
this.editableTabsValue = this.FBGBUSSFileList[0].id
|
this.editableTabsValue = this.FBGBUSSFileList[0].id
|
||||||
this.previewShow(this.FBGBUSSFileList[0].id)
|
this.previewShow(this.FBGBUSSFileList[0].id, this.FBGBUSSFileList[0].name)
|
||||||
}
|
}
|
||||||
this.showDrawer = true
|
this.showDrawer = true
|
||||||
this.showDrawerTitle = "新增征求意见"
|
this.showDrawerTitle = "新增征求意见"
|
||||||
|
|||||||
Reference in New Issue
Block a user