From 4efefba09fae415527a30620785d7c6b0718b29b Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Mon, 23 Aug 2021 16:02:46 +0800
Subject: [PATCH] nengli
---
client/src/router/index.js | 2 +-
client/src/views/ability/records.vue | 42 ++++++++++++++++++++++------
2 files changed, 34 insertions(+), 10 deletions(-)
diff --git a/client/src/router/index.js b/client/src/router/index.js
index 4090c82..9eca5e6 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -119,7 +119,7 @@ export const asyncRoutes = [
path: 'records',
name: 'Records',
component: () => import('@/views/ability/records.vue'),
- meta: { title: '资质能力报送任务', perms: ['records_view'] }
+ meta: { title: '资质能力报送任务', perms: ['record_view'] }
},
]
diff --git a/client/src/views/ability/records.vue b/client/src/views/ability/records.vue
index aded3e3..8614fe3 100644
--- a/client/src/views/ability/records.vue
+++ b/client/src/views/ability/records.vue
@@ -48,8 +48,8 @@
-
+
{{ scope.row.noteb }}
-
+
@@ -71,6 +71,15 @@
+
+ {{
+ scope.row.belong_dept_.name
+ }}
+
+
@@ -184,13 +200,14 @@ import { getRecordList, createRecord, updateRecord,
deleteRecord, } from "@/api/record";
import { getContentList } from "@/api/content";
import checkPermission from "@/utils/permission";
+import Pagination from "@/components/Pagination";
import { upUrl, upHeaders } from "@/api/file";
const defaultContent = {
noteb:"",
files:[],
};
export default {
- components: { },
+ components: {Pagination },
data() {
return {
@@ -202,7 +219,10 @@ export default {
fileList: [],
recordTable:defaultContent,
TableList: [],
-
+ listQuery: {
+ page: 1,
+ page_size: 20,
+ },
listLoading: true,
dialogType: "new",
@@ -233,7 +253,8 @@ export default {
},
getrecordlist(){
- getRecordList({pageoff:true,can_doself: true}).then((response) => {
+ this.listQuery.can_doself= true;
+ getRecordList(this.listQuery).then((response) => {
if (response.data) {
this.TableList = response.data;
}
@@ -241,8 +262,11 @@ export default {
},
//点击材料清大,弹出该清单下对应报送任务
recorclickRow(row) {
- this.content=row.id;
- getRecordList({pageoff:true,can_doself: true,content:this.content}).then((response) => {
+ this.listQuery.can_doself= true;
+ this.listQuery.content= row.id;
+ this.content = row.id;
+
+ getRecordList(this.listQuery).then((response) => {
if (response.data) {
this.TableList = response.data;
}