From 37551bd6a686fc307b7fb9df90122a7d042cddce Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 23 Feb 2022 17:51:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=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=E6=96=B9=E5=BC=8F=20?= =?UTF-8?q?=E6=94=B9=E6=88=90=20=E5=8F=B3=E4=BE=A7=E6=BB=91=E5=87=BA=20?= =?UTF-8?q?=E4=B8=80=E5=8D=8A=E6=96=87=E6=A1=A3=E9=A2=84=E8=A7=88=20?= =?UTF-8?q?=E4=B8=80=E5=8D=8A=E8=A1=A8=E5=8D=95=E5=B1=9E=E6=80=A7=E5=A1=AB?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk/step5.vue | 229 ++++++++++++++++-- 1 file changed, 210 insertions(+), 19 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index ea6ab8778..74f23dccf 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -473,6 +473,76 @@ @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.$forceUpdate() + resolve(history) + } + }).catch(e => { + }) + }) + }, + previewIframe(targetName, action){ + let attId = targetName.name + this.previewShow(attId) + }, + showDrawerClose () { + this.showDrawer = false + }, filterData2(){ let spanOneArr = [] let concatOne = 0 @@ -1483,6 +1615,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) { // 判断当前表格是否可继续创建 @@ -1493,25 +1644,31 @@ // }); // 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() { // // 创建行 @@ -2850,6 +3007,40 @@