From c4c00134e71ac0adff65f4cf8df0c7d26f82b1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Mon, 26 May 2025 14:26:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(components):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -移除了 YlTable 组件中的多余样式 - 添加了 TemplateMarket 组件中的模板点击事件处理逻辑 - 优化了 AnalysisInfo组件中的问题展示逻辑,增加了对非移动端展示题型的处理 --- src/components/YlTable/Index.vue | 2 +- .../components/TemplateMarket/Index.vue | 17 ++ .../components/AnalysisInfo/Index.vue | 194 ++++++++++-------- 3 files changed, 128 insertions(+), 85 deletions(-) diff --git a/src/components/YlTable/Index.vue b/src/components/YlTable/Index.vue index 089732e..8995b55 100644 --- a/src/components/YlTable/Index.vue +++ b/src/components/YlTable/Index.vue @@ -123,7 +123,7 @@ function tooptipFormatter(data: { row: any; column: any; cellValue: any }): VNod :row-class-name="setStripeColor" :data="data" :empty-text="emptyText" - style="width: 100%; padding-right: 10px" + style="width: 100%" > ('limit'); const currentTemplate = computed(() => templates.value.slice(0, limit.value)); function handleTemplateClick(template: any) { + // ?sn=4O5xanLV&is_template=1&source=4O5xanLV&title=报名签到&parentCode=1&scene_code_info=11&user=苗闻博"e_nums=3 + router.push({ + path: '/templatePreview', + query: { + sn: template.sn, + user: template.creater_user, + is_template: 1, + source: template.sn, + title: template.title, + parentCode: template.parentCode, + scene_code_info: template.scene_code_info, + quote_nums: template.quote_nums + } + }); + + return; + const query = { group_id: 0, source: 1, diff --git a/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue b/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue index d263cc4..fc2667f 100644 --- a/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue +++ b/src/views/Survey/views/Analysis/components/AnalysisInfo/Index.vue @@ -1,84 +1,110 @@ - - - - + + + +