|
|
@@ -16,7 +16,7 @@
|
|
|
<div class="form-group">
|
|
|
<!--下拉框-->
|
|
|
<b-field>
|
|
|
- <b-select placeholder="选择题目类型">
|
|
|
+ <b-select placeholder="选择题目类型" v-model="selectedType">
|
|
|
<option
|
|
|
v-for="(option, index) in questionType"
|
|
|
:value="option"
|
|
|
@@ -87,7 +87,7 @@
|
|
|
sortable
|
|
|
centered
|
|
|
>
|
|
|
- {{ props.row.expect_time }}分钟
|
|
|
+ {{ props.row.expectTime }}分钟
|
|
|
</b-table-column>
|
|
|
</template>
|
|
|
|
|
|
@@ -161,9 +161,15 @@ export default {
|
|
|
data: [],
|
|
|
keyWord: "",
|
|
|
errorMessage: "服务器错误,请稍后再试",
|
|
|
- loadingQuestionList: true
|
|
|
+ loadingQuestionList: true,
|
|
|
+ selectedType: ""
|
|
|
};
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ selectedType(val) {
|
|
|
+ console.log(val);
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
//获取全部题目分类
|
|
|
this.getQuestionType();
|
|
|
@@ -177,7 +183,8 @@ export default {
|
|
|
getQuestionType() {
|
|
|
getTeacherQuestionType()
|
|
|
.then(value => {
|
|
|
- this.questionType = value.data;
|
|
|
+ // this.questionType = value.data;
|
|
|
+ this.questionType = value.res;
|
|
|
})
|
|
|
.catch(e => {
|
|
|
this.$toast.open({
|
|
|
@@ -190,8 +197,8 @@ export default {
|
|
|
getQuestions() {
|
|
|
getQuestionsByAssignType({ type: "DOCUMENT", page: 0, limit: 10 })
|
|
|
.then(value => {
|
|
|
- // this.data = value.res.content;
|
|
|
- this.data = value.data;
|
|
|
+ this.data = value.data.content;
|
|
|
+ // this.data = value.data;
|
|
|
})
|
|
|
.catch(e => {
|
|
|
this.$toast.open({
|