| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import { companySync } from '@/api/business/company' |
| | | import OperaInternalCompanyWindow from '@/components/business/OperaInternalCompanyWindow' |
| | | import { memberSync } from '@/api/business/member' |
| | | export default { |
| | | name: 'internalCompany', |
| | | extends: BaseTable, |
| | |
| | | }, |
| | | // 同步信息 |
| | | async synchronous () { |
| | | const message = await companySync({}) |
| | | this.$message.success(message) |
| | | this.search() |
| | | this.$dialog.actionConfirm('操作确认提醒', '您确认同步全部信息吗?') |
| | | .then(() => { |
| | | this.isWorking.delete = true |
| | | companySync({}) |
| | | .then(res => { |
| | | this.$tip.apiSuccess(res || '同步成功') |
| | | this.search() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.delete = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | } |