This commit is contained in:
parent
4cac837af5
commit
987d9a5be6
|
|
@ -4,7 +4,8 @@ import config from '@/config'
|
|||
import { getToken } from '@/utils/auth.js'
|
||||
// import store from '@/store';
|
||||
|
||||
const baseUrl = config.loginBaseUrl
|
||||
// const baseUrl = config.loginBaseUrl
|
||||
const baseUrl = config.lpLoginUrl
|
||||
console.log('baseUrl-请求', baseUrl)
|
||||
|
||||
const http = new Request({
|
||||
|
|
|
|||
100
config.js
100
config.js
|
|
@ -39,56 +39,62 @@
|
|||
// }
|
||||
// 测试环境
|
||||
module.exports = {
|
||||
// baseUrl:'/prod-api',
|
||||
// http://192.168.0.14:19999
|
||||
loginBaseUrl: 'http://112.29.103.165:1616',
|
||||
// loginBaseUrl: 'http://192.168.0.14:27018',
|
||||
// loginBaseUrl:'http://192.168.0.14:19999',
|
||||
// baseUrl:'http://192.168.0.14:2900',
|
||||
baseUrl: 'http://192.168.0.14:19999',
|
||||
// loginUrl: 'http://112.29.103.165:1616',
|
||||
login: 'http://192.168.0.14:19200',
|
||||
// 图片展示基础地址
|
||||
fileUrl: 'http://192.168.0.14:19999/exam-file/',
|
||||
// 上传文件地址
|
||||
uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64',
|
||||
bmwUrl: 'http://192.168.0.14:19999/exam-bmw',
|
||||
// 体检-基础路径
|
||||
tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager',
|
||||
// tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager',
|
||||
tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/',
|
||||
// baseUrl:'/prod-api',
|
||||
// http://192.168.0.14:19999
|
||||
// loginBaseUrl: 'http://112.29.103.165:1616',
|
||||
// // loginBaseUrl: 'http://192.168.0.14:27018',
|
||||
// // loginBaseUrl:'http://192.168.0.14:19999',
|
||||
// // baseUrl:'http://192.168.0.14:2900',
|
||||
// baseUrl: 'http://192.168.0.14:19999',
|
||||
// // loginUrl: 'http://112.29.103.165:1616',
|
||||
// login: 'http://192.168.0.14:19200',
|
||||
// // 图片展示基础地址
|
||||
// fileUrl: 'http://192.168.0.14:19999/exam-file/',
|
||||
// // 上传文件地址
|
||||
// uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64',
|
||||
// bmwUrl: 'http://192.168.0.14:19999/exam-bmw',
|
||||
// // 体检-基础路径
|
||||
// tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager',
|
||||
// // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager',
|
||||
// tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/',
|
||||
|
||||
|
||||
//兰坪实名制移动端--登录
|
||||
lpLoginUrl:'http://192.168.0.15:9200/',
|
||||
|
||||
//兰坪实名制移动端--移动
|
||||
lpAppUrl: 'http://192.168.0.50:1913/app',
|
||||
//兰坪实名制移动端--登录
|
||||
lpLoginUrl: 'http://192.168.0.50:9200/',
|
||||
//兰坪实名制移动端--后台
|
||||
lpBmwUrl: 'http://192.168.0.50:1912',
|
||||
|
||||
|
||||
//实名制移动端-登录接口
|
||||
realLoginUrl: 'http://192.168.0.14:1616/auth/',
|
||||
realBaseUrl: 'http://192.168.0.14:1910/',
|
||||
//实名制移动端-移动
|
||||
realAppUrl: 'http://192.168.0.14:1913/app',
|
||||
//实名制移动端-安培
|
||||
realExamUrl: 'http://192.168.0.14:1616/system',
|
||||
//实名制移动端-文件
|
||||
realFileUrl: 'http://192.168.0.14:1909/file/',
|
||||
//实名制移动端
|
||||
realBmwUrl: 'http://192.168.0.14:1616/bmw',
|
||||
//实名制移动端 -- 新
|
||||
realNewBmwUrl: 'http://192.168.0.14:1616',
|
||||
loginUrl: 'http://192.168.0.14:27018',
|
||||
//实名制移动端 -- 新
|
||||
realNewYnUrl: 'http://192.168.0.14:1918',
|
||||
realIdCardUrl: 'http://192.168.0.14:26699',
|
||||
|
||||
//作业计划 -- 新
|
||||
workPlanNewYnUrl: 'http://192.168.0.14:19191',
|
||||
// //实名制移动端-登录接口
|
||||
// realLoginUrl: 'http://192.168.0.14:1616/auth/',
|
||||
// realBaseUrl: 'http://192.168.0.14:1910/',
|
||||
// //实名制移动端-移动
|
||||
// realAppUrl: 'http://192.168.0.14:1913/app',
|
||||
// //实名制移动端-安培
|
||||
// realExamUrl: 'http://192.168.0.14:1616/system',
|
||||
// //实名制移动端-文件
|
||||
// realFileUrl: 'http://192.168.0.14:1909/file/',
|
||||
// //实名制移动端
|
||||
// realBmwUrl: 'http://192.168.0.14:1616/bmw',
|
||||
// //实名制移动端 -- 新
|
||||
// realNewBmwUrl: 'http://192.168.0.14:1616',
|
||||
// loginUrl: 'http://192.168.0.14:27018',
|
||||
// //实名制移动端 -- 新
|
||||
// realNewYnUrl: 'http://192.168.0.14:1918',
|
||||
// realIdCardUrl: 'http://192.168.0.14:26699',
|
||||
|
||||
// 应用信息
|
||||
appInfo: {
|
||||
// 应用名称
|
||||
name: '作业管控智慧平台',
|
||||
// 应用版本
|
||||
version: '1.1.0'
|
||||
}
|
||||
}
|
||||
// //作业计划 -- 新
|
||||
// workPlanNewYnUrl: 'http://192.168.0.14:19191',
|
||||
|
||||
// 应用信息
|
||||
appInfo: {
|
||||
// 应用名称
|
||||
name: '作业管控智慧平台',
|
||||
// 应用版本
|
||||
version: '1.1.0'
|
||||
}
|
||||
}
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
}
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"quickapp" : {},
|
||||
|
|
@ -168,19 +168,19 @@
|
|||
}
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true,
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true,
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
},
|
||||
"dynamicLib" : {
|
||||
"editorLib" : {
|
||||
|
|
@ -191,13 +191,13 @@
|
|||
"mp-toutiao" : {
|
||||
"usingComponents" : true,
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"mp-jd" : {
|
||||
"usingComponents" : true,
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"h5" : {
|
||||
|
|
@ -217,37 +217,47 @@
|
|||
"timeout" : 20000
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"vueVersion" : "2",
|
||||
"mp-kuaishou" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"mp-lark" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"mp-qq" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"quickapp-webview-huawei" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"quickapp-webview-union" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"version" : "2",
|
||||
"enable" : true
|
||||
"enable" : false
|
||||
},
|
||||
"app-harmony" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
}
|
||||
},
|
||||
"mp-harmony" : {
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -611,6 +611,14 @@
|
|||
}
|
||||
},
|
||||
|
||||
{
|
||||
//欠薪维权申诉-首页
|
||||
"path": "pages/realName/workbench/safeguarding/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
//人员暂退-暂退人员选择
|
||||
"path": "pages/realName/workbench/outPerson/outList",
|
||||
|
|
|
|||
|
|
@ -240,7 +240,6 @@ export default {
|
|||
}
|
||||
}
|
||||
return {
|
||||
// globalConfig: getApp().globalData.config,
|
||||
selectTab: 1,
|
||||
loginForm: {
|
||||
phone: '14769014289', // 18955734761 18700000001 17681010134 15955147005 15656751631
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -497,7 +497,7 @@ export default {
|
|||
console.log(this.queryParams)
|
||||
this.isLoading = true
|
||||
uni.request({
|
||||
url: config.realBmwUrl + '/homeSubPage/getAppWorkerMsg',
|
||||
url: config.lpBmwUrl + '/bmw/homeSubPage/getAppWorkerMsg',
|
||||
method: 'POST',
|
||||
data: JSON.stringify(this.queryParams),
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ export default {
|
|||
console.log('this.queryParams参数', this.queryParams)
|
||||
this.isLoading = true
|
||||
uni.request({
|
||||
url: config.realBmwUrl + '/homeSubPage/getAppBuildPro',
|
||||
url: config.lpBmwUrl + '/bmw/homeSubPage/getAppBuildPro',
|
||||
method: 'POST',
|
||||
data: JSON.stringify(this.queryParams),
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ export default {
|
|||
console.log(this.queryParams)
|
||||
this.isLoading=true
|
||||
uni.request({
|
||||
url: config.realBmwUrl + '/homeSubPage/getAppActiveSub',
|
||||
url: config.lpBmwUrl + '/bmw/homeSubPage/getAppActiveSub',
|
||||
method: 'POST',
|
||||
data: JSON.stringify(this.queryParams),
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ export default {
|
|||
console.log('this.queryParams参数', this.queryParams)
|
||||
this.isLoading=true
|
||||
uni.request({
|
||||
url: config.realBmwUrl + '/homeSubPage/getAppActiveTeam',
|
||||
url: config.lpBmwUrl + '/bmw/homeSubPage/getAppActiveTeam',
|
||||
method: 'POST',
|
||||
data: JSON.stringify(this.queryParams),
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ export default {
|
|||
subId:-1
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
url: config.lpAppUrl + '/offLine/getPro',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -230,7 +230,7 @@ export default {
|
|||
proId:-1
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getSubcontractor',
|
||||
url: config.lpAppUrl + '/offLine/getSubcontractor',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -272,7 +272,7 @@ export default {
|
|||
console.log(param)
|
||||
this.listData=[]
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/contract/contractSignQueryList',
|
||||
url: config.lpAppUrl+'/contract/contractSignQueryList',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -379,7 +379,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
await uni.request({
|
||||
url: config.realAppUrl+'/contract/updateSign',
|
||||
url: config.lpAppUrl+'/contract/updateSign',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -1,459 +1,527 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-navbar title="工作台" placeholder bgColor="#00337A" @leftClick="leftClick" leftIconColor="#fff" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }">
|
||||
<view class="u-nav-slot" slot="left">
|
||||
<u-icon name="grid" size="24" color="#FFF" v-if="type.indexOf('4')>-1"></u-icon>
|
||||
</view>
|
||||
</u-navbar>
|
||||
<view style="width: 100%;height: 84vh;">
|
||||
<scroll-view scroll-y="true">
|
||||
<view class="view-box">
|
||||
<view class="view-item" v-for="(item,index) in menuList" :key="index" @click="goModule(item.name)">
|
||||
<view><image class="img1" :src="`/static/realName/${item.css}.png`" style="width: 70rpx;height: 70rpx;" alt=""></view>
|
||||
<view style="font-size: 26rpx;">{{item.name}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 监督端 -->
|
||||
<!-- 作业计划与实名制管控情况 -->
|
||||
<!-- <view class="view-item" @click="goPlan" v-if="type.indexOf('4')>-1">
|
||||
<view class="page">
|
||||
<u-navbar title="工作台" placeholder bgColor="#00337A" @leftClick="leftClick" leftIconColor="#fff"
|
||||
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }">
|
||||
<view class="u-nav-slot" slot="left">
|
||||
<u-icon name="grid" size="24" color="#FFF" v-if="type.indexOf('4')>-1"></u-icon>
|
||||
</view>
|
||||
</u-navbar>
|
||||
<view style="width: 100%;height: 84vh;">
|
||||
<scroll-view scroll-y="true">
|
||||
<view class="view-box">
|
||||
<view class="view-item" v-for="(item,index) in menuList" :key="index" @click="goModule(item.name)">
|
||||
<view>
|
||||
<image class="img1" :src="`/static/realName/${item.css}.png`"
|
||||
style="width: 70rpx;height: 70rpx;" alt="">
|
||||
</view>
|
||||
<view style="font-size: 26rpx;">{{item.name}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 监督端 -->
|
||||
<!-- 作业计划与实名制管控情况 -->
|
||||
<!-- <view class="view-item" @click="goPlan" v-if="type.indexOf('4')>-1">
|
||||
<view><image class="img1" src="@/static/realName/attendance_statistics.png" style="width: 80rpx;height: 80rpx;" alt=""></view>
|
||||
<view style="font-size: 28rpx;">作业计划与实...</view>
|
||||
</view> -->
|
||||
<!-- 人员信息录入 -->
|
||||
<!-- <view class="view-item" @click="goPersonEnter" v-if="type.indexOf('4')>-1">
|
||||
<!-- 人员信息录入 -->
|
||||
<!-- <view class="view-item" @click="goPersonEnter" v-if="type.indexOf('4')>-1">
|
||||
<view><image class="img1" src="@/static/realName/base_person.png" style="width: 70rpx;height: 70rpx;" alt=""></view>
|
||||
<view style="font-size: 26rpx;">人员信息录入</view>
|
||||
</view> -->
|
||||
<!-- 人员资质库更新 -->
|
||||
<!-- <view class="view-item" @click="goUpdateFace" v-if="type.indexOf('4')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/update_face.png" style="width: 80rpx;height: 80rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 28rpx;">人员资质库更新</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- 人员资质检查 -->
|
||||
<!-- <view class="view-item" @click="goQualifications" v-if="type.indexOf('4')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/qualifications.png" style="width: 80rpx;height: 80rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 28rpx;">人员资质检查</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- 人员暂退 -->
|
||||
<!-- 人员资质库更新 -->
|
||||
<!-- <view class="view-item" @click="goUpdateFace" v-if="type.indexOf('4')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/update_face.png" style="width: 80rpx;height: 80rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 28rpx;">人员资质库更新</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- 人员资质检查 -->
|
||||
<!-- <view class="view-item" @click="goQualifications" v-if="type.indexOf('4')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/qualifications.png" style="width: 80rpx;height: 80rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 28rpx;">人员资质检查</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- 人员暂退 -->
|
||||
|
||||
<view class="view-item" @click="goOutPerson" v-if="type.indexOf('4')>-1">
|
||||
<view><image class="img1" src="@/static/realName/out_person.png" style="width: 80rpx;height: 80rpx;" alt=""></view>
|
||||
<view style="font-size: 28rpx;">我的组织</view>
|
||||
</view>
|
||||
|
||||
<view class="view-item" @click="getDailyPlanManagement" v-if="type.indexOf('4')>-1">
|
||||
<view><image class="img1" src="@/static/realName/attendance.png" style="width: 80rpx;height: 80rpx;" alt=""></view>
|
||||
<view style="font-size: 28rpx;">作业计划管理</view>
|
||||
</view>
|
||||
|
||||
<!-- 施工端 -->
|
||||
<!-- <view class="view-item" @click="goDayPlan" v-if="type.indexOf('3')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/day_plan.png" style="width: 70rpx;height: 70rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 26rpx;">准入信息查询</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="view-item" @click="goExam" v-if="type.indexOf('3')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/exam.png" style="width: 70rpx;height: 70rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 26rpx;">安全教育培训</view>-->
|
||||
<!-- </view>-->
|
||||
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 弹窗 -->
|
||||
<u-popup :show="showPopup" mode="center" @close="closePopup">
|
||||
<view style="width:500rpx;height: auto%;position: relative;background-color: #fff;">
|
||||
<view style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;">
|
||||
<view style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;">选择工程</view>
|
||||
<u-icon style="width: 10%;" name="close" color="#000" size="24" @click="closePopup"></u-icon>
|
||||
</view>
|
||||
<scroll-view style="width: 100%;height: 50vh;background-color: #fff;" scroll-y="true">
|
||||
<view v-for="(item,index) in proList" :key="index" style="padding: 20rpx;" v-if="item.isActive==1" @click="chosenPro(item)">{{item.abbreviation}}</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
<!-- 弹窗 -->
|
||||
<u-popup :show="showAccessPopup" mode="center" @close="closeAccessPopup">
|
||||
<view style="width:600rpx;height: auto%;position: relative;background-color: #fff;">
|
||||
<view style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;">
|
||||
<view style="width: 10%;height: 70rpx;"></view>
|
||||
<view style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;text-align: center;font-size: 30rpx;">个人信息查询</view>
|
||||
<u-icon style="width: 10%;" name="close" color="#000" size="22" @click="closeAccessPopup"></u-icon>
|
||||
</view>
|
||||
<scroll-view style="width: 100%;height: 32vh;background-color: #fff;" scroll-y="true">
|
||||
<view class="card-item" v-if="accessData.isFace==1">
|
||||
<view class="label">人脸照片</view>
|
||||
<view class="btn">已采集</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">人脸照片</view>
|
||||
<view class="btn">未采集</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isSign==1">
|
||||
<view class="label">电子签名</view>
|
||||
<view class="btn">已采集</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">电子签名</view>
|
||||
<view class="btn">未采集</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isContract==1">
|
||||
<view class="label">合同见证/电子合同</view>
|
||||
<view class="btn">已上传</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">合同见证/电子合同</view>
|
||||
<view class="btn">未上传</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isWages==1">
|
||||
<view class="label">工资卡见证</view>
|
||||
<view class="btn">已上传</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">工资卡见证</view>
|
||||
<view class="btn">未上传</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isWorkScene==1">
|
||||
<view class="label">班组作业点</view>
|
||||
<view class="btn">已配置</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">班组作业点</view>
|
||||
<view class="btn">未配置</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
|
||||
|
||||
|
||||
<m-tabbar fixed fill :current="1" :tabbar="tabbar"></m-tabbar>
|
||||
</view>
|
||||
<view class="view-item" @click="goOutPerson" v-if="type.indexOf('4')>-1">
|
||||
<view>
|
||||
<image class="img1" src="@/static/realName/out_person.png"
|
||||
style="width: 80rpx;height: 80rpx;" alt="">
|
||||
</view>
|
||||
<view style="font-size: 28rpx;">我的组织</view>
|
||||
</view>
|
||||
|
||||
<view class="view-item" @click="goDailyPlanManagement" v-if="type.indexOf('4')>-1">
|
||||
<view>
|
||||
<image class="img1" src="@/static/realName/attendance.png"
|
||||
style="width: 80rpx;height: 80rpx;" alt="">
|
||||
</view>
|
||||
<view style="font-size: 28rpx;">作业计划管理</view>
|
||||
</view>
|
||||
|
||||
<view class="view-item" @click="goSafeguarding" v-if="type.indexOf('4')>-1">
|
||||
<view>
|
||||
<image class="img1" src="@/static/realName/safeguarding.png"
|
||||
style="width: 80rpx;height: 80rpx;" alt="">
|
||||
</view>
|
||||
<view style="font-size: 28rpx;">欠薪维权申诉</view>
|
||||
</view>
|
||||
|
||||
<!-- 人员信息录入 -->
|
||||
<view class="view-item" @click="goPersonEnter" v-if="type.indexOf('4')>-1">
|
||||
<view>
|
||||
<image class="img1" src="@/static/realName/base_person.png"
|
||||
style="width: 70rpx;height: 70rpx;" alt="">
|
||||
</view>
|
||||
<view style="font-size: 26rpx;">人员信息录入</view>
|
||||
</view>
|
||||
|
||||
<!-- 电子合同签署 -->
|
||||
<view class="view-item" @click="goElectronicContractSign" v-if="type.indexOf('4')>-1" >
|
||||
<view>
|
||||
<image class="img1" src="@/static/realName/exam.png" style="width: 70rpx;height: 70rpx;" alt=""></image>
|
||||
</view>
|
||||
<view style="font-size: 26rpx;">电子合同签署</view>
|
||||
</view>
|
||||
|
||||
<!-- 施工端 -->
|
||||
<!-- <view class="view-item" @click="goDayPlan" v-if="type.indexOf('3')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/day_plan.png" style="width: 70rpx;height: 70rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 26rpx;">准入信息查询</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="view-item" @click="goExam" v-if="type.indexOf('3')>-1">-->
|
||||
<!-- <view><image class="img1" src="@/static/realName/exam.png" style="width: 70rpx;height: 70rpx;" alt=""></view>-->
|
||||
<!-- <view style="font-size: 26rpx;">安全教育培训</view>-->
|
||||
<!-- </view>-->
|
||||
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 弹窗 -->
|
||||
<u-popup :show="showPopup" mode="center" @close="closePopup">
|
||||
<view style="width:500rpx;height: auto%;position: relative;background-color: #fff;">
|
||||
<view
|
||||
style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;">
|
||||
<view style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;">
|
||||
选择工程</view>
|
||||
<u-icon style="width: 10%;" name="close" color="#000" size="24" @click="closePopup"></u-icon>
|
||||
</view>
|
||||
<scroll-view style="width: 100%;height: 50vh;background-color: #fff;" scroll-y="true">
|
||||
<view v-for="(item,index) in proList" :key="index" style="padding: 20rpx;" v-if="item.isActive==1"
|
||||
@click="chosenPro(item)">{{item.abbreviation}}</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
<!-- 弹窗 -->
|
||||
<u-popup :show="showAccessPopup" mode="center" @close="closeAccessPopup">
|
||||
<view style="width:600rpx;height: auto%;position: relative;background-color: #fff;">
|
||||
<view
|
||||
style="width: 100%;height: 70rpx;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;background-color: #fff;">
|
||||
<view style="width: 10%;height: 70rpx;"></view>
|
||||
<view
|
||||
style="width: 50%;height: 70rpx;line-height: 70rpx;font-weight: bold;margin-left: 40rpx;text-align: center;font-size: 30rpx;">
|
||||
个人信息查询</view>
|
||||
<u-icon style="width: 10%;" name="close" color="#000" size="22" @click="closeAccessPopup"></u-icon>
|
||||
</view>
|
||||
<scroll-view style="width: 100%;height: 32vh;background-color: #fff;" scroll-y="true">
|
||||
<view class="card-item" v-if="accessData.isFace==1">
|
||||
<view class="label">人脸照片</view>
|
||||
<view class="btn">已采集</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">人脸照片</view>
|
||||
<view class="btn">未采集</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isSign==1">
|
||||
<view class="label">电子签名</view>
|
||||
<view class="btn">已采集</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">电子签名</view>
|
||||
<view class="btn">未采集</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isContract==1">
|
||||
<view class="label">合同见证/电子合同</view>
|
||||
<view class="btn">已上传</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">合同见证/电子合同</view>
|
||||
<view class="btn">未上传</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isWages==1">
|
||||
<view class="label">工资卡见证</view>
|
||||
<view class="btn">已上传</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">工资卡见证</view>
|
||||
<view class="btn">未上传</view>
|
||||
</view>
|
||||
|
||||
<view class="card-item" v-if="accessData.isWorkScene==1">
|
||||
<view class="label">班组作业点</view>
|
||||
<view class="btn">已配置</view>
|
||||
</view>
|
||||
<view class="card-item-red" v-else>
|
||||
<view class="label">班组作业点</view>
|
||||
<view class="btn">未配置</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
|
||||
|
||||
|
||||
<m-tabbar fixed fill :current="1" :tabbar="tabbar"></m-tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import TabbarConfig from '../util/tabbar.js'
|
||||
import config from '@/config'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabbar: TabbarConfig,
|
||||
type:uni.getStorageSync('realNameUser').type,
|
||||
subId:uni.getStorageSync('realNameUser').subId,
|
||||
idNumber:uni.getStorageSync('realNameUser').idNumber,
|
||||
teamId:uni.getStorageSync('realNameUser').teamId,
|
||||
showPopup:false,
|
||||
showAccessPopup:false,
|
||||
accessData:{},
|
||||
proList:[],
|
||||
menuList:[],
|
||||
permissionList:uni.getStorageSync('realNamePermissions')
|
||||
// userName: uni.getStorageSync('userName'),
|
||||
// className: uni.getStorageSync('className'),
|
||||
// facePath: config.fileUrl + uni.getStorageSync('facePath'),
|
||||
// token: uni.getStorageSync('access_token')
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getPermission()
|
||||
if(this.type.indexOf("4")>-1){//监督端
|
||||
this.getPro()
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
if(this.type.indexOf("4")>-1){ //监督端
|
||||
let hasChosenPro=uni.getStorageSync('hasChosenPro')
|
||||
if(!hasChosenPro){
|
||||
this.showPopup=true
|
||||
}
|
||||
}
|
||||
if(this.type.indexOf("3")>-1){ //施工端
|
||||
let hasViewAccess=uni.getStorageSync('hasViewAccess')
|
||||
if(!hasViewAccess){
|
||||
this.getAccessData()
|
||||
this.showAccessPopup=true
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getPermission(){
|
||||
this.permissionList.forEach((item,index)=>{
|
||||
// console.log(item)
|
||||
if(item.type==3){
|
||||
this.menuList.push(item)
|
||||
}
|
||||
})
|
||||
console.log(this.menuList)
|
||||
},
|
||||
goModule(name){
|
||||
if(name=='合同见证'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/contractWitness/index`
|
||||
})
|
||||
}else if(name=='电子合同'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/electronicContract/contractTip`
|
||||
})
|
||||
}else if(name=='电子合同签署'){
|
||||
uni.navigateTo({
|
||||
import TabbarConfig from '../util/tabbar.js'
|
||||
import config from '@/config'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabbar: TabbarConfig,
|
||||
type: uni.getStorageSync('realNameUser').type,
|
||||
subId: uni.getStorageSync('realNameUser').subId,
|
||||
idNumber: uni.getStorageSync('realNameUser').idNumber,
|
||||
teamId: uni.getStorageSync('realNameUser').teamId,
|
||||
showPopup: false,
|
||||
showAccessPopup: false,
|
||||
accessData: {},
|
||||
proList: [],
|
||||
menuList: [],
|
||||
permissionList: uni.getStorageSync('realNamePermissions')
|
||||
// userName: uni.getStorageSync('userName'),
|
||||
// className: uni.getStorageSync('className'),
|
||||
// facePath: config.fileUrl + uni.getStorageSync('facePath'),
|
||||
// token: uni.getStorageSync('access_token')
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getPermission()
|
||||
if (this.type.indexOf("4") > -1) { //监督端
|
||||
this.getPro()
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
if (this.type.indexOf("4") > -1) { //监督端
|
||||
let hasChosenPro = uni.getStorageSync('hasChosenPro')
|
||||
if (!hasChosenPro) {
|
||||
this.showPopup = true
|
||||
}
|
||||
}
|
||||
if (this.type.indexOf("3") > -1) { //施工端
|
||||
let hasViewAccess = uni.getStorageSync('hasViewAccess')
|
||||
if (!hasViewAccess) {
|
||||
this.getAccessData()
|
||||
this.showAccessPopup = true
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getPermission() {
|
||||
this.permissionList.forEach((item, index) => {
|
||||
// console.log(item)
|
||||
if (item.type == 3) {
|
||||
this.menuList.push(item)
|
||||
}
|
||||
})
|
||||
console.log(this.menuList)
|
||||
},
|
||||
goModule(name) {
|
||||
if (name == '合同见证') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/contractWitness/index`
|
||||
})
|
||||
} else if (name == '电子合同') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/electronicContract/contractTip`
|
||||
})
|
||||
} else if (name == '电子合同签署') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/electronicContractSign/index`
|
||||
})
|
||||
} else if (name == '电子合同审核') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/electronicContractExam/index`
|
||||
})
|
||||
} else if (name == '人员库') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/peopleLibrary/index`
|
||||
})
|
||||
} else if (name == '欠薪维权申诉') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/safeguarding/index`
|
||||
})
|
||||
} else if (name == '工资卡见证') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/wageWitness/index`
|
||||
})
|
||||
} else if (name == '工资查看') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/wageRecord/index`
|
||||
})
|
||||
} else if (name == '出场申请') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/appearApply/index`
|
||||
})
|
||||
} else if (name == '出场审核') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/appearExam/index`
|
||||
})
|
||||
} else if (name == '人员转场') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/cutToPlace/index`
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//监督端
|
||||
//作业计划与实名制监控情况
|
||||
goPlan() {
|
||||
uni.navigateTo({ //作业计划
|
||||
url: `/pages/realName/workbench/workPlan/index`
|
||||
})
|
||||
},
|
||||
//人员信息录入
|
||||
goPersonEnter() {
|
||||
uni.navigateTo({ //人员录入
|
||||
url: `/pages/realName/workbench/personEnter/index`
|
||||
})
|
||||
},
|
||||
//人员资质库更新
|
||||
goUpdateFace() {
|
||||
uni.showToast({
|
||||
title: "人员资质库更新中...",
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
},
|
||||
//人员资质检查
|
||||
goQualifications() {
|
||||
uni.navigateTo({ //人员资质检查
|
||||
url: `/pages/realName/workbench/qualifications/index`
|
||||
})
|
||||
},
|
||||
|
||||
goOutPerson() {
|
||||
uni.navigateTo({ //人员资质检查
|
||||
url: `/pages/realName/workbench/outPerson/index`
|
||||
})
|
||||
},
|
||||
|
||||
goDailyPlanManagement() {
|
||||
uni.navigateTo({ //日计划管理
|
||||
url: `/pages/realName/workbench/dailyPlanManagement/index`
|
||||
})
|
||||
},
|
||||
|
||||
goSafeguarding() {
|
||||
uni.navigateTo({ //欠薪维权申诉
|
||||
url: `/pages/realName/workbench/safeguarding/index`
|
||||
})
|
||||
},
|
||||
|
||||
goElectronicContractSign() {
|
||||
uni.navigateTo({ //电子合同签署
|
||||
url: `/pages/realName/workbench/electronicContractSign/index`
|
||||
})
|
||||
}else if(name=='电子合同审核'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/electronicContractExam/index`
|
||||
})
|
||||
}else if(name=='人员库'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/peopleLibrary/index`
|
||||
})
|
||||
}else if(name=='欠薪维权申诉'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/safeguarding/index`
|
||||
})
|
||||
}else if(name=='工资卡见证'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/wageWitness/index`
|
||||
})
|
||||
}else if(name=='工资查看'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/wageRecord/index`
|
||||
})
|
||||
}else if(name=='出场申请'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/appearApply/index`
|
||||
})
|
||||
}else if(name=='出场审核'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/appearExam/index`
|
||||
})
|
||||
}else if(name=='人员转场'){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/cutToPlace/index`
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
//监督端
|
||||
//作业计划与实名制监控情况
|
||||
goPlan(){
|
||||
uni.navigateTo({//作业计划
|
||||
url: `/pages/realName/workbench/workPlan/index`
|
||||
})
|
||||
},
|
||||
//人员信息录入
|
||||
goPersonEnter(){
|
||||
uni.navigateTo({//人员录入
|
||||
url: `/pages/realName/workbench/personEnter/index`
|
||||
})
|
||||
},
|
||||
//人员资质库更新
|
||||
goUpdateFace(){
|
||||
uni.showToast({
|
||||
title: "人员资质库更新中...",
|
||||
icon: 'none',
|
||||
duration:2000
|
||||
})
|
||||
},
|
||||
//人员资质检查
|
||||
goQualifications(){
|
||||
uni.navigateTo({//人员资质检查
|
||||
url: `/pages/realName/workbench/qualifications/index`
|
||||
})
|
||||
},
|
||||
|
||||
goOutPerson(){
|
||||
uni.navigateTo({//人员资质检查
|
||||
url: `/pages/realName/workbench/outPerson/index`
|
||||
})
|
||||
},
|
||||
|
||||
getDailyPlanManagement(){
|
||||
uni.navigateTo({//日计划管理
|
||||
url: `/pages/realName/workbench/dailyPlanManagement/index`
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 施工端
|
||||
goDayPlan(){//准入信息查询
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/dayPlan/index`
|
||||
})
|
||||
},
|
||||
goExam(){//安全教育培训
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/exam/index`
|
||||
})
|
||||
},
|
||||
// 施工端-个人信息
|
||||
getAccessData(){
|
||||
let param={
|
||||
idNumber:this.idNumber,
|
||||
teamId:this.teamId
|
||||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/BasePerson/selectPersonAccess',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
this.accessData = res.data;
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//监督端获取工程列表
|
||||
getPro(){
|
||||
let param={
|
||||
id:-1,
|
||||
// subId:this.subId
|
||||
subId:'161'
|
||||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
this.proList = res.data;
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
//展示工程选择弹窗
|
||||
leftClick() {
|
||||
if(this.type.indexOf("4")>-1){
|
||||
this.showPopup=true;
|
||||
}
|
||||
},
|
||||
//选择工程
|
||||
chosenPro(item){
|
||||
let obj = uni.getStorageSync('realNameUser')
|
||||
obj.proId=item.id
|
||||
uni.setStorageSync('realNameUser', obj)
|
||||
uni.setStorageSync('hasChosenPro', "1")
|
||||
this.showPopup=false;
|
||||
},
|
||||
closePopup() {
|
||||
this.showPopup=false;
|
||||
},
|
||||
closeAccessPopup() {
|
||||
uni.setStorageSync('hasViewAccess', "1")
|
||||
this.showAccessPopup=false;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// 施工端
|
||||
goDayPlan() { //准入信息查询
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/dayPlan/index`
|
||||
})
|
||||
},
|
||||
goExam() { //安全教育培训
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/exam/index`
|
||||
})
|
||||
},
|
||||
// 施工端-个人信息
|
||||
getAccessData() {
|
||||
let param = {
|
||||
idNumber: this.idNumber,
|
||||
teamId: this.teamId
|
||||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/BasePerson/selectPersonAccess',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if (res.code == 200) {
|
||||
this.accessData = res.data;
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//监督端获取工程列表
|
||||
getPro() {
|
||||
let param = {
|
||||
id: -1,
|
||||
// subId:this.subId
|
||||
subId: '161'
|
||||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if (res.code == 200) {
|
||||
this.proList = res.data;
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
//展示工程选择弹窗
|
||||
leftClick() {
|
||||
if (this.type.indexOf("4") > -1) {
|
||||
this.showPopup = true;
|
||||
}
|
||||
},
|
||||
//选择工程
|
||||
chosenPro(item) {
|
||||
let obj = uni.getStorageSync('realNameUser')
|
||||
obj.proId = item.id
|
||||
uni.setStorageSync('realNameUser', obj)
|
||||
uni.setStorageSync('hasChosenPro', "1")
|
||||
this.showPopup = false;
|
||||
},
|
||||
closePopup() {
|
||||
this.showPopup = false;
|
||||
},
|
||||
closeAccessPopup() {
|
||||
uni.setStorageSync('hasViewAccess', "1")
|
||||
this.showAccessPopup = false;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss">
|
||||
.page {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
||||
// box-sizing: border-box;
|
||||
// padding: 15vh 8vw;
|
||||
.view-box{
|
||||
width: 100%;height: auto;display: flex;flex-wrap: wrap;flex-direction: row;
|
||||
margin-bottom: 100rpx;
|
||||
}
|
||||
.view-item{
|
||||
width: 33%;height: 200rpx;display: flex;flex-direction:column;align-items: center;justify-content: center;
|
||||
}
|
||||
// .view-item{
|
||||
// width: 94%;
|
||||
// margin: 0rpx auto;
|
||||
// padding:20rpx;
|
||||
// // display: flex;
|
||||
// border-bottom: 1rpx solid #EFEFEF;
|
||||
// font-size: 26rpx;
|
||||
// .label{
|
||||
// width: 300rpx;
|
||||
// color: #666;
|
||||
// margin-bottom: 20rpx;
|
||||
// }
|
||||
// }
|
||||
.card-item{
|
||||
width: 90%;
|
||||
margin: 20rpx auto;
|
||||
padding:16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 26rpx;
|
||||
background: #E2F0CD;
|
||||
border-radius: 10rpx;
|
||||
.label{
|
||||
width: 300rpx;
|
||||
color: #74B01A;
|
||||
font-weight: 600;
|
||||
// margin-bottom: 20rpx;
|
||||
}
|
||||
.btn{
|
||||
width: 140rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
color: #FFF;
|
||||
background: #6FB504;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
.card-item-red{
|
||||
width: 90%;
|
||||
margin: 20rpx auto;
|
||||
padding:16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 26rpx;
|
||||
background: #FFEBEC;
|
||||
border-radius: 10rpx;
|
||||
.label{
|
||||
width: 300rpx;
|
||||
color: #DA3E26;
|
||||
font-weight: 600;
|
||||
// margin-bottom: 20rpx;
|
||||
}
|
||||
.btn{
|
||||
width: 140rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
color: #FFF;
|
||||
background: #FF2F2F;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
.page {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
||||
// box-sizing: border-box;
|
||||
// padding: 15vh 8vw;
|
||||
.view-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
margin-bottom: 100rpx;
|
||||
}
|
||||
|
||||
.view-item {
|
||||
width: 33%;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
// .view-item{
|
||||
// width: 94%;
|
||||
// margin: 0rpx auto;
|
||||
// padding:20rpx;
|
||||
// // display: flex;
|
||||
// border-bottom: 1rpx solid #EFEFEF;
|
||||
// font-size: 26rpx;
|
||||
// .label{
|
||||
// width: 300rpx;
|
||||
// color: #666;
|
||||
// margin-bottom: 20rpx;
|
||||
// }
|
||||
// }
|
||||
.card-item {
|
||||
width: 90%;
|
||||
margin: 20rpx auto;
|
||||
padding: 16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 26rpx;
|
||||
background: #E2F0CD;
|
||||
border-radius: 10rpx;
|
||||
|
||||
.label {
|
||||
width: 300rpx;
|
||||
color: #74B01A;
|
||||
font-weight: 600;
|
||||
// margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 140rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
color: #FFF;
|
||||
background: #6FB504;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.card-item-red {
|
||||
width: 90%;
|
||||
margin: 20rpx auto;
|
||||
padding: 16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 26rpx;
|
||||
background: #FFEBEC;
|
||||
border-radius: 10rpx;
|
||||
|
||||
.label {
|
||||
width: 300rpx;
|
||||
color: #DA3E26;
|
||||
font-weight: 600;
|
||||
// margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 140rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
color: #FFF;
|
||||
background: #FF2F2F;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -32,6 +32,7 @@
|
|||
</view>
|
||||
|
||||
</scroll-view>
|
||||
|
||||
<scroll-view class="content" scroll-y="true">
|
||||
<view v-show="hIndex == 1">
|
||||
<u--form class="addForm" :model="entryIdNumberBean" ref="vForm">
|
||||
|
|
@ -866,7 +867,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
url: config.lpAppUrl + '/offLine/getPro',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -922,7 +923,7 @@ export default {
|
|||
//获取工种
|
||||
getpostList(){
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getWorkType',
|
||||
url: config.lpAppUrl + '/offLine/getWorkType',
|
||||
method: 'post',
|
||||
data: {},
|
||||
header: {
|
||||
|
|
@ -1425,7 +1426,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/entry/addEntryPerson',
|
||||
url: config.lpAppUrl+'/entry/addEntryPerson',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -871,7 +871,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
url: config.lpAppUrl + '/offLine/getPro',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -927,7 +927,7 @@ export default {
|
|||
//获取工种
|
||||
getpostList(){
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getWorkType',
|
||||
url: config.lpAppUrl + '/offLine/getWorkType',
|
||||
method: 'post',
|
||||
data: {},
|
||||
header: {
|
||||
|
|
@ -1037,7 +1037,7 @@ export default {
|
|||
//获取人员信息
|
||||
getPersonById(){
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/entry/'+this.idNumber,
|
||||
url: config.lpAppUrl+'/entry/'+this.idNumber,
|
||||
method: 'get',
|
||||
data: {},
|
||||
header: {
|
||||
|
|
@ -1450,7 +1450,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/entry/updateEntryPerson',
|
||||
url: config.lpAppUrl+'/entry/updateEntryPerson',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -928,7 +928,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
url: config.lpAppUrl + '/offLine/getPro',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -985,7 +985,7 @@ export default {
|
|||
//获取工种
|
||||
getpostList(){
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getWorkType',
|
||||
url: config.lpAppUrl + '/offLine/getWorkType',
|
||||
method: 'post',
|
||||
data: {},
|
||||
header: {
|
||||
|
|
@ -1095,7 +1095,7 @@ export default {
|
|||
//获取人员信息
|
||||
getPersonById(){
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/entry/'+this.idNumber,
|
||||
url: config.lpAppUrl+'/entry/'+this.idNumber,
|
||||
method: 'get',
|
||||
data: {},
|
||||
header: {
|
||||
|
|
@ -1509,7 +1509,7 @@ export default {
|
|||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/entry/updateEntryPerson',
|
||||
url: config.lpAppUrl+'/entry/updateEntryPerson',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ export default {
|
|||
}
|
||||
this.isLoading=true
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/BasePerson/downloadWorkPersonQualifications',
|
||||
url: config.lpAppUrl+'/BasePerson/downloadWorkPersonQualifications',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ export default {
|
|||
id:this.id,
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/safeguardingInfo/getSafeguardingInfoById',
|
||||
url: config.lpAppUrl+'/safeguardingInfo/getSafeguardingInfoById',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -148,7 +148,7 @@ export default {
|
|||
id:this.id,
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/safeguardingInfo/getSafeguardingPhotoById',
|
||||
url: config.lpAppUrl+'/safeguardingInfo/getSafeguardingPhotoById',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -5,8 +5,9 @@ import errorCode from '@/utils/errorCode'
|
|||
import { toast, showConfirm, tansParams } from '@/utils/common'
|
||||
|
||||
let timeout = 60000
|
||||
const baseUrl = config.loginBaseUrl
|
||||
// const baseUrl = config.loginBaseUrl
|
||||
// const baseUrl = config.loginUrl
|
||||
const baseUrl = config.lpLoginUrl
|
||||
console.log('baseUrl-请求', baseUrl)
|
||||
|
||||
const request = config => {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ import errorCode from '@/utils/errorCode'
|
|||
import { toast, showConfirm, tansParams } from '@/utils/common'
|
||||
|
||||
let timeout = 60000
|
||||
const baseUrl = config.realNewBmwUrl
|
||||
// const baseUrl = config.realNewBmwUrl
|
||||
const baseUrl = config.lpBmwUrl
|
||||
console.log('baseUrl-请求', baseUrl)
|
||||
|
||||
const request = config => {
|
||||
|
|
@ -43,8 +44,8 @@ const request = config => {
|
|||
// console.log(response)
|
||||
let [error, res] = response
|
||||
if (error) {
|
||||
toast('后端接口连接异常')
|
||||
reject('后端接口连接异常')
|
||||
toast('request_new后端接口连接异常')
|
||||
reject('request_new后端接口连接异常')
|
||||
return
|
||||
}
|
||||
const code = res.data.code || 200
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import { getToken, setToken } from '@/utils/auth'
|
|||
import errorCode from '@/utils/errorCode'
|
||||
import { toast, showConfirm, tansParams } from '@/utils/common'
|
||||
|
||||
const token = uni.getStorageSync('wkToken') || null
|
||||
const token = uni.getStorageSync('realNameToken') || null
|
||||
|
||||
let timeout = 60000
|
||||
const baseUrl = config.workPlanNewYnUrl
|
||||
console.log('token', token)
|
||||
// console.log('token', token)
|
||||
|
||||
let isRequesting = false // 请求锁,防止重复请求
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import { getToken, setToken } from '@/utils/auth'
|
|||
import errorCode from '@/utils/errorCode'
|
||||
import { toast, showConfirm, tansParams } from '@/utils/common'
|
||||
|
||||
const token = uni.getStorageSync('wkToken') || null
|
||||
const token = uni.getStorageSync('realNameToken') || null
|
||||
|
||||
let timeout = 60000
|
||||
const baseUrl = config.realNewYnUrl
|
||||
console.log('token', token)
|
||||
// console.log('token', token)
|
||||
|
||||
const request = config => {
|
||||
// 是否需要设置 token
|
||||
|
|
|
|||
Loading…
Reference in New Issue