bug
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" :border-bottom="false">
|
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
||||||
<u-form-item label="标题" prop="title" required :border-bottom="false" class="titles" label-position="top">
|
<u-form-item label="标题" prop="title" required :border-bottom="false" class="titles" label-position="top">
|
||||||
@@ -94,6 +94,7 @@ export default {
|
|||||||
second: false,
|
second: false,
|
||||||
timestamp: true,
|
timestamp: true,
|
||||||
},
|
},
|
||||||
|
isShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
@@ -106,6 +107,9 @@ export default {
|
|||||||
|
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
})
|
})
|
||||||
|
if(!o.id) {
|
||||||
|
this.isShow = true
|
||||||
|
}
|
||||||
if (!this.indexDetail) {
|
if (!this.indexDetail) {
|
||||||
this.forms.contactPhone = this.user.phone
|
this.forms.contactPhone = this.user.phone
|
||||||
this.forms.contactPerson = this.user.name
|
this.forms.contactPerson = this.user.name
|
||||||
@@ -127,6 +131,7 @@ export default {
|
|||||||
this.forms.url = JSON.parse(res.data.url || '[]')
|
this.forms.url = JSON.parse(res.data.url || '[]')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.isShow = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" :border-bottom="false">
|
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
||||||
<u-form-item label="标题" prop="title" required :border-bottom="false" class="names">
|
<u-form-item label="标题" prop="title" required :border-bottom="false" class="names">
|
||||||
@@ -43,11 +43,15 @@ export default {
|
|||||||
images: [],
|
images: [],
|
||||||
},
|
},
|
||||||
flag: false,
|
flag: false,
|
||||||
|
isShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {...mapState(['user'])},
|
computed: {...mapState(['user'])},
|
||||||
onLoad(o) {
|
onLoad(o) {
|
||||||
this.id = o.id
|
this.id = o.id
|
||||||
|
if(!o.id) {
|
||||||
|
this.isShow = true
|
||||||
|
}
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -65,6 +69,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