标准/译文获取申请 导入/状态回显
This commit is contained in:
+19
-3
@@ -7,7 +7,17 @@
|
|||||||
>
|
>
|
||||||
<div class="operate">
|
<div class="operate">
|
||||||
<el-button size="mini" type="primary" @click="standardTranslationAcquisitionRequestAdd">新增标准/译文获取申请</el-button>
|
<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="templateDownload">模版下载</el-button>
|
||||||
<el-button size="mini" @click="batchDelete()">批量删除</el-button>
|
<el-button size="mini" @click="batchDelete()">批量删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -129,9 +139,11 @@ export default {
|
|||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
|
fileList: '',
|
||||||
url: {
|
url: {
|
||||||
deleteUrl: '/lawss/standardApplyFor/batchUpdateValidFlag',
|
deleteUrl: '/lawss/standardApplyFor/batchUpdateValidFlag',
|
||||||
getList: '/lawss/standardApplyFor/queryStagingByPage'
|
getList: '/lawss/standardApplyFor/queryStagingByPage',
|
||||||
|
importData: '/lawss/standardApplyFor/importData'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -152,7 +164,11 @@ export default {
|
|||||||
edit (item) {
|
edit (item) {
|
||||||
this.$refs.addModalRef.showModal(item)
|
this.$refs.addModalRef.showModal(item)
|
||||||
},
|
},
|
||||||
importData () {
|
importSuccess () {
|
||||||
|
this.$message.success('操作成功')
|
||||||
|
},
|
||||||
|
importError () {
|
||||||
|
this.$message.warning('操作失败')
|
||||||
},
|
},
|
||||||
templateDownload () {
|
templateDownload () {
|
||||||
window.open('/api/lawss/standardApplyFor/exportTemplateFile?fileName=标准/译文获取申请模板.xlsx')
|
window.open('/api/lawss/standardApplyFor/exportTemplateFile?fileName=标准/译文获取申请模板.xlsx')
|
||||||
|
|||||||
@@ -151,12 +151,16 @@
|
|||||||
prop="status"
|
prop="status"
|
||||||
align="center"
|
align="center"
|
||||||
min-width="100"
|
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">
|
<el-table-column label="操作" align="center" width="200" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="table-operate-btn" @click="toView(scope.row)">查看</div>
|
<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" v-show="scope.row.status==='pendingApproval'" @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="batchOverrule([scope.row.id])">驳回</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -170,7 +174,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<standardsAndTranslationModal ref="standardsAndTranslationModalRef" @updateIndexList="getList" />
|
<standardsAndTranslationModal ref="standardsAndTranslationModalRef" @updateIndexList="getList" />
|
||||||
<detailModal ref="detailModalRef" />
|
<detailModal ref="detailModalRef" />
|
||||||
<exportDialog ref="exportDialogRef"></exportDialog>
|
<exportDialog ref="exportDialogRef" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -299,7 +303,6 @@ export default {
|
|||||||
// 取消删除,清空选择
|
// 取消删除,清空选择
|
||||||
this.$refs.selections.clearSelection()
|
this.$refs.selections.clearSelection()
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
batchOverrule (id) {
|
batchOverrule (id) {
|
||||||
if (id.length === 0) {
|
if (id.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user