MrShi
2024-01-31 a68bf12a2975405f57f9a9d51b91c13a93c026f0
company/src/views/enterprise/switchCourt.vue
@@ -48,7 +48,7 @@
        <!-- 表格和分页 -->
        <template v-slot:table-wrap>
            <ul class="toolbar" v-permissions="['business:applychange:create']">
                <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('加减保详情')" v-permissions="['business:applychange:create']">新建</el-button></li>
                <li><el-button type="primary" @click="$refs.operaApplyChangeWindow.open('新建')" v-permissions="['business:applychange:create']">新建</el-button></li>
            </ul>
            <el-table
                    v-loading="isWorking.search"
@@ -102,6 +102,8 @@
    import TableLayout from '@/layouts/TableLayout'
    import Pagination from '@/components/common/Pagination'
    import add_subtractDetails from '@/components/enterprise/add_subtractDetails'
    import {all as solutionAll} from "@/api/business/solutions";
    import {pageAll as companyAll} from "@/api/business/company";
    export default {
        name: 'switchCourt',
        extends: BaseTable,
@@ -124,6 +126,22 @@
                'field.main': 'id'
            })
            this.search()
        },
      methods:{
        // handlePageChange() {
        //   this.search()
        // },
        loadSelectList() {
          solutionAll({dataType:2}).then(res => {
            this.solutionList = res
          }).catch(err => {
          })
          companyAll({}).then(res => {
            this.companyList = res
          }).catch(err => {
          })
        }
      }
    }
</script>