瀏覽代碼

默认请求表格数据

chenrui 3 年之前
父節點
當前提交
88e1efe71a

+ 0 - 1
src/views/allocationManagement/storeTransferOut/edit.vue

@@ -93,7 +93,6 @@
               :customRow="handleClickRow"
               :data="loadData"
               :scroll="{ x: 1180, y: 300 }"
-              :defaultLoadData="false"
               bordered>
               <!-- 操作 -->
               <template slot="action" slot-scope="text, record">

+ 3 - 4
src/views/salesManagement/salesReturn/queryPart.vue

@@ -26,9 +26,9 @@
               </a-form-item>
             </a-col>
           </template>
-          <a-col :md="6" :sm="24">
-            <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
-            <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
+          <a-col :md="6" :sm="24" style="margin-bottom: 10px">
+            <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
+            <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
             <a @click="advanced=!advanced" style="margin:0 15px 0 8px" v-if="grabFlag == 1">
               {{ advanced ? '收起' : '展开' }}
               <a-icon :type="advanced ? 'up' : 'down'"/>
@@ -46,7 +46,6 @@
       :columns="columns"
       :data="loadData"
       :customRow="handleClickRow"
-      :defaultLoadData="false"
       :scroll="{ x: grabFlag == '1' ? 1620 : 1040, y: 300 }"
       bordered>
       <!-- 价格 -->

+ 3 - 8
src/views/salesManagement/salesReturn/salesReturnEdit.vue

@@ -69,8 +69,8 @@
                   </a-col>
                   <a-col :md="8" :sm="24">
                     <a-form-model-item>
-                      <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="salesReturn-refresh">查询</a-button>
-                      <a-button style="margin: 0 0 18px 8px" @click="resetForm" id="salesReturn-reset">重置</a-button>
+                      <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="salesReturn-refresh">查询</a-button>
+                      <a-button style="margin-left: 5px" @click="resetForm" id="salesReturn-reset">重置</a-button>
                     </a-form-model-item>
                   </a-col>
                 </a-row>
@@ -552,9 +552,7 @@ export default {
     this.getWarehouseCascade()
   },
   beforeRouteEnter (to, from, next) {
-    next(vm => {
-      console.log('beforeRouteEnter')
-    })
+    next(vm => {})
   }
 }
 </script>
@@ -571,9 +569,6 @@ export default {
     }
     .pages-wrap{
       margin-top: 10px;
-      .sTable{
-        margin-top: 10px;
-      }
       .total-bar{
         display: flex;
         align-items: center;