取消
@@ -306,9 +309,9 @@ export default {
});
},
getSubjectAll() {
- // getSubjectAll().then(response => {
- // this.subjectData = genTree(response.data);
- // });
+ getSubjectAll().then(response => {
+ this.subjectData = genTree(response.data);
+ });
},
resetFilter() {
this.listQuery = {
@@ -385,7 +388,7 @@ export default {
});
});
} else {
- createConsumer(consumer).then(res => {
+ createConsumer(this.consumer).then(res => {
// this.consumer = res.data
// this.consumerList.unshift(this.consumer)
this.getList();
diff --git a/test_client/src/views/examtest/rule.vue b/test_client/src/views/examtest/rule.vue
index 4ceb6e3..ad499b4 100644
--- a/test_client/src/views/examtest/rule.vue
+++ b/test_client/src/views/examtest/rule.vue
@@ -38,13 +38,13 @@
-
+ :disabled="!checkPermission(['testrule_edit'])"
+ >
-
+
+ v-model="Form.questioncat" multiple placeholder="请选择题库范围" style="width:400px" >
共有 {{typecount.danxuan}} 道,选取
- 道,每道
- 分
+ 道,每道
+ 分
共有 {{typecount.duoxuan}} 道,选取
- 道,每道
- 分
+ 道,每道
+ 分
共有 {{typecount.panduan}} 道,选取
- 道,每道
- 分
+ 道,每道
+ 分
分钟
@@ -118,6 +116,14 @@ export default {
}
};
},
+ watch:{
+ Form:{
+ handler:'calScore',
+ deep:true
+ },
+ 'Form.subject':'getQuestioncatAll',
+ 'Form.questioncat':'getQuestionCount'
+ },
created() {
this.getSubjectAll();
},
@@ -153,19 +159,12 @@ export default {
this.subjectData = genTree(response.data) ;
});
},
- getQuestioncatAll(val) {
- getQuestioncatAll({pid:val}).then(response => {
+ getQuestioncatAll() {
+ getQuestioncatAll({pid:this.Form.subject}).then(response => {
this.questioncatData = genTree(response.data) ;
});
},
- getQuestionCount(val) {
- if (val==false){
- getQuestionCount({ids:this.Form.questioncat}).then(response => {
- this.typecount = response.data
- });
- }
- },
- getQuestionCount2(val) {
+ getQuestionCount() {
getQuestionCount({ids:this.Form.questioncat}).then(response => {
this.typecount = response.data
});
diff --git a/test_client/src/views/examtest/ruleedit.vue b/test_client/src/views/examtest/ruleedit.vue
deleted file mode 100644
index d474020..0000000
--- a/test_client/src/views/examtest/ruleedit.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
- 新增
-
-
-
-
- {{ scope.row.name }}
-
-
-
- {{ scope.row.create_time }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 确认
-
-
-
-
-
-
diff --git a/test_client/src/views/examtest/ruleupdate.vue b/test_client/src/views/examtest/ruleupdate.vue
new file mode 100644
index 0000000..cc67e9b
--- /dev/null
+++ b/test_client/src/views/examtest/ruleupdate.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 共有 {{typecount.danxuan}} 道,选取
+ 道,每道
+ 分
+
+
+ 共有 {{typecount.duoxuan}} 道,选取
+ 道,每道
+ 分
+
+
+ 共有 {{typecount.panduan}} 道,选取
+ 道,每道
+ 分
+
+
+ 分钟
+
+
+ {{Form.total_score}} 分
+
+
+ 分
+
+
+ 保存
+ 重置
+ 返回
+
+
+
+
+
\ 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 4d3ec3e..647e7ec 100644
--- a/test_client/src/views/question/question.vue
+++ b/test_client/src/views/question/question.vue
@@ -95,6 +95,12 @@
+
+
+ {{question.type}}
+ {{question.name}}
+
+ -
+ {{ key }}:{{value}}
+
+
+ 正确答案{{question.right}}
+ {{question.resolution}}
+
+