From 8549b7adb303f72ed349fcfb660d2c2debf89c07 Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Mon, 17 Mar 2025 17:57:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=A8=A1=E6=9D=BF=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 5 +- src/api/home/index.js | 6 ++ src/layouts/index.vue | 9 +- src/router/index.ts | 2 +- src/views/Design/Index.vue | 2 +- .../Design/components/ChooseQuestion.vue | 3 +- .../Home/components/LastSurvey/Index.vue | 2 +- src/views/Home/components/Market/Index.vue | 4 +- .../Market/components/MarketItem.vue | 92 ++++++++++++++----- .../Market/components/svgs/MarketItemSvg.svg | 31 ------- src/views/Survey/views/Create/Index.vue | 4 +- .../components/PfePagination/Index.vue | 17 ++-- .../components/questions/PreviewChoice.vue | 2 +- .../Preview/components/questions/Question.vue | 23 +++-- src/views/Survey/views/Publish/Index.vue | 37 ++++---- 15 files changed, 137 insertions(+), 102 deletions(-) delete mode 100644 src/views/Home/components/Market/components/svgs/MarketItemSvg.svg diff --git a/components.d.ts b/components.d.ts index bdaf31a..e176946 100644 --- a/components.d.ts +++ b/components.d.ts @@ -2,7 +2,7 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -export {} +export {}; /* prettier-ignore */ declare module 'vue' { @@ -38,12 +38,9 @@ declare module 'vue' { VanRadio: typeof import('vant/es')['Radio'] VanRadioGroup: typeof import('vant/es')['RadioGroup'] VanRow: typeof import('vant/es')['Row'] - VanSearch: typeof import('vant/es')['Search'] VanStepper: typeof import('vant/es')['Stepper'] VanSwitch: typeof import('vant/es')['Switch'] VanTab: typeof import('vant/es')['Tab'] - VanTabbar: typeof import('vant/es')['Tabbar'] - VanTabbarItem: typeof import('vant/es')['TabbarItem'] VanTabs: typeof import('vant/es')['Tabs'] YLCascader: typeof import('./src/components/YLCascader.vue')['default'] YLInput: typeof import('./src/components/YLInput.vue')['default'] diff --git a/src/api/home/index.js b/src/api/home/index.js index c4c979f..f8f6aa3 100644 --- a/src/api/home/index.js +++ b/src/api/home/index.js @@ -45,3 +45,9 @@ export function useTemplate(sn, params) { data: params }); } +export function deleteTemplate(sn) { + return request({ + url: `/console/templates/${sn}`, + method: 'delete' + }); +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 6158244..faa1080 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -2,7 +2,14 @@
- + diff --git a/src/router/index.ts b/src/router/index.ts index 2a87cf9..9909d55 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -25,7 +25,7 @@ const router = createRouter({ path: '/survey', name: 'survey', meta: { - title: '问卷' + title: '最新问卷' }, component: () => import('../views/Survey/Index.vue') }, diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index f9064fc..ac14ae2 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -97,7 +97,7 @@ />