|
@@ -3,8 +3,8 @@
|
|
|
<el-row :gutter="20" style="width: 100%; overflow:hidden;">
|
|
<el-row :gutter="20" style="width: 100%; overflow:hidden;">
|
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
|
<div class="teamTree">
|
|
<div class="teamTree">
|
|
|
- <el-input class="search-input" v-model="treeValue" placeholder="电销组名称查找" prefix-icon="Search"></el-input>
|
|
|
|
|
- <div class="custom-tree-node" v-for="item in teamData" :key="item.id">
|
|
|
|
|
|
|
+ <el-input class="search-input" v-model="treeValue" placeholder="团队名称查找" prefix-icon="Search" @keyup.enter="initTeam"></el-input>
|
|
|
|
|
+ <div class="custom-tree-node" v-for="item in teamData" :key="item.id" @click.stop="initList(item)">
|
|
|
<span class="custom-tree-node-label">{{ item.name }}</span>
|
|
<span class="custom-tree-node-label">{{ item.name }}</span>
|
|
|
<el-dropdown class="custom-tree-node-more" @command="treeNodeCommend(item, $event)">
|
|
<el-dropdown class="custom-tree-node-more" @command="treeNodeCommend(item, $event)">
|
|
|
<el-icon><MoreFilled /></el-icon>
|
|
<el-icon><MoreFilled /></el-icon>
|
|
@@ -17,21 +17,21 @@
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-button class="add-btn" icon="plus" @click="addTeamShow = true">添加电销组</el-button>
|
|
|
|
|
|
|
+ <el-button class="add-btn" icon="plus" @click="addTeamShow = true">添加团队</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="20">
|
|
<el-col :span="20">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="22" class="info">
|
|
<el-col :span="22" class="info">
|
|
|
- <h3>电销组名称</h3>
|
|
|
|
|
- <p>所属机构: 机构名称</p>
|
|
|
|
|
- <p>管理人: 管理人姓名-管理人工号</p>
|
|
|
|
|
- <p>描述:</p>
|
|
|
|
|
|
|
+ <h3>{{ teamInfo.name }}</h3>
|
|
|
|
|
+ <p>所属机构: {{ teamInfo?.deptName }}</p>
|
|
|
|
|
+ <p>管理人: {{ teamInfo?.managerName?`${teamInfo?.managerName}-`:'' }}{{ teamInfo?.managerId }}</p>
|
|
|
|
|
+ <p>描述:{{ teamInfo?.describeInformation }}</p>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="2" class="btn">
|
|
<el-col :span="2" class="btn">
|
|
|
<el-button plain @click="setPeople">设置负责人</el-button>
|
|
<el-button plain @click="setPeople">设置负责人</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-input style="width: 300px; margin: 10px 0" v-model="searchValue" prefix-icon="Search" placeholder="输入姓名,手机号,工号查找" ></el-input>
|
|
|
|
|
|
|
+ <el-input style="width: 300px; margin: 10px 0" v-model="searchValue" prefix-icon="Search" placeholder="输入姓名,手机号,工号查找" clearable @keyup.enter="initList(teamInfo)"></el-input>
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
ref="operationListRef"
|
|
ref="operationListRef"
|
|
@@ -39,18 +39,30 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
- <el-table-column label="姓名" prop="name" width="80"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="姓名" prop="name" width="80">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <div class="nameInfo">{{ scope.row.name }}<span v-show="scope.row.manager === '1'">负责人</span></div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="手机号" prop="mobile" width="150"></el-table-column>
|
|
<el-table-column label="手机号" prop="mobile" width="150"></el-table-column>
|
|
|
<el-table-column label="工号" prop="userId" width="200"></el-table-column>
|
|
<el-table-column label="工号" prop="userId" width="200"></el-table-column>
|
|
|
- <el-table-column label="类型" prop="typeAttr" width="100"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="类型" prop="typeAttr" width="100">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ {{ scope.row.typeAttr == '0'?'个代':scope.row.typeAttr == '1'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '3'?'电销组': '' }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="归属" prop="deptName" width="200"></el-table-column>
|
|
<el-table-column label="归属" prop="deptName" width="200"></el-table-column>
|
|
|
<el-table-column label="所属机构" prop="deptName" width="200"></el-table-column>
|
|
<el-table-column label="所属机构" prop="deptName" width="200"></el-table-column>
|
|
|
<el-table-column label="人员状态" prop="status" width="150">
|
|
<el-table-column label="人员状态" prop="status" width="150">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- {{ scope.row.status == '1'?'前线人员':scope.row.status == '2'?'后线人员':scope.row.status == '3'?'合伙人':scope.row.status == '4'?'工作室管理员':scope.row.status == '5'?'团队长':scope.row.status == '6'?'个代':scope.row.status == '7'?'电销':scope.row.status == '8'?'渠道': '--' }}
|
|
|
|
|
|
|
+ {{ scope.row.status == '0'?'待认证':scope.row.status == '1'?'已认证':scope.row.status == '2'?'待提交资料':scope.row.status == '3'?'已入职':'' }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="账号状态" prop="isEnable" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ {{ scope.row.isEnable == '1'?'禁用':scope.row.isEnable == '0'?'启用': '--' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="账号状态" prop="isEnable" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="管理人" prop="leaderName" width="150"></el-table-column>
|
|
<el-table-column label="管理人" prop="leaderName" width="150"></el-table-column>
|
|
|
<el-table-column label="管理人工号" prop="leaderId" width="200"></el-table-column>
|
|
<el-table-column label="管理人工号" prop="leaderId" width="200"></el-table-column>
|
|
|
<el-table-column label="推荐人" prop="referrerName" width="150"></el-table-column>
|
|
<el-table-column label="推荐人" prop="referrerName" width="150"></el-table-column>
|
|
@@ -93,21 +105,40 @@
|
|
|
:title="title"
|
|
:title="title"
|
|
|
width="1000"
|
|
width="1000"
|
|
|
>
|
|
>
|
|
|
- <addOperation @closeDialog="closeAddOperation" :options="options"></addOperation>
|
|
|
|
|
|
|
+ <addOperation ref="AddOperationRef" @closeDialog="closeAddOperation"></addOperation>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
v-model="addTeamShow"
|
|
v-model="addTeamShow"
|
|
|
title="添加"
|
|
title="添加"
|
|
|
width="800"
|
|
width="800"
|
|
|
>
|
|
>
|
|
|
- <addTeam @closeDialog="closeAddTeamDialog" :editData="editItemData"></addTeam>
|
|
|
|
|
|
|
+ <addTeam ref="AddTeamRef" @closeDialog="closeAddTeamDialog"></addTeam>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
v-model="allocationShow"
|
|
v-model="allocationShow"
|
|
|
title="分配管理人"
|
|
title="分配管理人"
|
|
|
width="800"
|
|
width="800"
|
|
|
>
|
|
>
|
|
|
- <allocation></allocation>
|
|
|
|
|
|
|
+ <allocation ref="AllocationRef" @closeDialog="closeAllocation"></allocation>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="peopleShow"
|
|
|
|
|
+ title="设置负责人"
|
|
|
|
|
+ width="800"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-radio-group v-if="tableData?.length>0" v-model="radioValue" class="allocation-radio">
|
|
|
|
|
+ <el-radio v-for="item in tableData" :value="item.id" size="large">
|
|
|
|
|
+ <template #default>
|
|
|
|
|
+ <div>{{ item.name }}</div>
|
|
|
|
|
+ <div>{{ item.id }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ <el-empty v-else description="暂无数据" />
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <el-button @click="onCancel">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="onConfirm">确定</el-button>
|
|
|
|
|
+ </template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -125,6 +156,9 @@ import {initial} from "lodash-es";
|
|
|
import team from "@/api/modules/team.ts";
|
|
import team from "@/api/modules/team.ts";
|
|
|
|
|
|
|
|
let myRouter = useRouter()
|
|
let myRouter = useRouter()
|
|
|
|
|
+const AddTeamRef = ref(null)
|
|
|
|
|
+const AddOperationRef = ref(null)
|
|
|
|
|
+const AllocationRef = ref(null)
|
|
|
|
|
|
|
|
// 机构数据
|
|
// 机构数据
|
|
|
let options = ref([])
|
|
let options = ref([])
|
|
@@ -142,15 +176,58 @@ const institutionList = () => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 电销组
|
|
|
|
|
|
|
+// 团队
|
|
|
let treeValue = ref('')
|
|
let treeValue = ref('')
|
|
|
let teamData = ref([])
|
|
let teamData = ref([])
|
|
|
let addTeamShow = ref(false)
|
|
let addTeamShow = ref(false)
|
|
|
-let editItemData = ref(null)
|
|
|
|
|
const initTeam = () => {
|
|
const initTeam = () => {
|
|
|
- api.teamApi.teamList({}).then(res => {
|
|
|
|
|
|
|
+ api.teamApi.teamList({
|
|
|
|
|
+ param: treeValue.value,
|
|
|
|
|
+ attribute: 3
|
|
|
|
|
+ }).then(res => {
|
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
|
teamData.value = res.data
|
|
teamData.value = res.data
|
|
|
|
|
+ if(teamData.value) {
|
|
|
|
|
+ initList(teamData.value[0])
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 分页
|
|
|
|
|
+let currentPage = ref(1)
|
|
|
|
|
+let pageSize = ref(10)
|
|
|
|
|
+let total = ref(0)
|
|
|
|
|
+const handleSizeChange = (size) => {
|
|
|
|
|
+ pageSize.value = size
|
|
|
|
|
+}
|
|
|
|
|
+const handleCurrentChange = (page) => {
|
|
|
|
|
+ currentPage.value = page
|
|
|
|
|
+}
|
|
|
|
|
+// 初始化列表
|
|
|
|
|
+let teamInfo = ref({
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ deptName: '',
|
|
|
|
|
+ managerName: '',
|
|
|
|
|
+ managerId: '',
|
|
|
|
|
+ describeInformation: ''
|
|
|
|
|
+})
|
|
|
|
|
+const initList = (item) => {
|
|
|
|
|
+ teamInfo.value = item
|
|
|
|
|
+ api.teamApi.getTeamUser({
|
|
|
|
|
+ id: item.id,
|
|
|
|
|
+ name: searchValue.value,
|
|
|
|
|
+ pages: currentPage.value,
|
|
|
|
|
+ size: pageSize.value
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
|
+ tableData.value = res.data.records
|
|
|
|
|
+ total.value = res.data.total
|
|
|
} else {
|
|
} else {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -163,19 +240,34 @@ const treeNodeCommend = (item, e) => {
|
|
|
switch (e) {
|
|
switch (e) {
|
|
|
case '编辑':
|
|
case '编辑':
|
|
|
addTeamShow.value = true
|
|
addTeamShow.value = true
|
|
|
- editItemData.value = item
|
|
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
|
+ AddTeamRef.value.initEdit(item, true)
|
|
|
|
|
+ })
|
|
|
break;
|
|
break;
|
|
|
case '删除':
|
|
case '删除':
|
|
|
ElMessageBox({
|
|
ElMessageBox({
|
|
|
- title: '删除电销组',
|
|
|
|
|
- message: '确定要删除该电销组吗?',
|
|
|
|
|
|
|
+ title: '删除团队',
|
|
|
|
|
+ message: '确定要删除该团队吗?',
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
}).then(( action ) => {
|
|
}).then(( action ) => {
|
|
|
if(action === 'confirm') {
|
|
if(action === 'confirm') {
|
|
|
-
|
|
|
|
|
|
|
+ api.teamApi.deleteById(item.id).then(res => {
|
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ })
|
|
|
|
|
+ initTeam()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(( action ) => {
|
|
}).catch(( action ) => {
|
|
|
|
|
|
|
@@ -185,25 +277,13 @@ const treeNodeCommend = (item, e) => {
|
|
|
}
|
|
}
|
|
|
const closeAddTeamDialog = (type) => {
|
|
const closeAddTeamDialog = (type) => {
|
|
|
addTeamShow.value = false
|
|
addTeamShow.value = false
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 分页
|
|
|
|
|
-let currentPage = ref(1)
|
|
|
|
|
-let pageSize = ref(10)
|
|
|
|
|
-let total = ref(0)
|
|
|
|
|
-const handleSizeChange = (size) => {
|
|
|
|
|
-
|
|
|
|
|
-}
|
|
|
|
|
-const handleCurrentChange = (page) => {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ initTeam()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 搜索字段
|
|
// 搜索字段
|
|
|
let searchValue = ref('')
|
|
let searchValue = ref('')
|
|
|
// 列表数据
|
|
// 列表数据
|
|
|
-let tableData = ref([
|
|
|
|
|
- {name: 1}
|
|
|
|
|
-])
|
|
|
|
|
|
|
+let tableData = ref([])
|
|
|
// 编辑弹框
|
|
// 编辑弹框
|
|
|
let dialogShow = ref(false)
|
|
let dialogShow = ref(false)
|
|
|
// 编辑弹框标题
|
|
// 编辑弹框标题
|
|
@@ -217,7 +297,7 @@ const showDetail = (scope) => {
|
|
|
myRouter.push({
|
|
myRouter.push({
|
|
|
path: '/operationDetail',
|
|
path: '/operationDetail',
|
|
|
query: {
|
|
query: {
|
|
|
- id: scope.row.id
|
|
|
|
|
|
|
+ id: scope.row.userId
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -226,14 +306,56 @@ const showDetail = (scope) => {
|
|
|
let allocationShow = ref(false)
|
|
let allocationShow = ref(false)
|
|
|
|
|
|
|
|
// 设置负责人
|
|
// 设置负责人
|
|
|
|
|
+let peopleShow = ref(false)
|
|
|
|
|
+let radioValue = ref('')
|
|
|
const setPeople = () => {
|
|
const setPeople = () => {
|
|
|
- allocationShow.value = true
|
|
|
|
|
|
|
+ peopleShow.value = true
|
|
|
|
|
+ pageSize.value = 99999
|
|
|
|
|
+ initList(teamInfo.value)
|
|
|
|
|
+}
|
|
|
|
|
+const onCancel = () => {
|
|
|
|
|
+ peopleShow.value = false
|
|
|
|
|
+ radioValue.value = ''
|
|
|
|
|
+}
|
|
|
|
|
+const onConfirm = () => {
|
|
|
|
|
+ if(!radioValue.value) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: '请选择负责人',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ api.teamApi.setResponsiblePerson({
|
|
|
|
|
+ id: teamInfo.value.id,
|
|
|
|
|
+ managerId: radioValue.value
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ })
|
|
|
|
|
+ initList(teamInfo.value)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ peopleShow.value = false
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+// 关闭设置负责人
|
|
|
|
|
+const closeAllocation = (type: boolean) => {
|
|
|
|
|
+ allocationShow.value = type
|
|
|
}
|
|
}
|
|
|
// 更多
|
|
// 更多
|
|
|
const tableDataCommand = (scope, e) => {
|
|
const tableDataCommand = (scope, e) => {
|
|
|
switch (e) {
|
|
switch (e) {
|
|
|
case '编辑':
|
|
case '编辑':
|
|
|
dialogShow.value = true
|
|
dialogShow.value = true
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
|
+ AddOperationRef.value.initEditData(scope.row.userId)
|
|
|
|
|
+ })
|
|
|
title.value = '编辑'
|
|
title.value = '编辑'
|
|
|
break;
|
|
break;
|
|
|
case '删除':
|
|
case '删除':
|
|
@@ -246,8 +368,23 @@ const tableDataCommand = (scope, e) => {
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
}).then(( action ) => {
|
|
}).then(( action ) => {
|
|
|
if(action === 'confirm') {
|
|
if(action === 'confirm') {
|
|
|
- let ids = [scope.row.id]
|
|
|
|
|
-
|
|
|
|
|
|
|
+ api.teamApi.deleteAssociatedUsers({
|
|
|
|
|
+ id: teamInfo.value.id,
|
|
|
|
|
+ userIds: [scope.row.id]
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if(res?.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ })
|
|
|
|
|
+ initList(teamInfo.value)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(( action ) => {
|
|
}).catch(( action ) => {
|
|
|
|
|
|
|
@@ -265,8 +402,23 @@ const tableDataCommand = (scope, e) => {
|
|
|
if(action === 'confirm') {
|
|
if(action === 'confirm') {
|
|
|
let data = {
|
|
let data = {
|
|
|
id: [scope.row.id],
|
|
id: [scope.row.id],
|
|
|
- isEnable: 0
|
|
|
|
|
|
|
+ isEnable: 1,
|
|
|
|
|
+ getAll: 0
|
|
|
}
|
|
}
|
|
|
|
|
+ api.operationApi.operationIsEnable(data).then(res => {
|
|
|
|
|
+ if(res?.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ })
|
|
|
|
|
+ initList(teamInfo.value)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(( action ) => {
|
|
}).catch(( action ) => {
|
|
|
|
|
|
|
@@ -284,8 +436,23 @@ const tableDataCommand = (scope, e) => {
|
|
|
if(action === 'confirm'){
|
|
if(action === 'confirm'){
|
|
|
let data = {
|
|
let data = {
|
|
|
id: [scope.row.id],
|
|
id: [scope.row.id],
|
|
|
- isEnable: 1
|
|
|
|
|
|
|
+ isEnable: 0,
|
|
|
|
|
+ getAll: 0
|
|
|
}
|
|
}
|
|
|
|
|
+ api.operationApi.operationIsEnable(data).then(res => {
|
|
|
|
|
+ if(res?.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ })
|
|
|
|
|
+ initList(teamInfo.value)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(( action ) => {
|
|
}).catch(( action ) => {
|
|
|
|
|
|
|
@@ -293,6 +460,9 @@ const tableDataCommand = (scope, e) => {
|
|
|
break;
|
|
break;
|
|
|
case '分配管理人':
|
|
case '分配管理人':
|
|
|
allocationShow.value = true
|
|
allocationShow.value = true
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
|
+ AllocationRef.value.initCheckedKeys(scope.row.deptId, selectType.value, [scope.row.id])
|
|
|
|
|
+ })
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -326,6 +496,7 @@ onMounted(() => {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
padding: 5px 10px;
|
|
padding: 5px 10px;
|
|
|
margin: 5px auto;
|
|
margin: 5px auto;
|
|
|
|
|
+ cursor: pointer;
|
|
|
&:hover{
|
|
&:hover{
|
|
|
background: rgba(0,0,0,.1);
|
|
background: rgba(0,0,0,.1);
|
|
|
}
|
|
}
|
|
@@ -356,5 +527,15 @@ onMounted(() => {
|
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
|
align-items: flex-end;
|
|
align-items: flex-end;
|
|
|
}
|
|
}
|
|
|
|
|
+ .nameInfo{
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-content: center;
|
|
|
|
|
+ span{
|
|
|
|
|
+ background: #f0f0f0;
|
|
|
|
|
+ padding: 2px 4px;
|
|
|
|
|
+ border-radius: 2px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|