Commit 67e8f960 by 陈浩建

修复新用户审核页面

parent bb077996
......@@ -1394,7 +1394,6 @@
this.edit = false;
},
showDrawer(data,type) {
console.log(data);
this.certificatePhoto.push(this.apis + (data.idCardz != null ? data.idCardz.replace("manager", "app") : ""));
this.certificatePhoto.push(this.apis + (data.idCardf != null ? data.idCardf.replace("manager", "app") : ""));
this.certificatePhoto.push(this.apis + (data.idCardzs != null ? data.idCardzs.replace("manager", "app") : ""));
......
......@@ -85,13 +85,15 @@
<template slot="idcardImgUrl" slot-scope="text">
<p v-show="text == null">未上传</p>
<p v-show="text == ''">未上传</p>
<van-image v-show="text != null && text != ''" width="100" height="100" @click="imgClick(text)" :src="apis + text" />
<!-- <van-image v-show="text != null && text != ''" width="100" height="100" @click="imgClick(text)" :src="imgUrl(text)" />-->
<a v-show="text != null && text != ''" @click="imgClick(text)">点击查看</a>
<!--<van-image width="100" height="100" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')" src="https://img.yzcdn.cn/vant/cat.jpeg" />-->
</template>
<template slot="studentImgUrl" slot-scope="text">
<p v-show="text == null">未上传</p>
<p v-show="text == ''">未上传</p>
<van-image v-show="text != null && text != ''" width="100" height="100" @click="imgClick(text)" :src="apis + text" />
<a v-show="text != null && text != ''" @click="imgClick(text)">点击查看</a>
<!-- <van-image v-show="text != null && text != ''" width="100" height="100" @click="imgClick(text)" :src="imgUrl(text)" />-->
<!--<van-image width="100" height="100" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')" src="https://img.yzcdn.cn/vant/cat.jpeg" />-->
</template>
<!--<template slot="operation" slot-scope="text,record">
......@@ -108,7 +110,7 @@
:closable="false"
@close="pictureOnClose"
:visible="visiblepicture"
width="30%"
width="50%"
>
<div>
<img class="bg-img" :src="imgInfo">
......@@ -175,8 +177,8 @@
{dataIndex: 'sex', width: 50, title: '性别',scopedSlots: {customRender: "sex"}},
{dataIndex: 'schoolName', width: 100, title: '所属校园'},
{dataIndex: 'grade', width: 60, title: '年级'},
{ dataIndex: 'subName',width: 60,title: '县分'},
{ dataIndex: 'idCard',width: 150,title: '身份证号'},
{dataIndex: 'subName',width: 60,title: '县分'},
{dataIndex: 'idCard',width: 150,title: '身份证号'},
{dataIndex: 'idcardImgUrl', width: 180, title: '身份证扫描件(正面)', scopedSlots: {customRender: "idcardImgUrl"}},
{dataIndex: 'studentImgUrl', width: 180, title: '学生证', scopedSlots: {customRender: "studentImgUrl"}},
{dataIndex: 'createtime', width: 100, title: '注册时间', scopedSlots: {customRender: "createtime"}},
......@@ -187,6 +189,10 @@
],
rowdata: parameter => {
const env = process.env.NODE_ENV; //获取当前环境
if (env === 'development') { //测试环境默认添加前缀
this.apis = '/api/';
}
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize
......@@ -218,11 +224,13 @@
tempMode: ['month', 'month'],
schoolNames: [],
subNames: [],
apis: 'img/',
apis: '',
imgInfo: '',
visiblepicture: false,
selectedRowKeys: [],
hasSelected: false,
idcardImgUrl:"",
studentImgUrl:"",
}
},
methods: {
......@@ -248,9 +256,14 @@
this.visiblepicture = false;
},
imgClick(res) {
this.imgInfo = this.apis + res
this.imgInfo = this.apis + (res != null ? res.replace("manager", "app") : "");
this.visiblepicture = true
},
imgUrl(res){
let imgUrl;
imgUrl = this.apis + (res != null ? res.replace("manager", "app") : "");
return imgUrl;
},
createfunctionOk() {
update({'ids': this.selectedRowKeys,'status':this.Formtable.status}).then(res => {
if (res.state !== 'success') {
......@@ -314,5 +327,8 @@
</script>
<style scoped>
.ant-table-row-cell-break-word{
padding:4px 4px !important;
text-align:center !important;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment