Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
| | |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | export function syncParks (data) { |
| | | return request.post('/business/hksync/syncParks', data) |
| | | } |
| | | |
| | |
| | | export default { |
| | | ...MessageBox, |
| | | // 删除二次确认 |
| | | actionConfirm (title,message) { |
| | | return MessageBox.confirm(message, title, { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }) |
| | | }, |
| | | deleteConfirm (message) { |
| | | return MessageBox.confirm(message, '删除提醒', { |
| | | confirmButtonText: '确认删除', |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaDeviceWindow from '@/components/business/OperaDeviceWindow' |
| | | import { syncDevices } from '@/api/business/device' |
| | | import { memberSync } from '@/api/business/member' |
| | | export default { |
| | | name: 'Device', |
| | | extends: BaseTable, |
| | |
| | | }, |
| | | methods: { |
| | | synchronousData () { |
| | | this.$confirm('确认同步吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$dialog.actionConfirm('操作确认提醒', '您确认同步全部信息吗?') |
| | | .then(() => { |
| | | this.isWorking.delete = true |
| | | syncDevices({}) |
| | | .then(res => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '同步成功' |
| | | }) |
| | | this.$tip.apiSuccess(res || '同步成功') |
| | | this.search() |
| | | }) |
| | | }).catch(() => { |
| | | |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.delete = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | } |
| | |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar"> |
| | | <li><el-button type="primary" @click="synchronousData">同步</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:hksync:privilege']" @click="synchronousData">同步</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | 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.$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(() => {}) |
| | | } |
| | | } |
| | | } |
| | |
| | | <span v-if="row.sex === 2">女</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="所属部门" min-width="100px"></el-table-column> |
| | | <el-table-column prop="status" label="状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">正常</span> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import Tree from '@/components/common/Tree' |
| | | import { fetchList} from '@/api/business/company' |
| | | import {memberSync} from "@/api/business/member"; |
| | | import { memberSync } from '@/api/business/member' |
| | | export default { |
| | | name: 'internalMember', |
| | | extends: BaseTable, |
| | |
| | | }, |
| | | // 同步信息 |
| | | async synchronous () { |
| | | const message = await memberSync({}) |
| | | this.$message.success(message) |
| | | this.$dialog.actionConfirm('操作确认提醒', '您确认同步全部信息吗?') |
| | | .then(() => { |
| | | this.isWorking.delete = true |
| | | memberSync({}) |
| | | .then(res => { |
| | | this.$tip.apiSuccess(res || '同步成功') |
| | | this.search() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.delete = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | } , |
| | | callback (row) { |
| | | console.log(row) |
| | |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar"> |
| | | <li><el-button type="primary">同步</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:hksync:park']" @click="syncParks()">同步</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import { findList } from '@/api/business/parks' |
| | | import {findList, syncParks} from '@/api/business/parks' |
| | | export default { |
| | | name: 'Parks', |
| | | extends: BaseTable, |
| | |
| | | this.getfindList() |
| | | }, |
| | | methods: { |
| | | syncParks(){ |
| | | this.$dialog.actionConfirm("操作确认提醒","您确认同步全部信息吗?") |
| | | .then(() => { |
| | | this.isWorking.delete = true |
| | | this.api.syncParks({}) |
| | | .then(res => { |
| | | this.$tip.apiSuccess(res || '同步成功') |
| | | this.__afterDelete() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.delete = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | getfindList () { |
| | | findList({}) |
| | | .then(res => { |