增加门禁时间范围
This commit is contained in:
parent
ee38bd911d
commit
c5876a29fb
|
@ -744,6 +744,8 @@ import sysConfig from "@/config";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
timerUser: null,
|
||||||
|
timerTime: null,
|
||||||
domMarkerLayer: null,
|
domMarkerLayer: null,
|
||||||
userMaskerLayer: null,
|
userMaskerLayer: null,
|
||||||
jobDomMarkerLayer: null,
|
jobDomMarkerLayer: null,
|
||||||
|
@ -878,7 +880,7 @@ export default {
|
||||||
that.timeNow = date.getDay();
|
that.timeNow = date.getDay();
|
||||||
that.todayDate = this.warningData.params.start_create = this.cateAggForm.start_create = this.$TOOL.dateFormat(new Date(), 'yyyy-MM-dd');
|
that.todayDate = this.warningData.params.start_create = this.cateAggForm.start_create = this.$TOOL.dateFormat(new Date(), 'yyyy-MM-dd');
|
||||||
that.showTime();
|
that.showTime();
|
||||||
setInterval(() => {
|
that.timerTime = setInterval(() => {
|
||||||
that.showTime();
|
that.showTime();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
window.map = new jsmap.JSMap({
|
window.map = new jsmap.JSMap({
|
||||||
|
@ -1064,9 +1066,10 @@ export default {
|
||||||
this.areaTableHeight = areaTableHeight;
|
this.areaTableHeight = areaTableHeight;
|
||||||
document.getElementsByClassName('cockpit-info')[0].style.height = domHeight + 'px';
|
document.getElementsByClassName('cockpit-info')[0].style.height = domHeight + 'px';
|
||||||
// document.getElementsByClassName('area-info-body')[0].style.height = simpleBodyHeight + 'px';
|
// document.getElementsByClassName('area-info-body')[0].style.height = simpleBodyHeight + 'px';
|
||||||
setInterval(function () {
|
},
|
||||||
|
beforeUnmount(){
|
||||||
}, 300000)
|
clearInterval(this.timerUser)
|
||||||
|
clearInterval(this.timerTime)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showTime() {
|
showTime() {
|
||||||
|
@ -1628,12 +1631,15 @@ export default {
|
||||||
// });//动画效果,持续时间一秒
|
// });//动画效果,持续时间一秒
|
||||||
// }, 11000)
|
// }, 11000)
|
||||||
}
|
}
|
||||||
setInterval(function () {
|
that.timerUser = setInterval(function () {
|
||||||
that.refreshUserMarker();
|
that.refreshUserMarker();
|
||||||
}, 30000)
|
}, 30000)
|
||||||
},
|
},
|
||||||
//更新人员标记
|
//更新人员标记
|
||||||
refreshUserMarker() {
|
refreshUserMarker() {
|
||||||
|
if (document.getElementById("mapContainer") == null || document.getElementById("mapContainer") == undefined){
|
||||||
|
return
|
||||||
|
}
|
||||||
debugger;
|
debugger;
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.third.blt.all.req().then(res => {
|
that.$API.third.blt.all.req().then(res => {
|
||||||
|
|
|
@ -119,6 +119,11 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-form-item label="门禁时间范围">
|
||||||
|
<span v-if="form.door_range">{{form.door_range[0]}} 至 {{form.door_range[1]}}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-main>
|
</el-main>
|
||||||
<el-footer v-if="mode!=='show'">
|
<el-footer v-if="mode!=='show'">
|
||||||
|
@ -288,9 +293,12 @@
|
||||||
//表单注入数据
|
//表单注入数据
|
||||||
setData(data) {
|
setData(data) {
|
||||||
//debugger;
|
//debugger;
|
||||||
console.log(defaultForm);
|
// console.log(defaultForm);
|
||||||
// this.form = defaultForm;
|
// this.form = defaultForm;
|
||||||
Object.assign(this.form, data);
|
this.$API.hrm.employee.item.req(data.id).then(res=>{
|
||||||
|
this.form = res
|
||||||
|
})
|
||||||
|
// Object.assign(this.form, data);
|
||||||
},
|
},
|
||||||
//设置过滤项
|
//设置过滤项
|
||||||
setFilters(filters) {
|
setFilters(filters) {
|
||||||
|
|
Loading…
Reference in New Issue