openatc-components 0.3.105 → 0.3.106

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.3.105",
3
+ "version": "0.3.106",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -634,6 +634,7 @@ export default {
634
634
  this.funcSort = 'thirdPartyFunc'
635
635
  this.thirdPartyControl = getPermissionControl(res.data.data)
636
636
  this.thirdPartyControlMenu = getPermissionMenu(this.thirdPartyControl)
637
+ this.$refs.ManualControlModalNew.activeName = this.thirdPartyControlMenu[0]
637
638
  })
638
639
  },
639
640
  handleGetData (data) {
@@ -13,7 +13,7 @@
13
13
  <div class="manual-control-modal-new">
14
14
  <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
15
15
  <el-tab-pane :label="$t('openatccomponents.overview.residentcontrol')" name="residentcontrol"
16
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('驻留控制') !== -1))">
16
+ v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('residentcontrol') !== -1))">
17
17
  <ControlModelGroup
18
18
  v-if="activeName === 'residentcontrol'"
19
19
  ref="ControlModelGroup"
@@ -83,7 +83,7 @@
83
83
  </div>
84
84
  </el-tab-pane>
85
85
  <el-tab-pane :label="$t('openatccomponents.overview.specialcontrol')" name="specialcontrol"
86
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('特殊控制') !== -1))">
86
+ v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('specialcontrol') !== -1))">
87
87
  <ControlModelGroup
88
88
  v-if="activeName === 'specialcontrol'"
89
89
  ref="ControlModelGroup"
@@ -117,7 +117,7 @@
117
117
 
118
118
  </el-tab-pane>
119
119
  <el-tab-pane :label="$t('openatccomponents.overview.schemeselection')" name="schemeselection"
120
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('方案选择') !== -1))">
120
+ v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('schemeselection') !== -1))">
121
121
  <ControlModelGroup
122
122
  v-if="activeName === 'schemeselection'"
123
123
  ref="ControlModelGroup"
@@ -184,7 +184,7 @@
184
184
  </div>
185
185
  </el-tab-pane>
186
186
  <el-tab-pane :label="$t('openatccomponents.overview.others')" name="others"
187
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('其他') !== -1))">
187
+ v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('others') !== -1))">
188
188
  <ControlModelGroup
189
189
  v-if="activeName === 'others'"
190
190
  ref="ControlModelGroup"
@@ -365,12 +365,6 @@ export default {
365
365
  }
366
366
  },
367
367
  watch: {
368
- activeName: {
369
- handler: function (val) {
370
- },
371
- // 深度观察监听
372
- deep: true
373
- },
374
368
  patternSelect: {
375
369
  handler: function (val) {
376
370
  this.manualInfo.tempPatternid = this.crossStatusData.patternid
@@ -64,19 +64,20 @@ export function getPermissionMenu (thirdPartyControl) {
64
64
  for (let i = 0; i < thirdPartyControl.length; i++) {
65
65
  let control = thirdPartyControl[i]
66
66
  if ([4, 22, 25].indexOf(control) !== -1) {
67
- thirdPartyControlMenu = thirdPartyControlMenu.concat(['驻留控制'])
67
+ thirdPartyControlMenu = thirdPartyControlMenu.concat(['residentcontrol'])
68
68
  }
69
69
  if ([1, 2, 3].indexOf(control) !== -1) {
70
- thirdPartyControlMenu = thirdPartyControlMenu.concat(['特殊控制'])
70
+ thirdPartyControlMenu = thirdPartyControlMenu.concat(['specialcontrol'])
71
71
  }
72
72
  if ([5, 6, 9, 10, 12, 19].indexOf(control) !== -1) {
73
- thirdPartyControlMenu = thirdPartyControlMenu.concat(['方案选择'])
73
+ thirdPartyControlMenu = thirdPartyControlMenu.concat(['schemeselection'])
74
74
  }
75
75
  if ([23, 24, 100].indexOf(control) !== -1) {
76
- thirdPartyControlMenu = thirdPartyControlMenu.concat(['其他'])
76
+ thirdPartyControlMenu = thirdPartyControlMenu.concat(['others'])
77
77
  }
78
78
  }
79
79
  thirdPartyControlMenu = [...new Set(thirdPartyControlMenu)]
80
+ // console.log(thirdPartyControlMenu)
80
81
  return thirdPartyControlMenu
81
82
  }
82
83
 
@@ -89,6 +90,6 @@ export function getPermissionControl (permissionList) {
89
90
  thirdPartyControl = thirdPartyControl.concat(permissionControlMap.get(per))
90
91
  }
91
92
  }
92
- console.log(thirdPartyControl)
93
+ // console.log(thirdPartyControl)
93
94
  return thirdPartyControl
94
95
  }
@@ -166,7 +166,7 @@ export default {
166
166
  // agentId: '12007_390',
167
167
  // agentId: '12014',
168
168
  reqUrl: 'http://192.168.13.103:10003/openatc',
169
- Token: 'eyJraWQiOiIxNzM0MDc1MTI0MjczIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNDA3ODcyNCwiaWF0IjoxNzM0MDcxNTI0fQ.KixCOm8CIbS10UYc0djLAr-NCg24S5ftHM384yweVVU',
169
+ Token: 'eyJraWQiOiIxNzM0MzI2MDI5OTI2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNDMyOTYyOSwiaWF0IjoxNzM0MzIyNDI5fQ.RG-fX6B24JHQ-pq4QgSW7aQljDYVqqrL_DVSttMkZ60',
170
170
  // agentId: '30003-352',
171
171
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
172
172
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',