Commit ef5a1341 by 杨明

fixed

1 parent 93a02df0
...@@ -229,7 +229,8 @@ export default { ...@@ -229,7 +229,8 @@ export default {
watch: { watch: {
'basicForm.businessType': { 'basicForm.businessType': {
handler(nVal) { handler(nVal) {
if (nVal) { console.log(nVal)
if (nVal && nVal != 1) {
this.btnList = this.btnList.filter(item => item.type != 'link') this.btnList = this.btnList.filter(item => item.type != 'link')
} }
}, },
...@@ -286,7 +287,14 @@ export default { ...@@ -286,7 +287,14 @@ export default {
this.$apis.expert.expertDetail({ id }).then(res => { this.$apis.expert.expertDetail({ id }).then(res => {
if (res?.id) { if (res?.id) {
this.selectPerson = res this.selectPerson = res
this.$refs.welcome.setDetail(res.welcomeInfo) // this.$refs.welcome.setDetail(res.welcomeInfo)
if (res.welcomeInfo.length != 0) {
const previewList = res.welcomeInfo.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
}
this.basicForm.businessType = res.businessType this.basicForm.businessType = res.businessType
this.basicForm.expertType = res.expertType this.basicForm.expertType = res.expertType
this.merchantId = res.merchantId this.merchantId = res.merchantId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!