selectEmp.vue
2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template>
<div class="square-main">
<el-dialog
title="选择跟进专员"
:visible.sync="dialogVisible"
width="50%"
:before-close="handleClose"
>
<el-form :inline="true" :model="tableSearchForm" label-width="80px">
<el-form-item size="small" label="员工">
<el-input v-model="tableSearchForm.name" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable
ref="employeeRef"
:getListApi="getListApi"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
:hasNum="false"
>
</GLTable>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="dialogVisible = false"
>确 定</el-button
>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "selectEmp",
data() {
return {
dialogVisible: false,
tableSearchForm: {},
getListApi: this.$apis.channel.getListApi,
tableParams: {
listName: "data",
tableOption: false,
otherOptions: {
label: "启用开关",
},
tableColumns: [
{
label: "姓名",
prop: "staffName",
},
{
label: "部门",
prop: "entmicroName",
},
{
label: "测试专员类型",
prop: "roleName",
},
],
},
pageConf: { pageSize: "pageSize", pageNum: "pageNum", totalCount: "count" },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: [],
},
};
},
methods: {
init() {
this.dialogVisible = true;
},
},
};
</script>
<style lang="scss" scoped></style>