Browse Source

经销权

chenrui 1 year ago
parent
commit
19099316da

+ 3 - 1
src/views/dealerManagement/merchantInfoManagement/chooseTypeList.vue

@@ -37,7 +37,7 @@
         row-key-field-name="no"
         row-key-field-name="no"
         :checkbox-option="checkboxOption"
         :checkbox-option="checkboxOption"
       />
       />
-      <div v-show="dataSource.length==0" class="empty-data"><a-empty description="暂无产品" :image="simpleImage"/></div>
+      <div v-show="showEmpty" class="empty-data"><a-empty description="暂无产品" :image="simpleImage"/></div>
     </a-spin>
     </a-spin>
   </div>
   </div>
 </template>
 </template>
@@ -130,6 +130,8 @@ export default {
         } else {
         } else {
           _this.dataSource = []
           _this.dataSource = []
         }
         }
+        _this.showEmpty = _this.dataSource.length <= 0
+        _this.tableHeight = (_this.showEmpty ? 300 : _this.maxHeight) + 'px'
         _this.spinning = false
         _this.spinning = false
         _this.disabled = false
         _this.disabled = false
       })
       })

+ 1 - 1
src/views/dealerManagement/merchantInfoManagement/permissionSettingNew.vue

@@ -200,7 +200,7 @@ export default {
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
       this.queryParam.productTypeSn3 = ''
       this.queryParam.priceLevel = undefined
       this.queryParam.priceLevel = undefined
-      this.productType.productType = []
+      this.productType = []
       this.$refs.table.refresh(true)
       this.$refs.table.refresh(true)
     },
     },
     // 返回
     // 返回