소스 검색

截面组合图修改排序规则重置x轴

jwyu 2 달 전
부모
커밋
ba3bc88729
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/dataEntry_manage/components/sectionalCombination/sectionalCombinationOption.vue

+ 2 - 2
src/views/dataEntry_manage/components/sectionalCombination/sectionalCombinationOption.vue

@@ -12,7 +12,7 @@
             <i class="el-icon-info"></i>
           </span>
         </el-tooltip>
-        <el-radio-group v-model="sortType" style="margin-left: 20px" @change="handleGetChartData">
+        <el-radio-group v-model="sortType" style="margin-left: 20px" @change="handleGetChartData('sortType')">
           <el-radio :label="0">{{$t('EtaBasePage.default_select_text')}}</el-radio>
           <el-radio :label="1">{{$t('EtaChartAddPage.option_sort_up')}}</el-radio>
           <el-radio :label="2">{{$t('EtaChartAddPage.option_sort_low')}}</el-radio>
@@ -317,7 +317,7 @@ export default {
     // 获取图表数据
     handleGetChartData(type){
       const data=_.cloneDeep(this.$data)
-      if(type==='sortBasisEdb'){
+      if(['sortBasisEdb','sortType'].includes(type)){
         data.XDataList=[]
       }
       this.$emit('getData',data)