修改页面
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<text class="label">人脸图片:</text>
|
||||
<image
|
||||
class="face-image"
|
||||
:src="auditsDetail.img || '/static/ic_avg.png'"
|
||||
:src="imgUrl || '/static/ic_avg.png'"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
</view>
|
||||
@@ -69,7 +69,9 @@
|
||||
handleDesc: '',
|
||||
selectedImages: [],
|
||||
realImages: [],
|
||||
infoImages: []
|
||||
infoImages: [],
|
||||
imgUrl:'',
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -83,6 +85,7 @@
|
||||
// 原有方法保持不变...
|
||||
handleApprove() {
|
||||
this.auditsDetail.isAudit=1
|
||||
this.auditsDetail.isAuditState=2
|
||||
this.$u.api.unit.updateEmployee(this.auditsDetail).then(res => {
|
||||
if (res.code == "200") {
|
||||
// 提交逻辑
|
||||
@@ -100,6 +103,7 @@
|
||||
},
|
||||
handleReject() {
|
||||
this.auditsDetail.isAudit=2
|
||||
this.auditsDetail.isAuditState=2
|
||||
this.$u.api.unit.updateEmployee(this.auditsDetail).then(res => {
|
||||
if (res.code == "200") {
|
||||
// 提交逻辑
|
||||
@@ -117,8 +121,15 @@
|
||||
},
|
||||
|
||||
queryEmployee(id){
|
||||
this.$u.api.unit.queryEmployeeById(this.auditsDetail).then(res => {
|
||||
this.auditsDetail = res.data;
|
||||
const _this = this;
|
||||
_this.$u.api.unit.queryEmployeeById(_this.auditsDetail).then(res => {
|
||||
const {data} = res;
|
||||
_this.auditsDetail = data;
|
||||
_this.$u.api.getImageUrl({}, data.img).then(res=>{
|
||||
if (res.code == 200) {
|
||||
_this.imgUrl=_this.vuex_config.imgUrl +res.data[0].url;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user