|
|
@@ -22,6 +22,7 @@ const controlStore = defineStore("control", {
|
|
|
domain: undefined,
|
|
|
doorList: {
|
|
|
id: undefined,
|
|
|
+ deviceUuid: undefined,
|
|
|
name: undefined,
|
|
|
},
|
|
|
},
|
|
|
@@ -73,7 +74,7 @@ const controlStore = defineStore("control", {
|
|
|
domain: !isToken ? this.form.domain : undefined, //域名
|
|
|
userId: !isToken ? event.userId : undefined,
|
|
|
userName: !isToken ? event.userName : undefined,
|
|
|
- deviceUuid: !isToken ? this.form.doorList.id : event.deviceUuid,
|
|
|
+ deviceUuid: !isToken ? (this.form.doorList.deviceUuid || this.form.doorList.id) : event.deviceUuid,
|
|
|
productCode: "502_USKY",
|
|
|
commandCode: "door_onoff",
|
|
|
commandValue: 1,
|
|
|
@@ -101,7 +102,7 @@ const controlStore = defineStore("control", {
|
|
|
.RecordInsert({
|
|
|
domain: !getToken() ? this.form.domain : undefined, //域名
|
|
|
userName: event.userName, //用户姓名
|
|
|
- deviceUuid: !getToken() ? this.form.doorList.id : event.deviceUuid,//设备Uuid
|
|
|
+ deviceUuid: !getToken() ? (this.form.doorList.deviceUuid || this.form.doorList.id) : event.deviceUuid, //设备Uuid
|
|
|
passType: 3, //通行方式(1、人脸 2、刷卡 3、手机)
|
|
|
passTime: dayjs().format("YYYY-MM-DDTHH:mm:ss"), //通行时间
|
|
|
passResult: msg, //通行结果
|