From 76b12328ee2c2d575ae6d72809d9e7a54d77853c Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Fri, 19 Mar 2021 08:27:23 +0800
Subject: [PATCH 1/2] xial
---
client/src/router/index.js | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/client/src/router/index.js b/client/src/router/index.js
index 2482531..01247ce 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -46,12 +46,7 @@ export const constantRoutes = [
component: () => import('@/views/dashboard/index'),
meta: { title: '首页', icon: 'dashboard' }
}]
- },
- {
- path: '/404',
- component: () => import('@/views/404'),
- hidden: true
- },
+ }
]
/**
@@ -247,9 +242,9 @@ export const asyncRoutes = [
]
},
{
- path: '/changepassword',
+ path: 'changepassword',
component: Layout,
- redirect: '/changepassword',
+ redirect: 'changepassword',
name: 'ChangePW',
meta: { title: '修改密码', icon: 'tree' },
hidden:true,
@@ -262,9 +257,7 @@ export const asyncRoutes = [
hidden: true
},
]
- },
- // 404 page must be placed at the end !!!
- { path: '*', redirect: '/404', hidden: true }
+ }
]
const createRouter = () => new Router({
From 5069df82e9578dbf742f84fdb74d7be765881937 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Fri, 19 Mar 2021 13:29:02 +0800
Subject: [PATCH 2/2] liebiaogengxin
---
client/src/views/supervision/record.vue | 90 ++++++++++++++++++++++---
server/apps/supervision/filters.py | 3 +-
2 files changed, 82 insertions(+), 11 deletions(-)
diff --git a/client/src/views/supervision/record.vue b/client/src/views/supervision/record.vue
index 137fbf3..2c81693 100644
--- a/client/src/views/supervision/record.vue
+++ b/client/src/views/supervision/record.vue
@@ -9,7 +9,21 @@
class="filter-item"
@keyup.enter.native="handleFilter"
/>
-
+
+
+
-
-
+
+
+ 主动上报
+
+
+
+
+
+
-
- {{
+
+
+ {{
scope.row.task_.name
- }}
+ }}
+
+ 主动报送
+
+
{{ scope.row.content_.name }}
-
+
{{ scope.row.up_date }}
@@ -101,7 +143,7 @@
scope.row.up_user_.name
}}
-
+
{{ scope.row.end_date }}
@@ -225,8 +267,10 @@
diff --git a/server/apps/supervision/filters.py b/server/apps/supervision/filters.py
index 4bc0dfb..a72bf80 100644
--- a/server/apps/supervision/filters.py
+++ b/server/apps/supervision/filters.py
@@ -8,6 +8,7 @@ class RecordFilter(filters.FilterSet):
belong_dept=filters.NumberFilter(field_name='belong_dept')
content_name = filters.CharFilter(field_name='content__name')
state = filters.CharFilter(field_name='state',lookup_expr='icontains')
+ isself = filters.BooleanFilter(field_name='is_self', lookup_expr='isnull')
class Meta:
model = Record
- fields = ['up_date','content__name','belong_dept','state', 'task', 'content']
+ fields = ['up_date','content__name','belong_dept','state','is_self','task', 'content']