Commit 896011e5 by 胡悦

修改

1 parent 160089b4
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
</div> </div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <GLButton type="text" @click="handleLook(scope.scope)" fn="查看">查看</GLButton>
<GLButton type="text" @click="handleEdit(scope.scope)" v-if="$globalState.session.merchantId != scope.scope.merchantNo" fn="修改" mode="el-button">修改</GLButton>
<GLButton type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4" fn="创建子商户/门店" mode="el-button">创建商户</GLButton> -->
<!-- <el-button type="text" @click="handleLook(scope.scope)">查看</el-button> --> <!-- <el-button type="text" @click="handleLook(scope.scope)">查看</el-button> -->
<!-- <el-button type="text" @click="handleEdit(scope.scope)" v-if="$globalState.session.merchantId != scope.scope.merchantNo">修改</el-button> <!-- <el-button type="text" @click="handleEdit(scope.scope)" v-if="$globalState.session.merchantId != scope.scope.merchantNo">修改</el-button>
<el-button type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4">创建子商户/门店</el-button>--> <el-button type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4">创建子商户/门店</el-button>-->
......
...@@ -12,29 +12,20 @@ ...@@ -12,29 +12,20 @@
<div class="table-header"> <div class="table-header">
<div class="header-text">员工列表</div> <div class="header-text">员工列表</div>
<div class="table-btn"> <div class="table-btn">
<el-button @click="handleExport" :size="size" type="primary" plain mode="el-button">导出</el-button> <!-- <el-button @click="handleExport" :size="size" type="primary" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" mode="el-button">导出</GLButton> <GLButton @click="handleExport" fn="导出" :size="size" type="primary" plain mode="el-button">导出</GLButton>
</div> </div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="optionBtns" slot-scope="scope"> <div slot="optionBtns" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button> --> <!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<!-- <el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button> <el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
<!-- <GLButton type="text" @click="handleDetail(scope.scope)" fn="查看" mode="el-button">查看</GLButton>
<GLButton type="text" @click="handleEdit(2, scope.scope)" fn="修改" mode="el-button">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> --> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
</div> </div>
<template slot="otherOptions" slot-scope="scope"> <template slot="otherOptions" slot-scope="scope">
<!-- <el-popover v-if="scope.scope.statusName == '禁用'" placement="top" width="180" trigger="hover">
<p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p>
<p>1. 角色管理-创建角色</p>
<p>2. 选择员工账户-修改角色</p>
<GLButton mode="el-switch" fn="开关" :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
</el-popover> -->
<GLButton mode="div" fn="开关"> <GLButton mode="div" fn="开关">
<el-popover v-if="scope.scope.statusName == '禁用'" placement="top" width="180" trigger="hover"> <el-popover v-if="scope.scope.statusName == '禁用'" placement="top" width="180" trigger="hover">
<p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p> <p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p>
...@@ -54,7 +45,6 @@ ...@@ -54,7 +45,6 @@
<script> <script>
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
// import selectPage from './components/selectPage'
export default { export default {
name: 'index', name: 'index',
data() { data() {
......
...@@ -12,14 +12,13 @@ ...@@ -12,14 +12,13 @@
<div class="follow-form" :style="{ 'min-height': formHeight + 'px' }"> <div class="follow-form" :style="{ 'min-height': formHeight + 'px' }">
<GLCombiForm ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" :inline="true" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" :inline="true" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="follow-btn"> <div class="follow-btn">
<GLButton fn="新增" size="small" icon="el-icon-plus" type="primary" @click="openDrawer">跟进专员</GLButton> <GLButton fn="新增" size="small" icon="el-icon-plus" type="primary" plain @click="openDrawer">跟进专员</GLButton>
<el-button size="small" icon="el-icon-plus" type="primary" @click="openDrawer">跟进专员</el-button> <!-- <el-button size="small" icon="el-icon-plus" type="primary" plain @click="openDrawer">跟进专员</el-button> -->
</div> </div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch"> <GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <GLButton fn="删除" type="text" @click="handleDele(scope.scope)">删除</GLButton> <!-- <el-button fn="删除" type="text" @click="handleDele(scope.scope)">删除</el-button> -->
<el-button fn="删除" type="text" @click="handleDele(scope.scope)">删除</el-button> -->
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -116,7 +115,7 @@ export default { ...@@ -116,7 +115,7 @@ export default {
}, },
buttonList: [ buttonList: [
{ {
type: 'el-button', type: 'GLButton',
name: row => { name: row => {
return '删除' return '删除'
}, },
...@@ -318,14 +317,6 @@ export default { ...@@ -318,14 +317,6 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
/deep/ {
.el-form-item {
margin-right: 20px;
}
.el-button {
margin-left: 20px;
}
}
&-item { &-item {
position: relative; position: relative;
.follow-form-jump { .follow-form-jump {
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
<GLTable v-if="distoryTable" ref="table" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData"> <GLTable v-if="distoryTable" ref="table" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData">
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <GLButton type="text" @click="toLookPage(scope.scope)" fn="查看">查看</GLButton>
<GLButton v-if="!scope.scope.defalutRole" fn="修改" type="text" @click="toEditPage(scope.scope)">修改</GLButton> -->
<!-- <el-button type="text" @click="toLookPage(scope.scope)">查看</el-button> <!-- <el-button type="text" @click="toLookPage(scope.scope)">查看</el-button>
<el-button v-if="scope.scope.roleName != '超级管理员'" type="text" @click="toEditPage(scope.scope)">修改</el-button> <el-button v-if="scope.scope.roleName != '超级管理员'" type="text" @click="toEditPage(scope.scope)">修改</el-button>
<el-button v-if="scope.scope.delFlag" type="text" @click="todelete(scope.scope)">删除</el-button> --> <el-button v-if="scope.scope.delFlag" type="text" @click="todelete(scope.scope)">删除</el-button> -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!