|
|
@@ -59,7 +59,33 @@
|
|
|
<div>{{ row.jobNumber }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column width="80" label="操作">
|
|
|
+ <!-- <el-table-column width="80" label="操作">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ @click="choiceAsset(row)"
|
|
|
+ :disabled="row.disabled"
|
|
|
+ icon="el-icon-arrow-right"
|
|
|
+ circle
|
|
|
+ >
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column width="180" label="操作" align="right">
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <div style="display: flex">
|
|
|
+
|
|
|
+ <el-input v-model="userName" placeholder="输入姓名查询" clearable
|
|
|
+ @change="changeUserName"></el-input>
|
|
|
+ <div
|
|
|
+ v-if="staffList.length !== 0 && isMore"
|
|
|
+ class="zw-page-list-more"
|
|
|
+ >
|
|
|
+ <el-button type="text" @click="getMore()">更多<i class="el-icon-caret-bottom"></i></el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
@@ -72,15 +98,18 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column width="80" label="操作">
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
- <div
|
|
|
+ <!-- <div
|
|
|
v-if="staffList.length !== 0 && isMore"
|
|
|
class="zw-page-list-more"
|
|
|
>
|
|
|
<el-link @click="getMore()" type="primary"
|
|
|
>更多<i class="el-icon-caret-bottom"></i>
|
|
|
</el-link>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</el-container>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
@@ -146,6 +175,7 @@
|
|
|
treeList: [],
|
|
|
staffList: [],
|
|
|
selectStafflist: [], //已选员工
|
|
|
+ userName: '',
|
|
|
defaultProps: {
|
|
|
children: 'children',
|
|
|
label: 'name',
|
|
|
@@ -159,6 +189,19 @@
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ changeUserName() {
|
|
|
+ this.staffList = [];
|
|
|
+ this.pageNum = 1;
|
|
|
+ // this.form.groupId = this.currentData.id;
|
|
|
+ let params = {
|
|
|
+ pageNum: 1,
|
|
|
+ size: this.size,
|
|
|
+ groupId: this.form.groupId,
|
|
|
+ name: this.userName
|
|
|
+ };
|
|
|
+
|
|
|
+ this.getStaffList(params);
|
|
|
+ },
|
|
|
open(selectedList) {
|
|
|
this.dialogVisible = true;
|
|
|
this.pageNum = 1;
|
|
|
@@ -226,7 +269,8 @@
|
|
|
let params = {
|
|
|
pageNum: this.pageNum,
|
|
|
size: this.size,
|
|
|
- groupId: this.form.groupId
|
|
|
+ groupId: this.form.groupId,
|
|
|
+ name: this.userName
|
|
|
};
|
|
|
this.getStaffList(params);
|
|
|
},
|