diff --git a/app/public/images/task-template-icon/10001.png b/app/public/images/task-template-icon/10001.png new file mode 100644 index 0000000..81904e7 Binary files /dev/null and b/app/public/images/task-template-icon/10001.png differ diff --git a/app/public/images/task-template-icon/10002.png b/app/public/images/task-template-icon/10002.png new file mode 100644 index 0000000..0402d2f Binary files /dev/null and b/app/public/images/task-template-icon/10002.png differ diff --git a/app/public/images/task-template-icon/10003.png b/app/public/images/task-template-icon/10003.png new file mode 100644 index 0000000..90cee64 Binary files /dev/null and b/app/public/images/task-template-icon/10003.png differ diff --git a/app/public/images/task-template-icon/10004.png b/app/public/images/task-template-icon/10004.png new file mode 100644 index 0000000..892b1dc Binary files /dev/null and b/app/public/images/task-template-icon/10004.png differ diff --git a/app/public/images/task-template-icon/10005.png b/app/public/images/task-template-icon/10005.png new file mode 100644 index 0000000..805882e Binary files /dev/null and b/app/public/images/task-template-icon/10005.png differ diff --git a/app/public/images/task-template-icon/10006.png b/app/public/images/task-template-icon/10006.png new file mode 100644 index 0000000..9bbbe96 Binary files /dev/null and b/app/public/images/task-template-icon/10006.png differ diff --git a/app/public/images/task-template-icon/10007.png b/app/public/images/task-template-icon/10007.png new file mode 100644 index 0000000..c925c1e Binary files /dev/null and b/app/public/images/task-template-icon/10007.png differ diff --git a/app/public/images/task-template-icon/10008.png b/app/public/images/task-template-icon/10008.png new file mode 100644 index 0000000..7029ba0 Binary files /dev/null and b/app/public/images/task-template-icon/10008.png differ diff --git a/app/public/images/task-template-icon/10009.png b/app/public/images/task-template-icon/10009.png new file mode 100644 index 0000000..87f0e7c Binary files /dev/null and b/app/public/images/task-template-icon/10009.png differ diff --git a/app/public/images/task-template-icon/10010.png b/app/public/images/task-template-icon/10010.png new file mode 100644 index 0000000..21b844e Binary files /dev/null and b/app/public/images/task-template-icon/10010.png differ diff --git a/app/public/images/task-template-icon/10011.png b/app/public/images/task-template-icon/10011.png new file mode 100644 index 0000000..18c2ecd Binary files /dev/null and b/app/public/images/task-template-icon/10011.png differ diff --git a/app/public/images/task-template-icon/10012.png b/app/public/images/task-template-icon/10012.png new file mode 100644 index 0000000..530cf60 Binary files /dev/null and b/app/public/images/task-template-icon/10012.png differ diff --git a/app/public/images/task-template-icon/10013.png b/app/public/images/task-template-icon/10013.png new file mode 100644 index 0000000..3aa71a4 Binary files /dev/null and b/app/public/images/task-template-icon/10013.png differ diff --git a/app/public/images/task-template-icon/10014.png b/app/public/images/task-template-icon/10014.png new file mode 100644 index 0000000..28fe5a8 Binary files /dev/null and b/app/public/images/task-template-icon/10014.png differ diff --git a/app/public/images/task-template-icon/10015.png b/app/public/images/task-template-icon/10015.png new file mode 100644 index 0000000..3319fd8 Binary files /dev/null and b/app/public/images/task-template-icon/10015.png differ diff --git a/app/public/images/task-template-icon/10016.png b/app/public/images/task-template-icon/10016.png new file mode 100644 index 0000000..77bcdd2 Binary files /dev/null and b/app/public/images/task-template-icon/10016.png differ diff --git a/app/public/images/task-template-icon/10017.png b/app/public/images/task-template-icon/10017.png new file mode 100644 index 0000000..860bc92 Binary files /dev/null and b/app/public/images/task-template-icon/10017.png differ diff --git a/app/public/task-template-icons.js b/app/public/task-template-icons.js new file mode 100644 index 0000000..6dfea57 --- /dev/null +++ b/app/public/task-template-icons.js @@ -0,0 +1,19 @@ +var materialDesignIcons = [ + '/images/task-template-icon/10001.png', + '/images/task-template-icon/10002.png', + '/images/task-template-icon/10003.png', + '/images/task-template-icon/10004.png', + '/images/task-template-icon/10005.png', + '/images/task-template-icon/10006.png', + '/images/task-template-icon/10007.png', + '/images/task-template-icon/10008.png', + '/images/task-template-icon/10009.png', + '/images/task-template-icon/10010.png', + '/images/task-template-icon/10011.png', + '/images/task-template-icon/10012.png', + '/images/task-template-icon/10013.png', + '/images/task-template-icon/10014.png', + '/images/task-template-icon/10015.png', + '/images/task-template-icon/10016.png', + '/images/task-template-icon/10017.png', +] \ No newline at end of file diff --git a/app/service/hook.js b/app/service/hook.js deleted file mode 100644 index a268f65..0000000 --- a/app/service/hook.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -const Service = require('egg').Service; - -class HookService extends Service { - async executeFinishLine(actionData) { - const { taskId } = actionData; - // 根据任务ID找到绑定的业务数据,进行处理 - console.log("审批结束", actionData) - } - async executeRejectLine(actionData) { - console.log("审批拒绝", actionData) - } -} - -module.exports = HookService; diff --git a/app/view/component/createTaskDrawer.html b/app/view/component/createTaskDrawer.html index 990817d..1855754 100644 --- a/app/view/component/createTaskDrawer.html +++ b/app/view/component/createTaskDrawer.html @@ -8,51 +8,61 @@ - - {{ index + 1 }}. {{ formItem.statement }}* - - + + 审批流程 - -
-
-
- mdi-account-circle - mdi-send-circle -
-
-
-
- {{node.properties.label}} - - {{node.properties.approvalType}} - + + @@ -111,7 +121,7 @@ - +{% include 'component/tpl/tplFormDesign.html' %} +{% include 'component/flow/editLine.html' %} +{% include 'component/flow/editNode.html' %} + - - diff --git a/app/view/component/tpl/tplFormDesign.html b/app/view/component/tpl/tplFormDesign.html index 110c5cd..a04d4f0 100644 --- a/app/view/component/tpl/tplFormDesign.html +++ b/app/view/component/tpl/tplFormDesign.html @@ -4,28 +4,11 @@ - -
+ +{% include 'component/tpl/formItemListGenerator.html' %} + + - -
-
- -{% endblock %} - -{% block vueScript %} - - -{% include 'component/formItem.html' %} - - - - - -{% endblock %} \ No newline at end of file diff --git a/app/view/page/taskApply.html b/app/view/page/taskApply.html new file mode 100644 index 0000000..155f30c --- /dev/null +++ b/app/view/page/taskApply.html @@ -0,0 +1,171 @@ +{% extends 'template/jhTemplateV4.html'%} + +{% block vueTemplate %} + + +
+ +{% endblock %} +{% block vueScript %} + +{% include 'component/createTaskDrawer.html' %} + + + + +{% endblock %} diff --git a/app/view/page/taskHistory.html b/app/view/page/taskHistory.html index f51683d..31a7b93 100644 --- a/app/view/page/taskHistory.html +++ b/app/view/page/taskHistory.html @@ -164,7 +164,6 @@ isHelpPageDrawerShown: false, // 表格相关数据 isTableZebraLineShown: true, - // 生日日期选择 validationRules: { requireRules: [ v => !!v || 'This is required', @@ -187,6 +186,9 @@ }, // 计算 computed: { + isMobile() { + return window.innerWidth < 600; + }, }, watch: { }, @@ -199,9 +201,6 @@ case 'getTableData': await this.getTableData(); break; - case 'openDataPicker': - await this.openDataPicker(uiActionData); - break; case 'startUpdateItem': await this.prepareViewItemData(uiActionData); await this.openViewDrawer(); diff --git a/app/view/page/workflowEditor.html b/app/view/page/workflowEditor.html deleted file mode 100644 index 6f66eac..0000000 --- a/app/view/page/workflowEditor.html +++ /dev/null @@ -1,375 +0,0 @@ -{% extends 'template/jhTemplateV4.html'%} - -{% block vueTemplate %} - - - -
-
-{% endblock %} - -{% block vueScript %} -{% include 'component/flow/processFlow.html' %} -{% include 'component/flow/editLine.html' %} -{% include 'component/flow/editNode.html' %} -{% include 'component/tpl/tplFormDesign.html' %} -{% include 'component/tpl/formItemListGenerator.html' %} -{% include 'component/tpl/formItemListReview.html' %} - - - - -{% endblock %} diff --git a/app/view/page/workflowManagement.html b/app/view/page/workflowManagement.html index ba5dd9b..09ca6ed 100644 --- a/app/view/page/workflowManagement.html +++ b/app/view/page/workflowManagement.html @@ -11,7 +11,7 @@
-
发起任务 +
审批模版 mdi-help-circle-outline帮助 @@ -53,9 +53,6 @@