anytrek-front-public-component 1.11.26 → 1.11.28
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/README.md +12 -1
- package/anytrek-front-public-component.mjs +21316 -20662
- package/anytrek-front-public-component.umd.js +47 -62
- package/package.json +1 -1
- package/style.css +1 -1
package/README.md
CHANGED
|
@@ -181,6 +181,7 @@ onMounted(() => {
|
|
|
181
181
|
| `data` | `接口返回的原始数据(见下方备注)` | `Object` | `{}` |
|
|
182
182
|
| `sortKey` | `排序规则(默认A->Z排序。可选值(driving,idle,waring,offline,battery,last,create,asc,desc))` | `String` | `asc` |
|
|
183
183
|
| `modleList` | `如果需要只筛选某些型号的设备及其关联的车辆,可以将型号Id加入这个数组` | `Number[]` | `[](比如只想显示型号为2002和2310的设备及其关联的车辆,可以传[37, 54];如果只想显示型号为2308的设备,可以传[62])` |
|
|
184
|
+
| `limitList` | `对于modleList的加强限制(见下方备注)` | `Object[]` | `[]` |
|
|
184
185
|
| `vehicleId` | `当前选择的车辆ID(如果匹配不上,会默认到第一辆车)(外部改变选择的车辆/设备靠这个参数和下面的deviceId)` | `Number` | `0` |
|
|
185
186
|
| `deviceId` | `当前选择的设备ID(如果上述vehicleId为0且deviceId有值时才生效)(外部改变选择的车辆/设备靠这个参数和上面的vehicleId)` | `Number` | `0` |
|
|
186
187
|
| `immediate` | `当vehicleId和deviceId都为0时是否需要选择第一辆车` | `Boolean` | `false` |
|
|
@@ -197,12 +198,22 @@ onMounted(() => {
|
|
|
197
198
|
| `clickToMdvr` | `点击跳到mdvr界面` | `Function` | |
|
|
198
199
|
| `useCompleteVehicleScope` | `是否显示全部车辆(此时不显示设备)` | `Boolean` | `false` |
|
|
199
200
|
| `inMaint` | `是否在maint网页(maint网页需要特殊处理,所有状态设备都可以被选)` | `Boolean` | `false` |
|
|
200
|
-
| `sensorTypeList` | `是否只显示绑定了特定传感器的车辆,目前支持的传感器为AS2521、AS2528、AS2530、AS2540 | `String[]` | `[]` |
|
|
201
|
+
| `sensorTypeList` | `是否只显示绑定了特定传感器的车辆,目前支持的传感器为AS2521、AS2528、AS2530、AS2540` | `String[]` | `[]` |
|
|
201
202
|
|
|
202
203
|
备注:现在data支持2种情况了:
|
|
203
204
|
1.包含数组:tagList,deviceStatusList,vehicleDeviceList,landmarkDeviceList,landmarkList,vehicleType,deviceList,vehicleList
|
|
204
205
|
2.包含数组:relationDeviceList,tagList,landmarkList,vehicleType
|
|
205
206
|
|
|
207
|
+
备注:limitList的使用
|
|
208
|
+
1. 必须有modleList才能生效;
|
|
209
|
+
2. 用于对于modelList中的设备详细限制,比如想限制2310固件版本(fwVer)在11309及以上,则可以传
|
|
210
|
+
const limitList = ref([
|
|
211
|
+
{
|
|
212
|
+
modelId: 54,
|
|
213
|
+
key: 'fwVer',
|
|
214
|
+
regex: '^(1130[9]|113[1-9]\d|11[4-9]\d{2}|1[2-9]\d{3}|[2-9]\d{4}|[1-9]\d{5,})$'
|
|
215
|
+
}
|
|
216
|
+
])
|
|
206
217
|
|
|
207
218
|
## 📋 Events Reference
|
|
208
219
|
| 事件名 | 描述 | 备注 |
|