From c8b26e675a4fcac3a8e324a577a0e0a360ea69ae Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 31 Mar 2021 09:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=8F=B8=E7=BA=A7=E5=88=AB=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/store/modules/user.js | 6 +++- client/src/views/supervision/record.vue | 3 +- client/src/views/supervision/recorddo.vue | 17 +++++++++-- client/src/views/supervision/taskdo.vue | 4 ++- client/src/views/system/organization.vue | 28 +++++++++---------- .../migrations/0015_record_opinion.py | 18 ++++++++++++ .../migrations/0010_auto_20210331_0831.py | 18 ++++++++++++ .../migrations/0011_auto_20210331_0842.py | 19 +++++++++++++ .../migrations/0012_auto_20210331_0849.py | 19 +++++++++++++ .../0013_remove_organization_type.py | 17 +++++++++++ .../migrations/0014_organization_type.py | 19 +++++++++++++ .../migrations/0015_auto_20210331_0906.py | 21 ++++++++++++++ server/apps/system/models.py | 8 +----- server/apps/system/serializers.py | 7 +++-- server/apps/system/views.py | 9 +++--- 15 files changed, 179 insertions(+), 34 deletions(-) create mode 100644 server/apps/supervision/migrations/0015_record_opinion.py create mode 100644 server/apps/system/migrations/0010_auto_20210331_0831.py create mode 100644 server/apps/system/migrations/0011_auto_20210331_0842.py create mode 100644 server/apps/system/migrations/0012_auto_20210331_0849.py create mode 100644 server/apps/system/migrations/0013_remove_organization_type.py create mode 100644 server/apps/system/migrations/0014_organization_type.py create mode 100644 server/apps/system/migrations/0015_auto_20210331_0906.py diff --git a/client/src/store/modules/user.js b/client/src/store/modules/user.js index c62c6b7..45701e8 100644 --- a/client/src/store/modules/user.js +++ b/client/src/store/modules/user.js @@ -28,6 +28,9 @@ const mutations = { }, SET_PERMS: (state, perms) => { state.perms = perms + }, + SET_DEPT: (state, dept) => { + state.dept = dept } } @@ -100,7 +103,7 @@ const actions = { reject('验证失败,重新登陆.') } - const { perms, name, avatar } = data + const { perms, name, avatar, dept } = data // perms must be a non-empty array if (!perms || perms.length <= 0) { @@ -110,6 +113,7 @@ const actions = { commit('SET_PERMS', perms) commit('SET_NAME', name) commit('SET_AVATAR', avatar) + commit('SET_DEPT', dept) resolve(data) }).catch(error => { reject(error) diff --git a/client/src/views/supervision/record.vue b/client/src/views/supervision/record.vue index 0f35bd0..76d5838 100644 --- a/client/src/views/supervision/record.vue +++ b/client/src/views/supervision/record.vue @@ -219,7 +219,8 @@
报送要求/备注 + {{ record.note }}
@@ -42,11 +43,12 @@
上报说明 + {{ record.noteb }}
@@ -57,6 +59,17 @@ :disabled="data.action == 'view'" > +
+ 修改意见 + {{ record.opinion }} + + +
已上传文件
diff --git a/client/src/views/supervision/taskdo.vue b/client/src/views/supervision/taskdo.vue index b0e7604..e97ae34 100644 --- a/client/src/views/supervision/taskdo.vue +++ b/client/src/views/supervision/taskdo.vue @@ -104,7 +104,9 @@ + }} + {{scope.row.dept_.type_name}} + diff --git a/client/src/views/system/organization.vue b/client/src/views/system/organization.vue index ea2345c..f17d0dd 100644 --- a/client/src/views/system/organization.vue +++ b/client/src/views/system/organization.vue @@ -31,11 +31,11 @@ :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - + - +