You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
1.1 KiB
13 lines
1.1 KiB
逻辑代码位于 src/pages/Index/Index.vue中
|
|
1.首先首次登录进入首页会进行初始化程序的调用,会弹窗提醒用户取下试管帽,当用户点击确认取下/开始复位后,执行内部代码
|
|
|
|
|
|
2.调用 “/api/v1/app/deviceInit/initDevice” 接口,初始化设备,并调用 “/api/v1/app/deviceInit/getDeviceStatus” 接口,获取设备状态,如果返回的passed字段是true,则表示初始化成功,否则失败
|
|
|
|
|
|
3.初始化成功后,弹窗告知用户,并将EventText设置为初始化完成(底部状态信息)
|
|
|
|
4.初始化失败后,弹窗告知用户,会自动调用 /api/v1/app/deviceInit/check 接口 判断是哪个部位初始化没有成功(目前只会显示一个错误,不清楚是否有多个错误)
|
|
|
|
|
|
5.弹出初始化失败并显示失败信息的弹窗后,用户点击确认,会再次进行初始化程序的调用,直到程序没有错误,或者用户点击取消,暂时跳过这个流程,在后续点击开始检测时,会对初始化是否执行成功进行调用,如果没有成功,会再次调用初始化程序
|