diff --git a/src/api/hr/org/index.ts b/src/api/hr/org/index.ts index d95a906c2..3a06bc781 100644 --- a/src/api/hr/org/index.ts +++ b/src/api/hr/org/index.ts @@ -122,3 +122,13 @@ export function getTeamListCont(data: searchTeamList): AxiosPromise{ + return request({ + url: '/hrapi/org/search_userlist_customerform', + method: 'post', + data: data + }); +} diff --git a/src/components/DesignForm/public/expand/user.vue b/src/components/DesignForm/public/expand/user.vue index 484bbf77d..6a0e47906 100644 --- a/src/components/DesignForm/public/expand/user.vue +++ b/src/components/DesignForm/public/expand/user.vue @@ -25,29 +25,39 @@ const userDialogEl = ref() // emits('update:modelValue', newVal) // } // }) -const userlist = ref("") +// const userlist = ref("") const value = computed({ - get: () => props.modelValue, + get: () => { + console.log("value-get",props.modelValue) + // userlist.value = props.modelValue + return props.modelValue + }, set: (newVal: any) => { - // console.log("value-set",newVal) - emits('update:modelValue', newVal) + console.log("value-set",newVal) + // emits('update:modelValue', newVal) let newValJson:criteriaForPeopleList[] = JSON.parse(newVal) - // console.log("value-newValJson",newValJson) + console.log("value-newValJson",newValJson) if(newValJson.length > 0){ let userAry = new Array + let userKeyAry = new Array newValJson.forEach(item =>{ userAry.push(item.name+"("+item.number+")") + userKeyAry.push(item.userkey.toString()) }) - userlist.value = userAry.join(',') + emits('update:modelValue', userAry.join(',')) + // userlist.value = userAry.join(',') + // } }, }); const openDialog = () => { + // console.log("value-----》",value.value) userDialogEl.value.open() } onMounted(() => { + console.log("value---1--》",value.value,props.modelValue) nextTick(() => {}) }) @@ -56,7 +66,7 @@ onMounted(() => {