liuhj 6 months ago
parent
commit
19e1e0b3fd

BIN
src/assets/gpt.png


BIN
src/assets/kimi.png


BIN
src/assets/youdao.png


+ 16 - 4
src/components/Finance/royaltypg.vue

@@ -71,26 +71,38 @@
                     label="序号"
                     width="50">
                     <template slot-scope="scope">
-                        {{ scope.$index + 1 }}
+                        <span :style="scope.row.state==1?'color: #477cb2;':''">
+                            {{ scope.$index + 1 }}
+                        </span>
                     </template>
                     </el-table-column>
                     <el-table-column
                     prop="teamName"
                     label="团名"
                     width="400">
+                    <template slot-scope="scope">
+                        <span :style="scope.row.state==1?'color: #477cb2;':''">
+                            {{scope.row.teamName}}
+                        </span>
+                    </template>
                     </el-table-column>
                     <el-table-column
                     prop="visitDate"
                     label="结束日期"
                     width="100">
                     <template slot-scope="scope">
-                        {{processingdate(scope.row.visitDate)}}
+                        <span :style="scope.row.state==1?'color: #477cb2;':''">
+                            {{processingdate(scope.row.visitDate)}}
+                        </span>
                     </template>
                     </el-table-column>
                     <el-table-column
                     prop="teamLvStr"
                     label="级别"
                     width="80">
+                    <template slot-scope="scope">
+                        <span :style="scope.row.state==1?'color: #477cb2;':''">{{scope.row.teamLvStr}}</span>
+                    </template>
                     </el-table-column>
                     <el-table-column
                     prop="temp"
@@ -106,7 +118,7 @@
                                     {{ item }}
                                 </div>
                             </div>
-                            <span slot="reference">{{scope.row.temp}}</span>
+                            <span :style="scope.row.state==1?'color: #477cb2;':''" slot="reference">{{scope.row.temp}}</span>
                         </el-popover>
                     </template>
                     </el-table-column>
@@ -115,7 +127,7 @@
                     label="提成金额	"
                     width="180">
                     <template slot-scope="scope">
-                        {{ processingprice(scope.row.price)+ ' 元' }}
+                        <span :style="scope.row.state==1?'color: #477cb2;':''">{{ processingprice(scope.row.price)+ ' 元' }}</span>
                     </template>
                     </el-table-column>
                     <!-- <el-table-column

+ 22 - 4
src/components/home.vue

@@ -54,7 +54,7 @@
     </div>
     <div class="gpt-dialog">
       <el-dialog top="3vh" width="1600px" title="请自行用手机号注册即可使用" :visible.sync="gptdialog">
-        <iframe src="https://kimi.moonshot.cn" width="100%" height="800px"></iframe>
+        <iframe :src="indexsrc" width="100%" height="800px"></iframe>
       </el-dialog>
     </div>
     <el-container class="all">
@@ -135,15 +135,21 @@
             <div class="instrument-box-title">实用工具</div>
             <div class="instrument-box-inif">
               <div class="box-inif-ul">
-                <div @click="gptdialog = true"  class="box-inif-li">
+                <div @click="gptdialogbtn('KIMI')"  class="box-inif-li">
                   <div class="inif-li-img">
-                    <img src="../assets/QuNaEr.jpg" alt="" />
+                    <img src="../assets/kimi.png" alt="" />
                   </div>
                   <div class="inif-li-text">KIMI</div>
                 </div>
+                <div @click="gptdialogbtn('有道')"  class="box-inif-li">
+                  <div class="inif-li-img">
+                    <img src="../assets/youdao.png" alt="" />
+                  </div>
+                  <div class="inif-li-text">有道</div>
+                </div>
                 <div @click="opengpt" class="box-inif-li">
                   <div class="inif-li-img">
-                    <img src="../assets/QuNaEr.jpg" alt="" />
+                    <img src="../assets/gpt.png" alt="" />
                   </div>
                   <div class="inif-li-text">GPT</div>
                 </div>
@@ -281,6 +287,7 @@ export default {
       iconfont:'iconfont ',
       gaodu:'',
       gptdialog:false,
+      indexsrc:'',
       sex:0,
       classA:'',
       classB:''
@@ -327,6 +334,17 @@ export default {
       this.$router.push({ path: "/home" + item.webUrl });
       document.querySelector(".header-title").innerHTML = item.pageName;
     },
+    //yeneiyemian
+    gptdialogbtn(val){
+      this.indexsrc='';
+      this.gptdialog = true;
+      if(val=='KIMI'){
+        this.indexsrc='https://kimi.moonshot.cn';
+      }
+      if(val=='有道'){
+        this.indexsrc='https://fanyi.youdao.com/#/AITranslate?keyfrom=fanyiweb_tab'
+      }
+    },
     //打开gpt
     opengpt(){
       window.open('https://chat.openai.com')

+ 24 - 11
src/components/statistics/Statistically.vue

@@ -362,7 +362,6 @@
         </div>
     </div>
 </template>
-
 <script>
 import { getToken } from 'mapkit-token';
 import * as echarts from 'echarts';
@@ -600,10 +599,10 @@ export default {
         },
         //在线引入
         getonline(){
-            const oScript = document.createElement('script');
-            oScript.type = 'text/javascript';
-            oScript.src = 'https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.core.js';
-            document.body.appendChild(oScript);
+            // const oScript = document.createElement('script');
+            // oScript.type = 'text/javascript';
+            // oScript.src = 'https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.core.js';
+            // document.body.appendChild(oScript);
             this.onlinemap();
         },
         //在线地图
@@ -628,9 +627,13 @@ export default {
             });
             // var map = new mapkit.Map('map', { center: new mapkit.Coordinate(104.096488, 30.635261) });
             const coordinate = new mapkit.Coordinate(104.096488, 30.635261)
-            const span = new mapkit.CoordinateSpan(5, 5)  // 1degree=111km
-            const region = new mapkit.CoordinateRegion(coordinate, span)
-            const map = new mapkit.Map("map", {center: coordinate, countryCode: "CN"})
+            // const span = new mapkit.CoordinateSpan(5, 5)  // 1degree=111km
+            // const region = new mapkit.CoordinateRegion(coordinate, span)
+            const map = new mapkit.Map("map", {
+                center: coordinate, 
+                countryCode: "CN",
+                isZoomEnabled:true,
+            })
 
             
         },
@@ -712,7 +715,12 @@ export default {
                 dataset: {
                     source: this.invitationtop
                 },
-                xAxis: { type: 'category' },
+                xAxis: { 
+                    type: 'category',
+                    axisLabel:{
+                        rotate:30
+                    }, 
+                },
                 yAxis: {
                     name: '数量',
                 },
@@ -737,7 +745,12 @@ export default {
                 dataset: {
                     source: this.teamCooperation
                 },
-                xAxis: { type: 'category' },
+                xAxis: { 
+                    type: 'category',
+                    axisLabel:{
+                        rotate:25
+                    },
+                 },
                 yAxis: {
                     name: '次数',
                 },
@@ -1099,7 +1112,7 @@ export default {
             }).then(function (res) {
                 if(res.data.code==200){
                     that.invitationtop=[];
-                    let datainfo=res.data.data;
+                    let datainfo=res.data.data.groupByCountry;
                     that.invitationtop.push(['product','商邀邀请国家数量']);
                     for(let i=0;i<datainfo.length;i++){
                         that.invitationtop.push([datainfo[i].country,datainfo[i].timeNum]);