[update] 联调内部工作组导入,导出
This commit is contained in:
@@ -133,19 +133,17 @@
|
||||
<!-- 新增-->
|
||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||
<!-- 导入-->
|
||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
||||
<a-button type="primary" icon="download" ghost>{{ $t('import') }}</a-button>
|
||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :data="importData" :action="importExcelUrl" @change="handleImportExcel">
|
||||
<a-button type="primary" icon="import" ghost @click="handleImport">{{ $t('import') }}</a-button>
|
||||
</a-upload>
|
||||
<!-- 导出-->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportXls($t('system.internalWorkGroup.exportName'))">
|
||||
<a-button icon="export" type="primary" ghost @click="handleExportXls($t('system.internalWorkGroup.exportName'))">
|
||||
{{ $t('export') }}
|
||||
</a-button>
|
||||
<!-- 模板下载-->
|
||||
<a-button type="primary" icon="download" ghost @click="downTemplate('system.internalWorkGroup.templateName')">
|
||||
<a-button type="primary" icon="download" ghost @click="downTemplate($t('system.internalWorkGroup.templateName'))">
|
||||
{{ $t('templateDownload') }}
|
||||
</a-button>
|
||||
<!-- 批量删除-->
|
||||
<!-- <a-button type="primary" icon="delete" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>-->
|
||||
</div>
|
||||
<div>
|
||||
<j-table
|
||||
@@ -171,7 +169,7 @@
|
||||
|
||||
<!-- 新增、编辑左侧树节点 -->
|
||||
<tree-node-modal ref="treeNodeModal" @ok="treeNodeModalOk"></tree-node-modal>
|
||||
<!-- 新增弹框 -->
|
||||
<!-- 新增弹框 -->
|
||||
<working-group-modal ref="modalForm" @ok="modalFormOk"></working-group-modal>
|
||||
</a-card>
|
||||
</template>
|
||||
@@ -238,13 +236,14 @@ export default {
|
||||
wrapperCol: {
|
||||
span: 18
|
||||
},
|
||||
importData: {},
|
||||
url: {
|
||||
treeNodeDelete: '/sys/lawsWorkingGroup/delete',
|
||||
list: '/sys/lawsWorkingGroupUser/page',
|
||||
importExcelUrl: '',
|
||||
exportXlsUrl: '',
|
||||
importExcelUrl: '/sys/lawsWorkingGroupUser/importExcel',
|
||||
exportXlsUrl: '/sys/lawsWorkingGroupUser/export',
|
||||
delete: '/sys/lawsWorkingGroupUser/delete',
|
||||
deleteBatch: '' // 批量删除
|
||||
downTemplateUrl: '/sys/lawsWorkingGroupUser/download/template'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -348,6 +347,14 @@ export default {
|
||||
this.currentTreeNode = null
|
||||
this.initTreeData()
|
||||
this.loadData(1)
|
||||
},
|
||||
handleImport (e) {
|
||||
if (!this.currentTreeNode || this.currentTreeNode.length <= 0) {
|
||||
this.$message.warning(this.$t('system.internalWorkGroup.pleaseSelectASystem'))
|
||||
e.stopPropagation()
|
||||
} else {
|
||||
this.importData = { workingGroupId: this.currentTreeNode[0] }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user