From 73d6daacc7f05257e9a6f098724d69b9f1d6c4a4 Mon Sep 17 00:00:00 2001 From: yuebenshan Date: Thu, 4 Aug 2022 22:22:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88UI=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/component/flow/editFlow.html | 24 +- app/view/component/flow/editLine.html | 49 +- app/view/component/flow/editNode.html | 63 +- app/view/component/flow/flowNode.html | 5 +- app/view/component/flow/processFlow.html | 68 +- .../component/tpl/formItemListGenerator.html | 503 +++++++------ app/view/component/tpl/tplFormDesign.html | 9 +- app/view/page/taskCreateManagement.html | 58 +- app/view/page/taskHistoryManagement.html | 673 +++++++++--------- app/view/page/taskICreateManagement.html | 231 ++---- app/view/page/taskManagement.html | 287 ++------ app/view/page/taskRelatedManagement.html | 312 ++------ app/view/page/taskUpcomingManagement.html | 316 ++------ app/view/page/workflowEditor.html | 287 ++++++++ app/view/page/workflowManagement.html | 360 ++-------- package-lock.json | 285 ++++++-- package.json | 3 +- 17 files changed, 1542 insertions(+), 1991 deletions(-) create mode 100644 app/view/page/workflowEditor.html diff --git a/app/view/component/flow/editFlow.html b/app/view/component/flow/editFlow.html index ee03af9..4797fbc 100644 --- a/app/view/component/flow/editFlow.html +++ b/app/view/component/flow/editFlow.html @@ -11,17 +11,20 @@ --> - + - - - + + + GUID + - - + + 流程名称 + - - + + 备注 + @@ -38,6 +41,11 @@ isFormValid: true } }, + computed: { + isMobile() { + return window.innerWidth < 600; + }, + }, methods: { init(data) { this.flowData = data; diff --git a/app/view/component/flow/editLine.html b/app/view/component/flow/editLine.html index 9867ee0..ea26156 100644 --- a/app/view/component/flow/editLine.html +++ b/app/view/component/flow/editLine.html @@ -16,36 +16,44 @@ --> - + - - - + + + GUID + - - + + 源活动 + - - + + 目标活动 + - - + + 名称 + - + + 操作类型 - - + + 任务Resource + - - + + 备注说明 + @@ -74,6 +82,11 @@ deep: true } }, + computed: { + isMobile() { + return window.innerWidth < 600; + }, + }, methods: { init(item, lineTypeList) { this.isUpdate = false; @@ -85,4 +98,4 @@ }, } }) - \ No newline at end of file + diff --git a/app/view/component/flow/editNode.html b/app/view/component/flow/editNode.html index a888ceb..9896252 100644 --- a/app/view/component/flow/editNode.html +++ b/app/view/component/flow/editNode.html @@ -19,34 +19,42 @@ --> - - - + + + GUID + - - + + 名称 + - - + + 备注说明 + - - - + + + 名称 + - + + 名称 - + + 名称 - + - + + 名称 - + + 名称 \ No newline at end of file + diff --git a/app/view/component/flow/flowNode.html b/app/view/component/flow/flowNode.html index 5fcf0e9..56276fa 100644 --- a/app/view/component/flow/flowNode.html +++ b/app/view/component/flow/flowNode.html @@ -31,6 +31,9 @@ } }, computed: { + isMobile() { + return window.innerWidth < 600; + }, // 节点容器样式 flowNodeContainer: { get() { @@ -140,4 +143,4 @@ opacity: 0; cursor: crosshair; } - \ No newline at end of file + diff --git a/app/view/component/flow/processFlow.html b/app/view/component/flow/processFlow.html index 5d169b1..dcbac10 100644 --- a/app/view/component/flow/processFlow.html +++ b/app/view/component/flow/processFlow.html @@ -1,35 +1,52 @@ @@ -249,7 +266,7 @@ _this.jsPlumb.importDefaults(_this.jsplumbSetting) // 会使整个jsPlumb立即重绘。 _this.jsPlumb.setSuspendDrawing(false, true); - + // 初始化节点 _this.loadEasyFlow() @@ -466,12 +483,12 @@ if (!lineTypeList.includes(item.type) ) { // 1 - 删除画布连线 | 2 - 清空line的操作属性 // _this.jsPlumb.deleteConnection(conn) - + // 从 lineList 数组移除 // _this.data.lineList.splice(index,1); // 不渲染表单 // return - + // 默认修改类型为第一个 if (!preNode.id.includes('start-')) { if (add) { @@ -591,10 +608,7 @@ .flow-menu { width: 100px; - padding: 10px; - margin: 0 10px; border: 1px solid #EBEEF5; - padding: 12px; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1); word-break: break-all; border-radius: 4px; @@ -602,14 +616,17 @@ .menu-item { text-align: center; - box-shadow: 0 0 4px #696969; margin-bottom: 8px; cursor: pointer; font-size: 14px; color: #606266; + background: #FFFFFF; padding: 5px 0; border-radius: 5px; } + .menu-item:hover { + box-shadow: 0 0 10px rgba(0,0,0,0.1); + } .menu-item>i { font-size: 30px; @@ -626,14 +643,11 @@ .flow-edit-content { min-height: 100%; - background: #FFF; color: #606266; line-height: 1.4; text-align: justify; font-size: 14px; - border: 1px solid #EBEEF5; padding: 12px; - box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1); word-break: break-all; border-radius: 4px; } @@ -650,4 +664,4 @@ .csslabel .label-text { background-color: white; } - \ No newline at end of file + diff --git a/app/view/component/tpl/formItemListGenerator.html b/app/view/component/tpl/formItemListGenerator.html index ed88390..e88444c 100644 --- a/app/view/component/tpl/formItemListGenerator.html +++ b/app/view/component/tpl/formItemListGenerator.html @@ -1,121 +1,134 @@ @@ -144,111 +157,131 @@ diff --git a/app/view/component/tpl/tplFormDesign.html b/app/view/component/tpl/tplFormDesign.html index 2a1949b..4bc80db 100644 --- a/app/view/component/tpl/tplFormDesign.html +++ b/app/view/component/tpl/tplFormDesign.html @@ -79,6 +79,13 @@ height: 500px; max-height: 500px; overflow-y: auto; - border: 2px solid rgb(226, 226, 226); + } + @media (max-width: 500px) { + .tpl-form-design-container { + width: 100%; + height: auto; + max-height: none; + overflow-y: hidden; + } } diff --git a/app/view/page/taskCreateManagement.html b/app/view/page/taskCreateManagement.html index 3657407..c4e1140 100644 --- a/app/view/page/taskCreateManagement.html +++ b/app/view/page/taskCreateManagement.html @@ -5,34 +5,32 @@ - - + 流程列表 {{getConstantCollectionItemText('categoryList', index)}} - - + + {{it.workflowName}} @@ -41,29 +39,28 @@ - - - - {{ currentClickButton.title }}信息 + + {{ currentClickButton.title }}信息 - + mdi-close - + - - 任务标题 + + 任务标题 - - - {{formItem.component.outline}} + + + {{formItem.component.outline}} {{ index+1 }}、 {{ formItem.component.outline }} @@ -88,12 +85,11 @@ - - 保存 + + 保存 - 取消 + 取消 @@ -310,4 +306,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/view/page/taskHistoryManagement.html b/app/view/page/taskHistoryManagement.html index 433f565..43e7b67 100644 --- a/app/view/page/taskHistoryManagement.html +++ b/app/view/page/taskHistoryManagement.html @@ -4,113 +4,111 @@ - - - - + + + + - - 表单信息 - - - - - - - - - - - - - - - - - - - - - - - - - {{item.type}}-{{item.label}} - - - - - - 任务流转历史 - -
- -