|
|
@ -20,7 +20,7 @@ |
|
|
|
<template v-for="(item, i) in detailStyle"> |
|
|
|
<template v-for="(item, i) in detailStyle"> |
|
|
|
<li v-if="item.id !== column.detailStyle" :key="i" @click="form.articleTemplate = item.id"> |
|
|
|
<li v-if="item.id !== column.detailStyle" :key="i" @click="form.articleTemplate = item.id"> |
|
|
|
<div class="review"> |
|
|
|
<div class="review"> |
|
|
|
<!-- <img :src="require('@/assets/images/article' + item.id + '.png')" alt=""> --> |
|
|
|
<img :class="{'is-link': item.id == 24}" :src="require('@/assets/images/style/' + item.id + '.png')" alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-radio v-model="form.articleTemplate" :label="item.id">{{ item.style }}</el-radio> |
|
|
|
<el-radio v-model="form.articleTemplate" :label="item.id">{{ item.style }}</el-radio> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -524,7 +524,7 @@ export default { |
|
|
|
const { updateTime } = this |
|
|
|
const { updateTime } = this |
|
|
|
console.log("🚀 ~ file: index.vue:525 ~ beforeRouteLeave ~ updateTime", updateTime) |
|
|
|
console.log("🚀 ~ file: index.vue:525 ~ beforeRouteLeave ~ updateTime", updateTime) |
|
|
|
// 更改了信息才需要提示 |
|
|
|
// 更改了信息才需要提示 |
|
|
|
if (updateTime > 2) { |
|
|
|
if (updateTime > 3) { |
|
|
|
this.$confirm(`所填写内容暂未保存,是否保存?`, '提示', { |
|
|
|
this.$confirm(`所填写内容暂未保存,是否保存?`, '提示', { |
|
|
|
type: 'warning' |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
@ -617,7 +617,6 @@ export default { |
|
|
|
e.name = e.fileName |
|
|
|
e.name = e.fileName |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
this.form = data |
|
|
|
|
|
|
|
// 链接回显 |
|
|
|
// 链接回显 |
|
|
|
if (data.articleTemplate === 24 && data.connectionType !== 2 && data.linkAddress) { |
|
|
|
if (data.articleTemplate === 24 && data.connectionType !== 2 && data.linkAddress) { |
|
|
|
const links = data.linkAddress.split(',').map(e => +e) |
|
|
|
const links = data.linkAddress.split(',').map(e => +e) |
|
|
@ -627,6 +626,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
data.siteSelection && this.getOtherColumn() |
|
|
|
data.siteSelection && this.getOtherColumn() |
|
|
|
this.originalName = data.title |
|
|
|
this.originalName = data.title |
|
|
|
|
|
|
|
this.form = data |
|
|
|
this.getColumn() |
|
|
|
this.getColumn() |
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => {}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -920,10 +920,10 @@ export default { |
|
|
|
this.$message.error('请上传图片!') |
|
|
|
this.$message.error('请上传图片!') |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
if (size / 1024 / 1024 > 5) { |
|
|
|
// if (size / 1024 / 1024 > 5) { |
|
|
|
this.$message.error('请上传5M以内的图片!') |
|
|
|
// this.$message.error('请上传5M以内的图片!') |
|
|
|
return false |
|
|
|
// return false |
|
|
|
} |
|
|
|
// } |
|
|
|
this.file = file |
|
|
|
this.file = file |
|
|
|
this.cropperModel = true |
|
|
|
this.cropperModel = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
@ -972,7 +972,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 预览 |
|
|
|
// 预览 |
|
|
|
preview() { |
|
|
|
preview() { |
|
|
|
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'http://192.168.31.136/front') + `/#/article?articleId=${this.form.id}&siteId=${this.form.siteId}&id=${this.form.columnId}`) |
|
|
|
window.open((Setting.isDev ? `http://${location.hostname}:8095` : this.$store.state.content.site.domainName) + `/#/article?articleId=${this.form.id}&siteId=${this.form.siteId}&id=${this.form.columnId}`) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 返回 |
|
|
|
// 返回 |
|
|
|
back() { |
|
|
|
back() { |
|
|
@ -1176,6 +1176,12 @@ $upload-lg-height: 102px; |
|
|
|
margin-bottom: 10px; |
|
|
|
margin-bottom: 10px; |
|
|
|
border: 1px solid #DCDEE0; |
|
|
|
border: 1px solid #DCDEE0; |
|
|
|
border-radius: 2px; |
|
|
|
border-radius: 2px; |
|
|
|
|
|
|
|
img { |
|
|
|
|
|
|
|
width: 80px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.is-link { |
|
|
|
|
|
|
|
width: 50px; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.info { |
|
|
|
.info { |
|
|
|