Commit bd006a7f authored by 黄奎's avatar 黄奎

题库下载

parent 27568a76
......@@ -153,7 +153,7 @@ export function queryQuestionLevelType() {
url: '/Question/GetQuestionLevelType',
method: 'post',
})
}
}
/**
* 题目上移下移
......@@ -251,7 +251,7 @@ export function saveBatchQuestionLevel(data) {
method: 'post',
data
})
}
}
/**
* 根据题库编号获取题库题型列表(单选题、多选题、等)【试卷组卷使用】
......@@ -314,4 +314,14 @@ export function DeletePaperDetails(data) {
data
})
}
/**
* 题库下载
* @param {*} data
*/
export function DownLoadBank(data) {
return request({
url: '/Question/DownLoadBank',
method: 'post',
data
})
}
<style>
.page-content p {
.page-content p {
margin: 0 !important;
}
}
.quetion_Title {
.quetion_Title {
background: transparent !important;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 400px;
}
}
</style>
<template>
<div class="page-body">
......@@ -34,17 +34,17 @@
</template>
<template v-slot:body-cell-BankId="props">
<q-td :props="props" style="width:150px;">
{{props.row.BankId}}
{{ props.row.BankId }}
</q-td>
</template>
<template v-slot:body-cell-BankName="props">
<q-td :props="props" style="width:400px;">
{{props.row.BankName}}
{{ props.row.BankName }}
</q-td>
</template>
<template v-slot:body-cell-QuestionCount="props">
<q-td :props="props" style="width:200px;">
{{props.row.QuestionCount}}
{{ props.row.QuestionCount }}
</q-td>
</template>
......@@ -54,6 +54,8 @@
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="downloads(props.row)"
label="下载" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="EditQuestion(props.row)"
label="编辑" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="goQuestionList(props.row)"
......@@ -71,12 +73,13 @@
</div>
</template>
<script>
import {
import {
queryQuestionBankPage,
RemoveQuestionBank
} from '../../api/question/question';
import questionbankForm from '../../components/question/questionbank-form';
export default {
RemoveQuestionBank,
DownLoadBank
} from '../../api/question/question';
import questionbankForm from '../../components/question/questionbank-form';
export default {
meta: {
title: "题库管理"
},
......@@ -140,11 +143,21 @@
data: [],
}
},
created() {},
created() { },
mounted() {
this.getQuestionBankPage();
},
methods: {
//下载
downloads(item) {
let msg = {
BankId: item.BankId,
}
DownLoadBank(msg).then(res => {
if (res.Code == 1) {
}
})
},
research() {
this.getQuestionBankPage();
},
......@@ -219,7 +232,7 @@
});
}
}
}
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment