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 () {