Commit bd006a7f authored by 黄奎's avatar 黄奎

题库下载

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