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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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
  },
@@ -38,7 +38,6 @@ const tscParam = {
38
38
  const Global = {
39
39
  state: {
40
40
  tscParam: JSON.parse(JSON.stringify(tscParam)),
41
- channelizationPageIndex: 1, // 总览编辑页面显示: 1 代表首次导入 2 代表已有保存的渠化图
42
41
  associatedPhaseList: [], // 关联相位列表
43
42
  PhaseDataMgr: {} // 关联相位数据处理模型
44
43
  },
@@ -51,13 +50,6 @@ const Global = {
51
50
  },
52
51
  INIT_PHASE_DATA_MGR: (state, PhaseDataMgrClass) => {
53
52
  state.PhaseDataMgr = PhaseDataMgrClass
54
- },
55
- SET_CHANNELZATION_PAGE_INDEX: (state, isHasChannelSetting) => {
56
- if (isHasChannelSetting) {
57
- state.channelizationPageIndex = 2
58
- } else {
59
- state.channelizationPageIndex = 1
60
- }
61
53
  }
62
54
  },
63
55
  actions: {
@@ -69,9 +61,6 @@ const Global = {
69
61
  },
70
62
  InitPhaseDataMgr ({ commit }, PhaseDataMgrClass) {
71
63
  commit('INIT_PHASE_DATA_MGR', PhaseDataMgrClass)
72
- },
73
- SetChannelizationPageIndex ({ commit }, isHasChannelSetting) {
74
- commit('SET_CHANNELZATION_PAGE_INDEX', isHasChannelSetting)
75
64
  }
76
65
  }
77
66
  }