Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_enterprises
9 files modified
5 files added
| | |
| | | font-weight: 200; |
| | | } |
| | | |
| | | .img-title { |
| | | width: 100%; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .table-center-right { |
| | | width: 152px; |
| | | height: 205px; |
| | |
| | | height: 100%; |
| | | display: inline-block; |
| | | vertical-align: middle; |
| | | border-radius: 50px; |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | .security-info { |
| | |
| | | .my-picture { |
| | | width: 150px; |
| | | /* height: 200px; */ |
| | | } |
| | | |
| | | .avatar { |
| | | width: 100%; |
| | | } |
| | | |
| | | .qrCode { |
| | | margin-top: 0px; |
| | | margin-left: 25px; |
| | | } |
| | | </style> |
| | | <script src="https://unpkg.com/axios/dist/axios.min.js"></script> |
| | |
| | | axios.get('http://223.82.109.183:2080/api/apply/userDetail?id=' + id).then(function(res) { |
| | | |
| | | var data = res.data.data; |
| | | var img = data.avatar ? `<div class="avatar"><img src="${data.avatar}"></div>` : `<div class="img-title">暂无照片</div>` |
| | | axios.get('http://223.82.109.183:2080/api/qrCode/getQrCodeBase64?securityNumber=' + data.securitynumber).then(function(res1) { |
| | | console.log(res1.data, 333); |
| | | var qrCode = res1.data ? `<div class="qrCode"><img src="${res1.data}"></div>` : `<div"></div>` |
| | | var str = `<div id="table1"></div> |
| | | <div id="table"> |
| | | <div class="table-top"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="table-center-right"> |
| | | <img src="${data.avatar}"> |
| | | ${img} |
| | | ${qrCode} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div>` |
| | | |
| | | // <img src="${data.avatar}"> |
| | | var dom = $('#print'); |
| | | dom.empty(); |
| | | dom.append(str); |
| | | }) |
| | | |
| | | }) |
| | | |
| | | function preview(oper) { |
| | | if (oper < 10) { |
| | | bdhtml = window.document.body.innerHTML; |
| | |
| | | /** |
| | | * 全局配置文件 |
| | | */ |
| | | |
| | | var fistPage = { |
| | | label: "首页", |
| | | value: "/wel/index", |
| | | params: {}, |
| | | query: {}, |
| | | meta: { |
| | | i18n: 'dashboard' |
| | | }, |
| | | group: [], |
| | | close: false |
| | | } |
| | | |
| | | export default { |
| | | title: "saber", |
| | | logo: "S", |
| | |
| | | statusWhiteList: [], |
| | | //配置首页不可关闭 |
| | | isFirstPage: false, |
| | | fistPage: { |
| | | label: "首页", |
| | | value: "/wel/index", |
| | | params: {}, |
| | | query: {}, |
| | | meta: { |
| | | i18n: 'dashboard' |
| | | }, |
| | | group: [], |
| | | close: false |
| | | }, |
| | | fistPage: fistPage, |
| | | //首页跳转数据 |
| | | homePage: [ |
| | | { |
| | | userName: 'administrator', |
| | | list: [ |
| | | { |
| | | label: '保安员管理', |
| | | value: '/securityGuard/index', |
| | | imgs: 'url(/img/glba.jpg)' |
| | | }, { |
| | | label: '通知公告', |
| | | value: '/desk/index', |
| | | imgs: 'url(/img/gltz.jpg)' |
| | | }, { |
| | | label: '公司动态', |
| | | value: '/desk/notification', |
| | | imgs: 'url(/img/glgj.jpg)' |
| | | }, { |
| | | label: '单位信息', |
| | | value: '/securityUnit/localCompany', |
| | | imgs: 'url(/img/gldw.jpg)' |
| | | }, { |
| | | label: '统计分析', |
| | | value: '/securityAnalysis/index', |
| | | imgs: 'url(/img/glgz.jpg)' |
| | | },] |
| | | }, { |
| | | userName: '保安', |
| | | list: [ |
| | | { |
| | | label: '保安员信息', |
| | | value: '/securityMan/index', |
| | | imgs: 'url(/img/yijianbaoj.jpg)' |
| | | }, { |
| | | label: '派遣记录', |
| | | value: '/dispatchChildoperableSee/index', |
| | | imgs: 'url(/img/fangyi.jpg)' |
| | | }, { |
| | | label: '从业记录', |
| | | value: '/job/index', |
| | | imgs: 'url(/img/anjian.jpg)' |
| | | }, { |
| | | label: '工作汇报', |
| | | value: '/workreport/workreport', |
| | | imgs: 'url(/img/tiwen.jpg)' |
| | | }, { |
| | | label: '表现记录', |
| | | value: '/expression/index', |
| | | imgs: 'url(/img/tongji.jpg)' |
| | | },] |
| | | } |
| | | ], |
| | | |
| | | |
| | | //配置菜单的属性 |
| | | menu: { |
| | | iconDefault: 'iconfont icon-caidan', |
| | |
| | | update1, |
| | | remove1, |
| | | getDispatcherUnitByDeptId, |
| | | overDispatcher |
| | | overDispatcher, |
| | | } from "@/api/dispatch/dispatch"; |
| | | import { update,getListByDeptId } from "@/api/system/user"; |
| | | import { mapState } from "vuex"; |
| | |
| | | }, |
| | | created() { |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | }else{ |
| | | const deptColumn = this.findObject(this.option1.column, "dispatcherUnitId"); |
| | | const deptColumn = this.findObject( |
| | | this.option1.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | deptColumn.search = false; |
| | | } |
| | | }, |
| | |
| | | this.loading1 = true; |
| | | var values; |
| | | //默认查询已派遣的,派遣结束,未派遣的不显示 |
| | | params['dispatch'] = 0; |
| | | params["dispatch"] = 0; |
| | | const { releaseTimeRange } = this.query1; |
| | | if (releaseTimeRange) { |
| | | values = { |
| | |
| | | <div class="dispatch"> |
| | | <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> |
| | | <span v-if="typeTABS.prop === 'tab1'"> |
| | | <avue-form ref="form" v-model="obj0" :option="option0" @submit="submit"> </avue-form> |
| | | <avue-form ref="form" v-model="obj0" :option="option0" @submit="submit"> |
| | | </avue-form> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab2'"> |
| | | <avue-crud |
| | |
| | | updateExperience, |
| | | getUserDetails, |
| | | experienceRemove, |
| | | getExperienceList |
| | | getExperienceList, |
| | | } from "@/api/experience/experience"; |
| | | |
| | | import { |
| | |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | |
| | | }, |
| | | methods: { |
| | | Print() { |
| | |
| | | this.loading2 = false; |
| | | }); |
| | | }, |
| | | |
| | | |
| | | rowSave2(form, done, loading) { |
| | | form.securityid = this.id; |
| | |
| | | }, |
| | | //信息修改 |
| | | submit(){ |
| | | |
| | | updateUserInfo(this.obj0).then(()=>{ |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.typeTABS = this.optionTABS.column[0]; |
| | |
| | | console.log(this.userInfo,456); |
| | | this.id = this.userInfo.Id; |
| | | var roleName = this.userInfo.role_name; |
| | | debugger; |
| | | // debugger; |
| | | //如果保安,才能看保安证 |
| | | if(roleName=="保安"){ |
| | | this.isSecurity= true; |
| | |
| | | label: "保安员证", |
| | | prop: "tab4", |
| | | }, |
| | | ] |
| | | ]; |
| | | } |
| | | getUserDetails(this.id).then((res)=>{ |
| | | console.log(res.data.data,123); |
| | | var data = res.data.data; |
| | | this.obj0 = data; |
| | | }) |
| | | |
| | | }); |
| | | |
| | | var flag = false, |
| | | i = 0, |
| | |
| | | if (roleAlias == "保安公司管理员") { |
| | | that.option0.submitBtn = true; |
| | | for (var k in d) { |
| | | if (d[k].label != "企业类型") { |
| | | // if (d[k].label != "企业类型") { |
| | | d[k].disabled = false; |
| | | } |
| | | // } |
| | | } |
| | | } else { |
| | | that.option0.submitBtn = false; |
| | |
| | | props: ["deptid"], |
| | | data() { |
| | | var deptid = this.deptid; |
| | | |
| | | return { |
| | | do: 0, |
| | | form: { cardid: "" }, |
| | |
| | | res: "data", |
| | | }, |
| | | tip: "请上传 .xls,.xlsx 标准格式文件", |
| | | action: "/api/social/import-user", |
| | | action: "/api/social/import-user?deptid=" + deptid, |
| | | }, |
| | | // { |
| | | // label: "数据覆盖", |
| | |
| | | <span class="h2">Security service enterprise management platform</span> |
| | | </div> |
| | | <div class="homeL-bar"> |
| | | <div class="outS" @click="down1"> |
| | | <div |
| | | class="outS" |
| | | v-for="(item, index) in usedata.list" |
| | | :key="index" |
| | | @click="down(item.value)" |
| | | > |
| | | <div |
| | | class="down1" |
| | | :style="{ backgroundImage: item.imgs, color: 'red' }" |
| | | > |
| | | <span>{{ item.label }}</span> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="outS" @click="down1"> |
| | | <div class="down1"><span>保安员管理</span></div> |
| | | </div> |
| | | <div class="outS" @click="down2"> |
| | |
| | | </div> |
| | | <div class="outS" @click="down5"> |
| | | <div class="down5"><span>通知公告</span></div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import website from "@/config/website"; |
| | | import { mapGetters } from "vuex"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | a: 1, |
| | | usedata: {}, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | var data = website.homePage; |
| | | console.log(data); |
| | | console.log(this.userInfo); |
| | | data.forEach((item) => { |
| | | if (item.userName == this.userInfo.role_name) { |
| | | this.usedata = item; |
| | | console.log(this.usedata); |
| | | } |
| | | }); |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | }, |
| | | methods: { |
| | | down1() { |
| | | this.$router.push({ path: "/securityGuard/index" }); |
| | | }, |
| | | down2() { |
| | | this.$router.push({ path: "/securityUnit/index" }); |
| | | }, |
| | | down3() { |
| | | this.$router.push({ path: "/dispatch/dispatch" }); |
| | | }, |
| | | down4() { |
| | | this.$router.push({ path: "/traincompany/index" }); |
| | | }, |
| | | down5() { |
| | | this.$router.push({ path: "/desk/index" }); |
| | | down(path) { |
| | | this.$router.push({ path: path }); |
| | | }, |
| | | }, |
| | | mouted() {}, |
| | |
| | | // border: 1px solid rgb(180, 22, 75); |
| | | } |
| | | } |
| | | .down1 { |
| | | background-image: url("../../../public/img/yijianbaoj.jpg"); |
| | | } |
| | | .down2 { |
| | | background-image: url("../../../public/img/fangyi.jpg"); |
| | | } |
| | | .down3 { |
| | | background-image: url("../../../public/img/anjian.jpg"); |
| | | } |
| | | .down4 { |
| | | background-image: url("../../../public/img/tiwen.jpg"); |
| | | } |
| | | .down5 { |
| | | background-image: url("../../../public/img/tongji.jpg"); |
| | | } |
| | | // .down1 { |
| | | // background-image: url("../../../public/img/yijianbaoj.jpg"); |
| | | // } |
| | | // .down2 { |
| | | // background-image: url("../../../public/img/fangyi.jpg"); |
| | | // } |
| | | // .down3 { |
| | | // background-image: url("../../../public/img/anjian.jpg"); |
| | | // } |
| | | // .down4 { |
| | | // background-image: url("../../../public/img/tiwen.jpg"); |
| | | // } |
| | | // .down5 { |
| | | // background-image: url("../../../public/img/tongji.jpg"); |
| | | // } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | label: "汇报类别", |
| | | prop: "category", |
| | | type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | cascaderItem: ["receivedIds"], |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | this.selectionClear(); |
| | | }); |
| | | }); |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | } else if (this.userInfo.role_name == "公安管理员") { |
| | | const column = that.findObject(that.option.column, "category"); |
| | | var code1 = { code: "workReportCategory" }; |
| | | getDictionaryBiz(code1).then((res) => { |
| | |
| | | this.selectionClear(); |
| | | }); |
| | | }); |
| | | } else if (this.userInfo.role_name == "administrator") { |
| | | getListPage(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | }, |
| | | }; |