From b32d3c9648c7df6e356a4c1bb40923682fed181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Fri, 16 Jun 2023 14:05:27 +0800 Subject: [PATCH] up --- src/api/daily/index.js | 12 ++++++- src/views/daily/index.vue | 75 ++++++++++++++++++++++++++++++++++----- 2 files changed, 78 insertions(+), 9 deletions(-) diff --git a/src/api/daily/index.js b/src/api/daily/index.js index 5ca4e8d..b3a9d46 100644 --- a/src/api/daily/index.js +++ b/src/api/daily/index.js @@ -22,8 +22,18 @@ export function save(data) { method: 'post', data }) +} + + +export function delDep(id) { + return request({ + url: '/api/admin/task/task-department-destroy', + method: 'get', + params: { + id + } + }) } - export function del(safety_task_id) { return request({ url: '/api/admin/task/destroy', diff --git a/src/views/daily/index.vue b/src/views/daily/index.vue index 3f7fcf1..0658e39 100644 --- a/src/views/daily/index.vue +++ b/src/views/daily/index.vue @@ -38,11 +38,15 @@
- + {{tag.departments.name}}
+
+ {{scope.row[column.field]?scope.row[column.field].value:""}} +
{{scope.row[column.field]?scope.row[column.field].name:""}}
@@ -105,6 +109,8 @@
+ + @@ -115,12 +121,19 @@ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> - + + + + + +
+ + @@ -133,7 +146,8 @@
- {{dept.name}} + {{dept.name}}
@@ -153,6 +167,9 @@