案件录入页面输入校验

This commit is contained in:
Your Name
2023-10-12 15:54:30 +08:00
parent 60aad615b9
commit de200aaa36
4 changed files with 76 additions and 64 deletions
@@ -16,12 +16,17 @@
</el-radio-group>
</el-form-item>
</el-form>
<el-tag type="warning" v-if="noArbitrator">当前案件未指定仲裁员,请先指定仲裁员!</el-tag>
<el-tag type="warning" v-if="noArbitrator"
>当前案件未指定仲裁员,请先指定仲裁员!</el-tag
>
<p></p>
<!-- <el-form ref="form"> -->
<div v-if="isAgreePendTral == 0 || noArbitrator" style="display:inline-flex; margin-bottom: 8px;">
<div class="infoIcon"></div>
<div>仲裁员信息列表</div>
<div
v-if="isAgreePendTral == 0 || noArbitrator"
style="display: inline-flex; margin-bottom: 8px"
>
<div class="infoIcon"></div>
<div>仲裁员信息列表</div>
</div>
<el-table
:data="dataList"
@@ -105,10 +110,10 @@ export default {
formateCourtData: {
handler(val) {
if (val.arbitratorName == null) {
console.log('无仲裁员',val);
this.noArbitrator = true
console.log("无仲裁员", val);
this.noArbitrator = true;
} else {
this.noArbitrator = false
this.noArbitrator = false;
}
},
},
@@ -133,19 +138,26 @@ export default {
},
// 确认
submitForm() {
// if (this.arbitrators.length > 0) {
if (this.isAgreePendTral == 0) {
if (this.noArbitrator) {
this.paramsdata = {
isAgreePendTral: 0,
id: this.formateCourtData.id,
arbitrators: this.arbitrators,
};
} else {
this.paramsdata = {
isAgreePendTral: 1,
id: this.formateCourtData.id,
};
if (this.isAgreePendTral == 0) {
this.paramsdata = {
isAgreePendTral: 0,
id: this.formateCourtData.id,
arbitrators: this.arbitrators,
};
} else {
this.paramsdata = {
isAgreePendTral: 1,
id: this.formateCourtData.id,
};
}
}
pendTralCheck(this.paramsdata).then((res) => {
this.cancel();
this.$modal.msgSuccess("组庭成功");