selectEmp.vue 2.05 KB
<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>