xg
This commit is contained in:
parent
fae9b69f90
commit
f65f71f65c
@ -275,7 +275,8 @@
|
||||
宣教
|
||||
</div>
|
||||
<div class="righttextarea">
|
||||
<span v-if="item.templateDetail" v-html="item.templateDetail.propagandaContent">
|
||||
<span @click="getimg($event)" v-if="item.templateDetail"
|
||||
v-html="item.templateDetail.propagandaContent">
|
||||
</span>
|
||||
<!-- <editor v-model="item.templateDetail" :min-height="192" style="width: 100%" /> -->
|
||||
</div>
|
||||
@ -306,6 +307,12 @@
|
||||
<el-button type="primary" @click="lookshow = false">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<el-dialog title="图片预览" :visible.sync="imageshow" width="70%">
|
||||
<img :src="currentSrc" alt="" style="width:100%" />
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="imageshow = false">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -344,11 +351,15 @@ export default {
|
||||
edges: [],
|
||||
},
|
||||
lookshow: false,
|
||||
imageshow: false,
|
||||
currentSrc: undefined,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.info();
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
changeswitch(e) {
|
||||
if (!e) {
|
||||
@ -387,6 +398,12 @@ export default {
|
||||
loading.close();
|
||||
})
|
||||
},
|
||||
getimg(e) {
|
||||
if (e.target.id == 'image') {
|
||||
this.currentSrc = e.target.currentSrc
|
||||
this.imageshow = true
|
||||
}
|
||||
},
|
||||
getlist() {
|
||||
if (this.routelist.length == 0) {
|
||||
const loading = this.$loading({
|
||||
@ -401,7 +418,7 @@ export default {
|
||||
this.routelist.forEach(e => {
|
||||
if (e.taskNodeType == 'PROPAGANDA_ARTICLE') {
|
||||
e.templateDetail.propagandaContent = e.templateDetail?.propagandaContent?.replace(/\<img/gi,
|
||||
"<img style='max-width:100%'")
|
||||
"<img id='image' style='max-width:100%'")
|
||||
}
|
||||
})
|
||||
this.tab = 2
|
||||
|
||||
@ -295,7 +295,6 @@ export default {
|
||||
}
|
||||
});
|
||||
});
|
||||
console.log(this.questiondata, " this.questiondata");
|
||||
}
|
||||
},
|
||||
mounted() {},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user