diff --git a/client/package.json b/client/package.json
index 37ee37a..e60eabc 100644
--- a/client/package.json
+++ b/client/package.json
@@ -27,10 +27,12 @@
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"pdfobject": "^2.3.0",
+ "sortablejs": "^1.15.2",
"vod-js-sdk-v6": "^1.4.12",
- "vue": "2.6.10",
+ "vue": "2.7",
"vue-pdf": "^4.2.0",
"vue-router": "3.0.6",
+ "vuedraggable": "^2.24.3",
"vuex": "3.1.0",
"xlsx": "^0.15.5"
},
diff --git a/client/src/views/exam/questionupdate.vue b/client/src/views/exam/questionupdate.vue
index 65049ca..70c694f 100644
--- a/client/src/views/exam/questionupdate.vue
+++ b/client/src/views/exam/questionupdate.vue
@@ -86,7 +86,7 @@
保存
- 返回
+ 返回
@@ -97,6 +97,7 @@ import { upUrl } from "@/api/file";
import { getToken } from "@/utils/auth";
export default {
components:{ },
+ props:["qid"],
data() {
return {
upHeaders: { Authorization: "JWT " + getToken() },
@@ -135,7 +136,12 @@ export default {
watch:{
},
created() {
- this.Form.id = this.$route.query.id //接收参数
+ if(this.qid) {
+ this.Form.id = this.qid
+ }else{
+ this.Form.id = this.$route.query.id //接收参数
+ }
+
this.getQuestion();
this.getQuestioncatAll()
},
@@ -169,7 +175,12 @@ export default {
type: "success",
message: "修改成功!"
});
- this.goBack()
+ if (this.qid){
+ this.$emit("updateQuestion", this.Form)
+ }else{
+ this.goBack()
+ }
+
}
});
} else {
diff --git a/client/src/views/exam/testPaperCreate.vue b/client/src/views/exam/testPaperCreate.vue
index f401d0c..878055b 100644
--- a/client/src/views/exam/testPaperCreate.vue
+++ b/client/src/views/exam/testPaperCreate.vue
@@ -87,10 +87,11 @@
+
第{{ index+1 }}题
-
+
@@ -100,21 +101,30 @@
{{ name }}: {{ value }}
+
+
+
+
+