From 0351b6a7a49b35a1de7890088ebbec8cb87cea09 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 30 Mar 2021 17:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E8=A6=81=E6=B1=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/record.js | 8 + client/src/api/task.js | 14 + client/src/views/supervision/content.vue | 124 ++-- client/src/views/supervision/record.vue | 32 +- client/src/views/supervision/recorddo.vue | 16 +- client/src/views/supervision/report.vue | 2 +- client/src/views/supervision/task.vue | 46 +- client/src/views/supervision/taskdo.vue | 666 ++++++------------ client/src/views/supervision/taskdo_.vue | 624 ++++++++++++++++ client/src/views/supervision/taskinit.vue | 2 +- client/src/views/system/organization.vue | 222 +++--- .../migrations/0011_auto_20210330_1020.py | 35 + .../supervision/migrations/0012_taskdept.py | 29 + .../migrations/0013_auto_20210330_1200.py | 29 + .../migrations/0014_auto_20210330_1557.py | 23 + server/apps/supervision/models.py | 19 +- server/apps/supervision/serializers.py | 8 +- server/apps/supervision/views.py | 138 +++- .../0009_organization_can_supervision.py | 18 + server/apps/system/models.py | 1 + server/apps/system/serializers.py | 3 +- server/apps/system/views.py | 2 +- 22 files changed, 1417 insertions(+), 644 deletions(-) create mode 100644 client/src/views/supervision/taskdo_.vue create mode 100644 server/apps/supervision/migrations/0011_auto_20210330_1020.py create mode 100644 server/apps/supervision/migrations/0012_taskdept.py create mode 100644 server/apps/supervision/migrations/0013_auto_20210330_1200.py create mode 100644 server/apps/supervision/migrations/0014_auto_20210330_1557.py create mode 100644 server/apps/system/migrations/0009_organization_can_supervision.py diff --git a/client/src/api/record.js b/client/src/api/record.js index 5543183..9eacd26 100644 --- a/client/src/api/record.js +++ b/client/src/api/record.js @@ -34,6 +34,14 @@ export function updateRecord(id, data) { data }) } +export function updateRecords(data) { + return request({ + url: '/supervision/record/updates/', + method: 'put', + data + }) +} + export function createself(data) { return request({ url: `/supervision/record/createself/`, diff --git a/client/src/api/task.js b/client/src/api/task.js index 2988182..bf39389 100644 --- a/client/src/api/task.js +++ b/client/src/api/task.js @@ -68,4 +68,18 @@ export function starttask(id) { url: `/supervision/task/${id}/start/`, method: 'put' }) +} + +export function closetask(id) { + return request({ + url: `/supervision/task/${id}/close/`, + method: 'put' + }) +} + +export function gettaskdeptall(id) { + return request({ + url: `/supervision/task/${id}/deptall/`, + method: 'get' + }) } \ No newline at end of file diff --git a/client/src/views/supervision/content.vue b/client/src/views/supervision/content.vue index 3e8386f..6932a48 100644 --- a/client/src/views/supervision/content.vue +++ b/client/src/views/supervision/content.vue @@ -5,55 +5,63 @@ >新增 - - - - - - - - - + + + + + + + + + - - - - -