From 955081f4111c7d276bb63d3ee8dacb3e07bc53be Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 25 八月 2022 21:30:52 +0800
Subject: [PATCH] 点检标准新增功能实现

---
 src/views/jcsz/wldw.vue |   84 ++++++++++++++++++++++++++----------------
 1 files changed, 52 insertions(+), 32 deletions(-)

diff --git a/src/views/jcsz/wldw.vue b/src/views/jcsz/wldw.vue
index bf56201..6a394b8 100644
--- a/src/views/jcsz/wldw.vue
+++ b/src/views/jcsz/wldw.vue
@@ -93,53 +93,74 @@
             width="240"
           >
             <!--            sortable="custom"-->
-
-            <el-table-column
-              prop="mtype"
-              width="80"
-            >
-              <template slot-scope="{row}">
-                <div v-if="row.mtype==='WG'">澶栬喘渚涙柟</div>
-                <div v-else>/</div>
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="btype"
-              width="80"
-            >
-              <template slot-scope="{row}">
-                <div v-if="row.btype==='WX'">澶栧崗渚涙柟</div>
-                <div v-else>/</div>
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="htype"
-              width="80"
-            >
-              <template slot-scope="{row}">
+            <template slot-scope="{row}">
+              <div style="display: flex;justify-content: flex-start">
+                <div v-if="row.mtype==='WG'" style="margin-right: 15px">澶栬喘渚涙柟</div>
+                <div v-if="row.btype==='WX'" style="margin-right: 15px;">澶栧崗渚涙柟</div>
                 <div v-if="row.htype==='KH'">瀹㈡埛</div>
-                <div v-else>/</div>
-              </template>
-            </el-table-column>
+              </div>
+            </template>
+            <!--            <el-table-column-->
+            <!--              prop="mtype"-->
+            <!--              width="80"-->
+            <!--            >-->
+            <!--              <template slot-scope="{row}">-->
+            <!--                <div v-if="row.mtype==='WG'">澶栬喘渚涙柟</div>-->
+            <!--                <div v-else>/</div>-->
+            <!--              </template>-->
+            <!--            </el-table-column>-->
+            <!--            <el-table-column-->
+            <!--              prop="btype"-->
+            <!--              width="80"-->
+            <!--            >-->
+            <!--              <template slot-scope="{row}">-->
+            <!--                <div v-if="row.btype==='WX'">澶栧崗渚涙柟</div>-->
+            <!--                <div v-else>/</div>-->
+            <!--              </template>-->
+            <!--            </el-table-column>-->
+            <!--            <el-table-column-->
+            <!--              prop="htype"-->
+            <!--              width="80"-->
+            <!--            >-->
+            <!--              <template slot-scope="{row}">-->
+            <!--                <div v-if="row.htype==='KH'">瀹㈡埛</div>-->
+            <!--                <div v-else>/</div>-->
+            <!--              </template>-->
+            <!--            </el-table-column>-->
           </el-table-column>
           <el-table-column
             prop="conttacts"
             label="鑱旂郴浜�"
             width="110"
             sortable="custom"
-          />
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.conttacts">{{ row.conttacts }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="conttphone"
             label="鑱旂郴鏂瑰紡"
             width="160"
             sortable="custom"
-          />
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.conttphone">{{ row.conttphone }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="addr"
             min-width="160"
             label="琛ュ厖鎻忚堪"
             sortable="custom"
-          />
+          >
+            <template slot-scope="{row}">
+              <div v-if="row.addr">{{ row.addr }}</div>
+              <div v-else>/</div>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="lm_user"
             label="鍒涘缓浜哄憳"
@@ -172,12 +193,11 @@
       </div>
       <!--鍒嗛〉-->
       <pagination
-        v-show="total>0"
         :total="total"
         :page.sync="form.page"
         :limit.sync="form.rows"
         align="right"
-        layout="prev, pager, next,sizes"
+        layout="total,prev, pager, next,sizes"
         popper-class="select_bottom"
         @pagination="getCurrentUnitSearch"
       />

--
Gitblit v1.9.3