标准/译文获取申请 导入/状态回显
This commit is contained in:
+20
-4
@@ -7,7 +7,17 @@
|
||||
>
|
||||
<div class="operate">
|
||||
<el-button size="mini" type="primary" @click="standardTranslationAcquisitionRequestAdd">新增标准/译文获取申请</el-button>
|
||||
<el-button size="mini" type="primary" @click="importData">导入</el-button>
|
||||
<el-upload
|
||||
action="http://localhost:9090/api/lawss/standardApplyFor/importData"
|
||||
style="margin: 0 10px"
|
||||
:on-success="importSuccess"
|
||||
:on-error="importError"
|
||||
:show-file-list="false"
|
||||
:multiple="false"
|
||||
accept=".xlsx,xls"
|
||||
>
|
||||
<el-button size="mini" type="primary">导入</el-button>
|
||||
</el-upload>
|
||||
<el-button size="mini" @click="templateDownload">模版下载</el-button>
|
||||
<el-button size="mini" @click="batchDelete()">批量删除</el-button>
|
||||
</div>
|
||||
@@ -129,9 +139,11 @@ export default {
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
fileList: '',
|
||||
url: {
|
||||
deleteUrl: '/lawss/standardApplyFor/batchUpdateValidFlag',
|
||||
getList: '/lawss/standardApplyFor/queryStagingByPage'
|
||||
getList: '/lawss/standardApplyFor/queryStagingByPage',
|
||||
importData: '/lawss/standardApplyFor/importData'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -152,7 +164,11 @@ export default {
|
||||
edit (item) {
|
||||
this.$refs.addModalRef.showModal(item)
|
||||
},
|
||||
importData () {
|
||||
importSuccess () {
|
||||
this.$message.success('操作成功')
|
||||
},
|
||||
importError () {
|
||||
this.$message.warning('操作失败')
|
||||
},
|
||||
templateDownload () {
|
||||
window.open('/api/lawss/standardApplyFor/exportTemplateFile?fileName=标准/译文获取申请模板.xlsx')
|
||||
@@ -209,7 +225,7 @@ export default {
|
||||
})
|
||||
},
|
||||
submitData () {
|
||||
if (this.selectedList && this.selectedList.length > 0){
|
||||
if (this.selectedList && this.selectedList.length > 0) {
|
||||
const query = {
|
||||
status: 'pendingApproval',
|
||||
ids: this.selectedList.join(',')
|
||||
|
||||
Reference in New Issue
Block a user