From 575929f2673d43cc0cbd7e710bc7019ae3d8adb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 6 Mar 2024 15:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/question.js | 6 +- src/views/system/addQuestionnaire/index.vue | 138 ++++++++++++++++---- src/views/system/question/index.vue | 3 + 3 files changed, 119 insertions(+), 28 deletions(-) diff --git a/src/api/system/question.js b/src/api/system/question.js index 55ffc30..0a89ce7 100644 --- a/src/api/system/question.js +++ b/src/api/system/question.js @@ -20,7 +20,7 @@ export function getQuestion(id) { // 新增问卷基本信息 export function addQuestion(data) { return request({ - url: '/system/question', + url: '/system/question/add', method: 'post', data: data }) @@ -29,8 +29,8 @@ export function addQuestion(data) { // 修改问卷基本信息 export function updateQuestion(data) { return request({ - url: '/system/question', - method: 'put', + url: '/system/question/edit', + method: 'post', data: data }) } diff --git a/src/views/system/addQuestionnaire/index.vue b/src/views/system/addQuestionnaire/index.vue index 7e9d08d..8c5fe06 100644 --- a/src/views/system/addQuestionnaire/index.vue +++ b/src/views/system/addQuestionnaire/index.vue @@ -151,7 +151,7 @@
@@ -237,7 +237,7 @@ 选项: