update 工作组、起草组批量新增成员单位完善
This commit is contained in:
@@ -13,10 +13,11 @@
|
|||||||
<!-- 批量添加时显示) -->
|
<!-- 批量添加时显示) -->
|
||||||
<template v-if="isBatchAdd && model.draftingGroupIdList && model.draftingGroupIdList.length > 0">
|
<template v-if="isBatchAdd && model.draftingGroupIdList && model.draftingGroupIdList.length > 0">
|
||||||
<a-row v-for="(_, index) in model.draftingGroupIdList" :key="index + ''">
|
<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-form-item :label="`起草组${index + 1}`" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
|
||||||
<a-select
|
<a-select
|
||||||
:placeholder="`请选择起草组项目${index + 1}`"
|
:placeholder="`请选择起草组${index + 1}`"
|
||||||
show-search
|
show-search
|
||||||
v-decorator="[`draftingGroupIdList[${index}]`, {rules: [{ required: index === 0, validator: index === 0 ? validateDraftingGroupRequired : validateDraftingGroup }],validateTrigger: 'change'}]"
|
v-decorator="[`draftingGroupIdList[${index}]`, {rules: [{ required: index === 0, validator: index === 0 ? validateDraftingGroupRequired : validateDraftingGroup }],validateTrigger: 'change'}]"
|
||||||
:maxLength='50'
|
:maxLength='50'
|
||||||
@@ -713,4 +714,13 @@ export default {
|
|||||||
.del-btn {
|
.del-btn {
|
||||||
color: #ff4d4f
|
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>
|
</style>
|
||||||
@@ -31,10 +31,11 @@
|
|||||||
<!--todo 样式得调整,左侧和下面的成员单位应该保持一致。-->
|
<!--todo 样式得调整,左侧和下面的成员单位应该保持一致。-->
|
||||||
<template v-if="isBatchAdd && model.workingGroupIdList && model.workingGroupIdList.length > 0">
|
<template v-if="isBatchAdd && model.workingGroupIdList && model.workingGroupIdList.length > 0">
|
||||||
<a-row v-for="(_, index) in model.workingGroupIdList" :key="index + ''">
|
<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-form-item :label="`工作组${index + 1}`" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
|
||||||
<a-select
|
<a-select
|
||||||
:placeholder="`请选择工作组项目${index + 1}`"
|
:placeholder="`请选择工作组${index + 1}`"
|
||||||
show-search
|
show-search
|
||||||
v-decorator="[`workingGroupIdList[${index}]`, {rules: [{ required: index === 0, validator: index === 0 ? validateWorkingGroupRequired : validateWorkingGroup }],validateTrigger: 'change'}]"
|
v-decorator="[`workingGroupIdList[${index}]`, {rules: [{ required: index === 0, validator: index === 0 ? validateWorkingGroupRequired : validateWorkingGroup }],validateTrigger: 'change'}]"
|
||||||
:maxLength='50'
|
:maxLength='50'
|
||||||
@@ -1159,4 +1160,13 @@ export default {
|
|||||||
.del-btn {
|
.del-btn {
|
||||||
color: #ff4d4f
|
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>
|
</style>
|
||||||
Reference in New Issue
Block a user