mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
Merge branch 'master_sync_1202' into master_1202
This commit is contained in:
@@ -60,7 +60,7 @@ const memberParam = ref({name: '', pageNo:1, pageSize: 20})
|
||||
|
||||
const {data: userList, loading} = useThrottlePage(USER_LIST_NEW, memberParam.value, false)
|
||||
|
||||
const options = computed(() => userList.value.filter(e => !(props.value + '').includes(e.id)).map(e => ({
|
||||
const options = computed(() => userList.value && userList.value.filter(e => !(props.value + '').includes(e.id)).map(e => ({
|
||||
label: e.name + '(' + e.mobile + ')' ,
|
||||
value: e.id // ,
|
||||
// ...e,
|
||||
@@ -70,7 +70,6 @@ const options = computed(() => userList.value.filter(e => !(props.value + '').in
|
||||
watch(props, init)
|
||||
|
||||
function init() {
|
||||
console.log("init gx props value",props.value)
|
||||
//第一次进来 编辑赋值
|
||||
if (props.value && (props.value + '') !== selectOptions.value.map(e => e.value).join(',')) {
|
||||
selectOptions.value = (props.value + '').split(',').map((e, i) => ({label: props.name.split(',')[i], value: e}))
|
||||
@@ -78,7 +77,7 @@ function init() {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
console.log('onMounted gx init')
|
||||
console.log('onMounted')
|
||||
init()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user