- {{ form.fileName }}
+
+
+
+ {{ form.fileName }}
+
+
+
- -
@@ -205,7 +227,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
- import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
+ import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
import axios from "axios";
export default {
@@ -249,6 +271,63 @@
ProcessTitle
},
methods: {
+ getBusStandFileByAttId(attId) {
+ return new Promise((resolve, reject) => {
+ getBusStandFileByAttId({
+ attId
+ }).then(res => {
+ if (res.ok) {
+ resolve(res.data)
+ } else {
+ reject()
+ }
+ }).catch(e => {
+ reject(e)
+ })
+ })
+ },
+ clickButtonToUpload2(file) {
+ const attId = file
+ this.getBusStandFileByAttId(attId)
+ .then(res => {
+ if(res){
+ const editFileInfo = res
+ if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
+ window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
+ }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }else {
+ const nowTime = new Date().getTime()
+ // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
+ window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
+ }
+ // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }
+ }).catch(e => {
+ this.$message.warning('文件不存在,预览失败')
+ })
+ },
+ clickButtonToUpload(file) {
+ const attId = file.attId
+ this.getBusStandFileByAttId(attId)
+ .then(res => {
+ if(res){
+ const editFileInfo = res
+ if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
+ window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
+ }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }else {
+ const nowTime = new Date().getTime()
+ // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
+ window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
+ }
+ // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
+ }
+ }).catch(e => {
+ this.$message.warning('文件不存在,预览失败')
+ })
+ },
handleTransfer() {
this.drawerModal = true
},
@@ -350,6 +429,7 @@
this.json = data || data.form
this.form.file = data.fileId || data.form.fileId
this.form.fileName = data.fileName || data.form.fileName
+ this.form.fileId = data.fileId || data.form.fileId
this.form.modelList = data.modelList || data.form.modelList
this.form.fjList = data.fjList || data.form.fjList
}).catch(e => {
diff --git a/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue b/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue
index 3bc0a8498..69b40fafe 100644
--- a/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue
+++ b/src/pages/regulatoryRepository/workingGroup/components/workingGroup1/index.vue
@@ -1051,7 +1051,6 @@
this.addForm.wgNetInfos[this.pIndex].phone = data[0].phone
this.addForm.wgNetInfos[this.pIndex].email = data[0].email
} else if (this.pType === '选择我司人员') {
- console.log(data[0]);
this.addForm.wgDepts[this.pIndex].name = data[0].name
this.addForm.wgDepts[this.pIndex].deptPeopleId = data[0].id
this.addForm.wgDepts[this.pIndex].phone = data[0].phone