From 85e3ae12448e1ee9c37fd2e59ed929e1582d1293 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Thu, 24 Feb 2022 10:19:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E4=BC=81=E6=A0=87=E6=8A=80=E6=9C=AF=E6=A0=87=E5=87=86=20?= =?UTF-8?q?=E4=BC=9A=E7=AD=BE=E6=84=8F=E8=A7=81=20=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=9D=A1=E6=AC=BE=20=E5=8A=A0=E8=BD=BD=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/qbrk/step5.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index de81523ab..137d0336a 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -490,6 +490,7 @@ :label="item.name" :name="item.id" > + 正在加载文档 @@ -977,6 +978,7 @@ } }] }, + iframeLoading:false, iframeUrl:"", showForm:{ modelNum: '', @@ -1431,6 +1433,7 @@ }, methods: { previewShow(attId) { + this.iframeLoading = true return new Promise((resolve, reject) => { getBusStandFileByAttId({ attId @@ -1447,6 +1450,7 @@ // 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)); } + this.iframeLoading = false this.$forceUpdate() resolve(history) } From 0201099004f654139568130c41d6471c9369154d Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Thu, 24 Feb 2022 10:41:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E4=BC=81=E6=A0=87=E4=BA=A7=E5=93=81=E6=A0=87=E5=87=86=20-=20?= =?UTF-8?q?=E4=BC=9A=E7=AD=BE=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81=20?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=9D=A1=E6=AC=BE=20=E4=B8=80=E5=8D=8A=20?= =?UTF-8?q?=E9=A2=84=E8=A7=88=20=E4=B8=80=E5=8D=8A=20=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=A1=AB=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk-product/step5.vue | 236 ++++++++++++++++-- .../pages/creatProcess/qbrk/step5.vue | 2 +- 2 files changed, 217 insertions(+), 21 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step5.vue index 796b63a32..a384e2e61 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step5.vue @@ -299,6 +299,77 @@ @submit="handleSubmit" > + + + + + + 正在加载文档 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + getBusStandFileByAttId({ + attId + }).then(res => { + if(res){ + const history = res; + const editFileInfo = res.data + if(editFileInfo.fileSuffix.toLowerCase() === 'pdg'){ + this.iframeUrl = 'book://ssreader/e0?url='+editFileInfo.downLoadUrl + }else if(editFileInfo.fileSuffix.toLowerCase() === 'pdf'){ + this.iframeUrl = './static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id) + }else { + 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) + this.iframeUrl = kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)); + } + this.iframeLoading = false + this.$forceUpdate() + resolve(history) + } + }).catch(e => { + }) + }) + }, + previewIframe(targetName, action){ + let attId = targetName.name + this.iframeUrl = "" + this.previewShow(attId) + }, + showDrawerClose () { + this.showDrawer = false + }, filterData2(){ let spanOneArr = [] let concatOne = 0 @@ -1319,6 +1456,25 @@ this.zrIdList.push(item.id) }) }, + createRowSubmit(){ + this.$refs['showForm'].validate((valid) => { + if (valid) { + const list = { + modelNum: this.showForm.modelNum, + modelUpdBefore: this.showForm.modelUpdBefore, + modelUpdAfter: this.showForm.modelUpdAfter, + modelContent: this.showForm.modelContent, + zrUserId:this.$store.getters.userInfo.userId, + zrUserIdName:this.$store.getters.userInfo.userName, + zrDeptId:this.$store.getters.userInfo.institutionId, + zrDeptIdName:this.$store.getters.userInfo.institutionName, + children:[], + }; + this.form.modelData.push(list); + this.$message.success("新增成功!") + } + }) + }, createRow() { // 创建行 // if (this.diaTable.length >= 6) { // 判断当前表格是否可继续创建 @@ -1328,26 +1484,32 @@ // duration: 2000 // }); // return false; - // } - const list = { - id: this.form.modelData.length + 1, - modelNum: '', - orderNum: this.form.modelData.length + 1, // orderNum为新创建行的索引 - pid: '0', - modelIndex: this.form.modelData.length, - disabled1: false, - disabled2: false, - modelName: "", - modelUpdBefore: "", - modelUpdAfter: "", - modelContent: "", - zrUserId:this.$store.getters.userInfo.userId, - zrUserIdName:this.$store.getters.userInfo.userName, - zrDeptId:this.$store.getters.userInfo.institutionId, - zrDeptIdName:this.$store.getters.userInfo.institutionName, - children:[], - }; - this.form.modelData.push(list); + // // } + if(this.FBGBUSSFileList.length > 0){ + this.editableTabsValue = this.FBGBUSSFileList[0].id + this.previewShow(this.FBGBUSSFileList[0].id) + } + this.showDrawer = true + this.showDrawerTitle = "新增征求意见" + // const list = { + // id: this.form.modelData.length + 1, + // modelNum: '', + // orderNum: this.form.modelData.length + 1, // orderNum为新创建行的索引 + // pid: '0', + // modelIndex: this.form.modelData.length, + // disabled1: false, + // disabled2: false, + // modelName: "", + // modelUpdBefore: "", + // modelUpdAfter: "", + // modelContent: "", + // zrUserId:this.$store.getters.userInfo.userId, + // zrUserIdName:this.$store.getters.userInfo.userName, + // zrDeptId:this.$store.getters.userInfo.institutionId, + // zrDeptIdName:this.$store.getters.userInfo.institutionName, + // children:[], + // }; + // this.form.modelData.push(list); }, // createRow() { // // 创建行 @@ -2688,6 +2850,40 @@