From fae1bb9362a6fe453ae2b97a36fa2a9b289d808d Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Sat, 12 Oct 2024 10:27:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/dashboard/index.vue | 2 +-
src/views/record/index.vue | 46 ++++++++++++++++++++++++++---------
2 files changed, 35 insertions(+), 13 deletions(-)
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 3e3f399..3f1b4e1 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -2,7 +2,7 @@
diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index 1de46e9..21cb39e 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -11,6 +11,9 @@
查询
+
+
+ 重置
新增
@@ -30,7 +33,17 @@
+ :table-item="table_item">
+
+
+
+
+
+ {{item.name}}
+
+
+
+
@@ -53,13 +66,13 @@
-
+
查看
- 编辑
-
+ 编辑
+
删除
@@ -107,19 +120,20 @@
catalogList: [],
table_item: [{
type: 'index',
- width: 50
+ width: 50,
+ fixed:'left'
}, {
prop: 'title',
label: '标题',
align: 'left',
width: 360
},
- // {
- // prop: 'catalog_name',
- // label: '所属目录',
- // align: 'center',
- // width: 120
- // },
+ {
+ prop: 'catalog_name',
+ label: '所属目录',
+ align: 'center',
+ width: 120
+ },
{
prop: 'area_name',
label: '区域',
@@ -196,6 +210,12 @@
this.select.page_size = e
this.select.page = 1
this.getList()
+ },
+ resetSearch(){
+ this.select.page = 1
+ this.select.title = ''
+ this.select.catalog_id = ''
+ this.getList()
},
async getList() {
const res = await index({
@@ -203,7 +223,9 @@
page: this.select.page,
table_name: this.select.table_name,
json_data_fields: ['files', 'area_ids', 'tag_ids', 'catalog_id'],
- is_auth: 1,
+ is_auth: 1,
+ sort_type:'DESC',
+ sort_name:'date',
filter: [{
"key": "title",
"op": "like",