xiexiang пре 9 месеци
родитељ
комит
c1934b1b39
1 измењених фајлова са 20 додато и 20 уклоњено
  1. 20 20
      src/views/report/components/dialog/handlePerson.vue

+ 20 - 20
src/views/report/components/dialog/handlePerson.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-dialog  title="配案人员" :visible.sync="visible" width="600px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
+    <el-dialog  title="配案人员" :visible.sync="visible" width="800px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
       <div style="height:calc(100vh - 250px)">
         <el-table 
             ref="table"
@@ -10,7 +10,7 @@
             style="width: 100%"
             height="calc(100% - 0px)"
             v-loading="loading">
-            <el-table-column prop="name" label="姓名" width="180">
+            <el-table-column prop="name" label="姓名" min-width="220">
                 <template slot-scope="scope">
                     <div>
                         <div v-if="model == 'list'">
@@ -18,26 +18,26 @@
                         </div>
                         <div v-else>
                             <el-autocomplete
+                              style="width: 100%;"
                                 class="inline-input"
                                 v-model="scope.row.name"
                                 v-SelectLazyLoading="IPREmailLoad"
-                                value-key="name"
-                                :debounce="1500"
                                 :fetch-suggestions="querySearchByName"
                                 placeholder="请输入内容"
                                 @select="(item)=>handleSelect(item,scope.row)"
                             >
-                            <span slot="append">
-                                <template slot-scope="{ item }">
-                                    <span>{{ item.email }}</span>
-                                </template>
-                            </span>
+                            <template slot-scope="{ item }">
+                                <div style="padding: 5px 0;">
+                                  <div style="text-overflow: ellipsis;overflow: hidden;line-height: normal;">{{ item.name }}</div>
+                                  <div style="font-size: 12px;color: #b4b4b4;line-height: normal;">{{ item.email }}</div>
+                                </div>
+                              </template>
                             </el-autocomplete>
                         </div>
                     </div>
                 </template>
             </el-table-column>
-            <el-table-column prop="email" label="邮箱" width="180">
+            <el-table-column prop="email" label="邮箱" min-width="220">
                 <template slot-scope="scope">
                     <div>
                         <div v-if="model == 'list'">
@@ -45,26 +45,26 @@
                         </div>
                         <div v-else>
                             <el-autocomplete
+                              style="width: 100%;"
                                 class="inline-input"
                                 v-model="scope.row.email"
-                                :debounce="1500"
                                 v-SelectLazyLoading="IPREmailLoad"
-                                value-key="email"
                                 :fetch-suggestions="querySearchByEmail"
                                 placeholder="请输入内容"
                                 @select="(item)=>handleSelect(item,scope.row)"
                             >
-                            <span slot="append">
-                                <template slot-scope="{ item }">
-                                    <span>{{ item.name }}</span>
-                                </template>
-                            </span>
+                              <template slot-scope="{ item }">
+                                <div style="padding: 5px 0;">
+                                  <div style="text-overflow: ellipsis;overflow: hidden;line-height: normal;">{{ item.email }}</div>
+                                  <div style="font-size: 12px;color: #b4b4b4;line-height: normal;">{{ item.name }}</div>
+                                </div>
+                              </template>
                             </el-autocomplete>
                         </div>
                     </div>
                 </template>
             </el-table-column>
-            <el-table-column label="操作">
+            <el-table-column label="操作" width="180px">
                 <template slot-scope="scope">
                     <div>
                         <div v-if="model == 'list'">
@@ -133,7 +133,7 @@ export default {
             this.tableData = [response.data]
             this.model = 'list'
           }else{
-            this.tableData = []
+            this.tableData = [{}]
             this.model = 'add'
           }
           this.loading = false
@@ -226,7 +226,7 @@ export default {
         if (res.code == 200) {
           this.IPREmailList.data.push(...res.data.data)
           this.IPREmailList.queryParams.total = res.data.total
-          this.IPREmailList.cb(this.personnelList.data);
+          this.IPREmailList.cb(this.IPREmailList.data);
         }
       })
     },