Browse Source

运费V1.0.4

zhengjinyi 1 year ago
parent
commit
9c5b86e175

+ 1 - 0
src/main/resources/static/js/supplier-center/shop/freight.js

@@ -129,6 +129,7 @@ var myGoods = new Vue({
         // 修改运费模板
         handleEdit(freight){
             console.log('修改运费模板')
+            this.templateType = 'edit'
             this.freightTemplateDetail(freight.id)
         }
     },

+ 6 - 4
src/main/resources/static/js/supplier-center/shop/mixins/freightMixins.js

@@ -40,7 +40,8 @@ const freightMixins = function () {
                 areaUrbanForm:{}, // 区域
                 areaRulesForm:{}, // 规则
                 areaRulesIndex:0, // 规则记录
-                areaData:[]
+                areaData:[],
+                templateType:'',// 模板修改
             }
         },
         computed: {
@@ -71,6 +72,7 @@ const freightMixins = function () {
                 this.freightTemp.name = ''
                 this.freightRuleList = []
                 this.freightRuleList.push(freightDefault())
+                this.getFreightArea()
                 this.handleInitAreas()
                 this.dialogFormVisible = true
             },
@@ -135,16 +137,16 @@ const freightMixins = function () {
             },
             // 修改省市区
             changeFreightAreas(type,freight,index){
-                console.log('areaData',this.areaData)
                 this.freightAreasType = type
                 this.areaRulesForm = freight
                 this.areaRulesIndex = index+1
-                this.getFreightArea(freight.freightId,freight.id)
+                if(this.templateType === 'edit'){
+                    this.getFreightArea(freight.freightId,freight.id)
+                }
                 this.areasFormVisible = true
             },
             // 设置省市区
             sittingFreightAreas(type,freight,index){
-                this.getFreightArea()
                 this.freightAreasType = type
                 this.areaRulesForm = freight
                 this.areaRulesIndex = index+1

+ 0 - 2
src/main/resources/templates/supplier-center/dashboard.html

@@ -89,7 +89,6 @@
                 <div class="ranking">
                     <div class="rank_top">
                         <p>单品销售排名</p>
-                        <span>(统计标准:已确认的订单)</span>
                     </div>
                     <div class="sales-ranke">
                         <ul>
@@ -115,7 +114,6 @@
                 <div class="Statistics">
                     <div class="Stati_top">
                         <p>销售情况统计</p>
-                        <span>(统计标准:已确认的订单)</span>
                     </div>
                      <div id="StatisticsEacths" style="">
                     <!-- echarts表   -->