From 056b90b162116a87575123ce415a5f998d253828 Mon Sep 17 00:00:00 2001 From: case <7795958+lipangpang251@user.noreply.gitee.com> Date: Thu, 7 Jul 2022 15:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/task.js | 22 +- app/view/page/studentManagement.html | 361 ++++++++++++++++++++++ app/view/page/taskHistoryManagement.html | 2 +- app/view/page/taskICreateManagement.html | 345 +++++++++++++++++++++ app/view/page/taskManagement.html | 28 +- app/view/page/taskRelatedManagement.html | 345 +++++++++++++++++++++ app/view/page/taskUpcomingManagement.html | 343 ++++++++++++++++++++ 7 files changed, 1417 insertions(+), 29 deletions(-) create mode 100644 app/view/page/studentManagement.html create mode 100644 app/view/page/taskICreateManagement.html create mode 100644 app/view/page/taskRelatedManagement.html create mode 100644 app/view/page/taskUpcomingManagement.html diff --git a/app/service/task.js b/app/service/task.js index 6c0f14c..26137bf 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -32,6 +32,14 @@ const actionDataScheme = Object.freeze({ }); class TaskService extends Service { + async upcomingToUserId() { + const { userId, username } = this.ctx.userInfo; + this.ctx.request.body.appData.whereLike = { taskEditUserList: userId }; + } + async upcomingToUserId() { + const { userId, username } = this.ctx.userInfo; + this.ctx.request.body.appData.whereLike = { taskEditUserList: userId }; + } async whereToUserId() { const { where } = this.ctx.request.body.appData; const { userId, username } = this.ctx.userInfo; @@ -95,7 +103,7 @@ class TaskService extends Service { taskLineLabel: line.type + '-' + line.label, taskCostDuration: 0 } - const insert = await jianghuKnex(tableEnum.task_history).insert(history); + const insert = await jianghuKnex(tableEnum.task_history, this.ctx).insert(history); } else { throw new BizError(errorInfoEnum.article_not_found); @@ -229,14 +237,14 @@ class TaskService extends Service { ...taskInfo, taskExplain: currentNode.label, taskConfigId: currentNode.id, - taskHandleDesc: line.label + '-' + line.type, + taskHandleDesc: line.type + '-' + line.label, taskLineFrom: line.from, taskLineTo: line.to, taskLineLabel: line.type + '-' + line.label, taskCostDuration: parseInt((new Date().getTime() - new Date(prevHistory.operationAt).getTime()) / 1000) } - await jianghuKnex(tableEnum.task_history).insert(history); + await jianghuKnex(tableEnum.task_history, this.ctx).insert(history); // 修改任务步骤node 处理人\ const nextLineList = lineList.filter(e => e.from === line.to); if (line.to.includes('end-')) { @@ -248,15 +256,13 @@ class TaskService extends Service { taskLineFrom: line.from, taskLineTo: line.to, taskLineLabel: line.type + '-' + line.label, - taskCostDuration: 0, - operationByUser: username, - operationByUserId: userId, + taskCostDuration: 0 } - await jianghuKnex(tableEnum.task_history).insert(endHistory); + await jianghuKnex(tableEnum.task_history, this.ctx).insert(endHistory); } const taskEditUserList = await this.getProcessUserList([currentNode]); const nextNode = nodeList.find(e => e.id === line.to); - await jianghuKnex(tableEnum.task).where({taskId}).update({ + await jianghuKnex(tableEnum.task, this.ctx).where({taskId}).update({ taskFormInput, taskRemark, taskNextConfigList: JSON.stringify(nextLineList), diff --git a/app/view/page/studentManagement.html b/app/view/page/studentManagement.html new file mode 100644 index 0000000..1f341d0 --- /dev/null +++ b/app/view/page/studentManagement.html @@ -0,0 +1,361 @@ +{% extends 'template/jhTemplate.html'%} + +{% block vue_template %} + + + + + + + + + + + + + + 新增 + 共{{ tableData.length }}条记录 + + + + + + + + + + + 查询 + + + + + + + + + + + + + + + {{ currentClickButton.title }}信息 + + + mdi-close + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + + + + + + +{% endblock %} + +{% block vue_body %} + +{% include 'layout/jhLayout.html' %} +{% include 'common/resetTableMaxHeight.html' %} + + + + +{% endblock %} diff --git a/app/view/page/taskHistoryManagement.html b/app/view/page/taskHistoryManagement.html index b47f24e..a9a59d4 100644 --- a/app/view/page/taskHistoryManagement.html +++ b/app/view/page/taskHistoryManagement.html @@ -101,7 +101,7 @@ {{ item.taskExplain }} - {{ item.taskHandleDesc }} + {{ item.taskLineLabel }} {{ item.operationByUser}} {{ item.taskCostDuration }}秒 diff --git a/app/view/page/taskICreateManagement.html b/app/view/page/taskICreateManagement.html new file mode 100644 index 0000000..fa1e764 --- /dev/null +++ b/app/view/page/taskICreateManagement.html @@ -0,0 +1,345 @@ +{% extends 'template/jhTemplate.html'%} + +{% block vue_template %} +SQL END!--> + + + + + + + + + + + 新增 + 共{{ tableData.length }}条记录 + + + + + + + + + + + + + + + + + + + + + + {{ currentClickButton.title }}信息 + + + mdi-close + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + + + + + + +{% endblock %} + +{% block vue_body %} + +{% include 'layout/jhLayout.html' %} +{% include 'common/resetTableMaxHeight.html' %} + + + + +{% endblock %} diff --git a/app/view/page/taskManagement.html b/app/view/page/taskManagement.html index 8709cb7..8ce2a17 100644 --- a/app/view/page/taskManagement.html +++ b/app/view/page/taskManagement.html @@ -8,26 +8,6 @@ SQL END!--> - - - - - - - - - - 查询 - - - - - @@ -41,6 +21,14 @@ SQL END!--> + + 查询 + + + + + + + + + + + + 新增 + 共{{ tableData.length }}条记录 + + + + + + + + + + + + + + + + + + + + + + {{ currentClickButton.title }}信息 + + + mdi-close + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + + + + + + +{% endblock %} + +{% block vue_body %} + +{% include 'layout/jhLayout.html' %} +{% include 'common/resetTableMaxHeight.html' %} + + + + +{% endblock %} diff --git a/app/view/page/taskUpcomingManagement.html b/app/view/page/taskUpcomingManagement.html new file mode 100644 index 0000000..8d55fe1 --- /dev/null +++ b/app/view/page/taskUpcomingManagement.html @@ -0,0 +1,343 @@ +{% extends 'template/jhTemplate.html'%} + +{% block vue_template %} +SQL END!--> + + + + + + + + + + 共{{ tableData.length }}条记录 + + + + + + + + + + + + + + + + + + + + + + {{ currentClickButton.title }}信息 + + + mdi-close + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + + + + + + +{% endblock %} + +{% block vue_body %} + +{% include 'layout/jhLayout.html' %} +{% include 'common/resetTableMaxHeight.html' %} + + + + +{% endblock %}