完成邀约接口
This commit is contained in:
@@ -6,23 +6,23 @@
|
||||
<view class="user-info">
|
||||
<view class="info-row">
|
||||
<text class="label">用户姓名:</text>
|
||||
<text class="value">{{employeeDetail.userName}}</text>
|
||||
<text class="value">{{ employeeDetail.userName }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">性别:</text>
|
||||
<text class="value">{{employeeDetail.gender === 1? '男' : '女'}}</text>
|
||||
<text class="value">{{ employeeDetail.gender === 1 ? '男' : '女' }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">证件号:</text>
|
||||
<text class="value">{{employeeDetail.idCard}}</text>
|
||||
<text class="value">{{ employeeDetail.idCard }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="value">{{employeeDetail.phone}}</text>
|
||||
<text class="value">{{ employeeDetail.phone }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">所属单位:</text>
|
||||
<text class="value">{{employeeDetail.unitName}}</text>
|
||||
<text class="value">{{ employeeDetail.unitName }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 人脸图片区域 -->
|
||||
@@ -41,11 +41,11 @@
|
||||
<view class="user-info">
|
||||
<view class="info-row">
|
||||
<text class="label">邮箱:</text>
|
||||
<text class="value">{{employeeDetail.email}}</text>
|
||||
<text class="value">{{ employeeDetail.email }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">车牌号:</text>
|
||||
<text class="value">{{employeeDetail.carNumber}}</text>
|
||||
<text class="value">{{ employeeDetail.carNumber }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -54,7 +54,7 @@
|
||||
<view class="user-info">
|
||||
<view class="info-row">
|
||||
<text class="label">入驻时间:</text>
|
||||
<text class="value">{{employeeDetail.updateTime}}</text>
|
||||
<text class="value">{{ employeeDetail.updateTime }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">在职状态:</text>
|
||||
@@ -94,17 +94,7 @@ export default {
|
||||
this.queryEmployee();
|
||||
}
|
||||
},
|
||||
// 原有方法保持不变...
|
||||
handleApprove() {
|
||||
console.log('approve');
|
||||
},
|
||||
handleReject() {
|
||||
console.log('reject');
|
||||
},
|
||||
async submit(action) {
|
||||
// 提交逻辑...
|
||||
},
|
||||
queryEmployee(){
|
||||
queryEmployee() {
|
||||
this.$u.api.unit.queryEmployeeById(this.employeeDetail).then(res => {
|
||||
this.employeeDetail = res.data;
|
||||
});
|
||||
@@ -113,15 +103,15 @@ export default {
|
||||
changeStatus(newState) {
|
||||
this.employeeDetail.state = newState;
|
||||
},
|
||||
saveInfo(){
|
||||
console.log( this.employeeDetail);
|
||||
this.$u.api.unit.updateEmployee( this.employeeDetail).then(res => {
|
||||
saveInfo() {
|
||||
console.log(this.employeeDetail);
|
||||
this.$u.api.unit.updateEmployee(this.employeeDetail).then(res => {
|
||||
if (res.code === 200) {
|
||||
uni.showToast({
|
||||
title: '状态更新成功',
|
||||
icon: 'success'
|
||||
});
|
||||
}else {
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '状态更新失败',
|
||||
icon: 'none'
|
||||
@@ -206,6 +196,7 @@ export default {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 状态选项容器 */
|
||||
.status-options {
|
||||
display: flex;
|
||||
|
Reference in New Issue
Block a user