From 3abb5364b43f24ed56bb6c41810de83d821630f6 Mon Sep 17 00:00:00 2001 From: SUNJIABIN Date: Fri, 7 Apr 2023 12:48:37 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BC=81=E6=A0=87=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue index 4dbe6a85f..231786700 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue @@ -1227,7 +1227,7 @@ _this: this }, res => { if (res.ok) { - if (res.data === '操作成功') { + if (res.message === '操作成功') { this.$message.success(tips + '成功') this.getData() if(this.DrawerType === 'add'){ From e044c6207751808766285a65d03225d470baf7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 7 Apr 2023 15:43:41 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9pdf=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk/step5.vue | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index 955da075b..90adad6c8 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -893,6 +893,7 @@ import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig' + import { processEditFile } from 'api/process' import {saveTaskForPub,changeAssigneeNew,saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail} from "api/process"; import {getEvaluationIndex} from "api/businessApi"; import TreeSelect from '@/components/treeSelect/treeSelect.vue'; @@ -1445,8 +1446,10 @@ }, previewShow(attId) { this.iframeLoading = true + console.log(attId); return new Promise((resolve, reject) => { - if(attId.indexOf('ATT_FILE') === 0){ + console.log(attId.indexOf('ATT_FILE')); + if(attId.indexOf('ATT_FILE') === 0){ getBusStandFileByAttId({ attId }).then(res => { @@ -1469,7 +1472,28 @@ }).catch(e => { }) }else{ - axios({ + processEditFile({ + id:attId + }).then(res => { + if(res){ + const editFileInfo = res + const showName = '' + const editFilePath = editFileInfo.editFilePath.split("/") + editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/' + editFileInfo.fileName = editFilePath[2] + if(editFileInfo.pid){ + editFileInfo.pId = editFileInfo.pid + } + editFileInfo.fileSuffix = 'docx' + 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 + // window.open() + this.iframeLoading = false + } + }).catch(e => { + }) + return + axios({ url: 'api/lawss/activiti/selectOnlineFile', method: 'get', params: attId @@ -1490,7 +1514,9 @@ this.$forceUpdate() resolve(history) } - }).catch(e=>{}) + }).catch(e=>{ + console.log(e); + }) } }) From 62f13b28b1659ca3fecbc4295ebf3add0a933288 Mon Sep 17 00:00:00 2001 From: zyn Date: Fri, 7 Apr 2023 16:30:29 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E6=8A=80=E6=9C=AF=E6=A0=87=E5=87=86-?= =?UTF-8?q?=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81=E8=8A=82=E7=82=B9=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=9D=A1=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk/step5.vue | 63 +++++++++---------- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index 90adad6c8..e85771ce7 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -1444,11 +1444,9 @@ emitDataLoading(boo){ this.dataLoading = boo }, - previewShow(attId) { + previewShow(attId, label) { this.iframeLoading = true - console.log(attId); return new Promise((resolve, reject) => { - console.log(attId.indexOf('ATT_FILE')); if(attId.indexOf('ATT_FILE') === 0){ getBusStandFileByAttId({ attId @@ -1477,7 +1475,7 @@ }).then(res => { if(res){ const editFileInfo = res - const showName = '' + const showName = label const editFilePath = editFileInfo.editFilePath.split("/") editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/' editFileInfo.fileName = editFilePath[2] @@ -1487,36 +1485,37 @@ editFileInfo.fileSuffix = 'docx' 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 - // window.open() this.iframeLoading = false + resolve(res) } }).catch(e => { }) - return - axios({ - url: 'api/lawss/activiti/selectOnlineFile', - method: 'get', - params: 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))+'&office.preview.type=pdf'; - } - this.iframeLoading = false - this.$forceUpdate() - resolve(history) - } - }).catch(e=>{ - console.log(e); - }) + // return + // axios({ + // url: 'api/lawss/activiti/selectOnlineFile', + // method: 'get', + // params: 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))+'&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() + // resolve(history) + // } + // }).catch(e=>{ + // console.log(e); + // }) } }) @@ -1524,7 +1523,7 @@ previewIframe(targetName, action){ let attId = targetName.name this.iframeUrl = "" - this.previewShow(attId) + this.previewShow(attId, targetName.label) }, showDrawerClose () { this.showForm.modelNum = "" @@ -1722,7 +1721,7 @@ // } if(this.FBGBUSSFileList.length > 0){ 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.showDrawerTitle = "新增征求意见" From 3decbacdf72a51c2bd707a9f2f61d9abe8799296 Mon Sep 17 00:00:00 2001 From: zyn Date: Fri, 7 Apr 2023 18:50:52 +0800 Subject: [PATCH 04/10] =?UTF-8?q?ios=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/phone/domesticDetails.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/phone/domesticDetails.vue b/src/pages/phone/domesticDetails.vue index 32bdeecc4..aa56b0568 100644 --- a/src/pages/phone/domesticDetails.vue +++ b/src/pages/phone/domesticDetails.vue @@ -2803,17 +2803,17 @@ const nowTime = new Date().getTime() this.loadingText = true if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') { - if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { - //alert(navigator.userAgent); - this.getFileInfo(editFileInfo.id) - } else if (/(Android)/i.test(navigator.userAgent)) { - //alert(navigator.userAgent); + // if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { + // //alert(navigator.userAgent); + // this.getFileInfo(editFileInfo.id) + // } else if (/(Android)/i.test(navigator.userAgent)) { + // //alert(navigator.userAgent); + // this.loadingText = false + // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) + // } else { this.loadingText = false window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } else { - this.loadingText = false - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } + // } // window.open('/#/phonePDF?fileId='+editFileInfo.id) } else { const nowTime = new Date().getTime() From 516e25d990a50e1e5605494c4e180c76c8172b45 Mon Sep 17 00:00:00 2001 From: zyn Date: Fri, 7 Apr 2023 21:19:13 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=8B=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ResolveTable.vue | 390 +++++++++++++++++ .../details/otherStandardDetails/index.vue | 409 ++++++++++-------- .../qbrk/common/formEditListFb.vue | 11 +- 3 files changed, 626 insertions(+), 184 deletions(-) create mode 100644 src/pages/details/otherStandardDetails/components/ResolveTable.vue diff --git a/src/pages/details/otherStandardDetails/components/ResolveTable.vue b/src/pages/details/otherStandardDetails/components/ResolveTable.vue new file mode 100644 index 000000000..38d3de121 --- /dev/null +++ b/src/pages/details/otherStandardDetails/components/ResolveTable.vue @@ -0,0 +1,390 @@ + + + + + diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index e31d8de91..3b4484898 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -750,45 +750,69 @@ >
- - - - - - - + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- - -
-
- - -
- - -
+
+ @click="searchClause"> 查询 @@ -804,7 +828,7 @@ + @click="clearClause"> 清空 @@ -812,12 +836,17 @@
+ + + + + 导出 - 关联条款 - 编辑 - + + + + + + + + -->
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 数据加载中... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- + + + + + @@ -1808,6 +1838,7 @@ import {dateFormat} from '@/common/date' import RelatedTermsSelect from './components/RelatedTermsSelect' import {getBusStandFileByAttId} from 'api/process' import {dicTypeData} from "api/unqualProcess"; +import ResolveTable from './components/ResolveTable.vue' export default { @@ -1817,7 +1848,8 @@ export default { CustomSVPPS, CustomSelectArray, CustomOrg, - RelatedTermsSelect + RelatedTermsSelect, + ResolveTable }, filters: { ellipsis(value) { @@ -1837,6 +1869,7 @@ export default { }, data() { return { + clauseName:"", // 条款名称 cfjgscUploadKey:1, externalStatus: '', handleList: [], @@ -3937,6 +3970,22 @@ export default { itemsTextDialog(itemsNum, text) { this.itemsTextDialogs = true this.itemsText = '

' + itemsNum + '

' + text.replace(/''/g, '\'') + }, + exportItemInfo(){ + this.$refs.resolveTable.exportItemInfo(); + }, + searchClause(){ + let query = {} + query.clauseName = this.clauseName + this.$refs.resolveTable.getSplitItemsByPage(query) + }, + clearClause(){ + this.clauseName = '' + let query = {} + query.clauseName = this.clauseName + this.$refs.resolveTable.itemsPage = 1 + this.$refs.resolveTable.itemsPageSize = this.$store.getters.userInfo.configContent + this.$refs.resolveTable.getSplitItemsByPage(query) } }, computed: { diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue index 11352d498..aed3af715 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditListFb.vue @@ -134,7 +134,7 @@
- + - +