yumeng 1 gadu atpakaļ
vecāks
revīzija
3b01a8be9a

+ 8 - 0
src/api/promoter/promoter.js

@@ -47,6 +47,14 @@ export function addPromoter(query) {
 }
 
 // 新增政策
+export function editBindUser(query) {
+  return request({
+    url: '/kuaishou/promoter/editBindUser',
+    method: 'post',
+    data: query
+  })
+}
+
 export function editPromoter(query) {
   return request({
     url: '/kuaishou/promoter/edit',

+ 2 - 2
src/utils/request.js

@@ -19,8 +19,8 @@ const service = axios.create({
   // http://192.168.0.195:9003 测试
   // http://192.168.1.181:9003 西
   // http://192.168.1.211:9003 蒙蒙
-  baseURL: 'http://ruixuan.api.tjyourong.com.cn',
- //   baseURL: 'http://127.0.0.1:9003',
+   baseURL: 'http://ruixuan.api.tjyourong.com.cn',
+  //   baseURL: 'http://127.0.0.1:9003',
   // 超时
   timeout: 300000
 })

+ 3 - 3
src/views/dashboard/dataBigScreen.vue

@@ -367,7 +367,7 @@ p {
                 :start-val="0"
                 :end-val="(orderData.baseAmount / 100).toFixed(2)"
                 :decimals="2"
-                :duration="3600"
+                :duration="360"
                 class="card-panel-num"
                 style="color:darkkhaki"
               />
@@ -1244,7 +1244,7 @@ export default {
 
           axisLabel: {
             fontSize: 16,
-            color: "rgb(39, 53, 102,0)",
+            color: "#f2f2f2",
           },
         },
         series: [
@@ -1281,7 +1281,7 @@ export default {
             formatter: function (params) {
               if (todayList[0].hour == 0) {
                 if (params.length > 1) {
-                  return `${params[0].marker}今天${params[0].name}时: ${params[0].value}<br/> 
+                  return `${params[0].marker}今天${params[0].name}时: ${params[0].value}<br/>
                               ${params[1].marker}昨天${params[1].name}时: ${params[1].value}`;
                 } else {
                   return `${params[0].marker}昨天${params[0].name}时: ${params[0].value}`;

+ 248 - 26
src/views/promoter/promoterList.vue

@@ -14,7 +14,7 @@
           v-model="queryParams.mediaId"
           placeholder="选择媒体"
           clearable
-          style="width: 120px"
+          style="width: 240px"
         >
           <el-option
             v-for="item in queryParamsList.mediaList"
@@ -24,6 +24,44 @@
           />
         </el-select>
       </el-form-item>
+
+      <el-form-item label="绑定人" prop="bdUserId"
+                    v-if=" this.$store.getters.roles[0] == 'supplyChainAdmin'  || this.$store.getters.roles[0] == 'admin' ||this.$store.getters.roles[0] == 'bdManager'">
+        <el-select
+          filterable
+          v-model="queryParams.bdUserId"
+          placeholder="人员名称"
+          clearable
+          style="width: 240px"
+        >
+          <el-option
+            v-for="item in queryParamsList.personList"
+            :key="item.userId"
+            :label="item.nickMame"
+            :value="item.userId"
+          >
+            <div style="display: flex">
+              <span
+                style="
+                  width: 10px;
+                  height: 10px;
+                  border-radius: 50%;
+                  background-color: green;
+                  position: relative;
+                  top: 12px;
+                  margin-right: 5px;
+                "
+                :style="
+                  item.status == '0' ? 'backgroundColor:green' : 'backgroundColor:red'
+                "
+              >{{ item.value }}</span
+              ><span>{{ item.nickMame }}</span>
+            </div>
+          </el-option>
+        </el-select>
+      </el-form-item>
+
+
       <el-form-item label="达人ID" prop="promoterId">
         <el-input
           placeholder="请输入达人ID"
@@ -43,7 +81,8 @@
 
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
-          >搜索</el-button
+        >搜索
+        </el-button
         >
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
       </el-form-item>
@@ -61,7 +100,8 @@
             $store.getters.roles[0] == 'courtship' ||
             $store.getters.roles[0] == 'courtshipManager'
           "
-          >新增达人</el-button
+        >新增达人
+        </el-button
         >
       </el-col>
     </el-row>
@@ -152,7 +192,6 @@
       </el-table-column>
 
 
-
       <el-table-column label="粉丝数" align="center" prop="fansNumber" width="100px">
       </el-table-column>
 
@@ -271,7 +310,8 @@
               :key="index"
               style="margin: 5px; color: black"
               :color="'#' + item.labelColour"
-              >{{ item.labelName }}</el-tag
+            >{{ item.labelName }}
+            </el-tag
             >
           </div>
           <div v-else>-</div>
@@ -314,7 +354,8 @@
               $store.getters.roles[0] == 'courtship' ||
               $store.getters.roles[0] == 'courtshipManager'
             "
-            >修改地址</el-button
+          >修改地址
+          </el-button
           >
           <el-button
             size="mini"
@@ -324,17 +365,26 @@
             :disabled="
               $store.getters.roles[0] == 'bdManager' ? false : userId != scope.row.userId
             "
-            >删除</el-button
-          >
+          >删除
+          </el-button>
+          <el-button
+            v-if=" $store.getters.roles[0] == 'supplyChainAdmin'  || $store.getters.roles[0] == 'admin' || $store.getters.roles[0] == 'bdManager' || $store.getters.roles[0] == 'bd' "
+            size="mini"
+            type="text"
+            @click="changeBind(scope.row)"
+          >换绑
+          </el-button>
           <el-button size="mini" type="text" @click="copyInfomation(scope.row)"
-            >复制</el-button
+          >复制
+          </el-button
           >
           <el-button
             size="mini"
             type="text"
             :disabled="userId != scope.row.userId"
             @click="whiteLog(scope.row)"
-            >跟进记录</el-button
+          >跟进记录
+          </el-button
           >
         </template>
       </el-table-column>
@@ -503,7 +553,8 @@
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitFormBroadcast" :loading="confirmLoading"
-          >确 定</el-button
+        >确 定
+        </el-button
         >
         <el-button
           @click="
@@ -511,11 +562,128 @@
             openAllocation = false;
             formBroadcast = {};
           "
-          >取 消</el-button
+        >取 消
+        </el-button
         >
       </div>
     </el-dialog>
 
+
+    <el-dialog
+      :title="!!ids ? '换绑' : '换绑'"
+      :visible.sync="openChangeBind"
+      width="800px"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <el-form
+        ref="bindFormBroadcast"
+        :model="bindFormBroadcast"
+        label-width="100px"
+        :inline="true"
+      >
+
+        <div>
+          <el-form-item
+            label="达人ID"
+            prop="promoterId"
+            style="width: 100%"
+            class="entire-line"
+          >
+            <el-input
+              placeholder="达人ID"
+              style="width: 240px"
+              v-model="bindFormBroadcast.promoterId"
+            >
+            </el-input>
+          </el-form-item>
+
+          <el-form-item
+            label="达人名称"
+            prop="promoterId"
+            style="width: 100%"
+            class="entire-line"
+          >
+            <el-input
+              placeholder="达人名称"
+              style="width: 240px"
+              v-model="bindFormBroadcast.promoterNickName"
+            >
+            </el-input>
+          </el-form-item>
+
+          <el-form-item
+            label="绑定人"
+            prop="userName"
+            style="width: 100%"
+            class="entire-line"
+          >
+            <el-input
+              placeholder="绑定人"
+              style="width: 240px"
+              v-model="bindFormBroadcast.userName"
+            >
+            </el-input>
+          </el-form-item>
+          <el-form-item
+            label="换绑人"
+            prop="bdUserId"
+            style="width: 100%"
+            class="entire-line"
+          >
+            <el-select
+              filterable
+              v-model="bindFormBroadcast.bdUserId"
+              placeholder="换绑定人"
+              clearable
+              style="width: 240px"
+            >
+              <el-option
+                v-for="item in queryParamsList.personList"
+                :key="item.userId"
+                :label="item.nickMame"
+                :value="item.userId"
+              >
+                <div style="display: flex">
+              <span
+                style="
+                  width: 10px;
+                  height: 10px;
+                  border-radius: 50%;
+                  background-color: green;
+                  position: relative;
+                  top: 12px;
+                  margin-right: 5px;
+                "
+                :style="
+                  item.status == '0' ? 'backgroundColor:green' : 'backgroundColor:red'
+                "
+              >{{ item.value }}</span
+              ><span>{{ item.nickMame }}</span>
+                </div>
+              </el-option>
+            </el-select>
+          </el-form-item>
+        </div>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitBindFormBroadcast" :loading="confirmLoading"
+        >确 定
+        </el-button
+        >
+        <el-button
+          @click="
+            confirmLoading = false;
+            openChangeBind= false;
+            bindFormBroadcast = {};
+          "
+        >取 消
+        </el-button
+        >
+      </div>
+    </el-dialog>
+
+
     <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
       <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="text">
       </el-input>
@@ -527,7 +695,8 @@
             open = false;
             text = undefined;
           "
-          >取 消</el-button
+        >取 消
+        </el-button
         >
       </div>
     </el-dialog>
@@ -603,18 +772,21 @@
 </template>
 
 <script>
-import { refreshCache } from "@/api/system/dict/type";
+import {refreshCache} from "@/api/system/dict/type";
 import {
   getPromoterList,
   addPromoter,
   editPromoter,
+  editBindUser,
   deleteById,
   getPromoterRuleList,
   getRuleDetailByRuleId,
   addRule,
 } from "@/api/promoter/promoter";
-import { addFollowUpRecords } from "@/api/label";
-import { join } from "path";
+import {addFollowUpRecords} from "@/api/label";
+import {join} from "path";
+import {getSupplyChainUserList} from "@/api/supplyChain/supplyChain";
+
 export default {
   name: "account-list",
   components: {},
@@ -633,6 +805,8 @@ export default {
       callback();
     };
     return {
+      openChangeBind: false,
+      personList: [],
       ruleInfo: [],
       rules: {},
       ruleEdit: {
@@ -654,7 +828,7 @@ export default {
       text: undefined,
       // 选中数组
       ids: null,
-      userData:{},
+      userData: {},
       // 非单个禁用
       single: true,
       // 非多个禁用
@@ -702,6 +876,7 @@ export default {
       // 表单参数
       form: {},
       formBroadcast: {},
+      bindFormBroadcast: {},
       //上传报表下拉数据
       formList: {},
       fileList: [],
@@ -755,6 +930,7 @@ export default {
     this.userId = this.$store.getters.userId;
     this.getList();
     this.getPromoterRuleList();
+    this.getPersonList();
   },
   filters: {
     mediaStatusName(status) {
@@ -768,6 +944,47 @@ export default {
   },
   methods: {
 
+    submitBindFormBroadcast: function () {
+      this.$refs["bindFormBroadcast"].validate((valid) => {
+        if (valid) {
+          this.confirmLoading = true;
+          let formData = {
+            ...this.bindFormBroadcast,
+          };
+          formData.id = this.ids;
+          console.log(formData)
+          editBindUser(formData)
+            .then((res) => {
+              this.confirmLoading = false;
+              this.$message.success("修改成功");
+              this.openChangeBind = false;
+              this.ids = null;
+              this.bindFormBroadcast = {};
+              this.cancel();
+              this.handleQuery();
+            })
+            .catch((err) => {
+              this.confirmLoading = false;
+            });
+
+        }
+      });
+    },
+
+    changeBind(item) {
+      this.openChangeBind = true;
+      this.ids = item.id;
+      this.$set(this.bindFormBroadcast, "promoterNickName", item.promoterNickName);
+      this.$set(this.bindFormBroadcast, "promoterId", item.promoterId);
+      this.$set(this.bindFormBroadcast, "userName", item.userName);
+    },
+
+
+    getPersonList() {
+      getSupplyChainUserList().then((response) => {
+        this.queryParamsList.personList = response.rows;
+      });
+    },
     submitFormRuleEdit() {
       this.$refs["formRuleEdit"].validate((valid) => {
         if (valid) {
@@ -816,14 +1033,14 @@ export default {
         col.prop == "avgVideoSales"
           ? "avg_video_sales"
           : col.prop == "videoSales"
-          ? "video_sales"
-          : col.prop == "monthDayGmv"
-          ? "30day_gmv"
-          : col.prop == "monthDayOrderNum"
-          ? "30day_order_num"
-          : col.prop == "totalSale"
-          ? "total_sale"
-          : "";
+            ? "video_sales"
+            : col.prop == "monthDayGmv"
+              ? "30day_gmv"
+              : col.prop == "monthDayOrderNum"
+                ? "30day_order_num"
+                : col.prop == "totalSale"
+                  ? "total_sale"
+                  : "";
       this.sort = !!col.order ? (col.order == "descending" ? "DESC" : "ASC") : "DESC";
       this.handleQuery();
     },
@@ -893,7 +1110,8 @@ export default {
               this.loading = false;
             });
         })
-        .catch(() => {});
+        .catch(() => {
+        });
     },
     /** 编辑地址 新增达人*/
     handleAddbroadcast(item) {
@@ -1034,10 +1252,12 @@ export default {
 <style lang="scss" scoped>
 .entire-line {
   width: 100%;
+
   ::v-deep .el-form-item__content {
     width: 60%;
   }
 }
+
 ::v-deep .el-form-item__label {
   white-space: nowrap;
 }
@@ -1048,10 +1268,12 @@ export default {
   display: block;
   text-align: left;
 }
+
 .item-name-calss p {
   margin: 0;
   text-align: left;
 }
+
 .tableBox {
   width: 100%;
 }

+ 61 - 57
src/views/staging.vue

@@ -9,7 +9,7 @@
                 {{ getTimeState() }},<span style="color: cornflowerblue">{{
                   topInfo.userName
                 }}</span
-                >,祝你开心每一天!
+              >,祝你开心每一天!
               </div>
               <div class="top-right">
                 <div style="width: 150px">
@@ -71,7 +71,9 @@
           plain
           style="float: right;margin: 0 10px"
           @click="toDataBigScreen"
-          >数据看板</el-button
+          v-if=" this.$store.getters.roles[0] == 'supplyChainAdmin' "
+        >数据看板
+        </el-button
         >
         <el-radio-group v-model="mediaId" style="float: right" @change="changeMedia">
           <el-radio-button label="2">快手</el-radio-button>
@@ -131,16 +133,16 @@
           >
             <p class="p-main-data">
               周同比:<i
-                :style="orderData.monthOrderRate > 0 ? 'color:red' : 'color:green'"
-                >{{ (orderData.monthOrderRate * 100).toFixed(2) + "%" }}</i
-              >
+              :style="orderData.monthOrderRate > 0 ? 'color:red' : 'color:green'"
+            >{{ (orderData.monthOrderRate * 100).toFixed(2) + "%" }}</i
+            >
             </p>
           </div>
           <div :style="dateType == 0 ? '' : 'visibility: hidden'">
             <p class="p-main-data">
               日环比:<i :style="orderData.dateOrderRate > 0 ? 'color:red' : 'color:green'"
-                >{{ (orderData.dateOrderRate * 100).toFixed(2) + "%" }}
-              </i>
+            >{{ (orderData.dateOrderRate * 100).toFixed(2) + "%" }}
+            </i>
             </p>
           </div>
         </div>
@@ -202,16 +204,16 @@
             </p>
           </el-card>
         </el-col>
-        <el-col :span="5" v-if="this.mediaId == 2"> </el-col>
+        <el-col :span="5" v-if="this.mediaId == 2"></el-col>
       </el-row>
       <el-row class="top-sum" style="display: flex" v-if="!!orderData">
         <div style="display: flex; width: 100%">
           <div style="margin-right: 20px">
             <p class="p-main-data">
               数据对比:<i
-                :style="orderData.dataAmountRate > 0 ? 'color:red' : 'color:green'"
-                >{{ (orderData.dataAmountRate * 100).toFixed(2) + "%" }}</i
-              >
+              :style="orderData.dataAmountRate > 0 ? 'color:red' : 'color:green'"
+            >{{ (orderData.dataAmountRate * 100).toFixed(2) + "%" }}</i
+            >
             </p>
           </div>
           <div
@@ -220,17 +222,17 @@
           >
             <p class="p-main-data">
               周同比:<i
-                :style="orderData.monthAmountRate > 0 ? 'color:red' : 'color:green'"
-                >{{ (orderData.monthAmountRate * 100).toFixed(2) + "%" }}</i
-              >
+              :style="orderData.monthAmountRate > 0 ? 'color:red' : 'color:green'"
+            >{{ (orderData.monthAmountRate * 100).toFixed(2) + "%" }}</i
+            >
             </p>
           </div>
           <div :style="dateType == 0 ? '' : 'visibility: hidden'">
             <p class="p-main-data">
               日环比:<i
-                :style="orderData.dateAmountRate > 0 ? 'color:red' : 'color:green'"
-                >{{ (orderData.dateAmountRate * 100).toFixed(2) + "%" }}
-              </i>
+              :style="orderData.dateAmountRate > 0 ? 'color:red' : 'color:green'"
+            >{{ (orderData.dateAmountRate * 100).toFixed(2) + "%" }}
+            </i>
             </p>
           </div>
         </div>
@@ -247,12 +249,12 @@
           style="width: 240px; float: right; padding: 3px 0"
           @change="changeEchartsType"
         >
-          <el-option label="销售额" value="orderAmount" />
-          <el-option label="销售额(有效)" value="validOrderAmount" />
-          <el-option label="服务费" value="regimentalPromotionAmount" />
-          <el-option label="达人数" value="promoterCount" v-if="type == 1" />
-          <el-option label="订单数" value="orderCount" />
-          <el-option label="有效订单数" value="validOrderCount" />
+          <el-option label="销售额" value="orderAmount"/>
+          <el-option label="销售额(有效)" value="validOrderAmount"/>
+          <el-option label="服务费" value="regimentalPromotionAmount"/>
+          <el-option label="达人数" value="promoterCount" v-if="type == 1"/>
+          <el-option label="订单数" value="orderCount"/>
+          <el-option label="有效订单数" value="validOrderCount"/>
         </el-select>
       </div>
       <div class="flex-class">
@@ -318,13 +320,13 @@
         <el-card shadow="never" class="card-show" style="width: 100%; min-height: 700px">
           <div slot="header" class="clearfix">
             <span style="font-size: 16px; font-weight: bold; float: left"
-              >商品排行榜</span
+            >商品排行榜</span
             >
             <el-button
               style="float: right; padding: 3px 0"
               type="text"
               @click="toOrderList"
-              >更多>>
+            >更多>>
             </el-button>
           </div>
           <el-table v-loading="orderRankLoading" :data="orderRankList">
@@ -369,8 +371,8 @@
             <el-table-column label="日涨幅" align="center" prop="radio">
               <template slot-scope="scope">
                 <i :style="scope.row.radio > 0 ? 'color:red' : 'color:green'">{{
-                  scope.row.radio ? (scope.row.radio * 100).toFixed(2) + "%" : "-"
-                }}</i>
+                    scope.row.radio ? (scope.row.radio * 100).toFixed(2) + "%" : "-"
+                  }}</i>
               </template>
             </el-table-column>
           </el-table>
@@ -389,13 +391,13 @@
         <el-card shadow="never" class="card-show" style="width: 100%; min-height: 700px">
           <div slot="header" class="clearfix">
             <span style="font-size: 16px; font-weight: bold; float: left"
-              >达人排行榜</span
+            >达人排行榜</span
             >
             <el-button
               style="float: right; padding: 3px 0"
               type="text"
               @click="toPersonList"
-              >更多>>
+            >更多>>
             </el-button>
           </div>
           <el-table v-loading="promoterLoading" :data="promoterRankList">
@@ -436,8 +438,8 @@
             <el-table-column label="日涨幅" align="center" prop="radio">
               <template slot-scope="scope">
                 <i :style="scope.row.radio > 0 ? 'color:red' : 'color:green'">{{
-                  scope.row.radio ? (scope.row.radio * 100).toFixed(2) + "%" : "-"
-                }}</i>
+                    scope.row.radio ? (scope.row.radio * 100).toFixed(2) + "%" : "-"
+                  }}</i>
               </template>
             </el-table-column>
           </el-table>
@@ -608,7 +610,7 @@ export default {
       orderRankList: [],
       orderRankLoading: false,
       orderTotal: 0,
-      queryParams: { pageNum: 1, pageSize: 10, promoterPageNum: 1 },
+      queryParams: {pageNum: 1, pageSize: 10, promoterPageNum: 1},
       promoterRankList: [],
       promoterLoading: false,
       promoterTotal: 0,
@@ -625,12 +627,12 @@ export default {
       this.$store.getters.roles[0] == "courtship"
         ? 2
         : this.$store.getters.roles[0] == "bdManager" ||
-          this.$store.getters.roles[0] == "bd" ||
-          this.$store.getters.roles[0] == "association" ||
-          this.$store.getters.roles[0] == "associationManager" ||
-          this.$store.getters.roles[0] == "supplyChainAdmin"
-        ? 1
-        : 2;
+        this.$store.getters.roles[0] == "bd" ||
+        this.$store.getters.roles[0] == "association" ||
+        this.$store.getters.roles[0] == "associationManager" ||
+        this.$store.getters.roles[0] == "supplyChainAdmin"
+          ? 1
+          : 2;
     let date = new Date();
     let y = date.getFullYear();
     let MM = date.getMonth() + 1;
@@ -644,15 +646,16 @@ export default {
       const a = document.createElement("a");
       document.body.appendChild(a);
       a.style.display = "none";
-      a.href = "http://192.168.1.169:80/dataBigScreen";
-      // http://567.ruixuan.tjyourong.com.cn/dataBigScreen
+      //   a.href = "http://192.168.1.169:80/dataBigScreen";
+      // a.href = " http://192.168.1.82:1024/dataBigScreen";
+      a.href = "http://567.ruixuan.tjyourong.com.cn/dataBigScreen";
 
       a.target = "_blank";
       a.click();
       document.body.removeChild(a);
     },
     getMediaId() {
-      getMediaId({ userId: this.userId }).then((res) => {
+      getMediaId({userId: this.userId}).then((res) => {
         this.mediaId = res.data;
         this.getInfomation();
         this.getOrderData();
@@ -684,7 +687,7 @@ export default {
       return text;
     },
     getInfomation() {
-      getPersonalInfo({ userId: this.userId, type: this.type }).then((res) => {
+      getPersonalInfo({userId: this.userId, type: this.type}).then((res) => {
         this.topInfo = res.data;
       });
     },
@@ -693,7 +696,7 @@ export default {
         this.loading = true;
         getOrderData(
           this.addDateRange(
-            { userId: this.userId, type: this.type, mediaId: this.mediaId },
+            {userId: this.userId, type: this.type, mediaId: this.mediaId},
             this.uploadDate,
             "statDate",
             "endDate"
@@ -715,7 +718,7 @@ export default {
         this.loading = true;
         getOrderData(
           this.addDateRange(
-            { userId: this.userId, type: this.type, mediaId: this.mediaId },
+            {userId: this.userId, type: this.type, mediaId: this.mediaId},
             this.uploadDate,
             "statDate",
             "endDate"
@@ -740,7 +743,7 @@ export default {
       this.echartsLoading = true;
       getDataAnalysis(
         this.addDateRange(
-          { userId: this.userId, type: this.type, mediaId: this.mediaId },
+          {userId: this.userId, type: this.type, mediaId: this.mediaId},
           this.uploadDate,
           "statDate",
           "endDate"
@@ -753,12 +756,13 @@ export default {
     },
 
     /** 更多操作 */
-    handleEdit(item, id) {},
+    handleEdit(item, id) {
+    },
 
     /** 查询字典类型列表 */
     getList() {
       this.loading = true;
-      getSaleClueTaskList({ ...this.queryParams, userId: this.userId }).then(
+      getSaleClueTaskList({...this.queryParams, userId: this.userId}).then(
         (response) => {
           console.log(response.data.rows);
           this.typeList = response.data.rows;
@@ -904,12 +908,12 @@ export default {
               this.echartsType == "orderAmount"
                 ? "销售额"
                 : this.echartsType == "regimentalPromotionAmount"
-                ? "服务费"
-                : this.echartsType == "promoterCount"
-                ? "达人数"
-                : this.echartsType == "orderCount"
-                ? "订单数"
-                : "",
+                  ? "服务费"
+                  : this.echartsType == "promoterCount"
+                    ? "达人数"
+                    : this.echartsType == "orderCount"
+                      ? "订单数"
+                      : "",
 
             type: "line",
             stack: "总量",
@@ -1069,10 +1073,10 @@ export default {
         m == 0
           ? num.toFixed(m) + "."
           : hasDot
-          ? n
-            ? num.toFixed(n)
-            : num
-          : num.toFixed(m);
+            ? n
+              ? num.toFixed(n)
+              : num
+            : num.toFixed(m);
       symbol = symbol || ",";
       num = num.toString().replace(/(\d)(?=(\d{3})+\.)/g, function (match, p1, p2) {
         return p1 + symbol;