operation.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <template>
  2. <div class="operation pad-24">
  3. <el-form class="operationForm" ref="OperationRef" :model="form" label-width="70">
  4. <el-row :gutter="20">
  5. <el-col :span="8">
  6. <el-form-item label="业务员" class="formItem">
  7. <el-input v-model="form.salesman" placeholder="输入姓名、手机号、工号查找" clearable></el-input>
  8. </el-form-item>
  9. </el-col>
  10. <el-col :span="8">
  11. <el-form-item label="归属机构" class="formItem">
  12. <el-cascader clearable v-model="form.deptId" style="width: 100%" :options="options" :props="cascaderProps"
  13. @change="organizationChange" />
  14. </el-form-item>
  15. </el-col>
  16. <el-col :span="8">
  17. <el-form-item label="类型" class="formItem">
  18. <el-select clearable v-model="form.typeAttr">
  19. <el-option key="1" value="6" label="个代"></el-option>
  20. <el-option key="2" value="7" label="渠道"></el-option>
  21. <el-option key="3" value="5" label="团队"></el-option>
  22. <el-option key="4" value="8" label="电销组"></el-option>
  23. <!-- <el-option key="1" value="1" label="前线人员"></el-option>
  24. <el-option key="2" value="2" label="后线人员"></el-option>
  25. <el-option key="3" value="3" label="合伙人"></el-option>
  26. <el-option key="4" value="4" label="工作室管理员"></el-option>
  27. <el-option key="5" value="5" label="团队"></el-option>
  28. <el-option key="6" value="6" label="个代"></el-option>
  29. <el-option key="7" value="7" label="电销"></el-option>
  30. <el-option key="8" value="8" label="渠道"></el-option>-->
  31. </el-select>
  32. </el-form-item>
  33. </el-col>
  34. </el-row>
  35. <el-row :gutter="20">
  36. <el-col :span="8">
  37. <el-form-item label="所属" class="formItem">
  38. <el-input clearable v-model="form.deptName" placeholder="渠道、团队、电销组名称查找"></el-input>
  39. </el-form-item>
  40. </el-col>
  41. <el-col :span="8">
  42. <el-form-item label="人员状态" class="formItem">
  43. <el-select clearable v-model="form.status">
  44. <el-option key="0" value="0" label="未认证"></el-option>
  45. <el-option key="1" value="1" label="实名待认证"></el-option>
  46. <el-option key="2" value="2" label="实名认证失败"></el-option>
  47. <el-option key="3" value="3" label="待入职"></el-option>
  48. <el-option key="4" value="4" label="入司待审核"></el-option>
  49. <el-option key="5" value="5" label="入司审核失败"></el-option>
  50. <el-option key="6" value="6" label="已入职"></el-option>
  51. <el-option key="7" value="7" label="离职待审核"></el-option>
  52. <el-option key="8" value="8" label="离职"></el-option>
  53. </el-select>
  54. </el-form-item>
  55. </el-col>
  56. <el-col :span="8">
  57. <el-form-item label="账号状态" class="formItem">
  58. <el-select clearable v-model="form.isEnable">
  59. <el-option key="0" value="0" label="启用"></el-option>
  60. <el-option key="1" value="1" label="禁用"></el-option>
  61. </el-select>
  62. </el-form-item>
  63. </el-col>
  64. </el-row>
  65. <el-row :gutter="20">
  66. <el-col :span="8">
  67. <el-form-item label="管理人" class="formItem">
  68. <el-input clearable v-model="form.leaderId" placeholder="管理人姓名、工号"></el-input>
  69. </el-form-item>
  70. </el-col>
  71. <el-col :span="16" class="span-justify">
  72. <el-button class="radius-2px" type="primary" @click="search()">查询</el-button>
  73. <el-button class="radius-2px" plain @click="reset()">重置</el-button>
  74. </el-col>
  75. </el-row>
  76. </el-form>
  77. <el-row :gutter="8" style="margin: 20px 0" flex>
  78. <span class="flex col-210 m-r-8 bg-F9">
  79. <el-checkbox class="p-w-12" @change="selectAll" v-model="selectAllValue"></el-checkbox>&nbsp;
  80. <el-select class="select-all width-100" placeholder="全选" v-model="selectType" @change="selectTypeChange">
  81. <el-option key="all" value="all" :label="`选中所有数据${total}条`"></el-option>
  82. <el-option key="cur" value="cur" label="选中本页数据"></el-option>
  83. </el-select>
  84. </span>
  85. <div class="col-108 m-r-8">
  86. <el-button class="radius-2px width-100" type="primary" icon="plus" @click="addNumber">添加成员</el-button>
  87. </div>
  88. <span class="col-108 m-r-8">
  89. <el-dropdown class="width-100" trigger="click" placement="bottom" @command="dropdownCommand">
  90. <el-button class="radius-2px width-100">
  91. 批量管理&nbsp;&nbsp;<el-icon>
  92. <ArrowDown />
  93. </el-icon>
  94. </el-button>
  95. <template #dropdown>
  96. <el-dropdown-menu>
  97. <el-dropdown-item command="启用">启用</el-dropdown-item>
  98. <el-dropdown-item command="禁用">禁用</el-dropdown-item>
  99. <el-dropdown-item command="删除">删除</el-dropdown-item>
  100. <!-- <el-dropdown-item command="分配管理人">分配管理人</el-dropdown-item>-->
  101. </el-dropdown-menu>
  102. </template>
  103. </el-dropdown>
  104. </span>
  105. </el-row>
  106. <el-table :data="tableData" ref="operationListRef" height="536" @selection-change="handleSelectionChange">
  107. <el-table-column type="selection" width="55"></el-table-column>
  108. <el-table-column label="姓名" prop="name" width="80"></el-table-column>
  109. <el-table-column label="手机号" prop="mobile" width="150"></el-table-column>
  110. <el-table-column label="工号" prop="workNumber" width="200"></el-table-column>
  111. <el-table-column label="类型" prop="typeAttr" width="100">
  112. <template #default="scope">
  113. <span>{{ typeMatch(scope.row.typeAttr) }}</span>
  114. </template>
  115. </el-table-column>
  116. <el-table-column label="归属" prop="organizationName" width="200"></el-table-column>
  117. <el-table-column label="所属机构" prop="deptName" width="200"></el-table-column>
  118. <el-table-column label="人员状态" prop="status" width="150">
  119. <template #default="scope">
  120. {{ scope.row.status == '0' ? '未认证' : scope.row.status == '1' ? '实名认证中' : scope.row.status ==
  121. '2' ? '实名认证失败' : scope.row.status == '3' ? '待入职' : scope.row.status == '4' ? '入司审核中' : scope.row.status ==
  122. '5' ? '入司审核失败' : scope.row.status == '6' ? '已入职' : scope.row.status == '7' ? '离职待审核' : scope.row.status == '8'?'离职': '' }}
  123. </template>
  124. </el-table-column>
  125. <el-table-column label="账号状态" prop="isEnable" width="150">
  126. <template #default="scope">
  127. {{ scope.row.isEnable == '1' ? '禁用' : scope.row.isEnable == '0' ? '启用' : '--' }}
  128. </template>
  129. </el-table-column>
  130. <el-table-column label="管理人" prop="leaderName" width="150"></el-table-column>
  131. <el-table-column label="管理人手机号" prop="leaderId" width="200"></el-table-column>
  132. <el-table-column label="推荐人" prop="referrerName" width="150"></el-table-column>
  133. <el-table-column label="推荐人手机号" prop="referrerId" width="200"></el-table-column>
  134. <el-table-column fixed="right" label="操作" width="120">
  135. <template #default="scope">
  136. <div style="display: flex; align-items: center; justify-content: space-between">
  137. <a style="color: #409EFF; cursor: pointer" @click="showDetail(scope)">详情</a>&nbsp;
  138. <el-dropdown placement="bottom" trigger="click" @command="tableDataCommand(scope, $event)">
  139. <a style="color: #409EFF; cursor: pointer">更多</a>
  140. <template #dropdown>
  141. <el-dropdown-menu>
  142. <el-dropdown-item command="编辑">编辑</el-dropdown-item>
  143. <el-dropdown-item command="启用">启用</el-dropdown-item>
  144. <el-dropdown-item command="禁用">禁用</el-dropdown-item>
  145. <el-dropdown-item command="删除">删除</el-dropdown-item>
  146. <el-dropdown-item command="分配管理人">分配管理人</el-dropdown-item>
  147. <el-dropdown-item command="添加银行卡">添加银行卡</el-dropdown-item>
  148. </el-dropdown-menu>
  149. </template>
  150. </el-dropdown>
  151. </div>
  152. </template>
  153. </el-table-column>
  154. </el-table>
  155. <div style="display: flex; justify-content: flex-end; margin-top: 15px">
  156. <el-pagination v-model:current-page="currentPage" v-model:page-size="pageSize" :page-sizes="[10, 20, 30, 40]"
  157. layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="handleSizeChange"
  158. @current-change="handleCurrentChange" />
  159. </div>
  160. <el-dialog v-model="dialogShow" :title="title" width="1000">
  161. <addOperation ref="AddOperationRef" @closeDialog="closeAddOperation"></addOperation>
  162. </el-dialog>
  163. <el-dialog v-model="bankCardDialogShow" title="添加银行卡" width="500">
  164. <addCard @closeDialog="closeAddBankCard" :userInfo="addName"></addCard>
  165. </el-dialog>
  166. <el-dialog v-model="allocationShow" title="分配管理人" width="800">
  167. <allocation ref="AllocationRef" @closeDialog="closeAllocation"></allocation>
  168. </el-dialog>
  169. </div>
  170. </template>
  171. <script setup lang="ts">
  172. import { ref, onMounted, nextTick } from 'vue'
  173. import { useRouter } from 'vue-router'
  174. import addOperation from './modules/addOperation.vue'
  175. import addCard from './modules/addCard.vue'
  176. import allocation from './modules/allocation.vue'
  177. import setDept from "@/components/DialogSetDeptLeader/index.vue"
  178. import type { OperationSearch, OperationIsEnable } from '@/api/modules/operation.ts'
  179. import api from "@/api";
  180. import { ElMessageBox, ElMessage, TableInstance } from 'element-plus'
  181. import type { TabBarInstance } from 'element-plus'
  182. import Allocation from "@/views/operationManagement/modules/allocation.vue";
  183. let myRouter = useRouter()
  184. const operationListRef = ref<TableInstance>()
  185. const AddOperationRef = ref(null)
  186. const AllocationRef = ref(null)
  187. interface TableDataProps {
  188. name: string,
  189. mobile: string,
  190. id: string,
  191. typeAttr: string,
  192. deptName: string,
  193. userId: string,
  194. status: number,
  195. isEnable: number,
  196. leaderName: string,
  197. leaderId: string,
  198. referrerName: string,
  199. referrerId: string
  200. }
  201. const organizationChange = (e) => {
  202. form.value.deptId = e[e.length - 1]
  203. }
  204. // 人员类型匹配
  205. const typeMatch = (typeAttr: string) => {
  206. const map: any = {
  207. '6': '个代',
  208. '7': '渠道',
  209. '5': '团队',
  210. '8': '电销组',
  211. '3': '合伙人',
  212. }
  213. return typeAttr?.split(',')
  214. .map((typeId: any) => map[typeId] || typeId)
  215. .join(',') || '未知'
  216. }
  217. // 查询条件
  218. let form = ref<OperationSearch>({
  219. salesman: '',
  220. deptId: '',
  221. typeAttr: '',
  222. deptName: '',
  223. status: '',
  224. isEnable: '',
  225. leaderId: ''
  226. })
  227. let options = ref([])
  228. const cascaderProps = {
  229. value: 'id',
  230. label: 'name',
  231. children: 'children',
  232. checkStrictly: true,
  233. }
  234. // 获取机构数据
  235. const institutionList = () => {
  236. api.institutionApi.institutionList({ name: '', system: '' }).then(res => {
  237. if (res?.code == 200) {
  238. options.value = res.data
  239. } else {
  240. ElMessage({
  241. message: res.msg,
  242. type: 'warning'
  243. })
  244. }
  245. })
  246. }
  247. // 获取列表数据
  248. const init = () => {
  249. api.operationApi.operationList({
  250. pages: currentPage.value,
  251. size: pageSize.value,
  252. isMember: 2,
  253. ...form.value
  254. }).then(res => {
  255. if (res?.code == 200) {
  256. tableData.value = res.data.records
  257. total.value = res.data.total
  258. } else {
  259. ElMessage({
  260. message: res?.msg,
  261. type: 'error'
  262. })
  263. }
  264. })
  265. }
  266. // 删除
  267. const operationDel = (id: string[]) => {
  268. api.operationApi.operationDelete({
  269. ids: id,
  270. getAll: selectType.value == 'all' ? 1 : 0
  271. }).then(res => {
  272. if (res?.code == 200) {
  273. ElMessage({
  274. message: res.msg,
  275. type: 'success'
  276. })
  277. init()
  278. } else {
  279. ElMessage({
  280. message: res.msg,
  281. type: 'warning'
  282. })
  283. }
  284. })
  285. }
  286. const operationDelList = (id: string[]) => {
  287. api.operationApi.operationDelete({
  288. ids: id,
  289. getAll: 0
  290. }).then(res => {
  291. if (res?.code == 200) {
  292. ElMessage({
  293. message: res.msg,
  294. type: 'success'
  295. })
  296. init()
  297. } else {
  298. ElMessage({
  299. message: res.msg,
  300. type: 'warning'
  301. })
  302. }
  303. })
  304. }
  305. // 启用/禁用
  306. const operationIsEnable = (data: OperationIsEnable) => {
  307. api.operationApi.operationIsEnable(data).then(res => {
  308. if (res?.code == 200) {
  309. ElMessage({
  310. message: res.msg,
  311. type: 'success'
  312. })
  313. init()
  314. } else {
  315. ElMessage({
  316. message: res.msg,
  317. type: 'warning'
  318. })
  319. }
  320. })
  321. }
  322. // 搜索
  323. const search = () => {
  324. init();
  325. }
  326. // 重置
  327. const reset = () => {
  328. form.value = {
  329. salesman: '',
  330. deptId: '',
  331. typeAttr: '',
  332. deptName: '',
  333. status: '',
  334. isEnable: '',
  335. leaderId: ''
  336. }
  337. currentPage.value = 1
  338. pageSize.value = 10
  339. init()
  340. }
  341. // 选中的数据
  342. let selectedList = ref<TableDataProps[]>([])
  343. // 全选的类型
  344. let selectType = ref('')
  345. // 外部全选是否勾选
  346. let selectAllValue = ref(false)
  347. // 外部的全选
  348. const selectAll = (type: boolean) => {
  349. if (type) {
  350. if (selectType.value) {
  351. tableData.value.forEach((item: TableDataProps) => {
  352. operationListRef.value!.toggleRowSelection(item, true)
  353. })
  354. if (selectType.value == 'cur') {
  355. selectedList.value = tableData.value
  356. } else {
  357. selectedList.value = []
  358. }
  359. }
  360. } else {
  361. tableData.value.forEach((item: TableDataProps) => {
  362. operationListRef.value!.toggleRowSelection(item, false)
  363. })
  364. selectType.value = ''
  365. selectedList.value = []
  366. }
  367. }
  368. // 表格组件中的勾选
  369. const handleSelectionChange = (row: any) => {
  370. selectedList.value = row
  371. }
  372. // 全选类型改变
  373. const selectTypeChange = (type) => {
  374. selectAllValue.value = true
  375. tableData.value.forEach((item: TableDataProps) => {
  376. operationListRef.value!.toggleRowSelection(item, true)
  377. })
  378. if (type == 'cur') {
  379. selectedList.value = tableData.value
  380. } else {
  381. selectedList.value = []
  382. }
  383. }
  384. // 批量管理
  385. const dropdownCommand = (e) => {
  386. switch (e) {
  387. case '删除':
  388. ElMessageBox({
  389. title: '删除业务员',
  390. message: '确定要删除该业务员吗?',
  391. type: 'warning',
  392. showCancelButton: true,
  393. confirmButtonText: '确定',
  394. cancelButtonText: '取消',
  395. }).then((action) => {
  396. if (action === 'confirm') {
  397. let ids = []
  398. if (tableData.value.length > 0) {
  399. tableData.value.forEach(item => {
  400. ids.push(item.id)
  401. })
  402. } else {
  403. if (selectType == 'cur') {
  404. ElMessage({
  405. message: '请选择需要操作的数据',
  406. type: 'warning'
  407. })
  408. return
  409. }
  410. }
  411. operationDelList(ids)
  412. }
  413. }).catch((action) => {
  414. })
  415. break;
  416. case '禁用':
  417. ElMessageBox({
  418. title: '禁用业务员',
  419. message: '确定要禁用该业务员吗?',
  420. type: 'warning',
  421. showCancelButton: true,
  422. confirmButtonText: '确定',
  423. cancelButtonText: '取消',
  424. }).then((action) => {
  425. if (action === 'confirm') {
  426. let ids = []
  427. if (selectedList.value.length > 0) {
  428. selectedList.value.forEach(item => {
  429. ids.push(item.id)
  430. })
  431. } else {
  432. if (selectType == 'cur') {
  433. ElMessage({
  434. message: '请选择需要操作的数据',
  435. type: 'warning'
  436. })
  437. return
  438. }
  439. }
  440. let data = {
  441. ids: ids,
  442. isEnable: 1,
  443. getAll: selectType.value == 'all' ? 1 : 0
  444. }
  445. operationIsEnable(data)
  446. }
  447. }).catch((action) => {
  448. })
  449. break;
  450. case '启用':
  451. ElMessageBox({
  452. title: '启用业务员',
  453. message: '确定要启用该业务员吗?',
  454. type: 'warning',
  455. showCancelButton: true,
  456. confirmButtonText: '确定',
  457. cancelButtonText: '取消',
  458. }).then((action) => {
  459. if (action === 'confirm') {
  460. let ids = []
  461. if (selectedList.value.length > 0) {
  462. selectedList.value.forEach(item => {
  463. ids.push(item.id)
  464. })
  465. } else {
  466. if (selectType == 'cur') {
  467. ElMessage({
  468. message: '请选择需要操作的数据',
  469. type: 'warning'
  470. })
  471. return
  472. }
  473. }
  474. let data = {
  475. ids: ids,
  476. isEnable: 0,
  477. getAll: selectType.value == 'all' ? 1 : 0
  478. }
  479. operationIsEnable(data)
  480. }
  481. }).catch((action) => {
  482. })
  483. break;
  484. // case '分配管理人':
  485. // allocationShow.value = true
  486. //
  487. // break;
  488. }
  489. }
  490. // 列表数据
  491. let tableData = ref<TableDataProps[]>([])
  492. // 分页数据
  493. // 页码
  494. let currentPage = ref(1)
  495. // 单页数量
  496. let pageSize = ref(10)
  497. // 总数
  498. let total = ref(0)
  499. // 单页数量变化
  500. const handleSizeChange = (size) => {
  501. pageSize.value = size
  502. init()
  503. }
  504. // 页码变化
  505. const handleCurrentChange = (page) => {
  506. currentPage.value = page
  507. init()
  508. }
  509. // 详情
  510. const showDetail = (scope) => {
  511. myRouter.push({
  512. path: '/operationDetail',
  513. query: {
  514. id: scope.row.userId,
  515. ids: scope.row.id
  516. }
  517. })
  518. }
  519. // 添加银行卡弹框
  520. let addName = ref({
  521. userJzgInfoId: '',
  522. name: '',
  523. })
  524. let bankCardDialogShow = ref(false)
  525. // 更多
  526. const tableDataCommand = (scope, e) => {
  527. switch (e) {
  528. case '编辑':
  529. dialogShow.value = true
  530. nextTick(() => {
  531. AddOperationRef.value.initEditData(scope.row.userId, scope.row.id)
  532. })
  533. title.value = '编辑'
  534. break;
  535. case '删除':
  536. ElMessageBox({
  537. title: '删除业务员',
  538. message: '确定要删除该业务员吗?',
  539. type: 'warning',
  540. showCancelButton: true,
  541. confirmButtonText: '确定',
  542. cancelButtonText: '取消',
  543. }).then((action) => {
  544. if (action === 'confirm') {
  545. let ids = [scope.row.id]
  546. operationDel(ids)
  547. }
  548. }).catch((action) => {
  549. })
  550. break;
  551. case '禁用':
  552. ElMessageBox({
  553. title: '禁用业务员',
  554. message: '确定要禁用该业务员吗?',
  555. type: 'warning',
  556. showCancelButton: true,
  557. confirmButtonText: '确定',
  558. cancelButtonText: '取消',
  559. }).then((action) => {
  560. if (action === 'confirm') {
  561. let data = {
  562. ids: [scope.row.id],
  563. isEnable: 1,
  564. getAll: selectType.value == 'all' ? 1 : 0
  565. }
  566. operationIsEnable(data)
  567. }
  568. }).catch((action) => {
  569. })
  570. // if(scope.row.isEnable == '0') {
  571. //
  572. // } else {
  573. // ElMessage({
  574. // message: '该业务员已是禁用状态!',
  575. // type: 'warning'
  576. // })
  577. // }
  578. break;
  579. case '启用':
  580. // if(scope.row.isEnable == '1') {
  581. //
  582. // } else {
  583. // ElMessage({
  584. // message: '该业务员已是启用状态!',
  585. // type: 'warning'
  586. // })
  587. // }
  588. ElMessageBox({
  589. title: '启用业务员',
  590. message: '确定要启用该业务员吗?',
  591. type: 'warning',
  592. showCancelButton: true,
  593. confirmButtonText: '确定',
  594. cancelButtonText: '取消',
  595. }).then((action) => {
  596. if (action === 'confirm') {
  597. let data = {
  598. ids: [scope.row.id],
  599. isEnable: 0,
  600. getAll: selectType.value == 'all' ? 1 : 0
  601. }
  602. operationIsEnable(data)
  603. }
  604. }).catch((action) => {
  605. })
  606. break;
  607. case '添加银行卡':
  608. addName.value = {
  609. userJzgInfoId: scope.row.id,
  610. name: scope.row.name,
  611. }
  612. bankCardDialogShow.value = true
  613. break;
  614. case '分配管理人':
  615. allocationShow.value = true
  616. nextTick(() => {
  617. AllocationRef.value.initCheckedKeys(scope.row.deptId, selectType.value, [scope.row.id], scope.row.leaderId)
  618. })
  619. break;
  620. }
  621. }
  622. // 添加业务员
  623. const addNumber = () => {
  624. dialogShow.value = true
  625. title.value = '添加'
  626. nextTick(() => {
  627. AddOperationRef.value.initAddData()
  628. })
  629. }
  630. // 添加/编辑业务员弹框
  631. let dialogShow = ref(false)
  632. // 关闭新增弹框
  633. const closeAddOperation = (text: string) => {
  634. if (text == '确定') {
  635. init()
  636. }
  637. dialogShow.value = false
  638. }
  639. // 关闭添加银行卡弹框
  640. const closeAddBankCard = (type: string) => {
  641. bankCardDialogShow.value = false
  642. }
  643. // 添加/编辑业务员弹框标题
  644. let title = ref('添加')
  645. // 分配管理人
  646. let allocationShow = ref(false)
  647. const closeAllocation = (type: boolean) => {
  648. allocationShow.value = type
  649. }
  650. onMounted(() => {
  651. init()
  652. institutionList()
  653. })
  654. </script>
  655. <style scoped lang="scss">
  656. @use "@/assets/styles/common/style.scss";
  657. .operation {
  658. margin: 0 20px;
  659. background: white;
  660. .operationForm {
  661. margin: 20px 0;
  662. .span-justify {
  663. display: flex;
  664. justify-content: flex-end;
  665. }
  666. }
  667. :deep(.select-all .el-select__wrapper) {
  668. box-shadow: none;
  669. background: none;
  670. }
  671. }
  672. </style>