|
@@ -43,7 +43,8 @@
|
|
import {
|
|
import {
|
|
systemSubjectGetAppSubjectByLogin,
|
|
systemSubjectGetAppSubjectByLogin,
|
|
laboratoryApplyRemoteOpenLock,
|
|
laboratoryApplyRemoteOpenLock,
|
|
- applyRemoteOpenLockConfirm
|
|
|
|
|
|
+ applyRemoteOpenLockConfirm,
|
|
|
|
+ laboratoryLabOpenLockLogUpdateLockData
|
|
} from '@/pages_manage/api/index.js'
|
|
} from '@/pages_manage/api/index.js'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -118,7 +119,7 @@
|
|
this.$set(this, 'msgId', data.data[0])
|
|
this.$set(this, 'msgId', data.data[0])
|
|
this.$set(this, 'authorizeStatus', 3)
|
|
this.$set(this, 'authorizeStatus', 3)
|
|
this.$set(this, 'successVisible', true)
|
|
this.$set(this, 'successVisible', true)
|
|
- this.getMsg();
|
|
|
|
|
|
+ this.getMsg(row.subId);
|
|
}else{
|
|
}else{
|
|
this.$set(this, 'authorizeStatus', 2)
|
|
this.$set(this, 'authorizeStatus', 2)
|
|
this.$set(this, 'successVisible', true)
|
|
this.$set(this, 'successVisible', true)
|
|
@@ -126,7 +127,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- async applyRemoteOpenLockConfirm() {
|
|
|
|
|
|
+ async applyRemoteOpenLockConfirm(subId) {
|
|
let self = this;
|
|
let self = this;
|
|
let obj = {
|
|
let obj = {
|
|
messageId: this.msgId,
|
|
messageId: this.msgId,
|
|
@@ -138,15 +139,32 @@
|
|
if (data.data) {
|
|
if (data.data) {
|
|
this.$set(this, 'authorizeStatus', 1)
|
|
this.$set(this, 'authorizeStatus', 1)
|
|
this.$set(this, 'successVisible', true)
|
|
this.$set(this, 'successVisible', true)
|
|
|
|
+ this.laboratoryLabOpenLockLogUpdateLockData(subId,1);
|
|
this.getCode();
|
|
this.getCode();
|
|
} else {
|
|
} else {
|
|
this.$set(this, 'authorizeStatus', 2)
|
|
this.$set(this, 'authorizeStatus', 2)
|
|
this.$set(this, 'successVisible', true)
|
|
this.$set(this, 'successVisible', true)
|
|
|
|
+ this.laboratoryLabOpenLockLogUpdateLockData(subId,0);
|
|
this.getCode();
|
|
this.getCode();
|
|
}
|
|
}
|
|
this.$set(this, 'msgId','')
|
|
this.$set(this, 'msgId','')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ async laboratoryLabOpenLockLogUpdateLockData(subId,type) {
|
|
|
|
+ let self = this;
|
|
|
|
+ let obj = {
|
|
|
|
+ subjectId: subId,
|
|
|
|
+ userId: uni.getStorageSync('userId'),
|
|
|
|
+ openStatus:type
|
|
|
|
+ }
|
|
|
|
+ const {
|
|
|
|
+ data
|
|
|
|
+ } = await laboratoryLabOpenLockLogUpdateLockData(obj);
|
|
|
|
+ if(data.code == 200) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
//滚动加载事件
|
|
//滚动加载事件
|
|
scrollGet() {
|
|
scrollGet() {
|
|
let self = this;
|
|
let self = this;
|
|
@@ -199,7 +217,7 @@
|
|
this.systemSubjectGetAppSubjectByLogin();
|
|
this.systemSubjectGetAppSubjectByLogin();
|
|
},
|
|
},
|
|
//关闭弹框倒计时
|
|
//关闭弹框倒计时
|
|
- getMsg() {
|
|
|
|
|
|
+ getMsg(subId) {
|
|
let self = this;
|
|
let self = this;
|
|
const TIME_COUNT = 5;
|
|
const TIME_COUNT = 5;
|
|
if (!self.timer) {
|
|
if (!self.timer) {
|
|
@@ -212,7 +230,7 @@
|
|
self.successVisible = false;
|
|
self.successVisible = false;
|
|
clearInterval(self.timer);
|
|
clearInterval(self.timer);
|
|
self.timer = null;
|
|
self.timer = null;
|
|
- self.applyRemoteOpenLockConfirm();
|
|
|
|
|
|
+ self.applyRemoteOpenLockConfirm(subId);
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
}
|
|
}
|