diff --git a/src/views/user/component/add.vue b/src/views/user/component/add.vue index dafaf99..dab48db 100644 --- a/src/views/user/component/add.vue +++ b/src/views/user/component/add.vue @@ -12,7 +12,7 @@ const formDataInfo = reactive({ mobile: '', code: '', real_name: '', - user_ship: '', + user_ship: 0, selectedValues: [], }) @@ -119,13 +119,13 @@ const props = { const userShip = ref([]) const getUserShip = () => { - userShipApi({ - type_id: 4 - }).then(res => { - userShip.value = res.data.lists?.filter((item) => { - return item.id == 0 || item.id == 4 - }); - }) + // userShipApi({ + // type_id: 4 + // }).then(res => { + // userShip.value = res.data.lists?.filter((item) => { + // return item.id == 0 || item.id == 4 + // }); + // }) } getUserShip() @@ -148,7 +148,7 @@ const addUser = () => { userAddApi(forms).then(res=>{ formDataInfo.mobile = ''; formDataInfo.code = ''; - formDataInfo.user_ship = ''; + formDataInfo.user_ship = 0; formDataInfo.real_name = ''; formDataInfo.selectedValues = []; formDataRef.value.resetFields(); @@ -196,11 +196,11 @@ defineExpose({ - + diff --git a/src/views/user/component/detail.vue b/src/views/user/component/detail.vue index e0cabde..e77556d 100644 --- a/src/views/user/component/detail.vue +++ b/src/views/user/component/detail.vue @@ -512,8 +512,8 @@ onUnmounted(() => { formData.user_ship_name }} {{ formData.user_ship_name }} - 修改 +