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 @@