From 040c6f7cfe52db7f49447b87c722192883b92969 Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Mon, 17 Mar 2025 18:59:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=97=AE=E5=8D=B7=E5=8A=9F=E8=83=BD?= =?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 | 2 +- src/api/home/index.js | 14 +++++++ src/views/Design/Index.vue | 4 +- src/views/Survey/Index.vue | 77 +++++++++++++++++++++++++++++++++++--- 4 files changed, 88 insertions(+), 9 deletions(-) diff --git a/components.d.ts b/components.d.ts index e176946..bb994ba 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' { diff --git a/src/api/home/index.js b/src/api/home/index.js index f8f6aa3..fc236bb 100644 --- a/src/api/home/index.js +++ b/src/api/home/index.js @@ -22,6 +22,20 @@ export function getSurveysPage(params) { params }); } +// 复制问卷 +export function copySurveys(sn) { + return request({ + url: `/console/surveys/${sn}`, + method: 'post' + }); +} +// 复制问卷 +export function deleteSurveys(sn) { + return request({ + url: `/console/surveys/${sn}`, + method: 'delete' + }); +} export function getListScene(params) { return request({ url: 'console/h5_scene', diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index ac14ae2..e6fb45f 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -52,8 +52,8 @@
- 删除 - 复制 - + 删除 + 复制 + 预览 - + 开启投放
@@ -70,8 +70,11 @@