标准/译文获取申请 导入/状态回显
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(',')
|
||||
|
||||
@@ -151,12 +151,16 @@
|
||||
prop="status"
|
||||
align="center"
|
||||
min-width="100"
|
||||
/>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.status === 'refuse' ? '驳回' : scope.row.status === 'pendingApproval' ? '待审批' : scope.row.status === 'pass' ? '通过' : '草稿' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="200" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<div class="table-operate-btn" @click="toView(scope.row)">查看</div>
|
||||
<div class="table-operate-btn" @click="batchPass([scope.row.id])">通过</div>
|
||||
<div class="table-operate-btn" @click="batchOverrule([scope.row.id])">驳回</div>
|
||||
<div class="table-operate-btn" v-show="scope.row.status==='pendingApproval'" @click="batchPass([scope.row.id])">通过</div>
|
||||
<div class="table-operate-btn" v-show="scope.row.status==='pendingApproval'" @click="batchOverrule([scope.row.id])">驳回</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -170,7 +174,7 @@
|
||||
</div>
|
||||
<standardsAndTranslationModal ref="standardsAndTranslationModalRef" @updateIndexList="getList" />
|
||||
<detailModal ref="detailModalRef" />
|
||||
<exportDialog ref="exportDialogRef"></exportDialog>
|
||||
<exportDialog ref="exportDialogRef" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -299,7 +303,6 @@ export default {
|
||||
// 取消删除,清空选择
|
||||
this.$refs.selections.clearSelection()
|
||||
})
|
||||
|
||||
},
|
||||
batchOverrule (id) {
|
||||
if (id.length === 0) {
|
||||
@@ -332,7 +335,7 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
exportName(name){
|
||||
exportName (name) {
|
||||
},
|
||||
exportList () {
|
||||
this.$refs.exportDialogRef.openModel()
|
||||
|
||||
Reference in New Issue
Block a user