[update] - 修改会议名称的长度为100; 修改bug
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
<a-col :xxl="8" :xl="12" :sm="24">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<a-form-item label="会议名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="会议名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入会议名称"
|
<a-input placeholder="请输入会议名称"
|
||||||
:maxLength='50'
|
:maxLength='100'
|
||||||
@change="event => event.target.value = event.target.value.trim()"
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
v-decorator="['meetingName',validateInviteCode.meetingName]"></a-input>
|
v-decorator="['meetingName',validateInviteCode.meetingName]"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
<!-- 绑定 index 是因为 没法通过 selectMeetingContact 方法 去传递这个索引 只能绑定在组件上 通过change 方法的第二个参数 去获取这个 index 然后去做对应的表单复赋值 -->
|
<!-- 绑定 index 是因为 没法通过 selectMeetingContact 方法 去传递这个索引 只能绑定在组件上 通过change 方法的第二个参数 去获取这个 index 然后去做对应的表单复赋值 -->
|
||||||
<select-principal placeholder="请选择会议联系人"
|
<select-principal placeholder="请选择会议联系人"
|
||||||
:index="index"
|
:index="index"
|
||||||
@change="selectMeetingContact"
|
@change="(val, VNode) => selectMeetingContact(val, VNode, index)"
|
||||||
v-decorator="['meetingContactsList['+index+'].meetingContactsId']">
|
v-decorator="['meetingContactsList['+index+'].meetingContactsId']">
|
||||||
</select-principal>
|
</select-principal>
|
||||||
<!-- ,validateInviteCode.meetingContactsId-->
|
<!-- ,validateInviteCode.meetingContactsId-->
|
||||||
@@ -860,13 +860,12 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 选择会议联系人
|
* 选择会议联系人
|
||||||
* */
|
* */
|
||||||
selectMeetingContact(val, VNode) {
|
selectMeetingContact(val, VNode, index) {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
console.log(VNode)
|
console.log(VNode)
|
||||||
if (val) {
|
if (val) {
|
||||||
// 索引 我不知道怎么去拿这个对应的索引 我只能把这个绑到这个组件上 通过这种方法 去拿索引
|
// 索引 我不知道怎么去拿这个对应的索引 我只能把这个绑到这个组件上 通过这种方法 去拿索引
|
||||||
let idx = VNode.context.index
|
let idx = VNode.context.index
|
||||||
|
|
||||||
// 要设置表单值的数组
|
// 要设置表单值的数组
|
||||||
const keys = this.form.getFieldValue('meetingContactsList')
|
const keys = this.form.getFieldValue('meetingContactsList')
|
||||||
|
|
||||||
@@ -886,6 +885,23 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
// 索引 我不知道怎么去拿这个对应的索引 我只能把这个绑到这个组件上 通过这种方法 去拿索引
|
||||||
|
let idx = index
|
||||||
|
// 要设置表单值的数组
|
||||||
|
const keys = this.form.getFieldValue('meetingContactsList')
|
||||||
|
this.$nextTick(() => {
|
||||||
|
keys.forEach((item, index) => {
|
||||||
|
// 为数组索引为index 的赋值
|
||||||
|
if (index === idx) {
|
||||||
|
keys.splice(index, 1, {
|
||||||
|
meetingContactsId: undefined,
|
||||||
|
meetingContactsPhone: undefined
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.form.setFieldsValue({meetingContactsList: keys})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user