From 27123fb3ecac2f86ab6eb22ac827df251e83a204 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 21 Mar 2021 12:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E8=80=83=E8=AF=95=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_client/src/api/examtest.js | 8 ++ test_client/src/views/analyse/examtest.vue | 47 ++++++++--- test_client/src/views/exam/index.vue | 1 + test_mini/app.js | 4 +- test_mini/app.json | 3 +- test_mini/pages/exam/index.js | 18 ++-- test_mini/pages/exam/index.wxml | 5 +- test_mini/pages/exam/note.js | 78 ++++++++++++++++++ test_mini/pages/exam/note.json | 4 + test_mini/pages/exam/note.wxml | 24 ++++++ test_mini/pages/exam/note.wxss | 1 + test_mini/pages/test/detail.js | 7 +- test_mini/pages/test/list.js | 4 + test_mini/pages/test/list.wxml | 5 +- test_mini/pages/test/test.js | 3 + test_server/examtest/exports.py | 30 ++++++- .../migrations/0026_auto_20210321_0940.py | 25 ++++++ test_server/examtest/models.py | 7 +- test_server/examtest/serializers.py | 46 ++++++++++- test_server/examtest/views.py | 25 ++++-- test_server/tmp/examtest - 副本.docx | Bin 0 -> 16945 bytes test_server/tmp/examtest.docx | Bin 0 -> 20552 bytes 22 files changed, 308 insertions(+), 37 deletions(-) create mode 100644 test_mini/pages/exam/note.js create mode 100644 test_mini/pages/exam/note.json create mode 100644 test_mini/pages/exam/note.wxml create mode 100644 test_mini/pages/exam/note.wxss create mode 100644 test_server/examtest/migrations/0026_auto_20210321_0940.py create mode 100644 test_server/tmp/examtest - 副本.docx create mode 100644 test_server/tmp/examtest.docx diff --git a/test_client/src/api/examtest.js b/test_client/src/api/examtest.js index 1f01cdb..14a94db 100644 --- a/test_client/src/api/examtest.js +++ b/test_client/src/api/examtest.js @@ -132,4 +132,12 @@ export function exportTest(query) { method: 'get', params: query }) +} + +export function exportwTest(id,data) { + return request({ + url: `/examtest/examtest/${id}/exportw/`, + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/test_client/src/views/analyse/examtest.vue b/test_client/src/views/analyse/examtest.vue index 9f0d67f..6c3de1e 100644 --- a/test_client/src/views/analyse/examtest.vue +++ b/test_client/src/views/analyse/examtest.vue @@ -18,7 +18,7 @@ + + + @@ -94,14 +97,20 @@ - + @@ -116,7 +125,7 @@