Commit 9230fc63 authored by ytbdmhy's avatar ytbdmhy

优化

parent 50920673
<template> <template>
<div> <div>
<div class="block"> <div class="block">
<el-cascader <el-cascader
:props="{ checkStrictly: true }" :props="{ checkStrictly: true }"
...@@ -28,17 +28,22 @@ ...@@ -28,17 +28,22 @@
handleChange(value) { handleChange(value) {
this.$emit('childByValue', value) this.$emit('childByValue', value)
}, },
}, },
created(){ created(){
this.$api.getlist.getTown().then((res) => { this.$api.getlist.getTown().then((res) => {
this.options=res.data this.options=res.data
console.log(res.data) console.log(res.data)
}).catch((res) => { }).catch((res) => {
}) })
} }
}; };
</script> </script>
\ No newline at end of file <style>
.block {
min-width: 200px;
}
</style>
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
<el-form-item label="户籍所在地"> <el-form-item label="户籍所在地">
<el-input v-model="form.townName"></el-input> <el-input v-model="form.townName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系电话"> <el-form-item label="联系电话">
<el-input v-model="form.telphoneValue"></el-input> <el-input v-model="form.telphoneValue"></el-input>
</el-form-item> </el-form-item>
...@@ -138,11 +138,11 @@ export default { ...@@ -138,11 +138,11 @@ export default {
"now":"" "now":""
}, },
urls: [ urls: [
], ],
show:"" show:""
} }
}, },
methods:{ methods:{
//审核通过 //审核通过
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
this.$confirm('是否审核通过?', '提示', { this.$confirm('是否审核通过?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(() => { }).then(() => {
Loading.service(); Loading.service();
var data={ var data={
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
message: res.message message: res.message
}); });
} }
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -189,12 +189,12 @@ export default { ...@@ -189,12 +189,12 @@ export default {
message: '操作失败!'+res message: '操作失败!'+res
}); });
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消操作' message: '已取消操作'
}); });
}); });
}, },
//审核不通过 //审核不通过
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
this.$prompt('请输入原因', '提示', { this.$prompt('请输入原因', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(({ value }) => { }).then(({ value }) => {
if(value){ if(value){
Loading.service(); Loading.service();
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
message: res.message message: res.message
}); });
} }
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
message: '操作失败!'+res message: '操作失败!'+res
}); });
}); });
}else{ }else{
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -257,8 +257,8 @@ export default { ...@@ -257,8 +257,8 @@ export default {
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
decrypt(word){ decrypt(word){
...@@ -283,14 +283,14 @@ export default { ...@@ -283,14 +283,14 @@ export default {
if(this.$route.params.info){ if(this.$route.params.info){
sessionStorage.setItem("info",this.$route.params.info) sessionStorage.setItem("info",this.$route.params.info)
} }
if(this.$route.params.info){ if(this.$route.params.info){
var a=JSON.stringify(this.$route.params) var a=JSON.stringify(this.$route.params)
sessionStorage.setItem("items",a) sessionStorage.setItem("items",a)
} }
this.form =JSON.parse(sessionStorage.getItem("info")) this.form =JSON.parse(sessionStorage.getItem("info"))
this.form.special_type=this.form.org_name.org_insuranceType this.form.special_type=this.form.org_name.org_insuranceType
this.form.name=this.decrypt(this.form.org_name) this.form.name=this.decrypt(this.form.org_name)
//this.form.name=this.form.org_name //this.form.name=this.form.org_name
this.form.identity_number=this.decrypt(this.form.org_idNum) this.form.identity_number=this.decrypt(this.form.org_idNum)
...@@ -335,7 +335,7 @@ export default { ...@@ -335,7 +335,7 @@ export default {
this.form.now=this.form.change_name, this.form.now=this.form.change_name,
this.now="变更后姓名" this.now="变更后姓名"
this.old="变更前姓名" this.old="变更前姓名"
}else if(this.form.type_son==7){ }else if(this.form.type_son==7){
this.form.old=this.form.identity_number, this.form.old=this.form.identity_number,
this.form.now=this.decrypt(this.form.change_idNum), this.form.now=this.decrypt(this.form.change_idNum),
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
this.itmebs="银行卡" this.itmebs="银行卡"
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.bankpic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.bankpic)
}else if(obj.bookPic){ }else if(obj.bookPic){
this.itmebs="户口本" this.itmebs="户口本"
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.bookPic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.bookPic)
}else if(obj.specialPhotoPic){ }else if(obj.specialPhotoPic){
...@@ -357,16 +357,16 @@ export default { ...@@ -357,16 +357,16 @@ export default {
}else{ }else{
this.urls.push(" ") this.urls.push(" ")
} }
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.signpic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.signpic)
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.idcardfrontpic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.idcardfrontpic)
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.idcardbackpic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.idcardbackpic)
this.form.sex= this.form.sex==1?"男":"女" this.form.sex= this.form.sex==1?"男":"女"
} }
} }
......
...@@ -239,6 +239,7 @@ ...@@ -239,6 +239,7 @@
this.$router.push({ this.$router.push({
name: "参保注销审核" name: "参保注销审核"
}); });
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -304,6 +305,7 @@ ...@@ -304,6 +305,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
......
...@@ -155,6 +155,7 @@ export default { ...@@ -155,6 +155,7 @@ export default {
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -216,6 +217,7 @@ export default { ...@@ -216,6 +217,7 @@ export default {
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -248,7 +250,7 @@ export default { ...@@ -248,7 +250,7 @@ export default {
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
......
...@@ -223,12 +223,12 @@ ...@@ -223,12 +223,12 @@
.idc { .idc {
margin-left: 20px; margin-left: 20px;
/*min-width: 200px;*/ min-width: 200px;
} }
.nam { .nam {
margin-left: 20px; margin-left: 20px;
/*min-width: 200px;*/ min-width: 200px;
} }
.grantState { .grantState {
......
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -223,6 +224,7 @@ ...@@ -223,6 +224,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -254,7 +256,7 @@ ...@@ -254,7 +256,7 @@
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
......
...@@ -152,6 +152,7 @@ ...@@ -152,6 +152,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -211,6 +212,7 @@ ...@@ -211,6 +212,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -242,7 +244,7 @@ ...@@ -242,7 +244,7 @@
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
......
...@@ -86,6 +86,14 @@ ...@@ -86,6 +86,14 @@
</div> </div>
</el-image> </el-image>
</div> </div>
<div class="block">
<p class="demonstration">个人照片</p>
<el-image :src="urls[4]">
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
</el-image>
</div>
</div> </div>
</div> </div>
<div style="text-align:center;margin-bottom:40px" v-show="show"> <div style="text-align:center;margin-bottom:40px" v-show="show">
...@@ -174,6 +182,7 @@ ...@@ -174,6 +182,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -234,6 +243,7 @@ ...@@ -234,6 +243,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -265,7 +275,7 @@ ...@@ -265,7 +275,7 @@
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
...@@ -315,6 +325,11 @@ ...@@ -315,6 +325,11 @@
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.signpic); this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.signpic);
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardfrontpic); this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardfrontpic);
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardbackpic); this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardbackpic);
if (this.form.personPhoto != null && this.form.personPhoto !== '') {
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + this.form.personPhoto);
} else {
this.urls.push("");
}
this.form.sex = this.form.sex === 1 ? "男" : "女"; this.form.sex = this.form.sex === 1 ? "男" : "女";
} }
} }
......
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -218,6 +219,7 @@ ...@@ -218,6 +219,7 @@
message: res.message message: res.message
}); });
} }
this.$router.back();
// 关闭当前标签 // 关闭当前标签
let closeAll = document.querySelectorAll(".el-icon-close"); let closeAll = document.querySelectorAll(".el-icon-close");
for(let j = 0, len = closeAll.length; j < len; j++) { for(let j = 0, len = closeAll.length; j < len; j++) {
...@@ -249,7 +251,7 @@ ...@@ -249,7 +251,7 @@
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
......
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