流程化操作模拟组件
注:
表格中主要为了体现每次迭代添加的属性值,目的是为了开发人员组装数据时有一个参考。主要是为了后端接口数据返回结构的对照,功能行的属性不再做高亮标记
| 颜色 |
说明 |
版本 |
更新时间 |
|
添加属性内容 |
v1.0 |
2025-08-08 |
|
添加属性内容 |
v1.1 |
2025-08-13 |
|
添加属性内容 |
v1.2 |
2025-08-18 |
|
添加属性内容 |
v1.3 |
2025-09-08 |
|
添加属性内容 |
v1.4 |
2025-09-08 |
|
添加属性内容 |
v1.5 |
2025-09-19 |
|
添加属性内容 |
v1.6 |
2025-09-19 |
|
添加属性内容 |
v1.7 |
2025-10-10 |
|
添加属性内容 |
v1.8 |
2025-10-22 |
基本用法
<template>
<kq-t3d-station-simulator />
</template>
属性
| 属性 |
说明 |
类型 |
默认值 |
| id |
训练主键 |
string |
null |
| name |
训练名称 |
string |
null |
| triConfig |
加载器设置配置项 |
object |
null |
| mode |
模式配置项 |
object |
null |
| multiple |
是否多人协同 |
boolean |
false |
| buttons |
按钮组配置项 |
array |
[] |
| tools |
工具箱配置项 |
array |
[] |
| lines |
线缆具箱配置项 |
array |
[] |
| subject |
科目配置项 |
object |
null |
| room |
房间号 |
string |
null |
| useMap |
是否启用小地图 |
boolean |
null |
| messageBoxPosition |
消息盒子位置 |
string |
left-top |
| users |
参与用户列表配置项 |
array |
null |
| currentUser |
当前用户,参考users配置项 |
object |
null |
| uiPages |
ui界面组件库组 |
object |
null |
| initTime |
初始化时间(包括动画&交互) |
number |
1 |
| flyToConfigs |
漫游到定位模型对象配置项 |
array |
null |
模式
| 属性 |
说明 |
类型 |
默认值 |
| T |
训练模式 |
string |
null |
| S |
学习模式 |
string |
null |
| E |
考试模式 |
string |
null |
按钮条配置
| 属性 |
说明 |
类型 |
默认值 |
| code |
按钮编码 |
string |
null |
| name |
按钮名称 |
string |
null |
| icon |
按钮图标 |
string/path |
null |
工具条配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| code |
工具编码 |
string |
null |
| name |
工具名称 |
string |
null |
| type |
工具类型配置项 |
string |
null |
| icon |
工具图标 |
string/path |
null |
| joints |
触点列表配置项 |
array |
null |
线缆箱配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| code |
线缆编码 |
string |
null |
| name |
线缆名称 |
string |
null |
| icon |
工具图标 |
string/path |
null |
| joints |
触点列表配置项 |
array |
null |
工具/线缆触点
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| code |
编码 |
string |
null |
| name |
名称 |
string |
null |
| icon |
图标地址 |
string |
null |
科目配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
科目名称 |
string |
null |
| toleranceTimes |
步骤容错次数,默认3次 |
number |
null |
| steps |
科目步骤配置项 |
array |
null |
| freeObjects |
自由对象列表配置项 |
array |
null |
科目步骤配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
步骤名称 |
string |
null |
| score |
分值,在T、E模式下才起效 |
number |
null |
| isMust |
是否为关键步骤 |
boolean |
null |
| isRobot |
是否机器人 |
boolean |
null |
| time |
停留时长 |
number |
null |
| roles |
步骤可用角色 |
array |
null |
| message |
提示信息 |
string |
null |
| uiContent |
UI提示内容 |
string |
null |
| uiTime |
UI提示停留时长(弃用) |
number |
null |
| pageUrl |
UI页面路径 |
string |
null |
| type |
步骤分类配置项 |
string |
null |
| subType |
步骤子分类(弃用)配置项 |
string |
null |
| objectsValue |
对象最终状态值配置项 |
array |
null |
| drives |
步骤驱动配置项 |
array |
null |
| checks |
检查项,当type为检查项时起效配置项 |
array |
null |
| lines |
线缆项配置项 |
array |
null |
| line |
使用线缆(弃用)配置项 |
object |
null |
| tool |
使用工具(弃用)配置项 |
object |
null |
| isStage |
是否为阶段,多人模式下使用 |
boolean |
null |
| tools |
使用工具配置项 |
array |
null |
| isVirtual |
是否虚拟步骤 |
boolean |
null |
| isPageCache |
是否缓存UI页面 |
boolean |
null |
| components |
组件列表 |
array |
null |
对象最终状态值
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
原始对象名称 |
string |
null |
| value |
数值 |
any |
null |
| param |
最终值对应对象参数配置项 |
object |
null |
步骤驱动
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称 |
string |
null |
| time |
执行时间(s) |
number |
null |
| nodes |
节点列表配置项 |
array |
null |
| lines |
节点连线列表配置项 |
array |
null |
驱动节点信息
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称 |
string |
null |
| object |
原始对象 |
object |
null |
驱动节点连线
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称 |
string |
null |
| conditions |
条件配置项 |
array |
null |
| from |
开始节点编码 |
string |
null |
| to |
结束节点编码 |
string |
null |
驱动节点连线条件
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| sourceParam |
触发对象参数配置项 |
object |
null |
| targetParam |
相应对象参数配置项 |
object |
null |
条件对象参数
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| type |
类型(控制、动画)配置项 |
string |
null |
| objectName |
原始对象名称 |
string |
null |
| data |
选择项,针对旋钮开关时 |
[{label, value}] |
null |
| objectType |
对象类型(开关、门等)配置项 |
string |
null |
| actionType |
动作类型(根据objectType不同来区分,例如:自锁开关、拨档开关等)配置项 |
string |
null |
| state |
当前状态值 |
string |
null |
| isExec |
是否检查执行 |
boolean |
false |
| value |
当前最终值(此处是多个类型的对象映射的一个统一属性值) |
string |
null |
| range |
当前量程(根据objectType不同,和state同等作为值的校验) |
string |
null |
| targetRange |
目标量程 |
number |
null |
| speed |
速度(用于有量程的仪器) |
number |
null |
| direction |
运动轴向,当为调节按钮时,取调节按钮的字典值 |
string |
null |
| time |
运动时长(s) |
number |
null |
| sound |
声音文件(可播放的url地址) |
string |
null |
| trip |
行程(cm) |
number |
null |
| angle |
行程(°) |
number |
null |
| light |
灯光(颜色值) |
string |
null |
| imagePath |
图片路径(多用于普通显示屏对象) |
string |
null |
| lightEmissive |
灯光贴图 |
string |
null |
| ledConfigs |
led对象配置项 |
array |
null |
| linkLedObject |
关联led原始对象,多用于调节按钮,调节按键后显示到对应的led上配置项 |
object |
{name} |
| step |
步长,即调节按钮按一次后数据改变多少 |
number |
1 |
| animationName |
动画名称 |
string |
null |
| animationStart |
动画开始时刻(s) |
number |
null |
| animationTime |
动画运行时长(s) |
number |
null |
| animationTimeScale |
播放倍率,负数为倒放 |
number |
null |
| animationLoop |
播放方式配置项 |
string |
null |
| animationClamp |
播放后是否停留在最后一帧 |
boolean |
null |
自由对象配置
| 属性 |
说明 |
类型 |
默认值 |
| name |
原始对象名称 |
string |
null |
| params |
对象参数列表 |
数组,[param](对象条件参数) |
null |
用户配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
用户名称 |
string |
null |
| isRobot |
是否机器人 |
boolean |
null |
| managerCode |
协同主导者编码(放入当前用户对象就行) |
string |
null |
| roles |
可用角色 |
array |
null |
| ip |
台位ip |
string |
null |
| state |
状态 |
string |
null |
工具属性
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| code |
编码 |
string |
null |
| name |
名称 |
string |
null |
| type |
工具类型配置项 |
string |
null |
| angle |
旋转角度,针对万用表旋钮初始位置使用,顺时针为正数,逆时针为负数。0度位置在12点钟 |
number |
null |
| value |
仪表显示值,针对示波器、万用表等多触点工具。当为示波器的时候需要用文件上传图片;当为万用表时需要输入数据值。 |
number/string |
null |
| object |
基本工具关联对象 |
object |
{name: null} |
| joints |
工具触点,针对示波器、万用表等多触点工具使用配置项 |
array |
[{name}] |
工具触点绑定
objects配置项多用于示波器、万用表,相比工具触点多了一个objects绑定对象
注:万用表的数值配置文件路径为:public/assets/tools/wyb/,格式如下:
|——/wyb
|——0.png
|——1.png
|——2.png
|——3.png
|——4.png
|——5.png
|——6.png
|——7.png
|——8.png
|——9.png
|——d.png // 小数点
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| code |
编码 |
string |
null |
| name |
名称 |
string |
null |
| icon |
图标地址 |
string |
null |
| objects |
指定使用原始对象 |
array |
[{name}] |
检查项
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称 |
string |
null |
| isCheck |
是否为必须检查 |
boolean |
false |
线缆项
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称 |
string |
null |
| joints |
接头列表配置表 |
线缆接头 |
[] |
漫游配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称 |
string |
null |
| icon |
图标地址 |
string |
null |
| position |
相机位置 |
object |
{x, y, z} |
| rotation |
相机旋转 |
object |
{x, y, z} |
线缆接头配置
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| code |
编号 |
string |
null |
| name |
名称 |
string |
null |
| icon |
图标地址 |
string |
null |
| object |
绑定原始对象 |
object |
{name} |
LED对象配置
注:led的图片配置文件路径为:public/assets/led/,格式如下:
|——/led
|——0.png
|——1.png
|——2.png
|——3.png
|——4.png
|——5.png
|——6.png
|——7.png
|——8.png
|——9.png
|——d.png // 小数点
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称,LED数学占位的原始对象名称 |
string |
null |
| machPlace |
数学占位配置项 |
string |
null |
关联led对象
| 属性 |
说明 |
类型 |
默认值 |
| id |
主键 |
string |
null |
| name |
名称,LED数学占位的原始对象名称 |
string |
null |
| ledConfigs |
被关联led对象配置项 |
string |
null |
事件
| 属性 |
说明 |
参数 |
| loaded |
加载成功,查看加载loaded配置项 |
option |
| subject-init |
科目初始化 |
{ step } |
| step-success |
执行成功 |
{ step, startTime, endTime } |
| next-step |
下一步骤 |
{ step, next } |
| step-error |
执行失败 |
{ step, startTime, endTime } |
| subject-end |
训练结束 |
{type, startTime, endTime},查看提交方式配置项 |
| subject-close |
科目训练关闭 |
null |
方法
| 属性 |
说明 |
参数 |
返回值 |
| exceStep |
执行步骤 |
null |
null |
| getCurrentStep |
获取当前步骤 |
null |
step |
| getMyExceSteps |
获取我的操作步骤 |
null |
step |