From 8ee5bac28c6225193dded324b6d2160095f91682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Wed, 18 Oct 2023 14:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=83=E5=B1=80=E6=94=BF=E7=AD=96=E5=BE=81?= =?UTF-8?q?=E6=B1=82=E6=84=8F=E8=A7=81=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/components/processFile.vue | 9 ++- .../components/addModel.vue | 32 +++++--- .../components/fileViewModel.vue | 75 +++++++++++++++++++ .../components/solicitationList.vue | 28 ++++++- .../creatProcess/policyConsultation/index.vue | 14 +--- .../tabComponents/newProcess/index.vue | 2 +- src/sysConfig/index.js | 14 ++-- 7 files changed, 137 insertions(+), 37 deletions(-) create mode 100644 src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue diff --git a/src/pages/processCenter/pages/components/processFile.vue b/src/pages/processCenter/pages/components/processFile.vue index 9e50f660c..15d0b27c5 100644 --- a/src/pages/processCenter/pages/components/processFile.vue +++ b/src/pages/processCenter/pages/components/processFile.vue @@ -84,11 +84,12 @@ let templateFileList = [] let list = [] fileList.forEach(item => { - templateFileList.push(item) - list.push(item.name) + let data = item.response ? item.response.data : item + templateFileList.push(data) + list.push(data.id) }) - let templateFileName = list.join(',') - this.$emit('uploadSuccess', templateFileList, templateFileName) + let templateFileId = list.join(',') + this.$emit('uploadSuccess', templateFileList, templateFileId) this.$message({ // showClose: true, message: response.message, diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue index e3a87c159..38d3c2c88 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue @@ -42,7 +42,7 @@ placeholder="请输入修改理由" clearable> - { - this.isSubmit = false + this.$refs['sarStandardsInfoForm'].validate((valid) => { + if (valid) { + if (!this.sarStandardsInfoEO.chapterNumber && !this.sarStandardsInfoEO.chapterEntry + && !this.sarStandardsInfoEO.beforeRevision && !this.sarStandardsInfoEO.afterRevision + && !this.sarStandardsInfoEO.revisionModification && !this.sarStandardsInfoEO.templateFileId) { + this.$message.warning('请至少填写一条数据,不能都为空') + return + } + let timestamp = new Date().getTime(); + if (!this.sarStandardsInfoEO.dataId) { + this.sarStandardsInfoEO.dataId = timestamp + } + this.isSubmit = true + this.$emit('addModelForm', this.sarStandardsInfoEO) + this.modalshowflag = false + this.$nextTick(() => { + this.isSubmit = false + }) + } }) }, } diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue new file mode 100644 index 000000000..00a4857e7 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue index ef3d3f66d..7b893e9a3 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue @@ -97,6 +97,10 @@ prop="completeFlag" label="附件" align="center"> + + diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/index.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/index.vue index eeb05e126..47dea8b05 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/index.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/index.vue @@ -225,10 +225,10 @@ -
+
-
@@ -528,7 +528,7 @@ this.$http.post('lawss/activiti/startProcessRollBack', { createUser: this.$store.getters.userInfo.userId, createUserName: this.$store.getters.userInfo.userName, - type: 'laws2', + type: '29', json: JSON.stringify({ form: json, roleForm: this.roleForm, @@ -555,14 +555,6 @@ }, {_this: this}, res => { if (res.success) { this.$message.success(res.message); - if (this.bpnId !== '') { - let taskId = { - id: this.bpnId - } - taskDel(taskId).then(res => { - return res - }) - } this.$router.push("/processCenter"); } this.isSubmit = false; diff --git a/src/pages/processCenter/pages/processList/tabComponents/newProcess/index.vue b/src/pages/processCenter/pages/processList/tabComponents/newProcess/index.vue index 7ae17c290..182e0d814 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/newProcess/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/newProcess/index.vue @@ -517,7 +517,7 @@ export default { case '12': // 政策征求意见流程 this.$router.push({ - name: 'zczqyjStep1' + path: 'policyConsultation' }) break case '13': diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js index a10432652..523461111 100644 --- a/src/sysConfig/index.js +++ b/src/sysConfig/index.js @@ -11,20 +11,20 @@ // const devIp = '10.10.10.46' // const devInterfacePORT = '4202' // // const devIp = '10.0.3.10' -const devIp = 'localhost' +const devIp = '10.0.3.11' const devInterfacePORT = '10086' // const devIp = '62.234.136.153' // const devInterfacePORT = '8033' // 配置 idm 认证 -const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri=' +const ssoLogin = 'http://localhost:9090/#/' // 配置 前端服务 -const devWebUrl = 'http://62.234.136.153:8038/#/' +const devWebUrl = 'http://localhost:9090/#/' // webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录) const webLoginType = 'dev' // 配置onlyOffice 前端服务 -// const onlyOfficeUrl = 'http://127.0.0.1:8080' -const onlyOfficeUrl = 'http://10.10.10.46:8889' +const onlyOfficeUrl = 'http://127.0.0.1:8080' +// const onlyOfficeUrl = 'http://10.10.10.46:8889' // 云端端口号 const DEV_CLOUD_RES_INTERFACE_PORT = '7777' @@ -50,8 +50,8 @@ const processPort = '17210' // 生产环境配置 // const prodIp = '39.98.140.126' // const prodInterfacePORT = '4201' -// const prodIp = '10.10.10.46' -// const prodInterfacePORT = '4202' +const prodIp = '10.10.10.46' +const prodInterfacePORT = '4202' // const prodIp = 'slrs.foton.com.cn' // const prodInterfacePORT = ''