diff --git a/src/resources/plugins/TsForm/TsFormSelect.vue b/src/resources/plugins/TsForm/TsFormSelect.vue index 0322ed5b75a7f56554808d2763f1d181e274cb85..effc57e4e721beaa0f50ec07e84f5d9872c3adfe 100755 --- a/src/resources/plugins/TsForm/TsFormSelect.vue +++ b/src/resources/plugins/TsForm/TsFormSelect.vue @@ -1036,10 +1036,10 @@ export default { } else if (this.value == this.currentValue) { isSame = true; } - this.$emit('change', toValue, valueObject); + let selectItem = this.multiple ? this.selectedList : this.selectedList[0] || {}; + this.$emit('change', toValue, valueObject, selectItem); if (!(!this.isChangeWrite && isSame)) { //改变值时出发on-change事件 - let selectItem = this.multiple ? this.selectedList : this.selectedList[0] || {}; this.$emit('on-change', toValue, valueObject, selectItem); typeof this.onChange == 'function' && this.onChange(toValue, valueObject, selectItem); this.multiple && this.updatePosition(); diff --git a/src/views/pages/autoexec/config/profile/component/params-list.vue b/src/views/pages/autoexec/config/profile/component/params-list.vue index 23ebfab3a06500a6547e8912ad4ee180a4bf0c1f..8ba01eca03d9059b295c271604a21716aae22f75 100644 --- a/src/views/pages/autoexec/config/profile/component/params-list.vue +++ b/src/views/pages/autoexec/config/profile/component/params-list.vue @@ -18,7 +18,7 @@ :width="100" transfer class="pr-md" - @change="handleChange(...arguments, data, index)" + @change="(currentValue, valueObj) => handleChange(currentValue, valueObj, data, index)" >