Commit 98115998 by 彭祥礼

Revert "证件稽核页面调整"

This reverts commit 967cc8ac
parent f5953875
......@@ -178,17 +178,17 @@
<a-form-item label="上传资料时间">{{Formtable.uploadDate | dayjs}}</a-form-item>
<br>
<a-form-item label="上传图片1:">
<van-image width="100" height="100" @click="imgClick(Formtable.studentCardUrl)" :src="apis + Formtable.studentCardUrl" />
<a v-show="Formtable.studentCardUrl != '' " href="javascript:void(0);" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')">点击查看</a>
</a-form-item>
<a-form-item label="上传图片2">
<van-image width="100" height="100" @click="imgClick(Formtable.otherImgUrl1)" :src="apis + Formtable.otherImgUrl1" />
<a v-show="Formtable.otherImgUrl1 != '' " href="javascript:void(0);" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')">点击查看</a>
</a-form-item>
<a-form-item label="上传图片3">
<van-image width="100" height="100" @click="imgClick(Formtable.otherImgUrl2)" :src="apis + Formtable.otherImgUrl2" />
<a v-show="Formtable.otherImgUrl2 != '' " href="javascript:void(0);" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')">点击查看</a>
</a-form-item>
<br>
<a-form-item label="是否审核通过">
<a-select v-model="tempstate" style="width: 8rem;">
<a-select v-model="Formtable.auditState" style="width: 8rem;">
<a-select-option key="是"></a-select-option>
<a-select-option key="否"></a-select-option>
<a-select-option key="无效">无效</a-select-option>
......@@ -202,12 +202,13 @@
<script>
import STable from '@/components/table';
import ImportBtn from "../../../components/sysmanage/ImportBtn";
import {list, excelOut,update,queryById} from "@/api/school-center/studentCardVerifyAPI"
import {list, excelOut,update} from "@/api/school-center/studentCardVerifyAPI"
import {cloneObject, exportFile} from '@/utils/util';
import ConstantActivity from "@/constant/ConstantActivity";
import Vue from 'vue';
import moment from "moment";
import {DatetimePicker, Dialog} from 'vant';
import {queryById} from "../../../api/school-center/studentdwkVerifyKpiAPI";
import { Image as VanImage } from 'vant';
Vue.use(VanImage);
......@@ -236,7 +237,6 @@
otherImgUrl2: '',
otherImgUrl3: '',
},
tempstate: '',
title: ConstantActivity.title,
queryParam: {
userName: '',
......@@ -304,7 +304,7 @@
},
tempMode: ['month', 'month'],
apis: 'img/',
imgInfo: '',//require("../../../assets/img/previewAvatar.jpg"),
imgInfo: '',
visiblepicture: false,
selectedRowKeys: [],
hasSelected: false,
......@@ -347,15 +347,21 @@
this.Formtable.otherImgUrl1 = res.data.otherImgUrl1
this.Formtable.otherImgUrl2 = res.data.otherImgUrl2
this.Formtable.otherImgUrl3 = res.data.otherImgUrl3
this.Formtable.auditState = res.data.auditState
if(res.data.auditState == 1 || res.data.auditState == 2){
this.tempstate = '是'
}else if(res.data.auditState == 3){
this.tempstate = '否'
}else if(res.data.auditState == 4){
this.tempstate = '无效'
}
this.Formtable.auditState = '是'
if(res.data.auditState != 1){
Dialog.confirm({
title: '提示',
message: '已审核过,是否重新审核???',
}).then(() => {
this.modifyvisible = true;
}).catch(() => {
this.modifyvisible = false;
this.Formtable = [];
return;
});
}else{
this.modifyvisible = true;
}
}
})
}else{
......@@ -409,27 +415,6 @@
},
createfunctionOk() {
this.selectedRowKeys = []
this.selectedRowKeys.push(this.Formtable.id);
if(this.tempstate == '是'){
this.Formtable.auditState = 2
}else if(this.tempstate == '否'){
this.Formtable.auditState == 3
}else if(this.tempstate == '无效'){
this.Formtable.auditState = 4
}
update({'ids': this.selectedRowKeys,'state':this.Formtable.auditState}).then(res => {
if (res.state !== 'success') {
this.$message.error("审核失败!", 5);
}else{
setTimeout(() => {
this.loading = false;
this.selectedRowKeys = [];
}, 1000);
this.hasSelected = true;
this.$refs.table.refresh({search: true})
}
})
this.modifyvisible=false
this.clearmodel();
},
......@@ -438,17 +423,9 @@
this.clearmodel0();
},
clearmodel() {
this.Formtable.id = ''
this.Formtable.userName = ''
this.Formtable.orderPhone = ''
this.Formtable.linkPhone = ''
this.Formtable.uploadDate = ''
this.Formtable.auditDate = ''
this.Formtable.studentCardUrl = ''
this.Formtable.otherImgUrl1 = ''
this.Formtable.otherImgUrl2 = ''
this.Formtable.otherImgUrl3 = ''
this.Formtable.auditState == ''
this.importTile = "";
this.zjlmoBan = false;
this.importUrl = "";
},
search() {
console.log("queryParam.month==================" + this.queryParam);
......
......@@ -147,8 +147,8 @@
<!--<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="otherUrl" slot-scope="text">
<van-image width="100" height="100" @click="imgClick(text)" :src="apis + 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(text)" :src="apis + 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">
<span>
......@@ -182,17 +182,17 @@
<a-form-item label="上传资料时间">{{Formtable.uploadDate | dayjs}}</a-form-item>
<br>
<a-form-item label="上传图片1:">
<van-image width="100" height="100" @click="imgClick(Formtable.studentCardUrl)" :src="apis + Formtable.studentCardUrl" />
<a v-show="Formtable.studentCardUrl != '' " href="javascript:void(0);" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')">点击查看</a>
</a-form-item>
<a-form-item label="上传图片2">
<van-image width="100" height="100" @click="imgClick(Formtable.schoolCardUrl)" :src="apis + Formtable.schoolCardUrl" />
<a v-show="Formtable.otherImgUrl1 != '' " href="javascript:void(0);" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')">点击查看</a>
</a-form-item>
<a-form-item label="上传图片3">
<van-image width="100" height="100" @click="imgClick(Formtable.schoolCardUrl)" :src="apis + Formtable.noticeUrl" />
<a v-show="Formtable.otherImgUrl2 != '' " href="javascript:void(0);" @click="imgClick('https://img.yzcdn.cn/vant/cat.jpeg')">点击查看</a>
</a-form-item>
<br>
<a-form-item label="是否审核通过">
<a-select v-model="tempstate" style="width: 8rem;">
<a-select v-model="Formtable.auditState" style="width: 8rem;">
<a-select-option key="是"></a-select-option>
<a-select-option key="否"></a-select-option>
<a-select-option key="无效">无效</a-select-option>
......@@ -237,11 +237,10 @@
uploadDate: '',
auditDate: '',
studentCardUrl: '',
schoolCardUrl: '',
noticeUrl: '',
otherUrl: '',
otherImgUrl1: '',
otherImgUrl2: '',
otherImgUrl3: '',
},
tempstate: '',
title: ConstantActivity.title,
queryParam: {
userName: '',
......@@ -298,7 +297,7 @@
},
tempMode: ['month', 'month'],
apis: 'img/',
imgInfo: '',//require("../../../assets/img/previewAvatar.jpg"),
imgInfo: '',
visiblepicture: false,
selectedRowKeys: [],
hasSelected: false,
......@@ -322,19 +321,25 @@
this.Formtable.uploadDate = res.data.uploadDate
this.Formtable.auditDate = res.data.auditDate
this.Formtable.studentCardUrl = res.data.studentCardUrl
this.Formtable.schoolCardUrl = res.data.schoolCardUrl
this.Formtable.noticeUrl = res.data.noticeUrl
this.Formtable.otherUrl = res.data.otherUrl
this.Formtable.auditState = res.data.auditState
if(res.data.auditState == 1 || res.data.auditState == 2){
this.tempstate = '是'
}else if(res.data.auditState == 3){
this.tempstate = '否'
}else if(res.data.auditState == 4){
this.tempstate = '无效'
}
this.Formtable.otherImgUrl1 = res.data.otherImgUrl1
this.Formtable.otherImgUrl2 = res.data.otherImgUrl2
this.Formtable.otherImgUrl3 = res.data.otherImgUrl3
this.Formtable.auditState = '是'
if(res.data.auditState != 1){
Dialog.confirm({
title: '提示',
message: '已审核过,是否重新审核???',
}).then(() => {
this.modifyvisible = true;
}).catch(() => {
this.modifyvisible = false;
this.Formtable = [];
return;
});
}else{
this.modifyvisible = true;
}
}
})
}else{
update({'ids': this.selectedRowKeys,'state':auditState}).then(res => {
......@@ -390,27 +395,6 @@
},
createfunctionOk() {
this.selectedRowKeys = []
this.selectedRowKeys.push(this.Formtable.id);
if(this.tempstate == '是'){
this.Formtable.auditState = 2
}else if(this.tempstate == '否'){
this.Formtable.auditState == 3
}else if(this.tempstate == '无效'){
this.Formtable.auditState = 4
}
update({'ids': this.selectedRowKeys,'state':this.Formtable.auditState}).then(res => {
if (res.state !== 'success') {
this.$message.error("审核失败!", 5);
}else{
setTimeout(() => {
this.loading = false;
this.selectedRowKeys = [];
}, 1000);
this.hasSelected = true;
this.$refs.table.refresh({search: true})
}
})
this.modifyvisible=false
this.clearmodel();
},
......@@ -419,17 +403,9 @@
this.clearmodel0();
},
clearmodel() {
this.Formtable.id = ''
this.Formtable.userName = ''
this.Formtable.orderPhone = ''
this.Formtable.linkPhone = ''
this.Formtable.uploadDate = ''
this.Formtable.auditDate = ''
this.Formtable.studentCardUrl = ''
this.Formtable.schoolCardUrl = ''
this.Formtable.noticeUrl = ''
this.Formtable.otherUrl = ''
this.Formtable.auditState == ''
this.importTile = "";
this.zjlmoBan = false;
this.importUrl = "";
},
search() {
console.log("queryParam.month==================" + this.queryParam);
......
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