Browse Source

徽章管理

dev-烟台0301
mk 3 years ago
parent
commit
7a0db25bf1
  1. 61
      src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
  2. 13
      src/views/modules/workSys/emblemManagement/index.vue

61
src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue

@ -1,7 +1,7 @@
<template>
<div>
<div class="body">
<el-row type="flex" >
<el-row type="flex" >
<el-col :span="24">
<span class="htgl_info_label">所属网格:</span> {{emblemObj.gridName||'--'}}
</el-col>
@ -9,41 +9,50 @@
<el-row type="flex" >
<el-col :span="24" style="display: flex;">
<span class="htgl_info_label">审核类型:</span> <section style="flex:1">{{emblemObj.badgeName||'--'}}</section>
<span class="htgl_info_label">审核类型:</span> <section style="flex:1">{{emblemObj.authResult == 'approved'?'审核通过':emblemObj.authResult == 'rejected'?'审核驳回':'审核中'||'--'}}</section>
</el-col>
</el-row>
<el-row type="flex" >
<el-col :span="24" style="display: flex;">
<span class="htgl_info_label">姓名:</span> <section style="flex:1">{{emblemObj.userName||'--'}}</section>
<span class="htgl_info_label">姓名:</span> <section style="flex:1">{{emblemObj.surname +emblemObj.name||'--'}}</section>
</el-col>
</el-row>
<el-row type="flex" >
<el-col :span="24" style="display: flex;">
<span class="htgl_info_label">身份证号:</span> <section style="flex:1">{{emblemObj.idCard||'--'}}</section>
<span class="htgl_info_label">身份证号:</span> <section style="flex:1">{{emblemObj.idcard||'--'}}</section>
</el-col>
</el-row>
<el-row type="flex" >
<el-col :span="24" style="display: flex;">
<span class="htgl_info_label">手机号11111:</span> <section style="flex:1">{{emblemObj.mobile||'--'}}</section>
<span class="htgl_info_label">手机号:</span> <section style="flex:1">{{emblemObj.mobile||'--'}}</section>
</el-col>
</el-row>
<el-row type="flex" >
<el-col :span="24" style="display: flex;">
<span :class="emblemObj.topicImages?'img_label':'htgl_info_label'" >认证证件:</span>
<template>
<img :src="emblemObj.userAvatar" alt="" width="150px" height="200px" />
<img :src="emblemObj.certificationImg" alt="" width="150px" height="200px" />
</template>
</el-col>
</el-row>
<el-row type="flex" >
<el-row type="flex" >
<el-col :span="24" style="display: flex;">
<span class="htgl_info_label">审核原因:</span> <section style="flex:1">{{emblemObj.userName||'--'}}</section>
<span class="htgl_info_label">审核原因:</span>
<template>
<el-input
type="textarea"
:rows="2"
maxlength="200"
placeholder="请输入内容"
v-model="auditTextarea">
</el-input>
</template>
</el-col>
</el-row>
<el-row>
<el-button size="small"> 取消</el-button>
<el-button > 审核不通过</el-button>
<el-button > 审核通过</el-button>
<el-button size="small" @click="handleDiaClose"> 取消</el-button>
<el-button @click="handleAudit('no')"> 审核不通过</el-button>
<el-button @click="handleAudit('yes')"> 审核通过</el-button>
</el-row>
</div>
@ -57,6 +66,8 @@
data() {
return {
auditTextarea:'',
btnFlag:false
};
},
props:{
@ -73,8 +84,32 @@
mounted(){
},
methods:{
async handleAudit(status){
if(status == 'yes'){
}else{
if (this.auditTextarea == ""){
this.$message.error('请填写审核原因!')
return
}
}
const url = "/epmetuser/badge/audit"
let params = {
recordId:this.emblemObj.recordId,
auditStatus:status == 'yes'?'approved':'rejected',
auditRemark:this.auditTextarea
}
let {code,msg,data} = await requestPost(url,params)
if(code==0){
this.$message.success('操作成功!')
this.$emit('dialogOk')
}else if(code>=8000){
this.$message.error(msg)
}
},
handleDiaClose(){
this.$emit('dialogCancle')
}
},
components: {},

13
src/views/modules/workSys/emblemManagement/index.vue

@ -161,6 +161,8 @@
@close="showhtglDialog = false"
>
<emblem-ifon
@dialogCancle="diaClose"
@dialogOk="addFormOk"
:emblemObj="emblemObj"
>
</emblem-ifon>
@ -246,6 +248,13 @@
this.pageNo = 1;
this.getTableData();
},
diaClose() {
this.showhtglDialog = false;
},
addFormOk() {
this.showhtglDialog = false;
this.getTableData();
},
async getEmblemIfon(row){
const url = "/epmetuser/more/badge/certification/detail";
const { data, code, msg } = await requestPost(url, {
@ -292,8 +301,8 @@
},
async handleWatch (row) {
this.showhtglDialog = true
this.emblemObj = {row,...this.getEmblemIfon(row)}
console.log(row);
let obj = await this.getEmblemIfon(row)
this.emblemObj = {row,...obj}
},
},
components: {

Loading…
Cancel
Save