Commit 73872664 by 杨北旺

Merge branch 'master' of 192.168.3.233:saas/scrm-micro-settings

2 parents a1fe995d 14e67f5a
...@@ -24,12 +24,13 @@ ...@@ -24,12 +24,13 @@
<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 placement="top" width="180" trigger="hover"> <el-popover v-if="scope.scope.statusName == '禁用'" placement="top" width="180" trigger="hover">
<p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p> <p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p>
<p>1. 角色管理-创建角色</p> <p>1. 角色管理-创建角色</p>
<p>2. 选择员工账户-修改角色</p> <p>2. 选择员工账户-修改角色</p>
<el-switch :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></el-switch> <el-switch :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></el-switch>
</el-popover> </el-popover>
<el-switch v-else :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></el-switch>
</template> </template>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -311,11 +312,11 @@ export default { ...@@ -311,11 +312,11 @@ export default {
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '您还未给该员工设置“角色”! '), h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '设置角色:员工账户管理-修改-角色权限')]), message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '您还未给该员工设置“角色”! '), h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '设置角色:员工账户管理-修改-角色权限')]),
type: 'error' type: 'error'
}) })
this.handleSearch() this.$refs.employeeRef.refreshTable(false)
return false return false
} }
this.$apis.employee.updateStatusApi({ id: row.id, status: val == '启用' ? 0 : 2 }).then(res => { this.$apis.employee.updateStatusApi({ id: row.id, status: val == '启用' ? 0 : 2 }).then(res => {
this.handleSearch() this.$refs.employeeRef.refreshTable(false)
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!