소스 검색

bug修改

wangfei 6 년 전
부모
커밋
877fe0f305
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      src/pages/system/cardAndCouponManager/couponManager/edit.vue
  2. 1
    1
      src/pages/system/dataStatistics/goodsOrderList/index.vue

+ 1
- 1
src/pages/system/cardAndCouponManager/couponManager/edit.vue 파일 보기

@@ -619,7 +619,7 @@ export default {
619 619
           caseid: this.couponInfo.CaseId
620 620
         }).then((res) => {
621 621
           this.courseList = []
622
-          for (var n = 0; n < res.list.length; n++) {
622
+          for (var n = 0; n < (res.list || []).length; n++) {
623 623
             this.courseList.push({ ...res.list[n], BeginDate: this.toolClass.dateFormat(res.list[n].BeginDate), EndDate: this.toolClass.dateFormat(res.list[n].EndDate) })
624 624
           }
625 625
           this.total = res.pagenum

+ 1
- 1
src/pages/system/dataStatistics/goodsOrderList/index.vue 파일 보기

@@ -76,7 +76,7 @@
76 76
           </div>
77 77
         </td>
78 78
         <td v-if="index%2 !== 0" colspan="4" class="noborder">
79
-          <span v-for="(subItem,subIndex) in returnListItem(goodsOrderList, index).Details" :key="subIndex">{{subItem.GoodsName}}({{subItem.SpecName}})</span>
79
+          <span v-for="(subItem,subIndex) in returnListItem(goodsOrderList, index).Details" :key="subIndex">{{subItem.GoodsName}}<span v-if="subItem.SpecName">({{subItem.SpecName}})</span></span>
80 80
         </td>
81 81
         <td v-if="index%2 !== 0" colspan="1" class="noborder">
82 82
           <span v-for="(subItem,subIndex) in returnListItem(goodsOrderList, index).Details" :key="subIndex">x{{subItem.Number}}</span>