Commit 2030336e by swl

gx

parent 88b44066
No preview for this file type
...@@ -158,9 +158,10 @@ ...@@ -158,9 +158,10 @@
</div> </div>
<!-- 表格end --> <!-- 表格end -->
<!-- 拒绝对话框 --> <!-- 审核对话框 -->
<el-dialog <el-dialog
title="审核" title="审核"
v-loading="dialogLoading"
:visible.sync="auditDialog" :visible.sync="auditDialog"
width="30%" width="30%"
class="auditDialog" class="auditDialog"
...@@ -258,7 +259,9 @@ ...@@ -258,7 +259,9 @@
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">户籍地址</p> <p class="label">户籍地址</p>
<p class="value">{{ viewDetail.domicile }}</p> <p class="value">
{{ dealDom(viewDetail.domicile || "") }}
</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">现居地址</p> <p class="label">现居地址</p>
...@@ -572,7 +575,7 @@ export default { ...@@ -572,7 +575,7 @@ export default {
data() { data() {
return { return {
auditDialog: false, auditDialog: false,
dialogLoading: false,
refuseCode: "", refuseCode: "",
// 居住地址 // 居住地址
...@@ -721,6 +724,10 @@ export default { ...@@ -721,6 +724,10 @@ export default {
return "扬中市"; return "扬中市";
} }
}, },
dealDom(val) {
console.log(val);
return val.replace(/镇江市外\//g, "");
},
init() { init() {
this.tableData = []; this.tableData = [];
this.loading = true; this.loading = true;
...@@ -838,7 +845,6 @@ export default { ...@@ -838,7 +845,6 @@ export default {
this.auditData.familyCode = row.familyCode; this.auditData.familyCode = row.familyCode;
this.auditDialog = true; this.auditDialog = true;
}, },
// 拒绝对话框 // 拒绝对话框
deny(talentCode) { deny(talentCode) {
this.flag = 0; this.flag = 0;
...@@ -859,6 +865,7 @@ export default { ...@@ -859,6 +865,7 @@ export default {
confirmBtn() { confirmBtn() {
this.$refs.auditForm.validate((valid) => { this.$refs.auditForm.validate((valid) => {
if (valid) { if (valid) {
this.dialogLoading = true;
if (this.flag == 0) { if (this.flag == 0) {
// 通过 // 通过
this.passOptions.forEach((el) => { this.passOptions.forEach((el) => {
...@@ -870,6 +877,7 @@ export default { ...@@ -870,6 +877,7 @@ export default {
this.auditData.user = localStorage.getItem("userName"); this.auditData.user = localStorage.getItem("userName");
if (this.auditData.stateCode) { if (this.auditData.stateCode) {
familyAudit(this.auditData).then((res) => { familyAudit(this.auditData).then((res) => {
this.dialogLoading = false;
if (res.code == 200) { if (res.code == 200) {
this.$message.success(res.msg || "审核成功"); this.$message.success(res.msg || "审核成功");
this.auditDialog = false; this.auditDialog = false;
...@@ -888,7 +896,8 @@ export default { ...@@ -888,7 +896,8 @@ export default {
familyAudit(this.auditData).then((res) => { familyAudit(this.auditData).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log(res, 111); this.dialogLoading = false;
this.$message.success(res.msg || "审核成功"); this.$message.success(res.msg || "审核成功");
this.auditDialog = false; this.auditDialog = false;
this.init(); this.init();
......
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