openatc-components 0.0.90 → 0.0.91

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.90",
3
+ "version": "0.0.91",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -50,8 +50,7 @@ export default {
50
50
  },
51
51
  computed: {
52
52
  ...mapState({
53
- channelizationPageIndex: state => state.globalParam.channelizationPageIndex,
54
- curOpenatcAgentid: state => state.globalParam.curOpenatcAgentid
53
+ channelizationPageIndex: state => state.globalParam.channelizationPageIndex
55
54
  })
56
55
  },
57
56
  watch: {
@@ -22,6 +22,7 @@ import ExpendConfig from './components/ExpendConfig/index'
22
22
  import PatternWalkSvg from './components/PatternWalkSvg/index'
23
23
  import tentativeplancontrolmodal from './components/SchemeConfig/tentativeplancontrolmodal/index'
24
24
  import { setToken, setHost } from '../utils/auth.js'
25
+ import componentsGlobalParam from '../store/modules/globalParam'
25
26
 
26
27
  import en from '../i18n/language/en'
27
28
  import zh from '../i18n/language/zh'
@@ -63,6 +64,10 @@ const func = {
63
64
  setToken
64
65
  }
65
66
 
67
+ const Store = {
68
+ componentsGlobalParam
69
+ }
70
+
66
71
  const requireAll = requireContext => requireContext.keys().map(requireContext)
67
72
  const install = function (Vue) {
68
73
  if (install.installed) return
@@ -90,7 +95,8 @@ const API = {
90
95
  install,
91
96
  ...components,
92
97
  language,
93
- func
98
+ func,
99
+ Store
94
100
  }
95
101
 
96
102
  export default API
@@ -16,7 +16,7 @@ export default {
16
16
  name: 'custom-channelization-demo',
17
17
  data () {
18
18
  return {
19
- agentId: '40001-547',
19
+ agentId: '10003-391',
20
20
  tscParams: {}
21
21
  }
22
22
  },
@@ -53,7 +53,7 @@ export default {
53
53
  lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
54
54
  agentId: '10002-994',
55
55
  Token: 'eyJraWQiOiIxNjUzMjgyODkwMDYxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczOTY4Mjg5MCwiaWF0IjoxNjUzMjgyODkwfQ.emqFxXlot1Zk6TGkLMDx0zIp2B8toSz17xdZI_DrXZI',
56
- Token103: 'eyJraWQiOiIxNjU4MzgxMzQ4NjczIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc0NDc4NDY1NSwiaWF0IjoxNjU4Mzg0NjU1fQ.5HIdmPgPCf9n5NbyVqXFq7rFA3g1IxGDw3IQeB6fJ8s',
56
+ Token103: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
57
57
  boxVisible: false,
58
58
  dialogWidth: '80%',
59
59
  crossStatusData: {} // 路口状态数据
@@ -118,7 +118,7 @@ export default {
118
118
  this.setDialogWidth()
119
119
  },
120
120
  mounted () {
121
- this.setPropsToken(this.Token103)
121
+ this.setPropsToken(this.Token)
122
122
  this.initData()
123
123
  window.onresize = () => {
124
124
  return (() => {