3b55fa09 by tianhaohao@pashanhoo.com

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents 03e7dbe4 2f45934a
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:10:00
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,8 @@ ...@@ -812,4 +818,8 @@
812 /deep/.el-form-item__label { 818 /deep/.el-form-item__label {
813 padding-bottom: 0px; 819 padding-bottom: 0px;
814 } 820 }
821
822 /deep/.is-error .vue-treeselect div {
823 border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */
824 }
815 </style> 825 </style>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <!-- 2 <!--
3 * @Description: 3 * @Description:
4 * @Autor: renchao 4 * @Autor: renchao
5 * @LastEditTime: 2024-03-08 14:03:28 5 * @LastEditTime: 2024-03-26 11:09:53
6 --> 6 -->
7 <template> 7 <template>
8 <!-- 受理信息 --> 8 <!-- 受理信息 -->
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
86 </el-form-item> 86 </el-form-item>
87 </el-col> 87 </el-col>
88 <el-col :span="8"> 88 <el-col :span="8">
89 <el-form-item label="权利性质:" prop="zdjbxx.qlxz"> 89 <el-form-item label="权利性质:" prop="zdjbxx.qlxz" :class="{ 'is-error': isError }">
90 <treeselect 90 <treeselect
91 :disabled="!viewEdit" 91 :disabled="!viewEdit"
92 v-model="ruleForm.zdjbxx.qlxz" 92 v-model="ruleForm.zdjbxx.qlxz"
...@@ -348,6 +348,7 @@ ...@@ -348,6 +348,7 @@
348 }, 348 },
349 data () { 349 data () {
350 return { 350 return {
351 isError: false,
351 key: 0, 352 key: 0,
352 isSave: true, 353 isSave: true,
353 loading: false, 354 loading: false,
...@@ -421,6 +422,7 @@ ...@@ -421,6 +422,7 @@
421 * @author: renchao 422 * @author: renchao
422 */ 423 */
423 onSubmit () { 424 onSubmit () {
425 this.isError = false
424 let that = this; 426 let that = this;
425 let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt); 427 let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt);
426 if (arr.length > 0) { 428 if (arr.length > 0) {
...@@ -484,7 +486,7 @@ ...@@ -484,7 +486,7 @@
484 }) 486 })
485 } 487 }
486 } 488 }
487 this.$refs['ruleForm'].validate((valid) => { 489 this.$refs['ruleForm'].validate((valid, errors) => {
488 if (valid) { 490 if (valid) {
489 that.$store.dispatch("user/refreshPage", false) 491 that.$store.dispatch("user/refreshPage", false)
490 saveData(this.ruleForm).then((res) => { 492 saveData(this.ruleForm).then((res) => {
...@@ -504,6 +506,10 @@ ...@@ -504,6 +506,10 @@
504 } 506 }
505 }) 507 })
506 } else { 508 } else {
509 const fieldErrors = errors['zdjbxx.qlxz'];
510 if (fieldErrors.length > 0) {
511 this.isError = true
512 }
507 this.$message({ 513 this.$message({
508 showClose: true, 514 showClose: true,
509 message: "请输入红框内的相关信息!", 515 message: "请输入红框内的相关信息!",
...@@ -535,4 +541,7 @@ ...@@ -535,4 +541,7 @@
535 <style scoped lang="scss"> 541 <style scoped lang="scss">
536 @import "~@/styles/public.scss"; 542 @import "~@/styles/public.scss";
537 @import "~@/styles/slxx/slxx.scss"; 543 @import "~@/styles/slxx/slxx.scss";
544 /deep/.is-error .vue-treeselect div {
545 border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */
546 }
538 </style> 547 </style>
......