增加单位管理的接口
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<view class="user-info">
|
||||
<view class="info-row">
|
||||
<text class="label">用户姓名:</text>
|
||||
<text class="value">余永乐</text>
|
||||
<text class="value">{{auditsDetail.userName}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">性别:</text>
|
||||
@@ -16,15 +16,15 @@
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">证件号:</text>
|
||||
<text class="value">5001255658789955</text>
|
||||
<text class="value">{{auditsDetail.idCard}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="value">17898987887</text>
|
||||
<text class="value">{{auditsDetail.phone}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">所属单位:</text>
|
||||
<text class="value">x x x x x</text>
|
||||
<text class="value">{{auditsDetail.name}}</text>
|
||||
</view>
|
||||
|
||||
<!-- 人脸图片区域 -->
|
||||
@@ -32,7 +32,7 @@
|
||||
<text class="label">人脸图片:</text>
|
||||
<image
|
||||
class="face-image"
|
||||
:src="auditsDetail.avatar || '/static/ic_avg.png'"
|
||||
:src="auditsDetail.img || '/static/ic_avg.png'"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
</view>
|
||||
@@ -43,11 +43,11 @@
|
||||
<view class="user-info">
|
||||
<view class="info-row">
|
||||
<text class="label">邮箱:</text>
|
||||
<text class="value">-</text>
|
||||
<text class="value">{{auditsDetail.email}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">车牌号:</text>
|
||||
<text class="value">-</text>
|
||||
<text class="value">{{auditsDetail.carNumber}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -73,16 +73,54 @@
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
onLoad(options) {
|
||||
if (options.id) {
|
||||
const id = options.id;
|
||||
this.auditsDetail.id = id;
|
||||
this.queryEmployee(id);
|
||||
}
|
||||
},
|
||||
// 原有方法保持不变...
|
||||
handleApprove() {
|
||||
console.log('approve');
|
||||
this.auditsDetail.isAudit=1
|
||||
this.$u.api.unit.updateEmployee(this.auditsDetail).then(res => {
|
||||
if (res.code == "200") {
|
||||
// 提交逻辑
|
||||
uni.showToast({
|
||||
title: '审核通过',
|
||||
icon: 'success',
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/workbench/unitManagement/employeeAudits'
|
||||
});
|
||||
}, 600);
|
||||
}
|
||||
});
|
||||
},
|
||||
handleReject() {
|
||||
console.log('reject');
|
||||
},
|
||||
async submit(action) {
|
||||
// 提交逻辑...
|
||||
this.auditsDetail.isAudit=2
|
||||
this.$u.api.unit.updateEmployee(this.auditsDetail).then(res => {
|
||||
if (res.code == "200") {
|
||||
// 提交逻辑
|
||||
uni.showToast({
|
||||
title: '拒绝通过',
|
||||
icon: 'success',
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/workbench/unitManagement/employeeAudits'
|
||||
});
|
||||
}, 600);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
queryEmployee(id){
|
||||
this.$u.api.unit.queryEmployeeById(this.auditsDetail).then(res => {
|
||||
this.auditsDetail = res.data;
|
||||
});
|
||||
}
|
||||
// 其他原有方法...
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user