[update] 联调内部工作组导入,导出
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = {
|
|||||||
canLookDepart: 'Viewable department',
|
canLookDepart: 'Viewable department',
|
||||||
remark: 'Remarks'
|
remark: 'Remarks'
|
||||||
},
|
},
|
||||||
// 友情练级管理
|
// 友情链接管理
|
||||||
friendshipLink: {
|
friendshipLink: {
|
||||||
name: 'Link Name',
|
name: 'Link Name',
|
||||||
shelfStatus: 'Shelf Status',
|
shelfStatus: 'Shelf Status',
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module.exports = {
|
|||||||
name: '姓名',
|
name: '姓名',
|
||||||
workNo: '工号',
|
workNo: '工号',
|
||||||
role: '角色',
|
role: '角色',
|
||||||
post: '职位',
|
post: '岗位',
|
||||||
templateName: '内部工作组表模板',
|
templateName: '内部工作组表模板',
|
||||||
exportName: '内部工作组表',
|
exportName: '内部工作组表',
|
||||||
nodeName: '节点名称',
|
nodeName: '节点名称',
|
||||||
@@ -70,7 +70,7 @@ module.exports = {
|
|||||||
canLookDepart: '可查看部门',
|
canLookDepart: '可查看部门',
|
||||||
remark: '备注'
|
remark: '备注'
|
||||||
},
|
},
|
||||||
// 友情练级管理
|
// 友情链接管理
|
||||||
friendshipLink: {
|
friendshipLink: {
|
||||||
name: '链接名称',
|
name: '链接名称',
|
||||||
shelfStatus: '上架状态',
|
shelfStatus: '上架状态',
|
||||||
|
|||||||
@@ -133,19 +133,17 @@
|
|||||||
<!-- 新增-->
|
<!-- 新增-->
|
||||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
<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-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :data="importData" :action="importExcelUrl" @change="handleImportExcel">
|
||||||
<a-button type="primary" icon="download" ghost>{{ $t('import') }}</a-button>
|
<a-button type="primary" icon="import" ghost @click="handleImport">{{ $t('import') }}</a-button>
|
||||||
</a-upload>
|
</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') }}
|
{{ $t('export') }}
|
||||||
</a-button>
|
</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') }}
|
{{ $t('templateDownload') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<!-- 批量删除-->
|
|
||||||
<!-- <a-button type="primary" icon="delete" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>-->
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<j-table
|
<j-table
|
||||||
@@ -171,7 +169,7 @@
|
|||||||
|
|
||||||
<!-- 新增、编辑左侧树节点 -->
|
<!-- 新增、编辑左侧树节点 -->
|
||||||
<tree-node-modal ref="treeNodeModal" @ok="treeNodeModalOk"></tree-node-modal>
|
<tree-node-modal ref="treeNodeModal" @ok="treeNodeModalOk"></tree-node-modal>
|
||||||
<!-- 新增弹框 -->
|
<!-- 新增弹框 -->
|
||||||
<working-group-modal ref="modalForm" @ok="modalFormOk"></working-group-modal>
|
<working-group-modal ref="modalForm" @ok="modalFormOk"></working-group-modal>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
@@ -238,13 +236,14 @@ export default {
|
|||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
span: 18
|
span: 18
|
||||||
},
|
},
|
||||||
|
importData: {},
|
||||||
url: {
|
url: {
|
||||||
treeNodeDelete: '/sys/lawsWorkingGroup/delete',
|
treeNodeDelete: '/sys/lawsWorkingGroup/delete',
|
||||||
list: '/sys/lawsWorkingGroupUser/page',
|
list: '/sys/lawsWorkingGroupUser/page',
|
||||||
importExcelUrl: '',
|
importExcelUrl: '/sys/lawsWorkingGroupUser/importExcel',
|
||||||
exportXlsUrl: '',
|
exportXlsUrl: '/sys/lawsWorkingGroupUser/export',
|
||||||
delete: '/sys/lawsWorkingGroupUser/delete',
|
delete: '/sys/lawsWorkingGroupUser/delete',
|
||||||
deleteBatch: '' // 批量删除
|
downTemplateUrl: '/sys/lawsWorkingGroupUser/download/template'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -348,6 +347,14 @@ export default {
|
|||||||
this.currentTreeNode = null
|
this.currentTreeNode = null
|
||||||
this.initTreeData()
|
this.initTreeData()
|
||||||
this.loadData(1)
|
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