ea7a6e14 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents bd41a705 2f45934a
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2024-03-26 11:05:43
* @LastEditTime: 2024-03-26 11:12:20
-->
<template>
<div class="slxx">
......@@ -819,7 +819,6 @@
padding-bottom: 0px;
}
/* 当校验失败时的边框样式 */
/deep/.is-error .vue-treeselect div {
border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */
}
......
......@@ -2,7 +2,7 @@
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-03-08 14:03:28
* @LastEditTime: 2024-03-26 11:09:53
-->
<template>
<!-- 受理信息 -->
......@@ -86,7 +86,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:" prop="zdjbxx.qlxz">
<el-form-item label="权利性质:" prop="zdjbxx.qlxz" :class="{ 'is-error': isError }">
<treeselect
:disabled="!viewEdit"
v-model="ruleForm.zdjbxx.qlxz"
......@@ -348,6 +348,7 @@
},
data () {
return {
isError: false,
key: 0,
isSave: true,
loading: false,
......@@ -421,6 +422,7 @@
* @author: renchao
*/
onSubmit () {
this.isError = false
let that = this;
let arr = this.ruleForm.tdytqxList.filter((item) => !item.yt);
if (arr.length > 0) {
......@@ -484,7 +486,7 @@
})
}
}
this.$refs['ruleForm'].validate((valid) => {
this.$refs['ruleForm'].validate((valid, errors) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false)
saveData(this.ruleForm).then((res) => {
......@@ -504,6 +506,10 @@
}
})
} else {
const fieldErrors = errors['zdjbxx.qlxz'];
if (fieldErrors.length > 0) {
this.isError = true
}
this.$message({
showClose: true,
message: "请输入红框内的相关信息!",
......@@ -535,4 +541,7 @@
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
/deep/.is-error .vue-treeselect div {
border-color: #f56c6c; /* 设置失败时的边框颜色为红色 */
}
</style>
......