Commit 3e618ae8 authored by 黄奎's avatar 黄奎

页面修改

parent 40b01695
......@@ -15,7 +15,7 @@
<q-btn color="primary" size="xs" title="向下移动" :disable="!canDown" @click="moveDown" outline
icon="iconfont icon-down1"></q-btn>
<q-btn color="primary" size="xs" unelevated label="导入 ..." @click="getImport()"></q-btn>
<el-upload class="upload-demo" action="" style="display:inline-block;margin-left:80px;" :accept="accept"
:show-file-list="false" :http-request="UploadAttachment">
<q-btn color="primary" size="xs" unelevated label="导入单词"></q-btn>
......@@ -87,7 +87,7 @@
<q-table :pagination="wordMsg" no-data-label="暂无相关数据" flat
class="sticky-right-column-table sticky-column-table" separator="none" :data="WordData"
:columns="columns" row-key="name">
<template v-slot:top="props">
<template v-slot:top="">
<q-space />
<div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增单词" @click="EditWord(null)" />
......@@ -114,7 +114,6 @@
</div>
</template>
</q-splitter>
<q-btn round padding="md" v-if="chapter && chapter.ChapterId>0" @click="saveChapterUpdate" :loading="submiting"
color="primary" class="fixed-bottom-right" label="保存" style="z-index:9999999;right:20px;bottom:100px;">
<template v-slot:loading>
......@@ -298,6 +297,13 @@
}
UploadLocalSystem(JSON.stringify(fileParams), files.file, res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '导入单词成功!',
position: 'top'
})
this.questionData = res.Data;
this.getAllWords();
}
......@@ -308,7 +314,6 @@
this.wordMsg.CourseId = this.courseId;
this.wordMsg.ChapterId = ChapterId;
GetCourseWordsPage(this.wordMsg).then(res => {
console.log(res, '数据');
if (res.Code == 1) {
this.WordData = res.Data.PageData;
this.PageCount = res.Data.PageCount;
......@@ -368,11 +373,9 @@
initRateList() {
getCourseRate({}).then(r => {
this.rateList = r.Data
})
},
changeNode(data, node, ev) {
console.log(data, '点击了');
if (this.chapter && this.chapter.ChapterId > 0) {
if (this.defauRateObj.Id != 0) {
this.chapter.CourseRate = this.defauRateObj.Id
......
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