|
@@ -82,6 +82,16 @@
|
|
</div>
|
|
</div>
|
|
<template>
|
|
<template>
|
|
<SentenceSegwordChs :curQue="dItem" :segModel="segModel" name="元素" :type="type" />
|
|
<SentenceSegwordChs :curQue="dItem" :segModel="segModel" name="元素" :type="type" />
|
|
|
|
+ <div class="adult-book-input-item" style="margin-top: 10px">
|
|
|
|
+ <span class="adult-book-lable">图片:</span>
|
|
|
|
+ <Upload
|
|
|
|
+ :changeFillId="timuchangeImage"
|
|
|
|
+ :datafileList="dItem.img_list ? dItem.img_list : []"
|
|
|
|
+ :filleNumber="1"
|
|
|
|
+ :uploadType="'image'"
|
|
|
|
+ :index="dIndex"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
<template>
|
|
<template>
|
|
<div class="adult-book-input-item adult-book-input-item-center">
|
|
<div class="adult-book-input-item adult-book-input-item-center">
|
|
@@ -184,10 +194,12 @@
|
|
<script>
|
|
<script>
|
|
import SentenceSegwordChs from "./SentenceSegwordChs";
|
|
import SentenceSegwordChs from "./SentenceSegwordChs";
|
|
import FnConfig from "./FnConfig.vue";
|
|
import FnConfig from "./FnConfig.vue";
|
|
|
|
+import Upload from "./Upload.vue";
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
SentenceSegwordChs,
|
|
SentenceSegwordChs,
|
|
FnConfig,
|
|
FnConfig,
|
|
|
|
+ Upload
|
|
},
|
|
},
|
|
props: ["detail", "segModel", "type"],
|
|
props: ["detail", "segModel", "type"],
|
|
data() {
|
|
data() {
|
|
@@ -365,6 +377,24 @@ export default {
|
|
this.configVisible = false;
|
|
this.configVisible = false;
|
|
this.$set(this.detail, "fn_check_list", this.items.fn_check_list);
|
|
this.$set(this.detail, "fn_check_list", this.items.fn_check_list);
|
|
},
|
|
},
|
|
|
|
+ timuchangeImage(fileList, duration, index) {
|
|
|
|
+ const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
|
+ const articleImgRes = [];
|
|
|
|
+ articleImgList.forEach((item) => {
|
|
|
|
+ if (item.response) {
|
|
|
|
+ const obj = {
|
|
|
|
+ name: item.name,
|
|
|
|
+ url: item.response.file_info_list[0].file_url,
|
|
|
|
+ id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
|
|
|
|
+ };
|
|
|
|
+ articleImgRes.push(obj);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ this.detail.detail[index].img_list = JSON.parse(
|
|
|
|
+ JSON.stringify(articleImgRes)
|
|
|
|
+ );
|
|
|
|
+ },
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
created() {},
|
|
created() {},
|