Commit eb9de802 authored by 黄奎's avatar 黄奎

页面修改

parent bd006a7f
<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">
...@@ -61,7 +62,7 @@ ...@@ -61,7 +62,7 @@
<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)"
label="管理题目" /> label="管理题目" />
<q-btn flat size="xs" icon="edit" color="negative" style="font-weight:400" <q-btn flat size="xs" icon="edit" color="negative" style="font-weight:400"
@click="deleteQuestionBank(props.row)" label="删除" /> @click="deleteQuestionBank(props.row)" label="删除">
</q-btn> </q-btn>
</q-td> </q-td>
</template> </template>
...@@ -73,13 +74,16 @@ ...@@ -73,13 +74,16 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
queryQuestionBankPage, queryQuestionBankPage,
RemoveQuestionBank, RemoveQuestionBank,
DownLoadBank DownLoadBank
} from '../../api/question/question'; } from '../../api/question/question';
import questionbankForm from '../../components/question/questionbank-form'; import {
export default { EduDownLoad
} from "../../api/common/common";
import questionbankForm from '../../components/question/questionbank-form';
export default {
meta: { meta: {
title: "题库管理" title: "题库管理"
}, },
...@@ -143,7 +147,7 @@ export default { ...@@ -143,7 +147,7 @@ export default {
data: [], data: [],
} }
}, },
created() { }, created() {},
mounted() { mounted() {
this.getQuestionBankPage(); this.getQuestionBankPage();
}, },
...@@ -153,10 +157,15 @@ export default { ...@@ -153,10 +157,15 @@ export default {
let msg = { let msg = {
BankId: item.BankId, BankId: item.BankId,
} }
DownLoadBank(msg).then(res => { var fileName = item.BankName + ".doc";
if (res.Code == 1) { this.loading=true;
EduDownLoad(
"/Question/DownLoadBank",
msg,
fileName, res => {
this.loading=false;
} }
}) );
}, },
research() { research() {
this.getQuestionBankPage(); this.getQuestionBankPage();
...@@ -232,8 +241,10 @@ export default { ...@@ -232,8 +241,10 @@ export default {
}); });
} }
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
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