Przeglądaj źródła

策划部AI绩效

liuhj 10 godzin temu
rodzic
commit
a48f24f17f

+ 1 - 1
src/components/OP/GroupProgress.vue

@@ -515,7 +515,7 @@
                         v-for="(item,index) in activitiesCost" :key="index">
                         <el-popover v-if="item.nodeDescTips!=''" placement="top-start" title="PS" width="200"
                             trigger="hover" :content="item.nodeDescTips">
-                            <div style="white-space: pre-wrap;">{{item.nodeDescTips}}</div>l
+                            <div style="white-space: pre-wrap;">{{item.nodeDescTips}}</div>
                             <div slot="reference">
                                 <div style="font-weight: 600;font-size: 12px;">{{item.nodeName}}</div>
                                 <div>{{item.statusText}}</div>

+ 39 - 0
src/components/OP/performanceanalysis.vue

@@ -626,6 +626,31 @@ export default {
                 }
             })
         },
+        //策划部任务
+        AiPerformanceAnalysis_PlanningDepartment(val){
+            var url = "/api/PersonnelModule/AiPerformanceAnalysis_PlanningDepartment?userId="+val.id+"&start="+this.datetime(this.months[0])+"&end="+this.datetime(this.months[1])+"&createUserId="+this.userId
+            var that = this
+            this.$axios({
+                method: 'get',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer '
+                }
+            }).then(function (res) {
+                if(res.data.code==200){
+                    that.performanLoading=false;
+                    that.AIVisible=true;
+                    if (that.$marked && typeof that.$marked === 'function') {
+                        that.marktext = that.$marked(res.data.data.answer+that.texehr);
+                        that.marktexts = that.$marked(res.data.data.kaoqinAnswer);
+                    }
+                    that.AiPerformanceAnalysis_UserList();
+                }else{
+                    that.performanLoading=false;
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
         //生成市场部绩效
         MarketingDepartment(val,text){
             var new_year = this.months[0].getFullYear()
@@ -785,6 +810,20 @@ export default {
                 }
                 return
             }
+            if (val.depName=='策划部') {
+                this.performanLoading=true;
+                if(text=='查看'){
+                    if (val.hasPerformanceData==false) {
+                        this.performanLoading=false;
+                        this.$message.error('该用户尚未生成AI绩效分析,请先生成!');
+                        return
+                    }
+                    this.AiPerformanceAnalysis_Query(val)
+                }else{
+                    this.AiPerformanceAnalysis_PlanningDepartment(val);
+                }
+                return
+            }
             if (val.id==187) {
                 this.performanLoading=true;
                 if(text=='查看'){