Prechádzať zdrojové kódy

提交组织架构的搜索

Lijy 2 rokov pred
rodič
commit
ce82252ef6

+ 11 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/team/index.vue

@@ -159,8 +159,13 @@
                         </el-select>
                     </el-form-item>
                     <el-form-item style="float:right;">
-                        <div style="width: 200px;display: inline-block;margin-top: 4px">
-                            <el-input v-model="keyword" class="input-with-select" :placeholder="$t('nameoftheperson')" clearable="true" size="small">
+                        <div style="width: 300px;display: inline-block;margin-top: 4px">
+                            <el-input v-model="keyword" class="input-with-select" placeholder="请输入" clearable="true" size="small">
+                              <el-select v-model="integer" slot="prepend" style="width: 80px">
+                                <el-option label="姓名" value="0"></el-option>
+                                <el-option label="电话" value="1"></el-option>
+                                <el-option label="工号" value="2"></el-option>
+                              </el-select>
                                 <el-button slot="append" @click="searchList" icon="el-icon-search"></el-button>
                             </el-input>
                         </div>
@@ -822,6 +827,7 @@ export default {
   },
   data() {
     return {
+      integer: '0',
       workingHoursDialog: false,
       workingHoursRadio: '1',
       workingHoursDatas: [],
@@ -2264,6 +2270,7 @@ export default {
           roleId: this.roleId,
           onlyDirect: this.onlyDirect ? "1" : "0",
           cursor: this.nextCursor, // 游标
+          matchingType: this.integer
         },
         (res) => {
           this.listLoading = false;
@@ -3092,7 +3099,8 @@ export default {
           status: this.status,
           roleId: this.roleId,
           cursor: this.nextCursor,
-          onlyDirect: this.onlyDirect ? "1" : "0"
+          onlyDirect: this.onlyDirect ? "1" : "0",
+          matchingType: this.integer
         },
         (res) => {
           this.listLoading = false;