From 01fa4d418174e5862db206663fa4a9de95298463 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Wed, 2 Mar 2022 16:04:29 +0800 Subject: [PATCH] erjidanweibaosong --- client/src/api/record.js | 10 +++++++++- client/src/views/supervision/mytaskrecord.vue | 16 ++++++++++++++++ client/src/views/supervision/record.vue | 10 +++++++--- client/src/views/supervision/recorddo.vue | 18 ++++++++++++++++-- client/src/views/supervision/taskdo.vue | 6 ++++++ .../migrations/0029_record_dept_yes.py | 18 ++++++++++++++++++ .../migrations/0030_auto_20220302_1103.py | 18 ++++++++++++++++++ server/apps/supervision/models.py | 1 + server/apps/supervision/views.py | 18 ++++++++++++++++-- 9 files changed, 107 insertions(+), 8 deletions(-) create mode 100644 server/apps/supervision/migrations/0029_record_dept_yes.py create mode 100644 server/apps/supervision/migrations/0030_auto_20220302_1103.py diff --git a/client/src/api/record.js b/client/src/api/record.js index 080a6eb..abf1667 100644 --- a/client/src/api/record.js +++ b/client/src/api/record.js @@ -76,4 +76,12 @@ export function createRecord(data) { method: 'post', data }) -} \ No newline at end of file +} + +export function deptconfirm(id) { + return request({ + url: `/supervision/record/${id}/deptconfirm/`, + method: 'put', + }) +} + diff --git a/client/src/views/supervision/mytaskrecord.vue b/client/src/views/supervision/mytaskrecord.vue index 3869bb5..240cb35 100644 --- a/client/src/views/supervision/mytaskrecord.vue +++ b/client/src/views/supervision/mytaskrecord.vue @@ -38,6 +38,12 @@ + + +