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 @@