Browse Source

限制首页5条审批数据

caojunjie 4 years ago
parent
commit
87e431c5e1
1 changed files with 5 additions and 8 deletions
  1. 5 8
      src/views/index.vue

+ 5 - 8
src/views/index.vue

@@ -683,19 +683,16 @@
             <div class="home_stock_table">业务类型</div>
             <div class="home_stock_table">业务类型</div>
             <div class="home_stock_table_right">
             <div class="home_stock_table_right">
               <div>操作</div>
               <div>操作</div>
-              <!--                <el-link type="primary" @click="jump('/morePage/stock')"-->
-              <!--                >更多></el-link-->
-              <!--                >-->
+                              <el-link type="primary" @click="jump('/morePage/stock')"
+                              >更多></el-link
+                              >
             </div>
             </div>
           </div>
           </div>
           <div v-if="tableData.length > 0">
           <div v-if="tableData.length > 0">
             <div
             <div
-              style="
-                  display: flex;
-                  height: 42.6px;
-                  border-bottom: 1px dashed #dfe6ec;
-                "
+              style="display: flex;height: 42.6px;border-bottom: 1px dashed #dfe6ec;"
               v-for="(item, index) in tableData"
               v-for="(item, index) in tableData"
+              v-if="index < 5"
               :key="index"
               :key="index"
             >
             >
               <div class="home_stock_table"> <p>{{ item.refno1 }}</p></div>
               <div class="home_stock_table"> <p>{{ item.refno1 }}</p></div>