openatc-components 0.0.92 → 0.0.95

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.
@@ -11,7 +11,7 @@
11
11
  **/
12
12
  <!--静态渠化路口,需要传入路口状态数据和检测器状态数据-->
13
13
  <template>
14
- <div class="show-channelization" :class="{
14
+ <div class="show-channelization channelization-base-map" :class="{
15
15
  'superlargeCrossImg': bodyDomWidth <= 1680 && bodyDomWidth > 1440,
16
16
  'largeCrossImg': bodyDomWidth <= 1440 && bodyDomWidth > 1280,
17
17
  'middleCrossImg': bodyDomWidth <= 1280 && bodyDomWidth > 960,
@@ -11,7 +11,7 @@
11
11
  **/
12
12
  <!--完整渠化编辑功能,包含导入-->
13
13
  <template>
14
- <div class="custom-cross-part">
14
+ <div class="custom-cross-part draw-channelization">
15
15
  <FirstImportCrossmap v-if="pageindex === 1"
16
16
  @loadSvgString="loadSvgString" />
17
17
  <CustomDraw v-show="pageindex === 2" ref="CustomDraw"
@@ -23,7 +23,7 @@
23
23
  <script>
24
24
  import FirstImportCrossmap from './firstImportCrossmap'
25
25
  import CustomDraw from './index.draw'
26
- import { mapState } from 'vuex'
26
+ // import { mapState } from 'vuex'
27
27
  // import { getIframdevid } from '../../../../utils/auth.js'
28
28
  import { getChannelizatonChart } from '../../../../api/cross'
29
29
  // import { getMessageByCode } from '../../../utils/responseMessage.js'
@@ -45,21 +45,11 @@ export default {
45
45
  },
46
46
  data () {
47
47
  return {
48
- pageindex: 1,
48
+ pageindex: 1, // 渠化编辑显示: 1 代表首次导入 2 代表已有保存的渠化图
49
49
  loadedChannelizatonData: {} // 接口返回的已保存路口渠化数据
50
50
  }
51
51
  },
52
- computed: {
53
- ...mapState({
54
- channelizationPageIndex: state => state.globalParam.channelizationPageIndex
55
- })
56
- },
57
52
  watch: {
58
- channelizationPageIndex: {
59
- handler: function (index) {
60
- this.pageindex = index
61
- }
62
- },
63
53
  AgentId: {
64
54
  handler: function (val) {
65
55
  this.getChannelizatonChart()
@@ -85,7 +75,7 @@ export default {
85
75
  getChannelizatonChart () {
86
76
  // let agentid = getIframdevid()
87
77
  let _this = this
88
- _this.$store.dispatch('SetChannelizationPageIndex', false)
78
+ _this.pageindex = 1
89
79
  getChannelizatonChart(this.AgentId).then(data => {
90
80
  if (!data.data.success) {
91
81
  // let parrenterror = getMessageByCode(data.data.code, _this.$i18n.locale)
@@ -102,7 +92,7 @@ export default {
102
92
  return
103
93
  }
104
94
  if (JSON.stringify(data.data.data) === '{}') return
105
- _this.$store.dispatch('SetChannelizationPageIndex', true)
95
+ _this.pageindex = 2
106
96
  _this.loadedChannelizatonData = JSON.parse(JSON.stringify(data.data.data))
107
97
  })
108
98
  },
@@ -22,12 +22,12 @@
22
22
  <el-form-item
23
23
  :label="$t('openatccomponents.overview.delay') + ':'"
24
24
  prop="intersection">
25
- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input>
25
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDelay" size="mini"></el-input-number>
26
26
  </el-form-item>
27
27
  <el-form-item
28
28
  :label="$t('openatccomponents.overview.duration') + ':'"
29
29
  prop="count">
30
- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input>
30
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="mini"></el-input-number>
31
31
  </el-form-item>
32
32
  </el-form>
33
33
  </el-col>
@@ -23,7 +23,8 @@
23
23
  <el-form-item
24
24
  :label="$t('openatccomponents.overview.delay') + ':'"
25
25
  prop="intersection">
26
- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input>
26
+ <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDelay" size="mini"></el-input-number>
27
+ <!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
27
28
  </el-form-item>
28
29
  </el-form>
29
30
  </el-col>
@@ -36,12 +37,14 @@
36
37
  <el-form-item
37
38
  :label="$t('openatccomponents.overview.patternoffset') + ':'"
38
39
  prop="count">
39
- <el-input v-model="manualInfo.offset" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input>
40
+ <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.offset" size="mini"></el-input-number>
41
+ <!-- <el-input v-model="manualInfo.offset" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
40
42
  </el-form-item>
41
43
  <el-form-item
42
44
  :label="$t('openatccomponents.overview.duration') + ':'"
43
45
  prop="intersection">
44
- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input>
46
+ <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
47
+ <!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
45
48
  </el-form-item>
46
49
  </el-form>
47
50
  </el-col>