提交 4234bc5f authored 作者: 翟畅's avatar 翟畅

zc批量导入提示语

上级 71955ca5
......@@ -37,7 +37,7 @@
</div>
<div slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelAll">全部取消</el-button>
<el-button size="small" style="background:#1F71FF;color:#fff" @click="importSubmit" :loading="sending">全部上传</el-button>
<el-button size="small" style="background:#1F71FF;color:#fff" @click="importSubmit" :loading="sending">全部保存</el-button>
</div>
</el-dialog>
<relation-book-dialog :showDialog.sync="showRelationDialog" :bookId="$route.query.id" @close='showRelationDialog = false' @saveContent="saveContent"></relation-book-dialog>
......@@ -201,7 +201,7 @@ export default {
}
},
handleSuccess(response, file, fileList) {
this.$message.success('上传成功')
// this.$message.success('上传成功')
if(this.type == 'book') { //图书
this.bookEpub.push(response)
} else if(this.type == 'pdf') { //pdf
......@@ -261,9 +261,25 @@ export default {
importSubmit() {
this.$emit('importBtn',this.type=='book'?this.bookEpub:this.commonList,this.type=='book'?"":this.bookList)
this.bookList = {}
if(this.type == 'book') {
this.fileList = []
this.bookEpub = []
} else {
this.fileList = []
this.commonList = []
}
this.currentFileList = []
},
close() { //关闭
this.bookList = {}
if(this.type == 'book') {
this.fileList = []
this.bookEpub = []
} else {
this.fileList = []
this.commonList = []
}
this.currentFileList = []
this.$emit('closeImport')
}
},
......
......@@ -24,7 +24,7 @@
</div>
<div slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelAll">全部取消</el-button>
<el-button size="small" style="background:#1F71FF;color:#fff" @click="importSubmit" :loading="sending">全部上传</el-button>
<el-button size="small" style="background:#1F71FF;color:#fff" @click="importSubmit" :loading="sending">全部保存</el-button>
</div>
</el-dialog>
</div>
......
......@@ -411,6 +411,7 @@ import searchDia from "@/components/dialog/searchTips";
}
importAPI(data).then(res => {
if (res.data.code === 0) {
// this.$message.success('导入成功,可继续点击导入按钮上传')
this.$message.success("导入成功");
this.dialogImport = false;
this.sending = false;
......
......@@ -334,6 +334,7 @@ import searchDia from "@/components/dialog/searchTips";
}
importAPI(data).then(res => {
if (res.data.code === 0) {
// this.$message.success('导入成功,可继续点击导入按钮上传')
this.$message.success("导入成功");
this.dialogImport = false;
this.sending = false;
......
......@@ -294,6 +294,7 @@ export default {
}
importAPI(data).then(res => {
if(res.data.code === 0) {
// this.$message.success('导入成功,可继续点击导入按钮上传')
this.$message.success('导入成功')
this.dialogImport = false
this.sending = false
......
......@@ -393,6 +393,7 @@ import searchDia from "@/components/dialog/searchTips";
}
importAPI(data).then(res => {
if (res.data.code === 0) {
// this.$message.success('导入成功,可继续点击导入按钮上传')
this.$message.success("导入成功");
this.dialogImport = false;
this.sending = false;
......
......@@ -432,6 +432,7 @@ export default {
}
importAPI(data).then(res => {
if (res.data.code === 0) {
// this.$message.success('导入成功,可继续点击导入按钮上传')
this.$message.success("导入成功");
this.sending = false;
this.dialogImport = false;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论