|
|
|
|
@ -48,8 +48,9 @@
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>内容:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<tinymce ref="tinymce" :height="200" v-model="form.content" id='tinymce'></tinymce>
|
|
|
|
|
<div class="xy-table-item-content" style="width:680px">
|
|
|
|
|
<xyTinymce v-if="isShow" v-model="form.content"></xyTinymce>
|
|
|
|
|
<!-- <tinymce ref="tinymce" :height="200" v-model="form.content" id='tinymce'></tinymce> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -116,11 +117,13 @@ import {index as typeIndex} from "@/api/strategyType"
|
|
|
|
|
import {store,save} from "@/api/strategy"
|
|
|
|
|
import {getparameter} from '@/api/system/dictionary'
|
|
|
|
|
|
|
|
|
|
import tinymce from "@/components/Tinymce"
|
|
|
|
|
// import tinymce from "@/components/Tinymce"
|
|
|
|
|
import xyTinymce from "@/components/XyTinymce/index.vue";
|
|
|
|
|
|
|
|
|
|
import { Message } from 'element-ui'
|
|
|
|
|
export default {
|
|
|
|
|
components:{
|
|
|
|
|
tinymce
|
|
|
|
|
xyTinymce
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
@ -188,7 +191,7 @@ export default {
|
|
|
|
|
label:this.detail.label,
|
|
|
|
|
content:this.detail.content,
|
|
|
|
|
}
|
|
|
|
|
this.$refs['tinymce'].setContent(this.form.content)
|
|
|
|
|
// this.$refs['tinymce'].setContent(this.form.content)
|
|
|
|
|
},
|
|
|
|
|
async getLabel(){
|
|
|
|
|
const res = await getparameter({number:'label'})
|
|
|
|
|
@ -255,7 +258,7 @@ export default {
|
|
|
|
|
}else{
|
|
|
|
|
this.id = ''
|
|
|
|
|
this.type = ''
|
|
|
|
|
this.$refs['tinymce'].setContent(' ')
|
|
|
|
|
// this.$refs['tinymce'].setContent(' ')
|
|
|
|
|
this.$refs['dialog'].reset()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|