Browse Source

最新代码提交

master
HY 3 months ago
parent
commit
83cb9d59a1
17 changed files with 558 additions and 73 deletions
  1. +1
    -1
      admin-hanhai-vue/src/views/xcx/ClockInConfList.vue
  2. +1
    -1
      admin-hanhai-vue/src/views/xcx/ClockInProjectItemList.vue
  3. +29
    -9
      admin-hanhai-vue/src/views/xcx/ClockInProjectList.vue
  4. +196
    -0
      admin-hanhai-vue/src/views/xcx/ClockinTeamLogList.vue
  5. +5
    -5
      admin-hanhai-vue/src/views/xcx/modules/ClockInConfForm.vue
  6. +5
    -5
      admin-hanhai-vue/src/views/xcx/modules/ClockInProjectForm.vue
  7. +5
    -5
      admin-hanhai-vue/src/views/xcx/modules/ClockInProjectItemForm.vue
  8. +5
    -5
      admin-hanhai-vue/src/views/xcx/modules/ClockinAuthForm.vue
  9. +5
    -5
      admin-hanhai-vue/src/views/xcx/modules/ClockinLogForm.vue
  10. +5
    -5
      admin-hanhai-vue/src/views/xcx/modules/ClockinTeamForm.vue
  11. +127
    -0
      admin-hanhai-vue/src/views/xcx/modules/ClockinTeamLogForm.vue
  12. +84
    -0
      admin-hanhai-vue/src/views/xcx/modules/ClockinTeamLogModal.Style#Drawer.vue
  13. +60
    -0
      admin-hanhai-vue/src/views/xcx/modules/ClockinTeamLogModal.vue
  14. +10
    -10
      admin-hanhai-vue/src/views/xcx/modules/TencentMapPicker.vue
  15. +8
    -8
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteamlog/vue/ClockinTeamLogList.vue
  16. +8
    -13
      jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteamlog/vue/modules/ClockinTeamLogForm.vue
  17. +4
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/xcx/clockin/service/impl/ClockinServiceImpl.java

+ 1
- 1
admin-hanhai-vue/src/views/xcx/ClockInConfList.vue View File

@ -17,7 +17,7 @@
<!-- <a-button type="primary" icon="import">导入</a-button>--> <!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>--> <!-- </a-upload>-->
<!-- 高级查询区域 --> <!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<!-- <a-menu slot="overlay">--> <!-- <a-menu slot="overlay">-->
<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>--> <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->


+ 1
- 1
admin-hanhai-vue/src/views/xcx/ClockInProjectItemList.vue View File

@ -17,7 +17,7 @@
<!-- <a-button type="primary" icon="import">导入</a-button>--> <!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>--> <!-- </a-upload>-->
<!-- 高级查询区域 --> <!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>


+ 29
- 9
admin-hanhai-vue/src/views/xcx/ClockInProjectList.vue View File

@ -19,7 +19,7 @@
<!-- <a-button type="primary" icon="import">导入</a-button>--> <!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>--> <!-- </a-upload>-->
<!-- 高级查询区域 --> <!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
@ -101,7 +101,9 @@
</a-col> </a-col>
<a-col :md="rightColMd" :sm="24" v-if="this.rightcolval == 1"> <a-col :md="rightColMd" :sm="24" v-if="this.rightcolval == 1">
<a-card :bordered="false"> <a-card :bordered="false">
<div style="text-align: right;">
<a-icon type="close-circle" @click="hideUserList" />
</div>
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline"> <a-form layout="inline">
@ -171,11 +173,11 @@
<a-menu-item> <a-menu-item>
<a @click="handleDetail2(record)">详情</a> <a @click="handleDetail2(record)">详情</a>
</a-menu-item> </a-menu-item>
<!-- <a-menu-item>-->
<!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete2(record.id)">-->
<!-- <a>删除</a>-->
<!-- </a-popconfirm>-->
<!-- </a-menu-item>-->
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete2(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
</span> </span>
@ -197,7 +199,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ClockInProjectModal from './modules/ClockInProjectModal' import ClockInProjectModal from './modules/ClockInProjectModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import {getAction, httpAction} from "@api/manage";
import {deleteAction, getAction, httpAction} from "@api/manage";
import ClockInProjectItemModal from './modules/ClockInProjectItemModal' import ClockInProjectItemModal from './modules/ClockInProjectItemModal'
export default { export default {
@ -269,6 +271,7 @@
exportXlsUrl: "/clockInproject/clockInProject/exportXls", exportXlsUrl: "/clockInproject/clockInProject/exportXls",
importExcelUrl: "clockInproject/clockInProject/importExcel", importExcelUrl: "clockInproject/clockInProject/importExcel",
detailList: "/clockInprojectitem/clockInProjectItem/list", detailList: "/clockInprojectitem/clockInProjectItem/list",
delete2: "/clockInprojectitem/clockInProjectItem/delete"
}, },
dictOptions:{}, dictOptions:{},
superFieldList:[], superFieldList:[],
@ -365,7 +368,7 @@
}, },
hideUserList(){ hideUserList(){
//this.rightcolval = 0 //this.rightcolval = 0
this.selectedRowKeys1 = []
this.selectedRowKeys = []
}, },
handlePerssion(roleId){ handlePerssion(roleId){
this.$refs.modalUserRole.show(roleId); this.$refs.modalUserRole.show(roleId);
@ -448,6 +451,23 @@
this.$refs.modalForm2.title="详情"; this.$refs.modalForm2.title="详情";
this.$refs.modalForm2.disableSubmit = true; this.$refs.modalForm2.disableSubmit = true;
}, },
handleDelete2: function (id) {
if(!this.url.delete){
this.$message.error("请设置url.delete属性!")
return
}
var that = this;
deleteAction(that.url.delete2, {id: id}).then((res) => {
if (res.success) {
//
that.reCalculatePage(1)
that.$message.success(res.message);
that.loadData2();
} else {
that.$message.warning(res.message);
}
});
},
} }
} }
</script> </script>


+ 196
- 0
admin-hanhai-vue/src/views/xcx/ClockinTeamLogList.vue View File

@ -0,0 +1,196 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<!-- <a-button type="primary" icon="download" @click="handleExportXls('clockin_team_log')">导出</a-button>-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>-->
<!-- 高级查询区域 -->
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
</div>
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div>
</template>
<template slot="imgSlot" slot-scope="text,record">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
<img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button
v-else
:ghost="true"
type="primary"
icon="download"
size="small"
@click="downloadFile(text)">
下载
</a-button>
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
</span>
</a-table>
</div>
<clockin-team-log-modal ref="modalForm" @ok="modalFormOk"></clockin-team-log-modal>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ClockinTeamLogModal from './modules/ClockinTeamLogModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
export default {
name: 'ClockinTeamLogList',
mixins:[JeecgListMixin, mixinDevice],
components: {
ClockinTeamLogModal
},
data () {
return {
description: '团队绑定管理页面',
//
columns: [
{
title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
align:"center",
customRender:function (t,r,index) {
return parseInt(index)+1;
}
},
{
title:'用户编号',
align:"center",
dataIndex: 'userId'
},
{
title:'团队编号',
align:"center",
dataIndex: 'teamId_dictText'
},
{
title:'姓名',
align:"center",
dataIndex: 'name'
},
{
title:'审核状态',
align:"center",
dataIndex: 'status_dictText'
},
{
title:'是否删除',
align:"center",
dataIndex: 'delFlag_dictText'
},
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: "/clockinteamlog/clockinTeamLog/list",
delete: "/clockinteamlog/clockinTeamLog/delete",
deleteBatch: "/clockinteamlog/clockinTeamLog/deleteBatch",
exportXlsUrl: "/clockinteamlog/clockinTeamLog/exportXls",
importExcelUrl: "clockinteamlog/clockinTeamLog/importExcel",
},
dictOptions:{},
superFieldList:[],
}
},
created() {
this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
initDictConfig(){
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'string',value:'userId',text:'用户编号',dictCode:''})
fieldList.push({type:'string',value:'teamId',text:'团队编号',dictCode:"clockin_team,name,id"})
fieldList.push({type:'string',value:'name',text:'姓名',dictCode:''})
fieldList.push({type:'int',value:'status',text:'审核状态 0待审核 1审核通过 2审核未通过',dictCode:'clockin_team_log_status'})
fieldList.push({type:'int',value:'delFlag',text:'是否删除',dictCode:'is_delete'})
this.superFieldList = fieldList
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>

+ 5
- 5
admin-hanhai-vue/src/views/xcx/modules/ClockInConfForm.vue View File

@ -18,11 +18,11 @@
<a-textarea v-model="model.info" rows="4" placeholder="请输入说明" /> <a-textarea v-model="model.info" rows="4" placeholder="请输入说明" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>


+ 5
- 5
admin-hanhai-vue/src/views/xcx/modules/ClockInProjectForm.vue View File

@ -48,11 +48,11 @@
<j-dict-select-tag type="list" v-model="model.teamId" dictCode="clockin_team,name,id,del_flag=0" placeholder="请选择团队编号" /> <j-dict-select-tag type="list" v-model="model.teamId" dictCode="clockin_team,name,id,del_flag=0" placeholder="请选择团队编号" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>


+ 5
- 5
admin-hanhai-vue/src/views/xcx/modules/ClockInProjectItemForm.vue View File

@ -23,11 +23,11 @@
<a-input-number v-model="model.sort" placeholder="请输入排序" style="width: 100%" /> <a-input-number v-model="model.sort" placeholder="请输入排序" style="width: 100%" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>


+ 5
- 5
admin-hanhai-vue/src/views/xcx/modules/ClockinAuthForm.vue View File

@ -23,11 +23,11 @@
<j-dict-select-tag type="radio" v-model="model.status" dictCode="clockin_auth_status" placeholder="请选择状态" /> <j-dict-select-tag type="radio" v-model="model.status" dictCode="clockin_auth_status" placeholder="请选择状态" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>


+ 5
- 5
admin-hanhai-vue/src/views/xcx/modules/ClockinLogForm.vue View File

@ -28,11 +28,11 @@
<a-input v-model="model.lat" placeholder="请输入纬度" ></a-input> <a-input v-model="model.lat" placeholder="请输入纬度" ></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>


+ 5
- 5
admin-hanhai-vue/src/views/xcx/modules/ClockinTeamForm.vue View File

@ -13,11 +13,11 @@
<a-input-number v-model="model.sort" placeholder="请输入排序" style="width: 100%" /> <a-input-number v-model="model.sort" placeholder="请输入排序" style="width: 100%" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>


+ 127
- 0
admin-hanhai-vue/src/views/xcx/modules/ClockinTeamLogForm.vue View File

@ -0,0 +1,127 @@
<template>
<a-spin :spinning="confirmLoading">
<j-form-container :disabled="formDisabled">
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
<a-row>
<a-col :span="24">
<a-form-model-item label="用户编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="userId">
<a-input v-model="model.userId" placeholder="请输入用户编号" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="团队编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="teamId">
<j-dict-select-tag type="list" v-model="model.teamId" dictCode="clockin_team,name,id,del_flag=0" placeholder="请选择团队编号" />
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="姓名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name">
<a-input v-model="model.name" placeholder="请输入姓名" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="审核状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status">
<j-dict-select-tag type="list" v-model="model.status" dictCode="clockin_team_log_status" placeholder="请选择审核状态" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row>
</a-form-model>
</j-form-container>
</a-spin>
</template>
<script>
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
export default {
name: 'ClockinTeamLogForm',
components: {
},
props: {
//
disabled: {
type: Boolean,
default: false,
required: false
}
},
data () {
return {
model:{
status:0,
delFlag:0,
},
labelCol: {
xs: { span: 24 },
sm: { span: 5 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 },
},
confirmLoading: false,
validatorRules: {
},
url: {
add: "/clockinteamlog/clockinTeamLog/add",
edit: "/clockinteamlog/clockinTeamLog/edit",
queryById: "/clockinteamlog/clockinTeamLog/queryById"
}
}
},
computed: {
formDisabled(){
return this.disabled
},
},
created () {
//model
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},
methods: {
add () {
this.edit(this.modelDefault);
},
edit (record) {
this.model = Object.assign({}, record);
this.visible = true;
},
submitForm () {
const that = this;
//
this.$refs.form.validate(valid => {
if (valid) {
that.confirmLoading = true;
let httpurl = '';
let method = '';
if(!this.model.id){
httpurl+=this.url.add;
method = 'post';
}else{
httpurl+=this.url.edit;
method = 'put';
}
httpAction(httpurl,this.model,method).then((res)=>{
if(res.success){
that.$message.success(res.message);
that.$emit('ok');
}else{
that.$message.warning(res.message);
}
}).finally(() => {
that.confirmLoading = false;
})
}
})
},
}
}
</script>

+ 84
- 0
admin-hanhai-vue/src/views/xcx/modules/ClockinTeamLogModal.Style#Drawer.vue View File

@ -0,0 +1,84 @@
<template>
<a-drawer
:title="title"
:width="width"
placement="right"
:closable="false"
@close="close"
destroyOnClose
:visible="visible">
<clockin-team-log-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></clockin-team-log-form>
<div class="drawer-footer">
<a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
<a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
</div>
</a-drawer>
</template>
<script>
import ClockinTeamLogForm from './ClockinTeamLogForm'
export default {
name: 'ClockinTeamLogModal',
components: {
ClockinTeamLogForm
},
data () {
return {
title:"操作",
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
});
},
close () {
this.$emit('close');
this.visible = false;
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
handleCancel () {
this.close()
}
}
}
</script>
<style lang="less" scoped>
/** Button按钮间距 */
.ant-btn {
margin-left: 30px;
margin-bottom: 30px;
float: right;
}
.drawer-footer{
position: absolute;
bottom: -8px;
width: 100%;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
</style>

+ 60
- 0
admin-hanhai-vue/src/views/xcx/modules/ClockinTeamLogModal.vue View File

@ -0,0 +1,60 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
switchFullscreen
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<clockin-team-log-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></clockin-team-log-form>
</j-modal>
</template>
<script>
import ClockinTeamLogForm from './ClockinTeamLogForm'
export default {
name: 'ClockinTeamLogModal',
components: {
ClockinTeamLogForm
},
data () {
return {
title:'',
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
})
},
close () {
this.$emit('close');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleCancel () {
this.close()
}
}
}
</script>

+ 10
- 10
admin-hanhai-vue/src/views/xcx/modules/TencentMapPicker.vue View File

@ -1,14 +1,14 @@
<template> <template>
<div> <div>
<div class="map-box">
<div class="map-box2">
<div class="map" ref="map" style="height: 400px" ></div> <div class="map" ref="map" style="height: 400px" ></div>
<div class="map-search">
<div class="map-search2">
<div> <div>
<a-input-search id="place" v-model="searchValue" placeholder="请输入详细地址" enter-button @search="searchAddress(searchValue)" /> <a-input-search id="place" v-model="searchValue" placeholder="请输入详细地址" enter-button @search="searchAddress(searchValue)" />
</div> </div>
<div> <div>
<ul v-if="kwData.length">
<li v-for="(item, index) in kwData" :key="index" @click="selectKeyword(item)">{{ item.address }}</li>
<ul v-if="kwData.length" class="ul2">
<li class="li2" v-for="(item, index) in kwData" :key="index" @click="selectKeyword(item)">{{ item.address }}</li>
</ul> </ul>
</div> </div>
</div> </div>
@ -180,11 +180,11 @@ export default {
} }
</script> </script>
<style> <style>
.map-box {
.map-box2 {
position: relative; position: relative;
} }
.map-search {
.map-search2 {
z-index: 1000; z-index: 1000;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -195,7 +195,7 @@ export default {
} }
button {
button2 {
border-radius: 0; border-radius: 0;
} }
@ -212,14 +212,14 @@ button {
flex-wrap: wrap; flex-wrap: wrap;
height: 70%; height: 70%;
} }
ul{
.ul2{
background: white; background: white;
list-style-type: none; list-style-type: none;
padding-left: 0px; padding-left: 0px;
height: 280px; height: 280px;
overflow: scroll; overflow: scroll;
} }
li{
.li2{
padding-left: 6px; padding-left: 6px;
font-size: 10px; font-size: 10px;
text-align: left; text-align: left;
@ -228,7 +228,7 @@ li{
display: flex; display: flex;
align-items: center; align-items: center;
} }
li:hover{
.li2:hover{
cursor: pointer; cursor: pointer;
background: #f5f5f5; background: #f5f5f5;
} }

+ 8
- 8
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteamlog/vue/ClockinTeamLogList.vue View File

@ -11,13 +11,13 @@
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator"> <div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('clockin_team_log')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
<!-- <a-button type="primary" icon="download" @click="handleExportXls('clockin_team_log')">导出</a-button>-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">导入</a-button>-->
<!-- </a-upload>-->
<!-- 高级查询区域 --> <!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
@ -109,7 +109,7 @@
}, },
data () { data () {
return { return {
description: 'clockin_team_log管理页面',
description: '团队绑定管理页面',
// //
columns: [ columns: [
{ {
@ -138,7 +138,7 @@
dataIndex: 'name' dataIndex: 'name'
}, },
{ {
title:'审核状态 0待审核 1审核通过 2审核未通过',
title:'审核状态',
align:"center", align:"center",
dataIndex: 'status_dictText' dataIndex: 'status_dictText'
}, },


+ 8
- 13
jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/modules/clockinteamlog/vue/modules/ClockinTeamLogForm.vue View File

@ -19,15 +19,15 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="审核状态 0待审核 1审核通过 2审核未通过" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status">
<j-dict-select-tag type="list" v-model="model.status" dictCode="clockin_team_log_status" placeholder="请选择审核状态 0待审核 1审核通过 2审核未通过" />
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">
<j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />
<a-form-model-item label="审核状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status">
<j-dict-select-tag type="list" v-model="model.status" dictCode="clockin_team_log_status" placeholder="请选择审核状态" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="是否删除" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag">-->
<!-- <j-dict-select-tag type="radio" v-model="model.delFlag" dictCode="is_delete" placeholder="请选择是否删除" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>
@ -67,12 +67,7 @@
}, },
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
status: [
{ required: true, message: '请输入审核状态 0待审核 1审核通过 2审核未通过!'},
],
delFlag: [
{ required: true, message: '请输入是否删除!'},
],
}, },
url: { url: {
add: "/clockinteamlog/clockinTeamLog/add", add: "/clockinteamlog/clockinTeamLog/add",


+ 4
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/xcx/clockin/service/impl/ClockinServiceImpl.java View File

@ -1,6 +1,7 @@
package org.jeecg.modules.xcx.clockin.service.impl; package org.jeecg.modules.xcx.clockin.service.impl;
import com.tencentcloudapi.iai.v20180301.models.VerifyFaceResponse; import com.tencentcloudapi.iai.v20180301.models.VerifyFaceResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.exception.JeecgBootException; import org.jeecg.common.exception.JeecgBootException;
@ -30,7 +31,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.*; import java.util.*;
@Slf4j
@Service @Service
public class ClockinServiceImpl implements IClockinService { public class ClockinServiceImpl implements IClockinService {
@Resource @Resource
@ -74,6 +75,8 @@ public class ClockinServiceImpl implements IClockinService {
} }
Integer distance = clockInProjectService.getDistance(clockInReq.getLon(), clockInProject.getLat(), clockInProject.getId()); Integer distance = clockInProjectService.getDistance(clockInReq.getLon(), clockInProject.getLat(), clockInProject.getId());
if(distance > clockInProject.getDistance()){ if(distance > clockInProject.getDistance()){
log.info("用户经度:"+clockInReq.getLon()+"纬度:"+clockInProject.getLat());
log.info("距离:"+distance);
throw new JeecgBootException("不在有效打卡距离内"); throw new JeecgBootException("不在有效打卡距离内");
} }
ClockInProjectItem validClockInTime = clockInProjectItemService.getValidClockInTime(DateUtils2.getNowDateTimeStrings(), clockInProject.getId()); ClockInProjectItem validClockInTime = clockInProjectItemService.getValidClockInTime(DateUtils2.getNowDateTimeStrings(), clockInProject.getId());


Loading…
Cancel
Save