Merge branch 'dev'
Showing
2 changed files
with
13 additions
and
5 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-03-26 11:05:43 | 4 | * @LastEditTime: 2024-03-26 11:12:20 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -819,7 +819,6 @@ | ... | @@ -819,7 +819,6 @@ |
| 819 | padding-bottom: 0px; | 819 | padding-bottom: 0px; |
| 820 | } | 820 | } |
| 821 | 821 | ||
| 822 | /* 当校验失败时的边框样式 */ | ||
| 823 | /deep/.is-error .vue-treeselect div { | 822 | /deep/.is-error .vue-treeselect div { |
| 824 | border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */ | 823 | border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */ |
| 825 | } | 824 | } | ... | ... |
| ... | @@ -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> | ... | ... |
-
Please register or sign in to post a comment