|
|
@@ -194,11 +194,14 @@
|
|
|
}
|
|
|
this.informationList.forEach(item => {
|
|
|
item.is_show = productTypes.indexOf(item.type + '') >= 0;
|
|
|
- this.productInfo.type_data.forEach(val => {
|
|
|
- if (val.type === item.type + '') {
|
|
|
- item.type_keys = val.type_keys
|
|
|
- }
|
|
|
- })
|
|
|
+ if(this.productInfo.type_data){
|
|
|
+ this.productInfo.type_data.forEach(val => {
|
|
|
+ if (val.type === item.type + '') {
|
|
|
+ item.type_keys = val.type_keys
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -448,10 +451,11 @@
|
|
|
if (res.code === 1) {
|
|
|
this.productInfo = res.data.productInfo
|
|
|
this.taskData = res.data.taskData
|
|
|
- this.productInfo.product_types.forEach(item=>{
|
|
|
- this.verifyBusinessModuleKey(item*1)
|
|
|
- })
|
|
|
- // this.getTaskTypeInfo(this.taskData.productId)
|
|
|
+ for (const resKey in this.productInfo.product_types) {
|
|
|
+ let productType=this.productInfo.product_types[resKey]*1
|
|
|
+ this.verifyBusinessModuleKey(productType)
|
|
|
+ }
|
|
|
+ this.getTaskTypeInfo(this.taskData.productId)
|
|
|
} else {
|
|
|
this.closePage();
|
|
|
}
|