| | |
| | | <!-- </el-form>--> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:company:create', 'business:company:delete']"> |
| | | <!-- <li><el-button type="primary" v-permissions="['business:company:create']" @click="synchronous()">同步</el-button></li>--> |
| | | <ul class="toolbar" v-permissions="['business:company:create', 'business:company:sync']"> |
| | | <li><el-button type="primary" v-permissions="['business:company:create']" @click="$refs.OperaInternalCompanyWindow.open('新建企业')">新建</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:company:sync']" @click="synchronous()">同步</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | // import { companySync } from '@/api/business/company' |
| | | import { companySync } from '@/api/business/company' |
| | | import OperaInternalCompanyWindow from '@/components/business/OperaInternalCompanyWindow' |
| | | export default { |
| | | name: 'internalCompany', |
| | |
| | | .finally(() => { |
| | | this.isWorking.search = false |
| | | }) |
| | | } |
| | | }, |
| | | // 同步信息 |
| | | // async synchronous () { |
| | | // const message = await companySync({}) |
| | | // this.$message.success(message) |
| | | // this.search() |
| | | // } |
| | | async synchronous () { |
| | | const message = await companySync({}) |
| | | this.$message.success(message) |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |