Commit 67e8f960 by 陈浩建

修复新用户审核页面

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