|
@@ -739,13 +739,15 @@ export default {
|
|
|
let tempBoo2 = false
|
|
let tempBoo2 = false
|
|
|
let tempBoo3 = false
|
|
let tempBoo3 = false
|
|
|
this.tab2Arr.forEach((v, i) => {
|
|
this.tab2Arr.forEach((v, i) => {
|
|
|
- temp.push({
|
|
|
|
|
- id: v.id,
|
|
|
|
|
- name: v.name,
|
|
|
|
|
- projectId: Number(this.$route.query.id),
|
|
|
|
|
- type: 'scene',
|
|
|
|
|
- url: v.url
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (v.name !== '' && v.url !== '') {
|
|
|
|
|
+ temp.push({
|
|
|
|
|
+ id: v.id,
|
|
|
|
|
+ name: v.name,
|
|
|
|
|
+ projectId: Number(this.$route.query.id),
|
|
|
|
|
+ type: 'scene',
|
|
|
|
|
+ url: v.url
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
if (i !== this.tab2Arr.length - 1) {
|
|
if (i !== this.tab2Arr.length - 1) {
|
|
|
if (v.name.trim() === '' || v.url.trim() === '') tempBoo2 = true
|
|
if (v.name.trim() === '' || v.url.trim() === '') tempBoo2 = true
|
|
|
}
|
|
}
|
|
@@ -818,7 +820,8 @@ export default {
|
|
|
this.titleName = res.data.entity.name
|
|
this.titleName = res.data.entity.name
|
|
|
this.ruleForm = res.data.entity
|
|
this.ruleForm = res.data.entity
|
|
|
this.tab1Arr = res.data.website
|
|
this.tab1Arr = res.data.website
|
|
|
- this.tab2Arr = res.data.scene
|
|
|
|
|
|
|
+ if (res.data.scene.length) this.tab2Arr = res.data.scene
|
|
|
|
|
+ else this.tab2Arr = [{ name: '', url: '' }]
|
|
|
this.fuJianArr = res.data.doc
|
|
this.fuJianArr = res.data.doc
|
|
|
this.saveAntiqueArr = res.data.goods
|
|
this.saveAntiqueArr = res.data.goods
|
|
|
},
|
|
},
|