From d65c17c793cd1d80d7542dc9059b04ed4d579e81 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 28 Mar 2021 15:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A2=98=E7=9B=AE=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_client/src/api/question.js | 8 ++++ test_client/src/views/question/question.vue | 43 +++++++++++++++++---- test_server/question/views.py | 7 ++++ 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/test_client/src/api/question.js b/test_client/src/api/question.js index 3f6cd50..63d51f0 100644 --- a/test_client/src/api/question.js +++ b/test_client/src/api/question.js @@ -121,4 +121,12 @@ export function exportQuestion(query) { method: 'get', params: query }) +} + +export function enableQuestions(data) { + return request({ + url: '/question/question/enable/', + method: 'post', + data + }) } \ No newline at end of file diff --git a/test_client/src/views/question/question.vue b/test_client/src/views/question/question.vue index 777cb9e..6d6049e 100644 --- a/test_client/src/views/question/question.vue +++ b/test_client/src/views/question/question.vue @@ -44,6 +44,9 @@ >刷新重置
新增 + 启用 - - + + - + - + - + + + +