diff --git a/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue new file mode 100644 index 000000000..72f75e6e7 --- /dev/null +++ b/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue index 212a98648..92bdf4bd1 100644 --- a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue +++ b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue @@ -250,6 +250,7 @@ export default { name: 'consultationDetails', data() { return { + freshClueNum: '', itermsConditionsFlag: false, itermsConditionsTitle: '', options: [], @@ -385,7 +386,7 @@ export default { }, //编辑 selectStandardPro(type, row) { - this.type = type + this.type = type if (type === 'edit') { this.id = row.id this.opiniontitle = '编辑意见内容' @@ -394,16 +395,34 @@ export default { this.opinionContent.oldText = row.oldText this.opinionContent.newText = row.newText this.opinionContent.cause = row.cause + this.isDialog = true } else { - this.id = '' - this.opiniontitle = '新增意见' - this.opinionContent.partCode = '' - this.opinionContent.reason = '' - this.opinionContent.oldText = '' - this.opinionContent.newText = '' - this.opinionContent.cause = '' + localStorage.setItem('freshClueNum', new Date().getTime()) + this.freshClueNum = localStorage.getItem('freshClueNum') || ''; + let routeData = this.$router.resolve({ + name: "AddFileDetails", + query: { + attId: this.fileInfoList[0].attId, + userId: this.$store.getters.userInfo.userId || '', + userName: this.$store.getters.userInfo.userName || '', + deptName: this.$store.getters.userInfo.institutionName || '', + deptId: this.$store.getters.userInfo.institutionId || '', + standId: JSON.parse(this.$route.query.item.files)[0].standId, + fileType: JSON.parse(this.$route.query.item.files)[0].standFileClassify, + ideaId: this.$route.query.item.id, + cid: this.$route.query.item.cid, + } + }); + window.open(routeData.href, '_blank') + // return + // this.id = '' + // this.opiniontitle = '新增意见' + // this.opinionContent.partCode = '' + // this.opinionContent.reason = '' + // this.opinionContent.oldText = '' + // this.opinionContent.newText = '' + // this.opinionContent.cause = '' } - this.isDialog = true }, //删除 deleteStand(id) { @@ -449,8 +468,8 @@ export default { cause: this.opinionContent.cause, userId: this.$store.getters.userInfo.userId || '', userName: this.$store.getters.userInfo.userName || '', - deptName: this.$store.getters.userInfo.orgName || '', - deptId: this.$store.getters.userInfo.orgId || '' + deptName: this.$store.getters.userInfo.institutionName || '', + deptId: this.$store.getters.userInfo.institutionId || '', } if (this.type === 'edit') { form.id = this.id @@ -498,6 +517,11 @@ export default { } }, mounted() { + window.addEventListener("storage", ev => { + if(ev.key === 'freshClueNum'){ + this.getList() + } + }) if (JSON.parse(this.$route.query.item.wkfiles).length) { this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles) } else { @@ -522,7 +546,7 @@ export default { this.getList() this.getIdeaKey() this.getFileInfo() - } + }, } diff --git a/src/router/index.js b/src/router/index.js index 91dc27b14..017157f29 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3729,6 +3729,19 @@ const routes = [ // menuId: '' } }, + { + path: '/AddFileDetails', + name: 'AddFileDetails', + component: () => + import('@/pages/regulatoryRepository/standardForComments/pags/AddFileDetails'), + meta: { + requireAuth: true, + title: '新增', + parentPath: '/standardForComments', + isBoolean: true, + // menuId: '' + } + }, { path: '/details', name: 'Details',