14 files modified
2 files added
| | |
| | | |
| | | <link rel="icon" href="<%= BASE_URL %>favicon.png"> |
| | | |
| | | <title>保安服务企业管理</title> |
| | | <style> |
| | | html, |
| | | body, |
| New file |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/checkRecord/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/checkRecord/save', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/checkRecord/update', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/checkRecord/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getDetail = (params) => { |
| | | return request({ |
| | | url: '/api/checkRecord/detail', |
| | | method: 'get', |
| | | params: { |
| | | ...params |
| | | } |
| | | }) |
| | | } |
| | |
| | | title: "saber", |
| | | logo: "S", |
| | | key: 'saber', //配置主键,目前用于存储 |
| | | indexTitle: '保安服务企业管理', |
| | | indexTitle: '保安员分级统筹管理系统', |
| | | clientId: 'saber', // 客户端id |
| | | clientSecret: 'saber_secret', // 客户端密钥 |
| | | tenantMode: true, // 是否开启保安单位模式 租户ID |
| | |
| | | flowDesignUrl: 'http://localhost:9999', |
| | | // 报表设计器地址(cloud端口为8108,boot端口为81) |
| | | reportUrl: 'http://localhost:81/ureport', |
| | | } |
| | | } |
| | |
| | | messages |
| | | }) |
| | | |
| | | export default i18n |
| | | export default i18n |
| | |
| | | closeOthers: '关闭其它', |
| | | closeAll: '关闭所有' |
| | | } |
| | | } |
| | | } |
| | |
| | | <img v-if="keyCollapse" src="../../../public/img/top/shield.png" /> |
| | | <transition-group name="fade"> |
| | | <template v-if="!keyCollapse"> |
| | | <span class="avue-logo_title" key="1">{{ website.indexTitle }} </span> |
| | | <span class="avue-logo_title" key="1">{{title}} </span> |
| | | </template> |
| | | </transition-group> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import website from "@/config/website"; |
| | | export default { |
| | | name: "logo", |
| | | data() { |
| | | return {}; |
| | | return { |
| | | title:"", |
| | | }; |
| | | }, |
| | | created() {}, |
| | | created() { |
| | | console.log(this.userInfo,"+++++++++") |
| | | if (this.userInfo.role_name.indexOf("考勤管理员")>-1){ |
| | | this.title = "保安员定点考勤系统" |
| | | }else { |
| | | this.title = website.indexTitle |
| | | } |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["website", "keyCollapse"]), |
| | | ...mapGetters(["userInfo","website", "keyCollapse"]), |
| | | }, |
| | | methods: {}, |
| | | }; |
| | |
| | | color: #fff; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | document.title = "保安员定点考勤系统" |
| | | this.$store.commit("SET_WEBTITLE", '保安员定点考勤系统') |
| | | this.handleLogin(); |
| | | this.getTime(); |
| | | geterweima(9).then((res) => { |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | document.title = "保安员分级统筹管理系统" |
| | | this.$store.commit("SET_WEBTITLE", '保安员分级统筹管理系统') |
| | | |
| | | this.handleLogin(); |
| | | this.getTime(); |
| | | geterweima(9).then((res) => { |
| | |
| | | }, |
| | | mounted() {}, |
| | | computed: { |
| | | ...mapGetters(["tagWel"]), |
| | | ...mapGetters(["tagWel","userInfo"]), |
| | | }, |
| | | props: [], |
| | | methods: { |
| | |
| | | this.$store |
| | | .dispatch("LoginByUsername", this.loginForm) |
| | | .then(() => { |
| | | this.$router.push({ path: this.tagWel.value }); |
| | | |
| | | console.log(this.userInfo) |
| | | let path = this.tagWel.value |
| | | if (this.userInfo.role_name.indexOf("考勤管理员")>-1){ |
| | | path = "check/record" |
| | | } |
| | | this.$router.push({ path: path }); |
| | | loading.close(); |
| | | }) |
| | | .catch(() => { |
| | |
| | | setTitle: (title) => { |
| | | // console.log(title,'luyou') |
| | | const defaultTitle = this.$vue.$t('title'); |
| | | title = title ? `${title}-${defaultTitle}` : defaultTitle; |
| | | |
| | | title = title ? `${title}-${ this.$store.getters.webTitle}` : this.$store.getters.webTitle; |
| | | document.title = title; |
| | | }, |
| | | closeTag: (value) => { |
| | |
| | | component: () => |
| | | import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') |
| | | }] |
| | | }, { |
| | | }, |
| | | { |
| | | path: '/check/record', |
| | | component: Layout, |
| | | redirect: '/check/record', |
| | | children: [{ |
| | | path: '/check/record', |
| | | name: '考勤记录', |
| | | meta: { |
| | | i18n: 'record' |
| | | }, |
| | | component: () => |
| | | import( /* webpackChunkName: "views" */ '@/views/check/record.vue') |
| | | }] |
| | | } |
| | | , { |
| | | path: '/test', |
| | | component: Layout, |
| | | redirect: '/test/index', |
| | |
| | | //面 |
| | | polygons: state => state.control.polygons, |
| | | |
| | | webTitle: state => state.common.webTitle, |
| | | |
| | | }; |
| | | export default getters; |
| | |
| | | themeName: getStore({ name: 'themeName' }) || 'theme-bule', |
| | | lockPasswd: getStore({ name: 'lockPasswd' }) || '', |
| | | website: website, |
| | | webTitle: '' |
| | | }, |
| | | mutations: { |
| | | SET_WEBTITLE: (state, webTitle) => { |
| | | state.webTitle = webTitle |
| | | }, |
| | | SET_LANGUAGE: (state, language) => { |
| | | state.language = language |
| | | setStore({ |
| New file |
| | |
| | | <template> |
| | | <basic-container :class="[ |
| | | 'securityUnit', |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '' |
| | | ]"> |
| | | <avue-crud class="tablesss" :option="option" v-model="form" :data="data" :page.sync="page" ref="crud" :permission="permissionList" |
| | | :search.sync="questionBankSearch" @on-load="onLoad" :table-loading="loading" @row-save="rowSave" |
| | | @search-change="searchChange" @search-reset="searchReset" @row-update="rowUpdate" @row-del="rowDel" :before-open="beforeOpen" |
| | | @selection-change="selectionChange" @refresh-change="refreshChange"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" size="small" plain icon="el-icon-delete" v-if="permission.clock_delete" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" v-if="permission.clock_export" |
| | | @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | add, |
| | | update, |
| | | remove, |
| | | getDetail |
| | | } from "@/api/check/checkRecord"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getToken } from "@/util/auth"; |
| | | import Qs from "qs"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | loading: true, |
| | | selectionList: [], |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize |
| | | }, |
| | | form:{}, |
| | | query: {}, |
| | | questionBankSearch: {}, |
| | | data: [], |
| | | option: { |
| | | index: true, |
| | | tip: false, |
| | | viewBtn: true, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: 583, |
| | | menuWidth: 280, |
| | | border: true, |
| | | align: "center", |
| | | selection: true, |
| | | header:true, |
| | | addBtn:false, |
| | | menu:false, |
| | | column: [ |
| | | { |
| | | label: "打卡时间", |
| | | prop: "checkTime", |
| | | search:true, |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | span: 24, |
| | | hide:true, |
| | | }, |
| | | { |
| | | label: "打卡时间", |
| | | prop: "checkTime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd hh:mm:ss", |
| | | valueFormat: "yyyy-MM-dd hh:mm:ss", |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "人员", |
| | | prop: "userName", |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "点位", |
| | | prop: "postName", |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "打卡距离(m)", |
| | | prop: "mile", |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "图片", |
| | | prop: "urls", |
| | | type: "img", |
| | | dataType: 'string', |
| | | // listType: "picture-img", |
| | | span: 24, |
| | | }, |
| | | |
| | | ], |
| | | ...this.$store.state.control.clearOtherBut |
| | | }, |
| | | |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.postFiling_add, true), |
| | | viewBtn: this.vaildData(this.permission.postFiling_view, true), |
| | | delBtn: this.vaildData(this.permission.postFiling_delete, true), |
| | | editBtn: this.vaildData(this.permission.postFiling_edit, true) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | }, |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getDetail({id:this.form.id}).then(res => { |
| | | this.form = res.data.data; |
| | | this.form['address'] = [this.form.lon,this.form.lat,this.form.position] |
| | | |
| | | }); |
| | | } |
| | | done(); |
| | | }, |
| | | |
| | | sizeChange(val) { |
| | | this.page1.currentPage = 1; |
| | | this.page1.pageSize = val; |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | currentChange(val) { |
| | | this.page1.currentPage = val; |
| | | // this.getData(); |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | rowSave(form, done, loading) { |
| | | |
| | | add(form).then(res => { |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: "操作成功", |
| | | type: "success" |
| | | }); |
| | | this.refreshChange(); |
| | | done(); |
| | | } else { |
| | | this.$message({ |
| | | message: "操作失败", |
| | | type: "warning" |
| | | }); |
| | | done(); |
| | | } |
| | | }); |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm( |
| | | "确定删除当前合同信息数据?", |
| | | { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | } |
| | | ) |
| | | .then(() => { |
| | | console.log(row); |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | }, |
| | | handleDelete() { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | | } |
| | | this.$confirm("确定批量将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids).then(res => { |
| | | this.refreshChange(); |
| | | }); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | this.$refs.crudrec.toggleSelection(); |
| | | }) |
| | | .catch(res => { }); |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | //保安员证信息导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出考勤打卡信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | | if (releaseTimeRange) { |
| | | this.questionBankSearch["beginTime"] = releaseTimeRange[0]; |
| | | this.questionBankSearch["endTime"] = releaseTimeRange[1]; |
| | | } |
| | | var data = { |
| | | clockType: this.questionBankSearch.clockType, |
| | | attendanceType: this.questionBankSearch.attendanceType, |
| | | realName: this.questionBankSearch.realName, |
| | | beginTime: this.questionBankSearch.beginTime, |
| | | endTime: this.questionBankSearch.endTime |
| | | }; |
| | | //导出 |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | //如果是保安公司管理员 |
| | | data["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open( |
| | | `/api/attendance/export-Attendance?${this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params = this.questionBankSearch; |
| | | |
| | | const { releaseTimeRange } = this.query; |
| | | let values = { |
| | | ...params |
| | | }; |
| | | // if (releaseTimeRange) { |
| | | // values = { |
| | | // ...params, |
| | | // beginTime: releaseTimeRange[0], |
| | | // endTime: releaseTimeRange[1], |
| | | // ...this.query, |
| | | // }; |
| | | // values.releaseTimeRange = null; |
| | | // } |
| | | this.loading = true; |
| | | //固定岗 |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(values, this.query) |
| | | ).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | |
| | | // this.data = this.tableData |
| | | |
| | | |
| | | |
| | | window.localStorage.setItem("danweidataS", JSON.stringify(this.data)); |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .securityUnit { |
| | | width: 100%; |
| | | height: 100%; |
| | | // border: 1px solid #000; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | // .el-card__body { |
| | | // padding-bottom: 5px !important; |
| | | // } |
| | | // .avue-crud__tip, |
| | | // .el-tag, |
| | | // .el-tag--light { |
| | | // padding: 0 !important; |
| | | // } |
| | | |
| | | .lod { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba($color: #000000, $alpha: 0.5); |
| | | padding: 100px 0 0 0; |
| | | z-index: 1500 !important; |
| | | display: flex; |
| | | // align-items: center; |
| | | justify-content: center; |
| | | |
| | | .trees { |
| | | z-index: 501 !important; |
| | | position: absolute; |
| | | width: 15%; |
| | | top: 100px; |
| | | left: 0; |
| | | // display: none; |
| | | } |
| | | |
| | | .lod-in { |
| | | width: 70%; |
| | | height: auto; |
| | | background-color: transparent; |
| | | |
| | | // padding: 10px 0 0 0; |
| | | } |
| | | |
| | | .el-collapse-item { |
| | | padding-top: 15px !important; |
| | | } |
| | | } |
| | | |
| | | .el-collapse { |
| | | border-top: 1px solid transparent !important; |
| | | } |
| | | |
| | | .rowClickSelf { |
| | | &:hover { |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | // // d[key].securitynumber = "赣洪202100009"; |
| | | // } |
| | | that.data = data.records; |
| | | |
| | | console.log(this.data,"++++++++++") |
| | | |
| | | that.loading = false; |
| | | that.selectionClear(); |
| | | that.$store.commit("setWindowSizeHeightAdd"); |
| | |
| | | <template> |
| | | <div id="homeL"> |
| | | <div class="homeL-up"> |
| | | <span class="h1">保安服务企业管理平台</span> |
| | | <span class="h2">Security service enterprise management platform</span> |
| | | <span class="h1">{{titleCh}}</span> |
| | | <span class="h2">{{ titleEn }}</span> |
| | | <img class="img" :src="img" v-if="isImg"/> |
| | | </div> |
| | | <div class="homeL-bar"> |
| | |
| | | usedata: {}, |
| | | img:"", |
| | | isImg:false, |
| | | titleCh:"", |
| | | titleEn:"", |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | ...mapGetters(["userInfo"]), |
| | | }, |
| | | created(){ |
| | | |
| | | if (this.userInfo.role_name.indexOf("考勤管理员")>-1){ |
| | | this.titleCh = "保安员定点考勤系统" |
| | | this.titleEn = "Security Officer Designated Attendance System" |
| | | }else { |
| | | this.titleCh = "保安员分级统筹管理系统" |
| | | this.titleEn="Security Officer Grading and Coordination Management System" |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //获取二维码图片 |
| | | if(this.userInfo.role_name == "公安管理员" || |
| | | this.userInfo.role_name == "administrator" || |
| | | if(this.userInfo.role_name == "公安管理员" || |
| | | this.userInfo.role_name == "administrator" || |
| | | this.userInfo.role_name == "admin" || |
| | | this.userInfo.role_name == "民警"){ |
| | | this.isImg = true; |
| | |
| | | // } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |