From a09f984cbe2369e13d8694e91c4f8165ec6c2ba9 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 20 八月 2025 14:05:10 +0800 Subject: [PATCH] 动态溯源模块优化 --- src/views/sourcetrace/component/SourceTraceFilter.vue | 47 ++++++++++++++++++++++++++++++++--------------- 1 files changed, 32 insertions(+), 15 deletions(-) diff --git a/src/views/sourcetrace/component/SourceTraceFilter.vue b/src/views/sourcetrace/component/SourceTraceFilter.vue index 6368300..75cad99 100644 --- a/src/views/sourcetrace/component/SourceTraceFilter.vue +++ b/src/views/sourcetrace/component/SourceTraceFilter.vue @@ -2,7 +2,7 @@ <div> <div> <el-space> - <el-text type="primary">鏁版嵁鍒囩墖</el-text> + <el-text type="info">鏁版嵁鍒囩墖</el-text> <el-checkbox-group :model-value="dataSlice" @update:model-value="(e) => emits('update:data-slice', e)" @@ -19,28 +19,28 @@ </div> <div> <el-space> - <el-text type="primary">鐩戞祴鍥犲瓙</el-text> + <el-text type="info">鐩戞祴鍥犲瓙</el-text> <el-checkbox-group :model-value="factorType" @update:model-value="(e) => emits('update:factor-type', e)" size="default" :min="1" > - <el-space> - <el-checkbox - v-for="item in factorOptions" - :value="item.value" - :key="item.label" - > - {{ item.label }} - </el-checkbox> - </el-space> + <!-- <el-space> --> + <el-checkbox + v-for="item in factorOptions" + :value="item.value" + :key="item.label" + > + {{ item.label }} + </el-checkbox> + <!-- </el-space> --> </el-checkbox-group> </el-space> </div> <div> <el-space> - <el-text type="primary">鍦烘櫙绫诲瀷</el-text> + <el-text type="info">鍦烘櫙绫诲瀷</el-text> <el-checkbox-group :model-value="sceneType" @update:model-value="(e) => emits('update:scene-type', e)" @@ -65,13 +65,30 @@ import { ref } from 'vue'; const props = defineProps({ - // 鏁版嵁鍒囩墖锛岀嚎绱€�佹彁绀恒�佹函婧� + /** + * 鍖呭惈杩借釜淇℃伅鐨勬暟鎹垏鐗囷紝鍖呮嫭绾跨储銆佹彁绀哄拰婧簮鏁版嵁 + * @type {Array} + */ dataSlice: Array, - // 鐩戞祴鍥犲瓙 + /** + * 鐩戞祴鍥犲瓙绫诲瀷鏁扮粍 + * @type {Array} + */ factorType: Array, + /** + * 鐩戞祴鍥犲瓙鐨勫彲鐢ㄩ�夐」 + * @type {Array<{value: string, label: string}>} + */ factorOptions: Array, - // 鍦烘櫙绫诲瀷 + /** + * 鐢ㄤ簬杩囨护鐨勫満鏅被鍨嬫暟缁� + * @type {Array} + */ sceneType: Array, + /** + * 鍦烘櫙閫夋嫨鐨勫彲鐢ㄩ�夐」 + * @type {Array<{value: string, label: string}>} + */ sceneOptions: Array }); -- Gitblit v1.9.3