From e732f79fb39ca207464705308c9ee2deb3a79307 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期二, 03 十二月 2024 11:21:41 +0800 Subject: [PATCH] 后台任务状态实时刷新同步后台更改 1. startTime和endTime对象结构修改 2. runTime根据后端逻辑生成runTime --- src/views/fysp/task/TaskProxy.js | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/src/views/fysp/task/TaskProxy.js b/src/views/fysp/task/TaskProxy.js index 076fcbb..7433661 100644 --- a/src/views/fysp/task/TaskProxy.js +++ b/src/views/fysp/task/TaskProxy.js @@ -4,5 +4,28 @@ */ ceateSubTask(){ + }, + + /** + * 鏍规嵁澶氶�変笅鎷夋鐨勯�夐」鍊硷紝杩斿洖浠诲姟鎵ц浜哄璞� + * @returns + */ + getExecutors(data, executorOptions) { + const ids = []; + const uNames = []; + const rNames = []; + executorOptions.forEach((e) => { + const index = data.indexOf(e.value); + if (index != -1) { + ids.push(e.data.guid); + uNames.push(e.data.acountname); + rNames.push(e.data.realname); + } + }); + return { + id: ids.join('#'), + uName: uNames.join('#'), + rName: rNames.join('#') + }; } } \ No newline at end of file -- Gitblit v1.9.3