|
@@ -10,7 +10,18 @@
|
|
|
<!-- 搜索项 -->
|
|
|
<search-bar ref="searchbar" :conditionForm="conditionForm" @submitSearch="receiveSearch"></search-bar>
|
|
|
<!-- 操作栏 -->
|
|
|
- <operate-bar :pageOptList="pageOptList" @submitPageOpt="receviceOpt"></operate-bar>
|
|
|
+ <operate-bar :pageOptList="pageOptList" @submitPageOpt="receviceOpt">
|
|
|
+ <dg-button type="primary" @click="receviceOpt('同步')" icon="el-icon-refresh" v-permission="'QXGL_SQGL_ZTGL_RYTB'"
|
|
|
+ >同步</dg-button
|
|
|
+ >
|
|
|
+ <dg-button
|
|
|
+ type="primary"
|
|
|
+ @click="receviceOpt('增量同步')"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ v-permission="'QXGL_SQGL_ZTGL_RYZLTB'"
|
|
|
+ >增量同步</dg-button
|
|
|
+ >
|
|
|
+ </operate-bar>
|
|
|
<!-- 表格 -->
|
|
|
<new-table ref="table" :tableUrl="tableUrl" :tableHeader="UserTableData" :condition="condition">
|
|
|
<!-- 单位名称 -->
|
|
@@ -54,9 +65,9 @@
|
|
|
|
|
|
<script>
|
|
|
import newTable from '@/components/new-table';
|
|
|
-import { UserTableData, userPropConditionForm, pageOptList } from '../DataConfig';
|
|
|
+import { UserTableData, userPropConditionForm } from '../DataConfig';
|
|
|
import { authUserTableUrl } from '@/api/data-auth';
|
|
|
-import { userSyncUrl } from '@/api/sync';
|
|
|
+import { userSyncUrl, userAddSyncUrl } from '@/api/sync';
|
|
|
import baseApi from '@/api/jz-base';
|
|
|
import detail from './detail';
|
|
|
import { userImportUrl } from '@/api/import';
|
|
@@ -76,7 +87,7 @@ export default {
|
|
|
conditionForm: userPropConditionForm,
|
|
|
UserTableData,
|
|
|
tableUrl: authUserTableUrl,
|
|
|
- pageOptList,
|
|
|
+ pageOptList: ['导入'],
|
|
|
LatestSyncTime: ''
|
|
|
};
|
|
|
},
|
|
@@ -86,8 +97,10 @@ export default {
|
|
|
receviceOpt(type) {
|
|
|
if (type == '导入') {
|
|
|
this.handleImport(userImportUrl, 'user');
|
|
|
- } else if (type == '同步') {
|
|
|
+ } else if (type == '同步') {
|
|
|
this.handleSync(userSyncUrl);
|
|
|
+ } else if (type == '增量同步') {
|
|
|
+ this.handleSync(userAddSyncUrl);
|
|
|
}
|
|
|
},
|
|
|
/**
|