26912
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="add">
|
<div class="add" v-if="isShow">
|
||||||
<div class="header-description">
|
<div class="header-description">
|
||||||
<u-form :model="forms" ref="uForm" label-width="auto">
|
<u-form :model="forms" ref="uForm" label-width="auto">
|
||||||
<u-form-item label="标题" prop="title" required label-position="top">
|
<u-form-item label="标题" prop="title" required label-position="top">
|
||||||
@@ -65,7 +65,8 @@ export default {
|
|||||||
moduleId: '',
|
moduleId: '',
|
||||||
listName: '',
|
listName: '',
|
||||||
selectList: [],
|
selectList: [],
|
||||||
isHideCoverimg: false
|
isHideCoverimg: false,
|
||||||
|
isShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {...mapState(['user'])},
|
computed: {...mapState(['user'])},
|
||||||
@@ -77,6 +78,8 @@ export default {
|
|||||||
this.moduleId = o.moduleId
|
this.moduleId = o.moduleId
|
||||||
if (!o.id) {
|
if (!o.id) {
|
||||||
this.forms.areaId = this.user.areaId
|
this.forms.areaId = this.user.areaId
|
||||||
|
}else {
|
||||||
|
this.isShow = true
|
||||||
}
|
}
|
||||||
this.listName = o.listName
|
this.listName = o.listName
|
||||||
this.getType()
|
this.getType()
|
||||||
@@ -110,6 +113,7 @@ export default {
|
|||||||
if (res.data.images) {
|
if (res.data.images) {
|
||||||
this.forms.images = JSON.parse(res.data.images || '[]')
|
this.forms.images = JSON.parse(res.data.images || '[]')
|
||||||
}
|
}
|
||||||
|
this.isShow = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user