From d10c7c728234b5a9098b7bd5bb7a914a14e33c20 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 29 十二月 2023 18:37:28 +0800
Subject: [PATCH] su

---
 src/views/picture/music/index.vue |   37 ++++++++++++++++++++++++-------------
 1 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/src/views/picture/music/index.vue b/src/views/picture/music/index.vue
index 3da79b3..0071915 100644
--- a/src/views/picture/music/index.vue
+++ b/src/views/picture/music/index.vue
@@ -10,10 +10,12 @@
     >
       <el-form-item label="浣撴鍙�" prop="tjNum">
         <el-input
+          ref="inputName"
           v-model="queryParams.tjNum"
           placeholder="璇疯緭鍏ヤ綋妫�鍙�"
           clearable
           @keyup.enter.native="handleQuery"
+          @blur="handleQuery"
           style="width: 160px"
         />
       </el-form-item>
@@ -73,9 +75,13 @@
           />
           <!-- <el-table-column label="韬唤璇�" align="center" prop="customer.cusIdcard" width="170px" /> -->
           <el-table-column label="鎬у埆" align="center" prop="customer.cusSex">
-            <template slot-scope="scope">
+            <!-- <template slot-scope="scope">
               {{ scope.row.customer.cusSex === 0 ? "鐢�" : "濂�" }}
-              <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
+            </template> -->
+            <template slot-scope="scope">
+              <span v-if="scope.row.cusSex == '0'">鐢�</span>
+              <span v-if="scope.row.cusSex == '1'">濂�</span>
+              <span v-if="scope.row.cusSex == '2'">鏈煡</span>
             </template>
           </el-table-column>
           <!-- <el-table-column label="鐢熸棩" align="center" prop="customer.cusBrithday" width="110px" /> -->
@@ -140,7 +146,7 @@
           <el-table-column label="椤圭洰缁撴灉" align="center" prop="fixedValue" /> -->
       <!-- <el-table-column label="缁撹" align="center" prop="measuredValue" /> -->
       <!-- </el-table>
-
+ 
         <div style="height: 390px; margin-top: 10px">
           <el-image
             v-loading="loading"
@@ -401,7 +407,7 @@
         <div class="tanchuangbox_right">
           <div>
             <span>鑱屼笟鍙�</span>
-            <div style="width:100%;min-height:300px"></div>
+            <div style="width: 100%; min-height: 300px"></div>
           </div>
           <div style="display: flex; margin-top: 20px">
             <div
@@ -492,7 +498,7 @@
     <Public ref="aaa" @add="handleChanges" />
   </div>
 </template>
-
+ 
 <script>
 import {
   getList,
@@ -533,27 +539,27 @@
       zhexianList: [
         {
           date: 500,
-          bgcoun:3,
+          bgcoun: 3,
         },
         {
           date: 1000,
-          bgcoun:32,
+          bgcoun: 32,
         },
         {
           date: 2000,
-          bgcoun:31,
+          bgcoun: 31,
         },
         {
           date: 3000,
-          bgcoun:43,
+          bgcoun: 43,
         },
         {
           date: 4000,
-          bgcoun:13,
+          bgcoun: 13,
         },
         {
           date: 6000,
-          bgcoun:32,
+          bgcoun: 32,
         },
       ],
       tableData: [
@@ -648,6 +654,11 @@
   },
   created() {
     this.getList();
+  },
+  mounted() {
+    this.$nextTick(() => {
+      this.$refs.inputName.focus();
+    });
   },
   methods: {
     handleRowClick(selection) {
@@ -1247,7 +1258,7 @@
   },
 };
 </script>
-
+ 
 <style>
 #table .el-table__header-wrapper .el-checkbox {
   display: none;
@@ -1352,4 +1363,4 @@
 .ss_txt {
   width: 60px;
 }
-</style>
+</style>
\ No newline at end of file

--
Gitblit v1.8.0