Commit 5ec84605 by Lyan

详情面包屑bug

parent def5e0fa
...@@ -106,16 +106,16 @@ ...@@ -106,16 +106,16 @@
<el-form-item label="图片:" prop="pic"> <el-form-item label="图片:" prop="pic">
<el-upload <el-upload
v-show="!showInfo" v-show="!showInfo"
class="avatar-uploader" class="avatar-uploader avatar"
action="" action=""
:show-file-list="false" :show-file-list="false"
:http-request="Upload" :http-request="Upload"
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
> >
<img v-if="dialogVisible" :src="imgUrlStr" class="avatar" /> <img v-if="dialogVisible" :src="imgUrlStr" class="" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<p v-show="showInfo"><img :src="imgUrlStr" class="avatar" /></p> <p v-show="showInfo"><img :src="imgUrlStr" class="avatar2" /></p>
</el-form-item> </el-form-item>
<el-form-item label="简介:" prop="brief"> <el-form-item label="简介:" prop="brief">
...@@ -204,13 +204,13 @@ export default { ...@@ -204,13 +204,13 @@ export default {
}, },
piclevelList, piclevelList,
id: [], id: [],
title: "", title: '',
className: "", className: '',
cclassName: "", cclassName: ''
}; }
}, },
mounted() { mounted () {
console.log(this.classidList); console.log(this.classidList)
}, },
methods: { methods: {
getSelectName (list, id) { getSelectName (list, id) {
......
...@@ -297,16 +297,16 @@ export default { ...@@ -297,16 +297,16 @@ export default {
}, },
// 预览 // 预览
previewHandle (info) { previewHandle (info) {
console.log(info, '预览'); console.log(info, '预览')
let url; let url
if (!info.directpath || info.directpath === null) { if (!info.directpath || info.directpath === null) {
url = `${this.$store.state.config.urls}/News/msg?id=${info.id}`; url = `${this.$store.state.config.urls}/News/msg?id=${info.id}`
} else if (/^\//.test(info.directpath)) { } else if (/^\//.test(info.directpath)) {
url = `${this.$store.state.config.urls}${info.directpath}`; url = `${this.$store.state.config.urls}${info.directpath}`
} else { } else {
url = info.directpath; url = info.directpath
} }
window.open(url, '_blank'); window.open(url, '_blank')
}, },
// 新增 / 修改 // 新增 / 修改
addOrUpdateHandle (id, showInfo) { addOrUpdateHandle (id, showInfo) {
...@@ -337,8 +337,8 @@ export default { ...@@ -337,8 +337,8 @@ export default {
type: 'success', type: 'success',
duration: 1500, duration: 1500,
onClose: () => { onClose: () => {
this.getDataList() this.getDataList()
} }
}) })
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
...@@ -373,8 +373,8 @@ export default { ...@@ -373,8 +373,8 @@ export default {
type: 'success', type: 'success',
duration: 1500, duration: 1500,
onClose: () => { onClose: () => {
this.getDataList() this.getDataList()
} }
}) })
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
......
...@@ -298,7 +298,7 @@ export default { ...@@ -298,7 +298,7 @@ export default {
method: 'post', method: 'post',
data: this.$http.adornData({ data: this.$http.adornData({
'id': id, 'id': id,
'status': status 'checkflag': status
}) })
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment