|
@@ -1,7 +1,7 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="Big-Book-prev-Textdes Tinydemo" v-if="curQue">
|
|
|
- <div style="display: flex" v-if="type=='upload_control_chs'">
|
|
|
+ <div style="display: flex" v-if="type == 'upload_control_chs'">
|
|
|
<UploadView
|
|
|
:changeFillId="changeFillId"
|
|
|
:accept="accept"
|
|
@@ -41,7 +41,7 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="type=='upload_control_chs'" class="remove" @click="remove">
|
|
|
+ <div v-if="type == 'upload_control_chs'" class="remove" @click="remove">
|
|
|
<img src="../../../assets/adult/red_remove.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
UploadView,
|
|
|
pdf,
|
|
|
},
|
|
|
- props: ["curQue", "fn_data","type"],
|
|
|
+ props: ["curQue", "fn_data", "type"],
|
|
|
data() {
|
|
|
return {
|
|
|
uploadType: "",
|
|
@@ -111,13 +111,12 @@ export default {
|
|
|
this.data = null;
|
|
|
this.curQue.data = null;
|
|
|
this.curQue.fileList = [];
|
|
|
- this.$message.success("删除成功")
|
|
|
-
|
|
|
+ this.$message.success("删除成功");
|
|
|
},
|
|
|
changeFillId(fileList, item, index) {
|
|
|
this.curQue.fileList = fileList;
|
|
|
this.curQue.data = fileList[0].response.file_info_list[0];
|
|
|
- if (this.curQue.data.file_name.indexOf("pdf" != -1)) {
|
|
|
+ if (this.curQue.data.file_name.indexOf("pdf") != -1) {
|
|
|
this.curQue.data = fileList[0].response.file_info_list[0];
|
|
|
this.curQue.data.fileRelativePath =
|
|
|
process.env.VUE_APP_BASE_API + this.curQue.data.file_relative_path;
|
|
@@ -135,7 +134,6 @@ export default {
|
|
|
_this.numPages = pdff.numPages;
|
|
|
_this.curQue.data.numPages = pdff.numPages;
|
|
|
this.$forceUpdate();
|
|
|
-
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error("pdf 加载失败", err);
|
|
@@ -147,9 +145,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
- created() {
|
|
|
-
|
|
|
- },
|
|
|
+ created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|