From 1abf8ffda428832088c5953784b8d7c479ea9448 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 23 Nov 2023 09:36:12 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Analysis.vue | 109 +++++--- .../dashboard/modules/FriendLinkCard.vue | 79 ++++++ .../dashboard/modules/QuickEnterCard.vue | 84 +++++++ .../modules/SearchAndWarningCard.vue | 237 ++++++++++++++++++ src/views/dashboard/modules/ToDoTaskCard.vue | 15 ++ src/views/dashboard/search/GeneralSearch.vue | 26 ++ 6 files changed, 521 insertions(+), 29 deletions(-) create mode 100644 src/views/dashboard/modules/FriendLinkCard.vue create mode 100644 src/views/dashboard/modules/QuickEnterCard.vue create mode 100644 src/views/dashboard/modules/SearchAndWarningCard.vue create mode 100644 src/views/dashboard/modules/ToDoTaskCard.vue diff --git a/src/views/dashboard/Analysis.vue b/src/views/dashboard/Analysis.vue index 26cd4296..5af4564f 100644 --- a/src/views/dashboard/Analysis.vue +++ b/src/views/dashboard/Analysis.vue @@ -1,46 +1,97 @@ \ No newline at end of file + diff --git a/src/views/dashboard/modules/FriendLinkCard.vue b/src/views/dashboard/modules/FriendLinkCard.vue new file mode 100644 index 00000000..643cf946 --- /dev/null +++ b/src/views/dashboard/modules/FriendLinkCard.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/src/views/dashboard/modules/QuickEnterCard.vue b/src/views/dashboard/modules/QuickEnterCard.vue new file mode 100644 index 00000000..eaa159b1 --- /dev/null +++ b/src/views/dashboard/modules/QuickEnterCard.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/views/dashboard/modules/SearchAndWarningCard.vue b/src/views/dashboard/modules/SearchAndWarningCard.vue new file mode 100644 index 00000000..00053f66 --- /dev/null +++ b/src/views/dashboard/modules/SearchAndWarningCard.vue @@ -0,0 +1,237 @@ + + + + + diff --git a/src/views/dashboard/modules/ToDoTaskCard.vue b/src/views/dashboard/modules/ToDoTaskCard.vue new file mode 100644 index 00000000..793b2357 --- /dev/null +++ b/src/views/dashboard/modules/ToDoTaskCard.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue index 07745b6f..381cdfe1 100644 --- a/src/views/dashboard/search/GeneralSearch.vue +++ b/src/views/dashboard/search/GeneralSearch.vue @@ -164,6 +164,32 @@ export default { } } }, + mounted () { + // 初始化检索方式 + if (this.$route.query.type === 'title') { + // 标题检索 + this.retrievalModeCurrent = '2' + } else if (this.$route.query.type === 'fullText') { + // 全文检索 + this.retrievalModeCurrent = '1' + } + // 初始化资源类型 + if (this.$route.query.resourceType) { + this.resourceTypeCurrent = this.$route.query.resourceType + } + // 初始化搜索内容 + if (this.$route.query.searchValue) { + this.searchValue = this.$route.query.searchValue + } + // 资源类型不是全部,并且有搜索内容时获取筛选条件 + if (this.resourceTypeCurrent !== 'all' && this.searchValue) { + this.initFilterData() + } + // 有搜索内容时,调用查询方法 + if (this.searchValue) { + this.onSearch(1) + } + }, methods: { // 获取要显示数量的筛选条件的数据 initFilterData () {