From 31ddefba164704168d3a12b8e250a34bbb078e4d Mon Sep 17 00:00:00 2001 From: dayou <853094838@qq.com> Date: Thu, 11 Jan 2024 14:06:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=97=E8=A1=A8=E9=A1=B5=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD=20(#42)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/management/api/survey.js | 4 ++ .../pages/list/components/baseList.vue | 16 +++-- .../pages/list/components/modify.vue | 58 +++++++++++++++---- .../pages/list/components/toolBar.vue | 8 ++- web/src/management/utils/constant.js | 5 ++ 5 files changed, 75 insertions(+), 16 deletions(-) create mode 100644 web/src/management/utils/constant.js diff --git a/web/src/management/api/survey.js b/web/src/management/api/survey.js index feb7fd12..01d47716 100644 --- a/web/src/management/api/survey.js +++ b/web/src/management/api/survey.js @@ -49,3 +49,7 @@ export const deleteSurvey = (surveyId) => { export const updateSurvey = (data) => { return axios.post('/surveyManage/update', data); }; + +export const copySurvey = (data) => { + return axios.post('/surveyManage/create', data); +}; diff --git a/web/src/management/pages/list/components/baseList.vue b/web/src/management/pages/list/components/baseList.vue index efbf446b..1b2cc2da 100644 --- a/web/src/management/pages/list/components/baseList.vue +++ b/web/src/management/pages/list/components/baseList.vue @@ -40,7 +40,7 @@ :data="scope.row" type="list" :tools="getToolConfig(scope.row)" - :tool-width="65" + :tool-width="50" @on-delete="onDelete" @on-modify="onModify" /> @@ -63,6 +63,7 @@ 保存{{ type === QOP_MAP.EDIT ? '保存' : '确定' }} @@ -33,18 +33,21 @@ diff --git a/web/src/management/pages/list/components/toolBar.vue b/web/src/management/pages/list/components/toolBar.vue index e41b36a2..45c59aca 100644 --- a/web/src/management/pages/list/components/toolBar.vue +++ b/web/src/management/pages/list/components/toolBar.vue @@ -15,6 +15,7 @@