update 工作组、起草组批量新增成员单位完善

This commit is contained in:
danshihao
2024-03-11 09:57:55 +08:00
parent 492359cb34
commit a1cb70e9de
2 changed files with 24 additions and 4 deletions
@@ -13,10 +13,11 @@
<!-- 批量添加时显示 -->
<template v-if="isBatchAdd && model.draftingGroupIdList && model.draftingGroupIdList.length > 0">
<a-row v-for="(_, index) in model.draftingGroupIdList" :key="index + ''">
<a-col :xl="21" :sm="20">
<!-- 对齐其他表单单独设置col样式 -->
<a-col :xl="21" :sm="20" class="custom-col">
<a-form-item :label="`起草组${index + 1}`" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
<a-select
:placeholder="`请选择起草组项目${index + 1}`"
:placeholder="`请选择起草组${index + 1}`"
show-search
v-decorator="[`draftingGroupIdList[${index}]`, {rules: [{ required: index === 0, validator: index === 0 ? validateDraftingGroupRequired : validateDraftingGroup }],validateTrigger: 'change'}]"
:maxLength='50'
@@ -713,4 +714,13 @@ export default {
.del-btn {
color: #ff4d4f
}
// 工作组选择对齐其他表单的样式
.custom-col {
/deep/ .ant-col-sm-4 {
width: calc(100% / 24 * 4.5);
}
/deep/ .ant-col-sm-20 {
width: calc(100% / 24 * 19.5);
}
}
</style>
@@ -31,10 +31,11 @@
<!--todo 样式得调整左侧和下面的成员单位应该保持一致-->
<template v-if="isBatchAdd && model.workingGroupIdList && model.workingGroupIdList.length > 0">
<a-row v-for="(_, index) in model.workingGroupIdList" :key="index + ''">
<a-col :xl="21" :sm="20">
<!-- 对齐其他表单单独设置col样式 -->
<a-col :xl="21" :sm="20" class="custom-col">
<a-form-item :label="`工作组${index + 1}`" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
<a-select
:placeholder="`请选择工作组项目${index + 1}`"
:placeholder="`请选择工作组${index + 1}`"
show-search
v-decorator="[`workingGroupIdList[${index}]`, {rules: [{ required: index === 0, validator: index === 0 ? validateWorkingGroupRequired : validateWorkingGroup }],validateTrigger: 'change'}]"
:maxLength='50'
@@ -1159,4 +1160,13 @@ export default {
.del-btn {
color: #ff4d4f
}
// 工作组选择对齐其他表单的样式
.custom-col {
/deep/ .ant-col-sm-4 {
width: calc(100% / 24 * 4.5);
}
/deep/ .ant-col-sm-20 {
width: calc(100% / 24 * 19.5);
}
}
</style>