|
@@ -2208,21 +2208,18 @@ export default {
|
|
|
this.openFullScreen(true)
|
|
|
console.log(res)
|
|
|
if (res.data.message === "" && !res.data.message) {
|
|
|
- if(res.data.list&&res.data.list.length>0){
|
|
|
- res.data.list.forEach(item=>{
|
|
|
+ this.dataPolicy = res.data.list? res.data.list: [];
|
|
|
+ this.dataPolicy.forEach(item=>{
|
|
|
this.$set(item, 'priceType', res.data.cname)
|
|
|
})
|
|
|
- }
|
|
|
- this.dataPolicy = res.data.list? res.data.list: [];
|
|
|
+ console.log(this.dataPolicy)
|
|
|
this.policyIndex++;
|
|
|
} else {
|
|
|
- if(res.data.list&&res.data.list.length>0){
|
|
|
- res.data.list.forEach(item=>{
|
|
|
+ this.dataPolicy = res.data.list? res.data.list: [];
|
|
|
+ this.dataPolicy.forEach(item=>{
|
|
|
this.$set(item, 'priceType', res.data.cname)
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
- this.dataPolicy = res.data.list? res.data.list: [];
|
|
|
+ console.log(this.dataPolicy)
|
|
|
this.policyIndex++;
|
|
|
this.$message({
|
|
|
showClose: true,
|