chenrui 1 год назад
Родитель
Сommit
19099316da

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

@@ -37,7 +37,7 @@
         row-key-field-name="no"
         :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>
   </div>
 </template>
@@ -130,6 +130,8 @@ export default {
         } else {
           _this.dataSource = []
         }
+        _this.showEmpty = _this.dataSource.length <= 0
+        _this.tableHeight = (_this.showEmpty ? 300 : _this.maxHeight) + 'px'
         _this.spinning = false
         _this.disabled = false
       })

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

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