清理测试信息

dev
wangpeng 2024-03-25 19:17:10 +08:00
parent 5c298c2e41
commit 59ebc64921
7 changed files with 116 additions and 105 deletions

View File

@ -116,7 +116,7 @@
</navigator> </navigator>
</view> </view>
</view> </view>
<view class="apps-row"> <!-- <view class="apps-row">
<view class="apps-title"> <view class="apps-title">
<text class="apps-title-line"></text> <text class="apps-title-line"></text>
<text>监测预警</text> <text>监测预警</text>
@ -129,7 +129,7 @@
<view class="text-semi">AI报警</view> <view class="text-semi">AI报警</view>
</navigator> </navigator>
</view> </view>
</view> </view>-->
<!-- 视频管理--> <!-- 视频管理-->
<!-- <view class="apps-row">--> <!-- <view class="apps-row">-->
<!-- <view class="apps-title">--> <!-- <view class="apps-title">-->

View File

@ -18,9 +18,9 @@
<view v-if="!loginCorpId && pd.APPLY_STATUS === ''" class="cu-item arrow"> <view v-if="!loginCorpId && pd.APPLY_STATUS === ''" class="cu-item arrow">
<navigator class="content" hover-class="none" url="/pages/basics/basic-info/entry" open-type="redirect"> <navigator class="content" hover-class="none" url="/pages/basics/basic-info/entry" open-type="redirect">
<text class="text-semi">入职申请</text> <text class="text-semi">入职申请</text>
</navigator>· </navigator>
</view> </view>
<view v-if="!loginCorpId && pd.APPLY_STATUS === '0' && (pd.APPLY_TYPE ==='2' || pd.APPLY_TYPE ==='4')" class="cu-item arrow"> <view v-if="pd.APPLY_STATUS === '0' && (pd.APPLY_TYPE ==='2' || pd.APPLY_TYPE ==='4')" class="cu-item arrow">
<navigator class="content" hover-class="none" url="/pages/basics/basic-info/confirm" open-type="redirect"> <navigator class="content" hover-class="none" url="/pages/basics/basic-info/confirm" open-type="redirect">
<text class="text-semi">信息确认</text> <text class="text-semi">信息确认</text>
</navigator> </navigator>

View File

@ -72,7 +72,7 @@
<text>人员信息</text> <text>人员信息</text>
</view> </view>
</navigator> </navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/basics/work-plan/work-plan"> <navigator v-if="loginCorpId" class="home-apps-item" hover-class="none" url="/pages/basics/work-plan/work-plan">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/home-rili.png" mode=""></image> <image src="../../static/icon-apps/home-rili.png" mode=""></image>
</view> </view>
@ -81,7 +81,7 @@
</view> </view>
</navigator> </navigator>
<navigator class="home-apps-item" hover-class="none" <navigator v-if="loginCorpId" class="home-apps-item" hover-class="none"
url="/pages/basics/risk-distribution/risk-distribution"> url="/pages/basics/risk-distribution/risk-distribution">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/home-risk.png" mode=""></image> <image src="../../static/icon-apps/home-risk.png" mode=""></image>
@ -90,7 +90,7 @@
<text>风险分布</text> <text>风险分布</text>
</view> </view>
</navigator> </navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/basics/study-files/study-files"> <navigator v-if="loginCorpId" class="home-apps-item" hover-class="none" url="/pages/basics/study-files/study-files">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/home-fl.png" mode=""></image> <image src="../../static/icon-apps/home-fl.png" mode=""></image>
</view> </view>
@ -99,8 +99,8 @@
</view> </view>
</navigator> </navigator>
</view> </view>
<view class="home-apps-list"> <view v-if="loginCorpId" class="home-apps-list">
<navigator class="home-apps-item" hover-class="none" url="/pages/application/eight-assignments" <!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/eight-assignments"
v-show="premission.eightWork"> v-show="premission.eightWork">
<view class="home-apps-item-img" style="position: relative;"> <view class="home-apps-item-img" style="position: relative;">
<image src="../../static/icon-apps/home-gw.png" mode=""></image> <image src="../../static/icon-apps/home-gw.png" mode=""></image>
@ -109,8 +109,8 @@
<view class="text"> <view class="text">
<text>高危作业</text> <text>高危作业</text>
</view> </view>
</navigator> </navigator>-->
<navigator class="home-apps-item" hover-class="none" url="/pages/application/key-project-management/index/index"> <!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/key-project-management/index/index">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image> <image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image>
</view> </view>
@ -118,7 +118,7 @@
<text>重点工程管理</text> <text>重点工程管理</text>
</view> </view>
<view v-if="keyProjectManagement" class="cu-tag badge">{{ keyProjectManagement }}</view> <view v-if="keyProjectManagement" class="cu-tag badge">{{ keyProjectManagement }}</view>
</navigator> </navigator>-->
<navigator class="home-apps-item" hover-class="none" url="/pages/application/commitment"> <navigator class="home-apps-item" hover-class="none" url="/pages/application/commitment">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/home-cns.png" mode=""></image> <image src="../../static/icon-apps/home-cns.png" mode=""></image>
@ -127,37 +127,6 @@
<text>安全承诺</text> <text>安全承诺</text>
</view> </view>
</navigator> </navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/home"
v-show="premission.education">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-study.png" mode=""></image>
</view>
<view class="text">
<text>学习园地</text>
</view>
</navigator>
</view>
<view class="home-apps-list">
<navigator class="home-apps-item" hover-class="none" url="/pages/application/safety-environmental-inspection/home">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-base.png" mode=""></image>
</view>
<view class="text">
<text>安全环保检查</text>
</view>
<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
v-show="premission.speEquip">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-speEquip.jpg" mode=""></image>
</view>
<view class="text">
<text>设备巡检</text>
</view>
</navigator>
<navigator class="home-apps-item" hover-class="none" <navigator class="home-apps-item" hover-class="none"
url="/pages/application/safetymeeting/home"> url="/pages/application/safetymeeting/home">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
@ -176,6 +145,37 @@
<text>行车三检</text> <text>行车三检</text>
</view> </view>
</navigator> </navigator>
<navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/home"
v-show="premission.education">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-study.png" mode=""></image>
</view>
<view class="text">
<text>学习园地</text>
</view>
</navigator>
</view>
<view v-if="loginCorpId" class="home-apps-list">
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/safety-environmental-inspection/home">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-base.png" mode=""></image>
</view>
<view class="text">
<text>安全环保检查</text>
</view>
<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>
</navigator>-->
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
v-show="premission.speEquip">
<view class="home-apps-item-img">
<image src="../../static/icon-apps/home-speEquip.jpg" mode=""></image>
</view>
<view class="text">
<text>设备巡检</text>
</view>
</navigator>-->
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index"> <!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index">
<view class="home-apps-item-img"> <view class="home-apps-item-img">
<image src="../../static/icon-apps/home-study.png" mode=""></image> <image src="../../static/icon-apps/home-study.png" mode=""></image>
@ -187,7 +187,7 @@
</view> </view>
</view> </view>
<view class="home-work"> <view v-if="loginCorpId" class="home-work">
<view class="home-work-title"> <view class="home-work-title">
<view class="title"> <view class="title">
<view class="q_title"></view> <view class="q_title"></view>
@ -356,7 +356,7 @@
</view> </view>
<view class="home-hidden"> <view v-if="loginCorpId" class="home-hidden">
<view class="home-work-title"> <view class="home-work-title">
<view class="title"> <view class="title">
<view class="q_title"></view> <view class="q_title"></view>
@ -457,7 +457,7 @@
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<view class="home-date"> <view v-if="loginCorpId" class="home-date">
<view class="home-work-title"> <view class="home-work-title">
<view class="title"> <view class="title">
<view class="q_title"></view> <view class="q_title"></view>
@ -648,7 +648,8 @@ import {
rollData: [], rollData: [],
eight_work_count: 0, eight_work_count: 0,
updataPd: {}, updataPd: {},
modalName: '' modalName: '',
loginCorpId: ''
}; };
}, },
mounted() { mounted() {
@ -657,11 +658,14 @@ import {
let now = new Date(); let now = new Date();
var today = formatDate(now, 'yyyy-MM-dd'); var today = formatDate(now, 'yyyy-MM-dd');
this.loginCorpId = loginUser.CORPINFO_ID
console.log("loginUser.CORPINFO_ID" + loginUser.CORPINFO_ID)
console.log("loginCorpId" + this.loginCorpId)
if (loginUser.CORPINFO_ID) { if (loginUser.CORPINFO_ID) {
this.getSafetyEnvironmentalInspectionCount(); this.getSafetyEnvironmentalInspectionCount();
this.getIsRest(); this.getIsRest();
this.getData(); this.getData();
this.getSurveyData(); // this.getSurveyData();
this.getListData(); this.getListData();
// //
this.getHiddenRoll(); this.getHiddenRoll();

View File

@ -11,14 +11,14 @@
</view> </view>
<view :class="PageCur=='basics'?'text-blue':'text-gray'">首页</view> <view :class="PageCur=='basics'?'text-blue':'text-gray'">首页</view>
</view> </view>
<view class="action" @click="NavChange" data-cur="application"> <view v-if="loginCorpId" class="action" @click="NavChange" data-cur="application">
<view class='cuIcon-cu-image'> <view class='cuIcon-cu-image'>
<image :src="'/static/tabbar/application' + [PageCur == 'application'?'_cur':''] + '.png'"></image> <image :src="'/static/tabbar/application' + [PageCur == 'application'?'_cur':''] + '.png'"></image>
<view v-if="hidCount>0" class="cu-tag badge">{{hidCount}}</view> <view v-if="hidCount>0" class="cu-tag badge">{{hidCount}}</view>
</view> </view>
<view :class="PageCur=='application'?'text-blue':'text-gray'">应用</view> <view :class="PageCur=='application'?'text-blue':'text-gray'">应用</view>
</view> </view>
<view class="action" @click="NavChange" data-cur="works"> <view v-if="loginCorpId" class="action" @click="NavChange" data-cur="works">
<view class='cuIcon-cu-image'> <view class='cuIcon-cu-image'>
<image :src="'/static/tabbar/works' + [PageCur == 'works'?'_cur':''] + '.png'"></image> <image :src="'/static/tabbar/works' + [PageCur == 'works'?'_cur':''] + '.png'"></image>
<view v-if="mesCount>0" class="cu-tag badge">{{mesCount}}</view> <view v-if="mesCount>0" class="cu-tag badge">{{mesCount}}</view>
@ -77,7 +77,8 @@
hidCount:0, hidCount:0,
dys:0, dys:0,
dzg:0, dzg:0,
isShowTabBar:false isShowTabBar:false,
loginCorpId: ''
} }
}, },
onBackPress() { onBackPress() {
@ -138,6 +139,7 @@
this.getPromiseUnsigned() this.getPromiseUnsigned()
}, },
onLoad() { onLoad() {
this.loginCorpId = loginUser.CORPINFO_ID
this.plusReady(); this.plusReady();
// this.checkPlatform(); // this.checkPlatform();
// this.checkUpdate("android"); // this.checkUpdate("android");

View File

@ -51,41 +51,43 @@ import {
}, },
methods: { methods: {
// //
confirmAccount(e) { async confirmAccount(e) {
if (this.validateData()) { if (this.validateData()) {
this.checkIdCardData() const flag = await this.checkIdCardData()
// const org_birthday = this.formData.USER_ID_CARD.substring(6, 14); if (flag) {
// const org_gender = this.formData.USER_ID_CARD.substring(16, 17); const org_birthday = this.formData.USER_ID_CARD.substring(6, 14);
// const birthday = const org_gender = this.formData.USER_ID_CARD.substring(16, 17);
// org_birthday.substring(0, 4) + const birthday =
// "-" + org_birthday.substring(0, 4) +
// org_birthday.substring(4, 6) + "-" +
// "-" + org_birthday.substring(4, 6) +
// org_birthday.substring(6, 8); "-" +
// const birthdays = new Date(birthday.replace(/-/g, "/")); org_birthday.substring(6, 8);
// const Month = birthdays.getMonth() + 1; const birthdays = new Date(birthday.replace(/-/g, "/"));
// let MonthDate; const Month = birthdays.getMonth() + 1;
// const DayDate = birthdays.getDate(); let MonthDate;
// let Day; const DayDate = birthdays.getDate();
// if (Month < 10) MonthDate = "0" + Month; let Day;
// else MonthDate = Month; if (Month < 10) MonthDate = "0" + Month;
// if (DayDate < 10) Day = "0" + DayDate; else MonthDate = Month;
// else Day = DayDate; if (DayDate < 10) Day = "0" + DayDate;
// this.formData.SEX = org_gender % 2 === 1 ? "1" : "0"; else Day = DayDate;
// this.formData.DATE_OF_BIRTH = birthdays.getFullYear() + "-" + MonthDate + "-" + Day; this.formData.SEX = org_gender % 2 === 1 ? "1" : "0";
// this.formData.DRIVER_LICENSE_NO = this.formData.USER_ID_CARD this.formData.DATE_OF_BIRTH = birthdays.getFullYear() + "-" + MonthDate + "-" + Day;
// this.formData.QUALIFICATION_CERTIFICATE_NO = this.formData.USER_ID_CARD this.formData.DRIVER_LICENSE_NO = this.formData.USER_ID_CARD
// // uni.navigateTo({ this.formData.QUALIFICATION_CERTIFICATE_NO = this.formData.USER_ID_CARD
// // url: '/pages/login/register/baseInfo?' // uni.navigateTo({
// // +'NAME='+encodeURIComponent(JSON.stringify(this.formData.NAME.replace('%','%25'))) // url: '/pages/login/register/baseInfo?'
// // +'&USER_ID_CARD='+ encodeURIComponent(JSON.stringify(this.formData.USER_ID_CARD)) // +'NAME='+encodeURIComponent(JSON.stringify(this.formData.NAME.replace('%','%25')))
// // +'&PHONE='+ encodeURIComponent(JSON.stringify(this.formData.PHONE)) // +'&USER_ID_CARD='+ encodeURIComponent(JSON.stringify(this.formData.USER_ID_CARD))
// // +'&DATE_OF_BIRTH='+ encodeURIComponent(JSON.stringify(this.formData.DATE_OF_BIRTH)) // +'&PHONE='+ encodeURIComponent(JSON.stringify(this.formData.PHONE))
// // +'&SEX='+ encodeURIComponent(JSON.stringify(this.formData.SEX)) // +'&DATE_OF_BIRTH='+ encodeURIComponent(JSON.stringify(this.formData.DATE_OF_BIRTH))
// // }); // +'&SEX='+ encodeURIComponent(JSON.stringify(this.formData.SEX))
// this.$emit("confirm", ''); // });
this.$emit("confirm", '');
}
} }
}, },
goback(){ goback(){
var pages = getCurrentPages(); // var pages = getCurrentPages(); //
var prePage = pages[pages.length - 2]; // var prePage = pages[pages.length - 2]; //

View File

@ -77,11 +77,11 @@
form: { form: {
USER_ID: '', USER_ID: '',
// //
NAME: '', NAME: '',
// //
USER_ID_CARD: '130324198402060224', USER_ID_CARD: '',
// //
PHONE: '13091370001', PHONE: '',
// //
DATE_OF_BIRTH: '', DATE_OF_BIRTH: '',
// //
@ -103,12 +103,12 @@
ID_CARD_FRONT: '', ID_CARD_FRONT: '',
ID_CARD_BACK: '', ID_CARD_BACK: '',
// //
ID_CARD_VALIDITY_START: '2019-03-13', ID_CARD_VALIDITY_START: '',
ID_CARD_VALIDITY_END: '2039-03-13', ID_CARD_VALIDITY_END: '',
// //
ID_CARD_ADDRESS: '住址', ID_CARD_ADDRESS: '',
// //
ID_CARD_ORGAN: '身份证签发机关', ID_CARD_ORGAN: '',
// //
NATION: '', NATION: '',
NATIONNAME: '', NATIONNAME: '',
@ -120,15 +120,15 @@
// //
DRIVING_MODEL: [], DRIVING_MODEL: [],
// //
DRIVING_NATIONALITY: '中国', DRIVING_NATIONALITY: '',
// //
DRIVER_LICENSE_ISSUE_DATE: '2010-03-13', DRIVER_LICENSE_ISSUE_DATE: '',
// //
DRIVER_LICENSE_VALIDITY_START: '2015-03-13', DRIVER_LICENSE_VALIDITY_START: '',
// //
DRIVER_LICENSE_VALIDITY_END: '2025-03-13', DRIVER_LICENSE_VALIDITY_END: '',
// //
DRIVER_LICENSE_ORGAN: '驾驶证签发机关', DRIVER_LICENSE_ORGAN: '',
// //
QUALIFICATION_CERTIFICATE: '', QUALIFICATION_CERTIFICATE: '',
@ -137,15 +137,15 @@
// //
QUALIFICATION_CERTIFICATE_CATEGORY: [], QUALIFICATION_CERTIFICATE_CATEGORY: [],
// //
QUALIFICATION_CERTIFICATE_NATIONALITY: '中国', QUALIFICATION_CERTIFICATE_NATIONALITY: '',
// //
QUALIFICATION_CERTIFICATE_ISSUE_DATE: '2011-03-13', QUALIFICATION_CERTIFICATE_ISSUE_DATE: '',
// //
QUALIFICATION_CERTIFICATE_VALIDITY_START: '2023-03-13', QUALIFICATION_CERTIFICATE_VALIDITY_START: '',
// //
QUALIFICATION_CERTIFICATE_VALIDITY_END: '2029-03-13', QUALIFICATION_CERTIFICATE_VALIDITY_END: '',
// //
QUALIFICATION_CERTIFICATE_ORGAN: '从业资格证签发机关', QUALIFICATION_CERTIFICATE_ORGAN: '',
// //
APPLY_CORP: '', APPLY_CORP: '',

View File

@ -14,8 +14,8 @@
</view> </view>
</view> </view>
<view class="cu-list menu margin-top"> <view class="cu-list menu margin-top">
<view class="cu-item arrow"> <view v-if="loginCorpId" class="cu-item arrow">
<navigator class="content" v-if="isRest=='1'" hover-class="none" url="../" @click="showRest()"> <navigator v-if="isRest==='1'" class="content" hover-class="none" url="../" @click="showRest()">
<text class="text-semi">离岗</text> <text class="text-semi">离岗</text>
</navigator> </navigator>
<navigator class="content" v-else hover-class="none" url="/pages/my/offduty/index"> <navigator class="content" v-else hover-class="none" url="/pages/my/offduty/index">
@ -69,16 +69,19 @@
export default { export default {
data() { data() {
return { return {
loginCorpId: '',
loginUser :'', loginUser :'',
userPhoto :'/static/avatar.png', userPhoto :'/static/avatar.png',
isRest :'' isRest :''
}; };
}, },
mounted() { mounted() {
this.getData();
this.loginUser = loginUser; this.loginUser = loginUser;
this.loginCorpId = loginUser.CORPINFO_ID
console.log('loginCorpId =>' + this.loginCorpId)
this.isRest = isRest; this.isRest = isRest;
if(this.loginUser.USERNAME){ if(this.loginCorpId && this.loginUser.USERNAME){
this.getData();
this.getUserInfo(); this.getUserInfo();
} }