diff --git a/public/index.html b/public/index.html index 4bbefa0..a52c9ca 100644 --- a/public/index.html +++ b/public/index.html @@ -95,10 +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 dfb682c..a692204 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 7560308..6a459e8 100644 --- a/src/views/question/index.vue +++ b/src/views/question/index.vue @@ -41,17 +41,20 @@ + +