integrated_traffic_uniapp/pages/basics/basic-info/basic-info.vue

204 lines
5.8 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view>
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
<block slot="backText">返回</block>
<block slot="content">人员信息</block>
</cu-custom>
<scroll-view scroll-y>
<view class="cu-list menu">
<view class="cu-item">
<view class="content">
<text class="text-semi">姓名</text>
</view>
<view class="action">
<text class="text-grey">{{pd.NAME}}</text>
</view>
</view>
<view class="cu-item" v-if="pd.ISSTUDENT == true">
<view class="content">
<text class="text-semi">性别</text>
</view>
<view class="action">
<text class="text-grey">{{pd.SEX_NAME == undefined ? pd.SEX : pd.SEX_NAME}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="text-semi">部门</text>
</view>
<view class="action">
<text class="text-grey">{{pd.DEPARTMENT_NAME}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="text-semi">岗位</text>
</view>
<view class="action">
<text class="text-grey">{{pd.POST_NAME}}</text>
</view>
</view>
<view class="cu-item" v-if="pd.ISSTUDENT == true">
<view class="content">
<text class="text-semi">人员类型</text>
</view>
<view class="action">
<text class="text-grey">{{pd.PERSONNEL_TYPE_NAME}}</text>
</view>
</view>
<!-- <view class="cu-item">
<view class="content">
<text class="text-semi">所属专业</text>
</view>
<view class="action">
<text class="text-grey">{{pd.CORP_TYPE_NAME}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="text-semi">所属小专业</text>
</view>
<view class="action">
<text class="text-grey">{{pd.CORP_TYPE_SMALL_NAME}}</text>
</view>
</view> -->
<view class="cu-item" v-if="pd.ISSTUDENT == true">
<view class="content">
<text class="text-semi">入职时间</text>
</view>
<view class="action">
<text class="text-grey">{{pd.ENTRY_DATE}}</text>
</view>
</view>
<view class="cu-item" v-if="pd.ISSTUDENT == true">
<view class="content">
<text class="text-semi">工种</text>
</view>
<view class="action">
<text class="text-grey">{{pd.TYPE_OF_WORK_NAME}}</text>
</view>
</view>
<!-- <view class="cu-item">-->
<!-- <view class="content">-->
<!-- <text class="text-semi">企业联系人</text>-->
<!-- </view>-->
<!-- <view class="action">-->
<!-- <text class="text-grey">{{pd.CONTACTS}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="cu-item">-->
<!-- <view class="content">-->
<!-- <text class="text-semi">企业联系人手机号</text>-->
<!-- </view>-->
<!-- <view class="action">-->
<!-- <text class="text-grey">{{pd.CONTACTS_PHONE}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="cu-item">-->
<!-- <view class="content">-->
<!-- <text class="text-semi">企业整改负责人</text>-->
<!-- </view>-->
<!-- <view class="action">-->
<!-- <text class="text-grey">{{pd.CHECKPERSON}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="cu-item">-->
<!-- <view class="content">-->
<!-- <text class="text-semi">企业整改人电话</text>-->
<!-- </view>-->
<!-- <view class="action">-->
<!-- <text class="text-grey">{{pd.CHECKPERSONPHONE}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="cu-item-sp">-->
<!-- <view class="content">-->
<!-- <text class="text-semi">通讯地址</text>-->
<!-- </view>-->
<!-- <view class="action">-->
<!-- <text class="text-grey">{{pd.ADDRESS}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="cu-item-sp">
<view class="content">
<text class="text-semi">企业简介</text>
</view>
<view class="action">
<text class="text-grey">秦皇岛启点科技有限公司是一家专门从事软件自主研发、提供行业信息化与管理咨询解决方案的管理应用软件开发企业。公司成立于2017年公司成立以来一直尊崇“求实创新、拼搏进取、合作共赢”的企业理念艰苦创业诚实守信积极进取建立一个良好的企业环境以技术人才为核心动力、以先进的技术、创新的管理、完美的服务、卓越的品质为根本以客户至上为原则提供信息化建设、管理咨询等全过程、全方位的服务。</text>
</view>
</view> -->
</view>
<!-- <view class="cu-tabbar-height"></view> -->
</scroll-view>
</view>
</template>
<script>
import {
basePath,corpinfoId,loginSession,loginUser
} from '@/common/tool.js';
export default {
data() {
return {
initflag:false,
pd:[],
noClick:true,
}
},
onLoad(e){
this.getData();
loginSession();
},
methods: {
//跳转事件
goToEdit(e) {
uni.navigateTo({
url: '/pages/application/basic-info-manage/basic-information/basic-information-edit'
});
},
getData() {
var _this = this;
uni.showLoading({
title: '请稍候'
})
uni.request({
url: basePath + '/app/user/goEditUser',
method: 'POST',
dataType: 'json',
header:{
'Content-type':'application/x-www-form-urlencoded'
},
data: {
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
if (res.data != null) {
uni.hideLoading();
_this.pd = res.data.pd;
} else {
uni.showToast({
title: res.data.message,
duration: 2000
});
}
}
});
},
}
}
</script>
<style>
.selected .radio {
transform: scale(0.5);
margin-right: 10upx;
}
</style>