openatc-components 0.4.92 → 0.4.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,6 +96,10 @@
96
96
  <el-button type="primary" @click="savedraw()">{{$t('openatccomponents.button.save')}}</el-button>
97
97
  <el-button type="primary" @click="importFromFile()">{{$t('openatccomponents.main.import')}}</el-button>
98
98
  <el-button type="primary" @click="exportToFile()">{{$t('openatccomponents.main.export')}}</el-button>
99
+ <el-switch
100
+ v-model="isDefaultShowQuhua"
101
+ active-text="渠化默认显示">
102
+ </el-switch>
99
103
  </div>
100
104
  </div>
101
105
  <div class="custom-edit" ref="customEdit">
@@ -316,7 +320,8 @@ export default {
316
320
  ]),
317
321
  phaseAssociatedMap: new Map(), // 关联相位Map: key 是相位ID, value 是车道数据包含direction
318
322
  dialogVisible: false,
319
- LoadedChannelizatonData: {} // 从接口获取到的渠化参数,用于作为加载数据,从文件导入可修改
323
+ LoadedChannelizatonData: {}, // 从接口获取到的渠化参数,用于作为加载数据,从文件导入可修改
324
+ isDefaultShowQuhua: true // 控制总览是否默认显示渠化图的开关
320
325
  }
321
326
  },
322
327
  methods: {
@@ -823,7 +828,10 @@ export default {
823
828
  // 保存
824
829
  savedraw () {
825
830
  let temp = {}
826
- temp = this.handleSaveParams()
831
+ temp = {
832
+ ...this.handleSaveParams(),
833
+ isDefaultShowQuhua: this.isDefaultShowQuhua
834
+ }
827
835
  this.saveChannelizatonChart(temp)
828
836
  },
829
837
  // 加载