This commit is contained in:
Paidax
2025-09-02 15:52:57 +08:00
parent 1531aea1d6
commit 8f4b14c450
8 changed files with 173 additions and 9 deletions
@@ -92,6 +92,8 @@ layout("/layouts/platform.html"){
<el-button v-if="row.canRevoke" @click="onRevoke(row)" size="mini" type="danger">撤回
</el-button>
<el-button v-if="row.taskKey === 'startTask' || !row.instanceId" @click="onDelete(row.id)" size="mini" type="danger">删除</el-button>
<el-button v-if="row.instanceState === 20" @click="doExport(row)" size="mini" type="primary">导出</el-button>
</template>
</el-table-column>
</el-table>
@@ -141,6 +143,9 @@ layout("/layouts/platform.html"){
'info': INFO
},
methods: {
doExport(row){
this.$downLoad('/platform/activityDeclare/mine/doExport?id=' + row.id)
},
onApply() {
window.location.href = '/platform/activityDeclare/apply'
},
@@ -1,6 +1,11 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-descriptions-item__label {
width: 15% !important;
}
</style>
<div id="app">
<div>
<el-card shadow="never">
@@ -92,6 +92,8 @@ layout("/layouts/platform.html"){
<el-button v-if="row.canRevoke" @click="onRevoke(row)" size="mini" type="danger">撤回
</el-button>
<el-button v-if="row.taskKey === 'startTask' || !row.instanceId" @click="onDelete(row.id)" size="mini" type="danger">删除</el-button>
<el-button @click="doExport(row)">导出</el-button>
</template>
</el-table-column>
</el-table>
@@ -140,6 +142,10 @@ layout("/layouts/platform.html"){
'info': INFO
},
methods: {
// 导出示例
doExport(row){
this.$downLoad('/platform/activityDeclare/mine?id=' + row.declareId)
},
onApply() {
window.location.href = '/platform/activityReimbursement/apply'
},