wip
This commit is contained in:
parent
58d8dae892
commit
095ca44038
|
|
@ -119,8 +119,16 @@
|
|||
watch: {},
|
||||
// 组件方法
|
||||
methods: {
|
||||
moduleUpdated() {
|
||||
console.log('moduleUpdated')
|
||||
moduleUpdated(module) {
|
||||
const data = {
|
||||
module: this.editingModuleCode,
|
||||
content: this.form.modules[this.design.editingModuleIndex].content
|
||||
};
|
||||
|
||||
$http.post('design/builder/preview', data).then((res) => {
|
||||
layer.msg(res.message)
|
||||
})
|
||||
// console.log(module)
|
||||
},
|
||||
|
||||
addModuleButtonClicked(code) {
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ Vue.component('module-editor-slideshow', {
|
|||
removeImage(index) {
|
||||
this.module.images.splice(index, 1);
|
||||
},
|
||||
|
||||
itemShow(index) {
|
||||
this.module.images.find((e, key) => {if (index != key) return e.show = false});
|
||||
this.module.images[index].show = !this.module.images[index].show;
|
||||
|
|
|
|||
Loading…
Reference in New Issue