Explorar o código

搜索员工可以显示科室

lighter %!s(int64=2) %!d(string=hai) anos
pai
achega
c598c9f50e
Modificáronse 1 ficheiros con 5 adicións e 10 borrados
  1. 5 10
      src/components/search/Index.vue

+ 5 - 10
src/components/search/Index.vue

@@ -15,19 +15,10 @@
         <el-input ref="inputRef" v-model="params.content" style="width: 240px" clearable placeholder="请输入检索内容"></el-input>
       </div>
       <div class="data-box">
-        <!-- <div style="height: 330px">
-          <div class="data-item-thead">
-            <div style="width: 120px">编码</div>
-            <div style="width: 260px">名称</div>
-          </div>
-          <div v-for="(itm, index) in data.list" :key="index" class="data-item-line" @click="clickItem(itm)">
-            <div style="width: 120px" :title="itm.name">{{ itm.code }}</div>
-            <div style="width: 260px" :title="itm.name">{{ itm.name }}</div>
-          </div>
-        </div> -->
         <el-table ref="resultRef" :data="data.list" stripe height="360px" highlight-current-row @row-click="clickItem">
           <el-table-column prop="code" label="编码"></el-table-column>
           <el-table-column prop="name" label="名称"></el-table-column>
+          <el-table-column v-if="showEmpDept" prop="deptName" label="科室"></el-table-column>
         </el-table>
         <el-pagination
           @current-change="handleCurrentChange"
@@ -81,6 +72,10 @@ export default {
       type: String,
       default: '',
     },
+    showEmpDept: {
+      type: Boolean,
+      default: false
+    }
   },
   emits: ['close', 'clickItem'],
   setup(props, ctx) {