jiangping
2024-02-26 8f553085e1f5de85798d7027f8f56b29a1e7f6c1
admin/src/views/business/internalMember.vue
@@ -57,6 +57,7 @@
                        <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>
@@ -122,7 +123,7 @@
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,
@@ -166,9 +167,22 @@
    },
    // 同步信息
    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)