|
@@ -67,8 +67,7 @@ export default Vue.extend({
|
|
|
})
|
|
})
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
- if (this.$route.query.copy) {
|
|
|
|
|
|
|
+ } else if (this.$route.query.copy) {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
getMyExpoInfo(this.$route.query.copy).then(res => {
|
|
getMyExpoInfo(this.$route.query.copy).then(res => {
|
|
|
this.exhibitorSetting = res.data
|
|
this.exhibitorSetting = res.data
|
|
@@ -85,6 +84,8 @@ export default Vue.extend({
|
|
|
})
|
|
})
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
})
|
|
})
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.initEditor()
|
|
|
}
|
|
}
|
|
|
getFormList(1, 1000).then(res => {
|
|
getFormList(1, 1000).then(res => {
|
|
|
this.formList = res.data.data
|
|
this.formList = res.data.data
|
|
@@ -106,7 +107,7 @@ export default Vue.extend({
|
|
|
input.setAttribute('accept', 'image/*')
|
|
input.setAttribute('accept', 'image/*')
|
|
|
input.onchange = () => {
|
|
input.onchange = () => {
|
|
|
upload(input.files[0]).then(res => {
|
|
upload(input.files[0]).then(res => {
|
|
|
- let image = this.ossUrl + res.data.file
|
|
|
|
|
|
|
+ const image = this.ossUrl + res.data.file
|
|
|
editor.insertContent(`<img src="${image}" />`)
|
|
editor.insertContent(`<img src="${image}" />`)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -122,6 +123,7 @@ export default Vue.extend({
|
|
|
inline: true,
|
|
inline: true,
|
|
|
statusbar: false,
|
|
statusbar: false,
|
|
|
plugins: 'insertImage',
|
|
plugins: 'insertImage',
|
|
|
|
|
+ placeholder: '请输入展会介绍',
|
|
|
toolbar: [
|
|
toolbar: [
|
|
|
'undo redo | bold italic underline | fontsize',
|
|
'undo redo | bold italic underline | fontsize',
|
|
|
'forecolor backcolor | alignleft aligncenter alignright | insertImage'
|
|
'forecolor backcolor | alignleft aligncenter alignright | insertImage'
|
|
@@ -478,7 +480,8 @@ export default Vue.extend({
|
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
|
}
|
|
}
|
|
|
.text-area{
|
|
.text-area{
|
|
|
- padding: 0 16px;
|
|
|
|
|
|
|
+ max-height: 120px;
|
|
|
|
|
+ outline: 2px dashed lightgray;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
margin-top: 24px;
|
|
margin-top: 24px;
|
|
|
}
|
|
}
|