From 07c8cfbf0e9e123bea28396b34aaf1a264ebbeb1 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Thu, 21 Mar 2024 10:28:39 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E4=B8=80=E8=88=AC=E6=A3=80=E7=B4=A2?=
=?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=A0=87=E5=87=86=E7=8A=B6=E6=80=81?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/lang/dashboard/zh.js | 3 +-
src/views/dashboard/search/GeneralSearch.vue | 33 ++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/src/common/lang/dashboard/zh.js b/src/common/lang/dashboard/zh.js
index 6149f545..336d98da 100644
--- a/src/common/lang/dashboard/zh.js
+++ b/src/common/lang/dashboard/zh.js
@@ -17,7 +17,8 @@ module.exports = {
standardState: '标准状态',
standardGradeClassification: '标准等级分类',
all: '全部',
- releaseDate: '发布日期'
+ releaseDate: '发布日期',
+ standardStatusSet: '标准状态设置'
},
// 高级搜索
advancedSearch: {
diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue
index 24018991..ae0b57d9 100644
--- a/src/views/dashboard/search/GeneralSearch.vue
+++ b/src/views/dashboard/search/GeneralSearch.vue
@@ -42,6 +42,15 @@
+
+
+ {{ $t('dashboard.generalSearch.standardStatusSet') }}
+
+
+ {{ item.label }}
+
+
+
@@ -153,6 +162,12 @@ export default {
{ key: '4', label: '动态消息' }
],
resourceTypeCurrent: 'all', // 资源类型当前选中项
+ // 标准状态设置可选择项
+ standardStatusSetOptions: [
+ { key: '1', label: '不包含废止标准' },
+ { key: '2', label: '包含废止标准' }
+ ],
+ standardStatusSetCurrent: '1', // 标准状态设置当前选中项
selectOptions: {}, // 其他筛选条件
selectOptionsKeys: [
'standardClass', // 标准类别
@@ -285,6 +300,8 @@ export default {
param.resourceType = this.resourceTypeCurrent === 'all' ? null : this.resourceTypeCurrent
// 检索内容
param.searchContent = this.searchValue
+ // 标准状态设置
+ param.standardStateSet = this.standardStatusSetCurrent
// 其他筛选条件
for (const item in this.selectOptions) {
param[item] = this.selectOptions[item].current === 'all' ? null : this.selectOptions[item].current
@@ -383,6 +400,22 @@ export default {
}
this.onSearch()
},
+ // 标准状态设置改变
+ standardStatusSetChange (key) {
+ this.standardStatusSetCurrent = key
+ this.ipagination = {
+ current: 1,
+ pageSize: 10,
+ pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
+ showTotal: (total, range) => {
+ return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
+ },
+ total: 0,
+ showQuickJumper: true,
+ showSizeChanger: true
+ }
+ this.onSearch()
+ },
// 其他检索条件改变
selectOptionsChange (changeKey, value) {
console.log(changeKey, value)