JSelectUser组件 删除不了数据

pull/663/head
zhangdaiscott 2023-07-12 18:48:17 +08:00
parent 557597390c
commit 823ca5e328
1 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<!--用户选择组件--> <!--用户选择组件-->
<template> <template>
<div> <div>
<JSelectBiz @handleOpen="handleOpen" :loading="loadingEcho" v-bind="attrs"></JSelectBiz> <JSelectBiz @change="handleChange" @handleOpen="handleOpen" :loading="loadingEcho" v-bind="attrs"></JSelectBiz>
<UserSelectModal :rowKey="rowKey" @register="regModal" @getSelectResult="setValue" v-bind="getBindValue"></UserSelectModal> <UserSelectModal :rowKey="rowKey" @register="regModal" @getSelectResult="setValue" v-bind="getBindValue"></UserSelectModal>
</div> </div>
</template> </template>
@ -119,6 +119,17 @@
emit('update:value', values.join(',')); emit('update:value', values.join(','));
} }
const getBindValue = Object.assign({}, unref(props), unref(attrs)); const getBindValue = Object.assign({}, unref(props), unref(attrs));
//update-begin---author:wangshuai ---date:20230711 for------------
/**
* 下拉框值改变回调事件
* @param values
*/
function handleChange(values) {
emit('update:value', values);
}
//update-end---author:wangshuai ---date:20230711 for------------
return { return {
state, state,
attrs, attrs,
@ -130,6 +141,7 @@
regModal, regModal,
setValue, setValue,
handleOpen, handleOpen,
handleChange,
}; };
}, },
}); });