|
|
@@ -70,7 +70,7 @@
|
|
|
size="mini">生成AI分析</el-button>
|
|
|
<el-button v-if="scope.row.hasPerformanceData" type="success" @click="AiPerformanceAnalysis_GroupStatistics(scope.row,'查看')" size="mini">查看分析</el-button>
|
|
|
<el-button v-else type="primary" @click="AiPerformanceAnalysis_GroupStatistics(scope.row,'查看')" size="mini">查看分析</el-button>
|
|
|
- <el-button type="primary" @click="AiPerformanceAnalysis_JobMarketingFileDown(scope.row)" size="mini">下载</el-button>
|
|
|
+ <el-button type="primary" @click="FileDownAi(scope.row)" size="mini">下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -237,15 +237,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //下载
|
|
|
- AiPerformanceAnalysis_JobMarketingFileDown(val){
|
|
|
- if(this.months==''){
|
|
|
- this.$message.error('请选择月份!');
|
|
|
- return
|
|
|
- }
|
|
|
- var new_year = this.months.getFullYear()
|
|
|
- var month = this.months.getMonth();
|
|
|
- var new_month = month + 1;
|
|
|
+ //市场部绩效下载接口
|
|
|
+ AiPerformanceAnalysis_JobMarketingFileDown(new_year,new_month,val){
|
|
|
var url = "/api/PersonnelModule/AiPerformanceAnalysis_JobMarketingFileDown?year="+new_year+"&month="+new_month+"&userId="+val.id
|
|
|
var that = this
|
|
|
this.$axios({
|
|
|
@@ -266,6 +259,43 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //国交部绩效下载接口
|
|
|
+ AiPerformanceAnalysis_GuojiaoFileDown(new_year,new_month,val){
|
|
|
+ var url = "/api/PersonnelModule/AiPerformanceAnalysis_GuojiaoFileDown?year="+new_year+"&month="+new_month+"&userId="+val.id
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer '
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if(res.data.code==200){
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ window.open(res.data.data.url);
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //下载
|
|
|
+ FileDownAi(val){
|
|
|
+ if(this.months==''){
|
|
|
+ this.$message.error('请选择月份!');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var new_year = this.months.getFullYear()
|
|
|
+ var month = this.months.getMonth();
|
|
|
+ var new_month = month + 1;
|
|
|
+ if (val.depName=='市场部') {
|
|
|
+ this.AiPerformanceAnalysis_JobMarketingFileDown(new_year,new_month,val);
|
|
|
+ }else if(val.depName=='国交部'){
|
|
|
+ this.AiPerformanceAnalysis_GuojiaoFileDown(new_year,new_month,val);
|
|
|
+ }
|
|
|
+ },
|
|
|
//查看
|
|
|
AiPerformanceAnalysis_Query(val){
|
|
|
if(this.months==''){
|