姜玉琦 2024-03-25 23:38:35 +08:00
commit ad9aaf7d8a
7 changed files with 34 additions and 20 deletions

View File

@ -2,24 +2,24 @@ window.mapModels=[{
prjId:697, prjId:697,
prjName:'泊跃人工智能产业园项目', prjName:'泊跃人工智能产业园项目',
modelId:'3a0d8941-4496-e475-c86a-799e8543aca1', modelId:'3a0d8941-4496-e475-c86a-799e8543aca1',
root:'http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202309090700533962/root.glt', root:'//szgc.jhncidg.com/mapmodel/tools/output/model/202309090700533962/root.glt',
},{ },{
prjId:692, prjId:692,
prjName:'云和悦小区', prjName:'云和悦小区',
modelId:'3a0d876b-fcf5-56ff-0efb-89c065ffa637', modelId:'3a0d876b-fcf5-56ff-0efb-89c065ffa637',
root:'http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202309082236347836/root.glt', root:'//szgc.jhncidg.com/mapmodel/tools/output/model/202309082236347836/root.glt',
view:{"heading":6.230452905608175,"pitch":-0.3167924920463947,"position":[1.9004702833791862,0.5968788844434487,79.92399569771715],"headingDegrees":356.9786559463691,"pitchDegrees":-18.150872775690118,"positionWC":{"x":-1709632.984691206,"y":4996580.328805909,"z":3564737.175898937}} view:{"heading":6.230452905608175,"pitch":-0.3167924920463947,"position":[1.9004702833791862,0.5968788844434487,79.92399569771715],"headingDegrees":356.9786559463691,"pitchDegrees":-18.150872775690118,"positionWC":{"x":-1709632.984691206,"y":4996580.328805909,"z":3564737.175898937}}
},{ },{
prjId:722, prjId:722,
prjName:'泾河新城医疗健康科技产业园一期', prjName:'泾河新城医疗健康科技产业园一期',
modelId:'3a0d8941-4496-e475-c86a-799e8543aca2', modelId:'3a0d8941-4496-e475-c86a-799e8543aca2',
root:'http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202308292209049711/root.glt', root:'//szgc.jhncidg.com/mapmodel/tools/output/model/202308292209049711/root.glt',
view:{"heading":0.0058949428144847715,"pitch":-0.45916450787257634,"position":[1.9014402668692727,0.596827472897058,319.1023937950138],"headingDegrees":0.3377553437409484,"pitchDegrees":-26.308188403300086,"positionWC":{"x":-1714602.6283823003,"y":4995280.479264514,"z":3564601.337643737}} view:{"heading":0.0058949428144847715,"pitch":-0.45916450787257634,"position":[1.9014402668692727,0.596827472897058,319.1023937950138],"headingDegrees":0.3377553437409484,"pitchDegrees":-26.308188403300086,"positionWC":{"x":-1714602.6283823003,"y":4995280.479264514,"z":3564601.337643737}}
}, },
{ {
prjId:736, prjId:736,
prjName:'体育中心', prjName:'体育中心',
modelId:'3a0d8941-4496-e475-c86a-799e8543aca3', modelId:'3a0d8941-4496-e475-c86a-799e8543aca3',
root:'http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202308292206163239/root.glt', root:'//szgc.jhncidg.com/mapmodel/tools/output/model/202308292206163239/root.glt',
view:{"heading":6.283164707709002,"pitch":-0.5236819159300738,"position":[1.9008220777057336,0.5968572306888884,88.94262262738738],"headingDegrees":359.9988197372753,"pitchDegrees":-30.004763590118024,"positionWC":{"x":-1711418.132166834,"y":4996058.815156038,"z":3564628.415878788}} view:{"heading":6.283164707709002,"pitch":-0.5236819159300738,"position":[1.9008220777057336,0.5968572306888884,88.94262262738738],"headingDegrees":359.9988197372753,"pitchDegrees":-30.004763590118024,"positionWC":{"x":-1711418.132166834,"y":4996058.815156038,"z":3564628.415878788}}
}]; }];

View File

@ -1,6 +1,13 @@
import request from '@/utils/request' import request from '@/utils/request'
import { Date } from 'core-js' import { Date } from 'core-js'
// 查询劳务实名制管理列表
const listAttendance=(query)=> {
return request({
url: '/project/attendance/list',
method: 'get',
params: query
})
}
const getDeptWorksList=(deptId,projectId)=> { const getDeptWorksList=(deptId,projectId)=> {
return request({ return request({
url: `bgscreen/attendance/getDeptWorksList?deptId=${deptId||0}&projectId=${projectId||0}`, url: `bgscreen/attendance/getDeptWorksList?deptId=${deptId||0}&projectId=${projectId||0}`,
@ -51,5 +58,6 @@ export default{
groupByComany, groupByComany,
todayAttendance, todayAttendance,
selectList, selectList,
groupAllByComany groupAllByComany,
listAttendance
} }

View File

@ -413,6 +413,9 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.head-title{
z-index: 9999;
}
.main-header { .main-header {
.head-title-tab { .head-title-tab {
.has-submenu { .has-submenu {

View File

@ -1,7 +1,7 @@
import Vue from 'vue' import Vue from 'vue'
Vue.component('module-one-2-1', { Vue.component('module-one-2-1', {
template:` template:`
<div class="screen-module"> <div class="screen-module" :class="className">
<div class="screen-one-2-1"> <div class="screen-one-2-1">
<div class="module-title"><span>{{label}}</span></div> <div class="module-title"><span>{{label}}</span></div>
<slot></slot> <slot></slot>
@ -11,6 +11,10 @@ Vue.component('module-one-2-1', {
props: { props: {
label:{ label:{
type:String type:String
},
className:{
type:String,
default:''
} }
}, },

View File

@ -2,9 +2,9 @@
<MyDialog v-if="show" v-model="show" width="1600px" height="850px" class="today-attendance-detail"> <MyDialog v-if="show" v-model="show" width="1600px" height="850px" class="today-attendance-detail">
<template slot="title">今日出勤</template> <template slot="title">今日出勤</template>
<div class="head-title-tab" style="padding: 10px 0px;"> <div class="head-title-tab" style="padding: 10px 0px;">
<div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(1)"></div> <div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(101)"></div>
<div :class="nav == 8 ? 'head-nav active' : 'head-nav'" @click="doNav(8)"></div> <div :class="nav == 8 ? 'head-nav active' : 'head-nav'" @click="doNav(102)"></div>
<div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(2)"></div> <div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(103)"></div>
</div> </div>
<el-table v-loading="loading" :data="tableData" class="mytable" height="650" style="width: 100%;background: transparent;" ref="fbsubordinateUnit"> <el-table v-loading="loading" :data="tableData" class="mytable" height="650" style="width: 100%;background: transparent;" ref="fbsubordinateUnit">
<el-table-column label="照片" align="center" prop="id"> <el-table-column label="照片" align="center" prop="id">
@ -57,7 +57,7 @@ export default {
size:10, size:10,
index:1, index:1,
total:0, total:0,
nav:1 nav:101
}; };
}, },
@ -85,15 +85,15 @@ export default {
}, },
loadData(){ loadData(){
let postData={ let postData={
projectId:this.projectId, attendanceTime:this.$dt(new Date()).format("YYYY-MM-DD"),
deptId:this.deptId, projectId:this.projectId,
size:this.size, pageSize:this.size,
index:this.index, pageNum:this.index,
id:this.nav companyTypeId:this.nav
} }
this.tableData=[]; this.tableData=[];
this.loading=true; this.loading=true;
this.$api.attendance.todayAttendance(postData).then(d=>{ this.$api.attendance.listAttendance(postData).then(d=>{
this.total=d.total||0; this.total=d.total||0;
this.tableData=(d.rows||[]).map(it=>{ this.tableData=(d.rows||[]).map(it=>{
it.scanPhoto=it.scanPhoto && it.scanPhoto.indexOf("/profile")==0?"/jhapi"+it.scanPhoto:it.scanPhoto; it.scanPhoto=it.scanPhoto && it.scanPhoto.indexOf("/profile")==0?"/jhapi"+it.scanPhoto:it.scanPhoto;

View File

@ -43,7 +43,7 @@ export default {
}, },
reloadMap() { reloadMap() {
this.mapInfo = { this.mapInfo = {
root: "http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202310241728566044/root.glt", root: "//szgc.jhncidg.com/mapmodel/tools/output/model/202310241728566044/root.glt",
modelId: '3a0e7366-ad7b-3dc3-1d86-2331fc1e8578', modelId: '3a0e7366-ad7b-3dc3-1d86-2331fc1e8578',
view:{"heading":4.8798740228358,"pitch":-0.22637630756730465,"position":[1.9366836920898733,0.5884137486301345,31809.670937187617],"headingDegrees":279.59618606401807,"pitchDegrees":-12.970407005361997,"positionWC":{"x":-1909610.0164615875,"y":4984113.66041506,"z":3537723.8441370176}} view:{"heading":4.8798740228358,"pitch":-0.22637630756730465,"position":[1.9366836920898733,0.5884137486301345,31809.670937187617],"headingDegrees":279.59618606401807,"pitchDegrees":-12.970407005361997,"positionWC":{"x":-1909610.0164615875,"y":4984113.66041506,"z":3537723.8441370176}}
}; };

View File

@ -7,8 +7,7 @@ const filters={
} }
return ""; return "";
}, },
formatTime:dt=>{ formatTime:dt=>{
console.log(">>>>>>>>>>",dt)
if(dt){ if(dt){
return dayjs(dt).format("HH:mm:ss"); return dayjs(dt).format("HH:mm:ss");
} }