doum
7 小时以前 36f691267e45ca2861bed663fdcf5f2efcefdfce
admin/src/views/business/internalCompany.vue
@@ -27,6 +27,8 @@
            @click="synchronous()">同步</el-button></li>
        <li><el-button type="primary" v-permissions="['business:company:create']" :loading="loading"
            @click="synchronousDingding()">同步钉钉</el-button></li>
<!--        <li><el-button type="primary" v-permissions="['business:company:create']" :loading="loading"
            @click="synchronousJdy()">同步简道云</el-button></li>-->
      </ul>
      <el-table :max-height="tableHeight" v-loading="isWorking.search" :data="list" stripe
        :tree-props="{ children: 'childList', hasChildren: 'hasChildren' }" row-key="id"
@@ -65,7 +67,7 @@
<script>
import BaseTable from '@/components/base/BaseTable'
import TableLayout from '@/layouts/TableLayout'
import { companySync,companySyncDingding, sort } from '@/api/business/company'
import { companySync,companySyncDingding, companySyncJdy,sort } from '@/api/business/company'
import OperaInternalCompanyWindow from '@/components/business/OperaInternalCompanyWindow'
export default {
  name: 'internalCompany',
@@ -150,6 +152,24 @@
        })
        .catch(() => { })
    },
    async synchronousJdy() {
      this.$dialog.actionConfirm('该操作将系统清空已有内部组织信息,您确认同步全部信息吗?', '操作确认提醒')
        .then(() => {
          this.loading = true
          companySyncJdy({})
            .then(res => {
              this.$tip.apiSuccess(res || '同步成功')
              this.search()
            })
            .catch(e => {
              this.$tip.apiFailed(e)
            })
            .finally(() => {
              this.loading = false
            })
        })
        .catch(() => { })
    },
    // 排序
    sort(direction) {
      if (this.sorting) {