国有建设用地使用权/房屋所有权
Showing
1 changed file
with
17 additions
and
6 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-03-25 16:42:53 | 4 | * @LastEditTime: 2024-03-26 11:04:32 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
113 | </el-form-item> | 113 | </el-form-item> |
114 | </el-col> | 114 | </el-col> |
115 | <el-col :span="8"> | 115 | <el-col :span="8"> |
116 | <el-form-item label="土地性质:" prop="fdcq2.tdxz"> | 116 | <el-form-item label="土地性质:" prop="fdcq2.tdxz" :class="{ 'is-error': isError }"> |
117 | <treeselect | 117 | <treeselect |
118 | :disabled="!viewEdit" | 118 | :disabled="!viewEdit" |
119 | v-model="ruleForm.fdcq2.tdxz" | 119 | v-model="ruleForm.fdcq2.tdxz" |
... | @@ -495,6 +495,7 @@ | ... | @@ -495,6 +495,7 @@ |
495 | }, | 495 | }, |
496 | data () { | 496 | data () { |
497 | return { | 497 | return { |
498 | isError: false, | ||
498 | normalizer (node) { | 499 | normalizer (node) { |
499 | if (node.children == null || node.children == "null") { | 500 | if (node.children == null || node.children == "null") { |
500 | delete node.children; | 501 | delete node.children; |
... | @@ -637,6 +638,7 @@ | ... | @@ -637,6 +638,7 @@ |
637 | * @author: renchao | 638 | * @author: renchao |
638 | */ | 639 | */ |
639 | onSubmit () { | 640 | onSubmit () { |
641 | this.isError = false | ||
640 | let that = this; | 642 | let that = this; |
641 | let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt); | 643 | let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt); |
642 | if (arr.length > 0) { | 644 | if (arr.length > 0) { |
... | @@ -700,9 +702,9 @@ | ... | @@ -700,9 +702,9 @@ |
700 | }) | 702 | }) |
701 | } | 703 | } |
702 | } | 704 | } |
703 | this.$refs['ruleForm'].validate((valid) => { | 705 | this.$refs['ruleForm'].validate((valid, errors) => { |
704 | if (valid) { | 706 | if (valid) { |
705 | that.$store.dispatch("user/refreshPage", false); | 707 | that.$store.dispatch("user/refreshPage", false); |
706 | saveData(that.ruleForm).then((res) => { | 708 | saveData(that.ruleForm).then((res) => { |
707 | if (res.code === 200) { | 709 | if (res.code === 200) { |
708 | that.$message({ | 710 | that.$message({ |
... | @@ -715,12 +717,16 @@ | ... | @@ -715,12 +717,16 @@ |
715 | that.$message({ | 717 | that.$message({ |
716 | showClose: true, | 718 | showClose: true, |
717 | message: res.message, | 719 | message: res.message, |
718 | type: "error", | 720 | type: "error" |
719 | }); | 721 | }) |
720 | } | 722 | } |
721 | }) | 723 | }) |
722 | 724 | ||
723 | } else { | 725 | } else { |
726 | const fieldErrors = errors['fdcq2.tdxz']; | ||
727 | if (fieldErrors.length > 0) { | ||
728 | this.isError = true | ||
729 | } | ||
724 | that.$message({ | 730 | that.$message({ |
725 | showClose: true, | 731 | showClose: true, |
726 | message: "请输入红框内的相关信息!", | 732 | message: "请输入红框内的相关信息!", |
... | @@ -812,4 +818,9 @@ | ... | @@ -812,4 +818,9 @@ |
812 | /deep/.el-form-item__label { | 818 | /deep/.el-form-item__label { |
813 | padding-bottom: 0px; | 819 | padding-bottom: 0px; |
814 | } | 820 | } |
821 | |||
822 | /* 当校验失败时的边框样式 */ | ||
823 | /deep/.is-error .vue-treeselect div { | ||
824 | border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */ | ||
825 | } | ||
815 | </style> | 826 | </style> | ... | ... |
-
Please register or sign in to post a comment