|
|
|
@ -21,37 +21,20 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div style="height: 504px; max-height: 504px; overflow: auto"> |
|
|
|
|
<el-tree |
|
|
|
|
:data="orgList" |
|
|
|
|
default-expand-all |
|
|
|
|
ref="orgTree" |
|
|
|
|
node-key="id" |
|
|
|
|
highlight-current |
|
|
|
|
:expand-on-click-node="false" |
|
|
|
|
@node-click="handleNodeClick" |
|
|
|
|
:props="{children: 'children', label: 'partnerClassificationName', isLeaf: 'leaf'}" |
|
|
|
|
> |
|
|
|
|
<el-tree :data="orgList" default-expand-all ref="orgTree" node-key="id" highlight-current |
|
|
|
|
:expand-on-click-node="false" @node-click="handleNodeClick" |
|
|
|
|
:props="{ children: 'children', label: 'partnerClassificationName', isLeaf: 'leaf' }"> |
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
|
<span class="org-name">{{ node.label }}</span> |
|
|
|
|
<span> |
|
|
|
|
<!-- isTeam 0: 分类,1: 团队 --> |
|
|
|
|
<el-button |
|
|
|
|
v-auth="'/parner:账号管理:添加分类'" |
|
|
|
|
v-if="!data.isTeam" |
|
|
|
|
type="text" |
|
|
|
|
icon="el-icon-circle-plus-outline" |
|
|
|
|
@click="() => addOrg(node, data)"> |
|
|
|
|
<el-button v-auth="'/parner:账号管理:添加分类'" v-if="!data.isTeam" type="text" |
|
|
|
|
icon="el-icon-circle-plus-outline" @click="() => addOrg(node, data)"> |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-auth="'/parner:账号管理:编辑分类'" |
|
|
|
|
type="text" |
|
|
|
|
icon="el-icon-edit-outline" |
|
|
|
|
<el-button v-auth="'/parner:账号管理:编辑分类'" type="text" icon="el-icon-edit-outline" |
|
|
|
|
@click="() => editOrg(node, data)"> |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-auth="'/parner:账号管理:删除分类'" |
|
|
|
|
type="text" |
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
<el-button v-auth="'/parner:账号管理:删除分类'" type="text" icon="el-icon-delete" |
|
|
|
|
@click="() => delOrg(node, data)"> |
|
|
|
|
</el-button> |
|
|
|
|
</span> |
|
|
|
@ -60,27 +43,16 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
:title="typeForm.id ? '编辑' : '新增' + '分类'" |
|
|
|
|
:visible.sync="orgVisible" |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
width="50%" |
|
|
|
|
@close="closeType" |
|
|
|
|
> |
|
|
|
|
<el-dialog :title="typeForm.id ? '编辑' : '新增' + '分类'" :visible.sync="orgVisible" :close-on-click-modal="false" |
|
|
|
|
width="50%" @close="closeType"> |
|
|
|
|
<el-form v-if="orgVisible" ref="typeForm" :model="typeForm" :rules="orgRules" label-width="100px"> |
|
|
|
|
<el-form-item label="分类名称" prop="partnerClassificationName"> |
|
|
|
|
<el-input v-model.trim="typeForm.partnerClassificationName" placeholder="请输入"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="上级部门"> |
|
|
|
|
<span v-if="typeForm.parentName">{{ typeForm.parentName }}</span> |
|
|
|
|
<el-cascader |
|
|
|
|
v-else |
|
|
|
|
:options="orgListDia" |
|
|
|
|
v-model="cascaderValue" |
|
|
|
|
:props="cascaderProps" |
|
|
|
|
clearable |
|
|
|
|
style="width: 100%" |
|
|
|
|
> |
|
|
|
|
<el-cascader v-else :options="orgListDia" v-model="cascaderValue" :props="cascaderProps" clearable |
|
|
|
|
style="width: 100%"> |
|
|
|
|
</el-cascader> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -96,7 +68,8 @@ |
|
|
|
|
<div class="tool"> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<li> |
|
|
|
|
<el-input style="width: 250px;" placeholder="请输入员工姓名/手机号" prefix-icon="el-icon-search" v-model="keyWord" clearable></el-input> |
|
|
|
|
<el-input style="width: 250px;" placeholder="请输入员工姓名/手机号" prefix-icon="el-icon-search" v-model="keyWord" |
|
|
|
|
clearable></el-input> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div> |
|
|
|
@ -104,18 +77,21 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" row-key="id"> |
|
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" row-key="id"> |
|
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="userName" label="姓名" align="center" min-width="100"></el-table-column> |
|
|
|
|
<el-table-column prop="account" label="账号" align="center" min-width="100"></el-table-column> |
|
|
|
|
<el-table-column prop="phone" label="手机号" align="center" min-width="120"></el-table-column> |
|
|
|
|
<el-table-column prop="invitationAccount" label="邀请人" align="center" min-width="120"></el-table-column> |
|
|
|
|
<el-table-column prop="partnerClassificationName" label="团队名称" align="center" min-width="120" show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column prop="partnerClassificationName" label="团队名称" align="center" min-width="120" |
|
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
|
<template v-if="!type"> |
|
|
|
|
<el-table-column prop="provinceName" label="省份" align="center" min-width="80"></el-table-column> |
|
|
|
|
<el-table-column prop="cityName" label="城市" align="center" min-width="80"></el-table-column> |
|
|
|
|
<el-table-column prop="roleName" label="授权角色" align="center" min-width="120" show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column prop="roleName" label="授权角色" align="center" min-width="120" |
|
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column prop="phone" label="费率" align="center" min-width="120"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<p v-if="scope.row.annualTeamFee">团队年费{{ scope.row.annualTeamFee }}w</p> |
|
|
|
@ -130,16 +106,20 @@ |
|
|
|
|
<el-button v-if="!type" type="text" v-auth="'/parner:账号管理:重置密码'" @click="edit(scope.row)">编辑</el-button> |
|
|
|
|
<el-button type="text" v-auth="'/parner:账号管理:重置密码'" @click="resetPassword(scope.row)">重置密码</el-button> |
|
|
|
|
<el-button v-if="type" type="text" v-auth="'/parner:账号管理:删除合伙人'" @click="del(scope.row)">删除</el-button> |
|
|
|
|
<el-button v-else-if="scope.row.isTeam == 1" type="text" v-auth="'/parner:账号管理:转让超管'" @click="transfer(scope.row)">转让超管</el-button> |
|
|
|
|
<el-button v-if="scope.row.isTeam == 0" type="text" v-auth="'/parner:账号管理:移除'" @click="remove(scope.row)">移除</el-button> |
|
|
|
|
<el-button v-else-if="scope.row.isTeam == 1" type="text" v-auth="'/parner:账号管理:转让超管'" |
|
|
|
|
@click="transfer(scope.row)">转让超管</el-button> |
|
|
|
|
<el-button v-if="scope.row.isTeam == 0" type="text" v-auth="'/parner:账号管理:移除'" |
|
|
|
|
@click="remove(scope.row)">移除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background @current-change="currentChange" :current-page="page" layout="total, prev, pager, next" :total="total"></el-pagination> |
|
|
|
|
<el-pagination background @current-change="currentChange" :current-page="page" layout="total, prev, pager, next" |
|
|
|
|
:total="total"></el-pagination> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog title="添加城市合伙人" :visible.sync="parnerVisible" width="580px" custom-class="add-dia" :close-on-click-modal="false" @close="closeAdd"> |
|
|
|
|
<el-dialog title="添加城市合伙人" :visible.sync="parnerVisible" width="580px" custom-class="add-dia" |
|
|
|
|
:close-on-click-modal="false" @close="closeAdd"> |
|
|
|
|
<p class="tips">链接/二维码失效时间:{{ expireTime }}</p> |
|
|
|
|
<p class="title">城市合伙人 <em>邀请链接</em></p> |
|
|
|
|
<p class="des">加盟商、合作伙伴可以通过这个链接加入 <em>城市合伙人计划</em></p> |
|
|
|
@ -152,21 +132,24 @@ |
|
|
|
|
<img width="250" :src="qrcode" alt=""> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog title="转让管理员" :visible.sync="transferVisible" width="350px" custom-class="transfer-dia" :close-on-click-modal="false"> |
|
|
|
|
<el-dialog title="转让管理员" :visible.sync="transferVisible" width="350px" custom-class="transfer-dia" |
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
<div style="text-align: center"> |
|
|
|
|
<el-button type="primary" @click="showChoose">转给团队成员</el-button> |
|
|
|
|
<el-button @click="add(1)">邀请外部人员</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog title="请选择要转让的团队成员" :visible.sync="chooseVisible" width="300px" custom-class="choose-dia" :close-on-click-modal="false"> |
|
|
|
|
<el-dialog title="请选择要转让的团队成员" :visible.sync="chooseVisible" width="300px" custom-class="choose-dia" |
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
<ul class="member-list"> |
|
|
|
|
<li v-for="(item, i) in members" :key="i"> |
|
|
|
|
<div class="info"> |
|
|
|
|
<img src="@/assets/img/avatar.png" alt=""> |
|
|
|
|
<span class="name">{{ item.userName }}</span> |
|
|
|
|
</div> |
|
|
|
|
<el-radio v-model="choosePartnerId" :label="item.partnerId" :disabled="curRow.accountId === item.accountId"></el-radio> |
|
|
|
|
<el-radio v-model="choosePartnerId" :label="item.partnerId" |
|
|
|
|
:disabled="curRow.accountId === item.accountId"></el-radio> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
@ -184,22 +167,22 @@ |
|
|
|
|
<el-select class="w-100" v-model="form.roleList" multiple> |
|
|
|
|
<template v-for="item in roleList"> |
|
|
|
|
<!-- 不显示超管 --> |
|
|
|
|
<el-option |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.roleName" |
|
|
|
|
:value="item.id"> |
|
|
|
|
<el-option :key="item.id" :label="item.roleName" :value="item.id"> |
|
|
|
|
</el-option> |
|
|
|
|
</template> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="provinceId" label="省份"> |
|
|
|
|
<el-select style="width: 100%" v-model="form.provinceId" placeholder="请选择省份" @change="getCity"> |
|
|
|
|
<el-option v-for="(item,index) in provinces" :key="index" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
|
<el-option v-for="(item, index) in provinces" :key="index" :label="item.provinceName" |
|
|
|
|
:value="item.provinceId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="cityId" label="城市"> |
|
|
|
|
<el-select style="width: 100%" v-model="form.cityId" placeholder="请选择城市" :disabled="form.provinceId ? false : true"> |
|
|
|
|
<el-option v-for="(item,index) in cities" :key="index" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
|
<el-select style="width: 100%" v-model="form.cityId" placeholder="请选择城市" |
|
|
|
|
:disabled="form.provinceId ? false : true"> |
|
|
|
|
<el-option v-for="(item, index) in cities" :key="index" :label="item.cityName" |
|
|
|
|
:value="item.cityId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -665,47 +648,58 @@ export default { |
|
|
|
|
.m-b-20 { |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.org-name { |
|
|
|
|
margin-right: 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.w-100 { |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.wrap { |
|
|
|
|
display: flex; |
|
|
|
|
padding: 0 24px; |
|
|
|
|
|
|
|
|
|
.side { |
|
|
|
|
width: 300px; |
|
|
|
|
padding: 24px 10px 24px 0; |
|
|
|
|
margin-right: 24px; |
|
|
|
|
border-right: 1px solid rgba(0, 0, 0, 0.06); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.right { |
|
|
|
|
width: calc(100% - 324px); |
|
|
|
|
padding: 24px 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.add-dia { |
|
|
|
|
.tips { |
|
|
|
|
font-size: 12px; |
|
|
|
|
color: #f00; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
margin: 10px 0; |
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
|
|
em { |
|
|
|
|
font-style: normal; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.des { |
|
|
|
|
font-size: 13px; |
|
|
|
|
color: #7a7a7a; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.link-wrap { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin: 10px 0 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.link { |
|
|
|
|
padding: 10px; |
|
|
|
|
margin-right: 15px; |
|
|
|
@ -713,6 +707,7 @@ export default { |
|
|
|
|
border-radius: 4px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/.choose-dia { |
|
|
|
|
.member-list { |
|
|
|
|
li { |
|
|
|
@ -721,17 +716,21 @@ export default { |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.info { |
|
|
|
|
display: inline-flex; |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
width: 40px; |
|
|
|
|
height: 40px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.name { |
|
|
|
|
margin-left: 10px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-radio__label { |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|