feat(办公管理): 新增 流程列表信息导出功能。(I5RH0X)

This commit is contained in:
konbai
2022-12-25 18:44:02 +08:00
parent a575cbd046
commit 3a90db6a11
14 changed files with 658 additions and 28 deletions

View File

@@ -30,6 +30,16 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
v-hasPermi="['workflow:process:claimExport']"
@click="handleExport"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -149,6 +159,12 @@ export default {
path: '/work/todo'
})
})
},
/** 导出按钮操作 */
handleExport() {
this.download('workflow/process/claimExport', {
...this.queryParams
}, `wf_claim_process_${new Date().getTime()}.xlsx`)
}
}
};

View File

@@ -30,8 +30,8 @@
plain
icon="el-icon-download"
size="mini"
v-hasPermi="['workflow:process:copyExport']"
@click="handleExport"
v-hasPermi="['workflow:process:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -201,9 +201,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.download('workflow/copy/export', {
this.download('workflow/process/copyExport', {
...this.queryParams
}, `copy_${new Date().getTime()}.xlsx`)
}, `wf_copy_process_${new Date().getTime()}.xlsx`)
}
}
};

View File

@@ -29,6 +29,16 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
v-hasPermi="['workflow:process:finishedExport']"
@click="handleExport"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -223,6 +233,12 @@ export default {
this.$modal.msgSuccess(res.msg);
this.getList();
});
},
/** 导出按钮操作 */
handleExport() {
this.download('workflow/process/finishedExport', {
...this.queryParams
}, `wf_finished_process_${new Date().getTime()}.xlsx`)
}
}
};

View File

@@ -35,6 +35,16 @@
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
v-hasPermi="['workflow:process:startExport']"
@click="handleExport"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" fit :data="processList">
@@ -176,6 +186,12 @@ export default {
}
})
},
/** 导出按钮操作 */
handleExport() {
this.download('workflow/process/startExport', {
...this.queryParams
}, `wf_start_process_${new Date().getTime()}.xlsx`)
},
categoryFormat(row, column) {
return this.categoryOptions.find(k => k.code === row.category)?.categoryName ?? '';
}

View File

@@ -64,6 +64,7 @@
plain
icon="el-icon-download"
size="mini"
v-hasPermi="['workflow:process:ownExport']"
@click="handleExport"
>导出</el-button>
</el-col>
@@ -280,16 +281,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有流程定义数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
// return exportDeployment(queryParams);
}).then(response => {
this.download(response.msg);
})
this.download('workflow/process/ownExport', {
...this.queryParams
}, `wf_own_process_${new Date().getTime()}.xlsx`)
},
categoryFormat(row, column) {
return this.categoryOptions.find(k => k.code === row.category)?.categoryName ?? '';

View File

@@ -29,6 +29,16 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
v-hasPermi="['workflow:process:todoExport']"
@click="handleExport"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -186,16 +196,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有流程定义数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function () {
return exportDeployment(queryParams);
}).then(response => {
this.download(response.msg);
})
this.download('workflow/process/todoExport', {
...this.queryParams
}, `wf_todo_process_${new Date().getTime()}.xlsx`)
}
}
};