From 30cfb2b836a8a3d609518cc295753b58b17a9bc7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 15 十一月 2024 09:15:29 +0800
Subject: [PATCH] 优化
---
company/src/views/business/switchCourt.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/company/src/views/business/switchCourt.vue b/company/src/views/business/switchCourt.vue
index 94ce2e1..38b6647 100644
--- a/company/src/views/business/switchCourt.vue
+++ b/company/src/views/business/switchCourt.vue
@@ -58,6 +58,9 @@
</el-form>
<!-- 琛ㄦ牸鍜屽垎椤� -->
<template v-slot:table-wrap>
+ <ul class="toolbar">
+ <li><el-button type="primary" @click="$refs.chooseCompany.open('閫夋嫨浼佷笟')">鏂板</el-button></li>
+ </ul>
<el-table
v-loading="isWorking.search"
:data="tableData.list"
@@ -106,6 +109,10 @@
</template>
<!-- 璇︽儏 -->
<OperaApplyChangeUnitDetailWindow ref="operaApplyChangeDetailWindow" @success="handlePageChange"/>
+ <!-- 閫夋嫨浼佷笟 -->
+ <chooseCompany ref="chooseCompany" @submit="getCompany" />
+ <!-- 閫夋嫨淇濆崟 -->
+ <selectPolicy ref="selectPolicy" @success="handlePageChange" />
</TableLayout>
</template>
@@ -116,10 +123,12 @@
import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
import {all as solutionAll, all} from '@/api/business/solutions'
import {pageAll as companyAll} from "@/api/business/company";
+import chooseCompany from '@/components/common/chooseCompany'
+import selectPolicy from '@/components/business/selectPolicy'
export default {
name: 'switchCourt',
extends: BaseTable,
- components: { TableLayout, Pagination, OperaApplyChangeUnitDetailWindow },
+ components: { TableLayout, Pagination, OperaApplyChangeUnitDetailWindow, chooseCompany, selectPolicy },
data () {
return {
// 鎼滅储
@@ -149,6 +158,9 @@
this.loadSelectList()
},
methods: {
+ getCompany(e) {
+ this.$refs.selectPolicy.open('閫夋嫨淇濆崟', e.companyId, 2)
+ },
loadSelectList() {
solutionAll({dataType:2,type:0}).then(res => {
this.solutionList = res
--
Gitblit v1.9.3