From d418e9b85324eaa30d89cf3eb0908c0f6036a52b Mon Sep 17 00:00:00 2001 From: cxx Date: Wed, 24 Apr 2024 11:46:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=AE=A1=E6=89=B9=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/component/createTaskDrawer.html | 298 ++++++++++++++++++ app/view/component/flow/editNode.html | 37 ++- app/view/component/tpl/formComponentList.html | 119 +++++++ .../component/tpl/formItemListGenerator.html | 82 +---- app/view/component/workflowEditorDrawer.html | 4 +- app/view/page/workflowManagement.html | 27 +- 6 files changed, 458 insertions(+), 109 deletions(-) create mode 100644 app/view/component/createTaskDrawer.html create mode 100644 app/view/component/tpl/formComponentList.html diff --git a/app/view/component/createTaskDrawer.html b/app/view/component/createTaskDrawer.html new file mode 100644 index 0000000..f3bbd9b --- /dev/null +++ b/app/view/component/createTaskDrawer.html @@ -0,0 +1,298 @@ + + + + + \ No newline at end of file diff --git a/app/view/component/flow/editNode.html b/app/view/component/flow/editNode.html index 24ac7ba..d9be491 100644 --- a/app/view/component/flow/editNode.html +++ b/app/view/component/flow/editNode.html @@ -133,7 +133,7 @@ item-text="text" item-value="priority" class="jh-v-input" - label="审批人类型" + label="优先级" v-model="node.priority" > @@ -141,6 +141,7 @@ 条件组 @@ -315,8 +320,8 @@ operators: { 'single': [{ text: '包含', value: 'include' }], 'multiple': [{ text: '完全包含', value: 'fullInclude' }, { text: '其一包含', value: 'oneInclude'}], - 'number': [{ text: '小于', value: 'less' }, { text: '小于等于', value: 'lessEqual'}, { text: '等于', value: 'equal'}, - { text: '大于等于', value: 'moreEqual'}, { text: '大于', value: 'more'}, { text: '介于(a≤x≤b)', value: 'between'},] + 'number': [{ text: '小于', value: '<', value1: 'less' }, { text: '小于等于', value: '<=', value1: 'lessEqual'}, { text: '等于', value: '==', value1: 'equal'}, + { text: '大于等于', value: '>=', value1: 'moreEqual'}, { text: '大于', value: '>', value1: 'more'}, { text: '介于(a≤x≤b)', value: 'between'},] } }, @@ -430,14 +435,22 @@ var conditionItem = this.conditions.find(c => c.id == id) item.type = conditionItem.type || null item.express = null - item.option = item.type == 'number'? { begin: null, end: null} : null + // item.option = item.type == 'number'? { begin: null, end: null} : null + item.option = null + }, + changeExpress(express, item){ + if(item.type == 'number' && express == 'between'){ + this.$set(item, 'option', { begin: null, end: null}) + }else{ + this.$set(item, 'option', null) + } + this.$forceUpdate() + console.log('changeExpress', item, express); }, closeConditionGroupDialog(){ this.$forceUpdate() this.$emit('reflesh-workflow') this.isConditionGroupShown = false - - }, getOptionList(item){ if(!item.id) return [] @@ -445,7 +458,7 @@ return this.user.map(u => { return { text: u.username, - value: u.id + value: u.userId } }) }else{ diff --git a/app/view/component/tpl/formComponentList.html b/app/view/component/tpl/formComponentList.html new file mode 100644 index 0000000..1059495 --- /dev/null +++ b/app/view/component/tpl/formComponentList.html @@ -0,0 +1,119 @@ + + +{% include 'component/common/dateTimePicker.html' %} + + + + \ No newline at end of file diff --git a/app/view/component/tpl/formItemListGenerator.html b/app/view/component/tpl/formItemListGenerator.html index d463c11..c433e4b 100644 --- a/app/view/component/tpl/formItemListGenerator.html +++ b/app/view/component/tpl/formItemListGenerator.html @@ -69,79 +69,7 @@ - - - - - -
请添加选项~
-
- - - - -
请添加选项~
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ @@ -223,6 +151,8 @@ +{% include 'component/tpl/formComponentList.html' %} + diff --git a/app/view/component/workflowEditorDrawer.html b/app/view/component/workflowEditorDrawer.html index d5a23d1..6cc03fc 100644 --- a/app/view/component/workflowEditorDrawer.html +++ b/app/view/component/workflowEditorDrawer.html @@ -95,12 +95,10 @@ {% include 'component/tpl/tplFormDesign.html' %} {% include 'component/tpl/formItemListGenerator.html' %} -{% include 'component/tpl/formItemListReview.html' %} {% include 'component/flow/processFlow.html' %} {% include 'component/flow/editLine.html' %} {% include 'component/flow/editNode.html' %} {% include 'component/workflowBasicInfo.html' %} -{% include 'component/common/dateTimePicker.html' %}