openatc-components 0.0.92 → 0.0.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.
@@ -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
  },