From 00ec9138c5ebd2669642646a063da696092c0438 Mon Sep 17 00:00:00 2001 From: dengbf Date: Thu, 30 Nov 2023 17:09:22 +0800 Subject: [PATCH 1/6] =?UTF-8?q?-=20[=E5=85=B3=E8=81=94]=20#[10210435257794?= =?UTF-8?q?56]OEA=E5=AE=A1=E6=89=B9=E6=A8=A1=E6=9D=BF=20http://192.168.0.9?= =?UTF-8?q?6:8090/demo/rdm.html#/story-detail/939050947543040/939050947543?= =?UTF-8?q?042/1021043525779456?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PoptipSelect/PoptipSelect.vue | 37 ++- .../pages/process/eoa/eoa-template-edit.vue | 268 ++++++++++++++++++ .../pages/process/eoa/eoa-template-manage.vue | 98 +++++++ src/views/pages/process/router.js | 32 ++- 4 files changed, 418 insertions(+), 17 deletions(-) create mode 100644 src/views/pages/process/eoa/eoa-template-edit.vue create mode 100644 src/views/pages/process/eoa/eoa-template-manage.vue diff --git a/src/resources/components/PoptipSelect/PoptipSelect.vue b/src/resources/components/PoptipSelect/PoptipSelect.vue index f09fb4325..1e031cb06 100644 --- a/src/resources/components/PoptipSelect/PoptipSelect.vue +++ b/src/resources/components/PoptipSelect/PoptipSelect.vue @@ -13,8 +13,8 @@ ref="pop" v-model="isshow" :trigger="trigger" - :width="popWidth" - placement="bottom-start" + :width="updateWidth()" + :placement="placement" transfer class="select-poptip" > @@ -134,13 +134,20 @@ export default { default() { return this.$t('page.pleaseselect'); } + }, + placement: { + type: String, + default: 'bottom-start' + }, + popWidth: { + type: Number, + default: 400 } }, data() { return { isshow: false, selectValue: '', - popWidth: 460, iconConfig: { text: 'tsfont-forminput', //文本输入 password: 'tsfont-lock', //密码 @@ -166,9 +173,7 @@ export default { beforeCreate() {}, created() {}, beforeMount() {}, - mounted() { - this.updatePosition(); - }, + mounted() {}, beforeUpdate() {}, updated() {}, activated() {}, @@ -194,14 +199,6 @@ export default { } this.isshow = false; }, - updatePosition() { - if (this.$el) { - let width = this.$el.querySelector('.type-select').clientWidth; - if (width > this.popWidth) { - this.popWidth = width; - } - } - }, handleKeydown(e) { //切tab的时候隐藏 if (e.key == 'Tab' && e.type == 'keydown') { @@ -252,6 +249,18 @@ export default { resultJson.width = _this.width; } return resultJson; + }, + updateWidth() { + return () => { + let width = this.popWidth; + if (this.$el) { + let clientWidth = this.$el.querySelector('.type-select').clientWidth; + if (clientWidth > width) { + width = clientWidth; + } + } + return width; + }; } }, watch: { diff --git a/src/views/pages/process/eoa/eoa-template-edit.vue b/src/views/pages/process/eoa/eoa-template-edit.vue new file mode 100644 index 000000000..494cb5960 --- /dev/null +++ b/src/views/pages/process/eoa/eoa-template-edit.vue @@ -0,0 +1,268 @@ + + + diff --git a/src/views/pages/process/eoa/eoa-template-manage.vue b/src/views/pages/process/eoa/eoa-template-manage.vue new file mode 100644 index 000000000..6ca09569d --- /dev/null +++ b/src/views/pages/process/eoa/eoa-template-manage.vue @@ -0,0 +1,98 @@ + + + diff --git a/src/views/pages/process/router.js b/src/views/pages/process/router.js index 4d781fa1a..a5da88f86 100644 --- a/src/views/pages/process/router.js +++ b/src/views/pages/process/router.js @@ -25,7 +25,9 @@ const subtaskTypeManage = () => import('./subtask/subtasktype-manage.vue'); const flowDemo = () => import('./flowdemo/flow-demo.vue'); const replyManage = () => import('./replytemplate/reply-manage.vue'); const ProcessTaskManage = () => import('./task/processtask-manage.vue'); -import {$t} from '@/resources/init.js'; +const eoaTemplateManage = () => import('./eoa/eoa-template-manage.vue'); +const eoaTemplateEdit = () => import('./eoa/eoa-template-edit.vue'); +import { $t } from '@/resources/init.js'; let routerArr = [ { @@ -107,7 +109,7 @@ let routerArr = [ icon: 'tsfont-star', authority: 'PROCESS_BASE', type: 'catalog' - + } }, { @@ -325,7 +327,7 @@ let routerArr = [ type: 'others' } }, - + { path: '/flow-demo', name: 'flow-demo', @@ -346,6 +348,30 @@ let routerArr = [ authority: 'PROCESS_BASE', type: 'others' } + }, + { + path: '/eoa-template-manage', + name: 'eoa-template-manage', + component: eoaTemplateManage, + meta: { + title: 'EOA模板', + ismenu: true, + icon: 'tsfont-shitu', + authority: '', + type: 'flow' + } + }, + { + path: '/eoa-template-edit', + name: 'eoa-template-edit', + component: eoaTemplateEdit, + meta: { + title: 'EOA模板编辑', + ismenu: false, + icon: 'tsfont-shitu', + authority: '', + type: 'flow' + } } ]; -- Gitee From 7704734a669ffd1993bb6c20fd0b2451efa0d253 Mon Sep 17 00:00:00 2001 From: dengbf Date: Tue, 5 Dec 2023 17:08:04 +0800 Subject: [PATCH 2/6] =?UTF-8?q?-=20[=E5=85=B3=E8=81=94]=20#[10210435257794?= =?UTF-8?q?56]OEA=E5=AE=A1=E6=89=B9=E6=A8=A1=E6=9D=BF=20http://192.168.0.9?= =?UTF-8?q?6:8090/demo/rdm.html#/story-detail/939050947543040/939050947543?= =?UTF-8?q?042/1021043525779456?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/assets/languages/term/en.json | 9 +- src/resources/assets/languages/term/zh.json | 9 +- .../pages/process/eoa/eoa-template-edit.vue | 185 ++++++++++++++---- .../pages/process/eoa/eoa-template-manage.vue | 80 ++++++-- 4 files changed, 228 insertions(+), 55 deletions(-) diff --git a/src/resources/assets/languages/term/en.json b/src/resources/assets/languages/term/en.json index 8f66fd9c0..83406c604 100644 --- a/src/resources/assets/languages/term/en.json +++ b/src/resources/assets/languages/term/en.json @@ -497,7 +497,14 @@ "templateparametermapping": "Template parameter mapping", "targetparams": "Target parameters", "selecttask": "Select Work Order", - "savedraft": "Save Draft " + "savedraft": "Save Draft ", + "signreport": "Sign a report", + "signreporttip": "The first step of all approval processes is the creation and signing step, and modification is not supported. Create the handler for signing the report, which is the handler for the EOA node in the process, and set it in the process management.", + "approvalpolicy": "Approval strategy", + "eoadealwithusertip": "After setting the processor for the template, the processor cannot be modified during the editing process", + "approvalstep": "Approval steps", + "approvalprocess": "Approval process", + "approvalprocesstip": "At least one node must be added outside the [Create Sign off] node" }, "autoexec": { "addrootdirectory": "Add root directory", diff --git a/src/resources/assets/languages/term/zh.json b/src/resources/assets/languages/term/zh.json index a29153a62..61a020c92 100644 --- a/src/resources/assets/languages/term/zh.json +++ b/src/resources/assets/languages/term/zh.json @@ -496,7 +496,14 @@ "templateparametermapping": "模板参数映射", "targetparams": "目标参数", "selecttask": "选中工单", - "savedraft": "保存草稿" + "savedraft": "保存草稿", + "signreport": "签报", + "signreporttip": "所有审批流第1个步骤,均为创建签报步骤,不支持修改。创建签报的处理人,为流程中EOA节点的处理人,在流程管理中设置。", + "approvalpolicy": "审批策略", + "eoadealwithusertip": "模板设置处理人后,编辑流程时中不可修改处理人", + "approvalstep": "审批步骤", + "approvalprocess": "审批流", + "approvalprocesstip": "在【创建签报】节点之外,至少要添加一个节点" }, "autoexec": { "addrootdirectory": "添加根目录", diff --git a/src/views/pages/process/eoa/eoa-template-edit.vue b/src/views/pages/process/eoa/eoa-template-edit.vue index 494cb5960..926f401fb 100644 --- a/src/views/pages/process/eoa/eoa-template-edit.vue +++ b/src/views/pages/process/eoa/eoa-template-edit.vue @@ -2,11 +2,12 @@
@@ -23,9 +24,10 @@