|
@@ -60,13 +60,13 @@
|
|
|
<p class="indicitem" @click="seeStates(scope.row)">{{scope.row.stage}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="160">
|
|
|
+ <el-table-column label="操作" width="200">
|
|
|
<template #default="scope">
|
|
|
<div style="display:flex">
|
|
|
<p class="indicitem" v-if="scope.row.stage === '流程未启动'" @click="agetdeptresponsibility(scope.row)">启动</p>
|
|
|
<p style="font-size: 12px;margin-right: 20px;" v-else-if="scope.row.stage === '流程已结束'" >已结束</p>
|
|
|
<p style="font-size: 12px;margin-right: 20px;" v-else >已启动</p>
|
|
|
- <p class="indicitem" v-if="scope.row.stage === '流程已结束'" @click="getGenerateReport(scope.row)">生成报表</p>
|
|
|
+ <p class="indicitem" @click="getGenerateReport(scope.row)">生成报表</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -161,8 +161,9 @@
|
|
|
import startFromList from './assessmentApplicationFrom.vue'
|
|
|
import btns from '../elbuttonS.vue'
|
|
|
import seachs from '../seachGroup.vue'
|
|
|
+import { saveAs } from 'file-saver'
|
|
|
import {apiGetevaluatiodeptadList, apiPostevaluationdeptadSave,apiGetdoAction,apiGetuserPageList,
|
|
|
-apiGetworkflowgetOpinion,apiGetevaluationdeptplanReport,apiGetevaluationdownloadReport,
|
|
|
+apiGetworkflowgetOpinion,apiGetevaluationdeptadReport,apiGetevaluationdownloadReport,
|
|
|
apideptModifyState, apiGetorganizationstructureFromTree, apiPostevaluationdeptadDelete} from '../../api/api'
|
|
|
export default {
|
|
|
components: {
|
|
@@ -481,19 +482,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getGenerateReport(row) {
|
|
|
- let that = this
|
|
|
- apiGetevaluationdeptplanReport(row.id).then(datas =>{
|
|
|
- if (datas.success) {
|
|
|
- apiGetevaluationdownloadReport(datas.data).then(datass =>{
|
|
|
- let blob = new Blob([datass],{ type: 'application/msword;charset=UTF-8' })
|
|
|
- saveAs(blob, `${datas.data}`)
|
|
|
- })
|
|
|
- } else {
|
|
|
- that.$message({
|
|
|
- message: datas.message,
|
|
|
- type: 'error'
|
|
|
- });
|
|
|
- }
|
|
|
+ apiGetevaluationdeptadReport(row.id).then(datas =>{
|
|
|
+ let blob = new Blob([datas], { type: "application/vnd.ms-excel" })
|
|
|
+ saveAs(blob, '公司本部部门及员工月度绩效考核结果申报表.xlsx')
|
|
|
})
|
|
|
}
|
|
|
}
|