|
|
@ -68,7 +68,7 @@ |
|
|
|
<ul class="styles"> |
|
|
|
<ul class="styles"> |
|
|
|
<li v-for="(item, i) in detailStyleId" :key="i" @click="form.detailStyleId = item.id"> |
|
|
|
<li v-for="(item, i) in detailStyleId" :key="i" @click="form.detailStyleId = item.id"> |
|
|
|
<div class="review"> |
|
|
|
<div class="review"> |
|
|
|
<el-image :style="{ width: item.id == 24 ? '50px' : '90px', 'max-height': '110px' }" |
|
|
|
<el-image class="pic" :style="{ width: item.id == 24 ? '50px' : '90px' }" |
|
|
|
:src="require('@/assets/images/style/' + item.id + '.png')" |
|
|
|
:src="require('@/assets/images/style/' + item.id + '.png')" |
|
|
|
:preview-src-list="[require('@/assets/images/style/' + item.id + '.png')]"> |
|
|
|
:preview-src-list="[require('@/assets/images/style/' + item.id + '.png')]"> |
|
|
|
</el-image> |
|
|
|
</el-image> |
|
|
@ -135,10 +135,9 @@ |
|
|
|
<ul class="styles"> |
|
|
|
<ul class="styles"> |
|
|
|
<li v-for="(item, i) in pageStyle" :key="i" @click="form.listStyleId = item.id"> |
|
|
|
<li v-for="(item, i) in pageStyle" :key="i" @click="form.listStyleId = item.id"> |
|
|
|
<div class="review"> |
|
|
|
<div class="review"> |
|
|
|
<el-image style="width: 50px;" :src="require('@/assets/images/page/' + item.pic + '.png')" |
|
|
|
<el-image class="pic" :src="require('@/assets/images/page/' + item.pic + '.png')" |
|
|
|
:preview-src-list="[require('@/assets/images/page/' + item.pic + '.png')]"> |
|
|
|
:preview-src-list="[require('@/assets/images/page/' + item.pic + '.png')]"> |
|
|
|
</el-image> |
|
|
|
</el-image> |
|
|
|
<!-- <img :src="require('@/assets/images/page/' + item.pic + '.png')" alt=""> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-radio v-model="form.listStyleId" :label="item.id">{{ item.style }}</el-radio> |
|
|
|
<el-radio v-model="form.listStyleId" :label="item.id">{{ item.style }}</el-radio> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -655,6 +654,7 @@ export default { |
|
|
|
this.updateFile(form, data) |
|
|
|
this.updateFile(form, data) |
|
|
|
// 栏目类型选择了长页栏目,才需要保存长页 |
|
|
|
// 栏目类型选择了长页栏目,才需要保存长页 |
|
|
|
form.typeId === 3 && this.savePage(data) |
|
|
|
form.typeId === 3 && this.savePage(data) |
|
|
|
|
|
|
|
// return |
|
|
|
Util.successMsg("创建成功") |
|
|
|
Util.successMsg("创建成功") |
|
|
|
next ? next() : this.$router.back() |
|
|
|
next ? next() : this.$router.back() |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
@ -669,6 +669,8 @@ export default { |
|
|
|
let module = Modules[this.pageStyle.find(e => e.id == listStyleId).path] // 获取module.js里存的初始长页数据 |
|
|
|
let module = Modules[this.pageStyle.find(e => e.id == listStyleId).path] // 获取module.js里存的初始长页数据 |
|
|
|
// 如果是编辑 ,并且已经绑定过长页模板,则调编辑,并且json要给字符串(新增给数组) |
|
|
|
// 如果是编辑 ,并且已经绑定过长页模板,则调编辑,并且json要给字符串(新增给数组) |
|
|
|
if (data.length) module = JSON.stringify(module) |
|
|
|
if (data.length) module = JSON.stringify(module) |
|
|
|
|
|
|
|
console.log(111, Modules, module, Modules['iasf']) |
|
|
|
|
|
|
|
// debugger |
|
|
|
if (module) { |
|
|
|
if (module) { |
|
|
|
await this.$post(this.api[data.length ? 'updatePage' : 'savePage'], { |
|
|
|
await this.$post(this.api[data.length ? 'updatePage' : 'savePage'], { |
|
|
|
id: data.length ? data[0].id : '', |
|
|
|
id: data.length ? data[0].id : '', |
|
|
@ -787,8 +789,9 @@ $upload-lg-height: 102px; |
|
|
|
border: 1px solid #dcdee0; |
|
|
|
border: 1px solid #dcdee0; |
|
|
|
border-radius: 2px; |
|
|
|
border-radius: 2px; |
|
|
|
|
|
|
|
|
|
|
|
img { |
|
|
|
.pic { |
|
|
|
width: 50px; |
|
|
|
width: 50px; |
|
|
|
|
|
|
|
max-height: 110px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|