Commit eb9de802 authored by 黄奎's avatar 黄奎

页面修改

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