diff --git a/public/index.html b/public/index.html index 523cd90..b48a87c 100644 --- a/public/index.html +++ b/public/index.html @@ -95,12 +95,10 @@ - diff --git a/src/api/question.js b/src/api/question.js index 1611ba5..0dda73b 100644 --- a/src/api/question.js +++ b/src/api/question.js @@ -24,3 +24,12 @@ export function updateQuestion(data) { }); } +export function addQuestion(data) { + return request({ + url: '/driver-api/tdQuestion/duima/add', + method: 'put', + data: data + }); +} + + diff --git a/src/views/question/components/QuestionAddForm.vue b/src/views/question/components/QuestionAddForm.vue new file mode 100644 index 0000000..130e01f --- /dev/null +++ b/src/views/question/components/QuestionAddForm.vue @@ -0,0 +1,174 @@ + + + diff --git a/src/views/question/components/QuestionForm.vue b/src/views/question/components/QuestionForm.vue index cd15863..2ec2275 100644 --- a/src/views/question/components/QuestionForm.vue +++ b/src/views/question/components/QuestionForm.vue @@ -4,7 +4,7 @@ - +
{{ dialogForm.question }}
diff --git a/src/views/question/index.vue b/src/views/question/index.vue index 38195c2..4343f8f 100644 --- a/src/views/question/index.vue +++ b/src/views/question/index.vue @@ -63,18 +63,21 @@ - + + +