diff --git a/src/api/member/user/index.ts b/src/api/member/user/index.ts
index fbeaba93..2a6b6ccf 100644
--- a/src/api/member/user/index.ts
+++ b/src/api/member/user/index.ts
@@ -32,3 +32,8 @@ export const getUser = async (id: number) => {
export const updateUser = async (data: UserVO) => {
return await request.put({ url: `/member/user/update`, data })
}
+
+// 修改会员用户等级
+export const updateUserLevel = async (data: any) => {
+ return await request.put({ url: `/member/user/update-level`, data })
+}
diff --git a/src/views/member/user/UpdateLevelForm.vue b/src/views/member/user/UpdateLevelForm.vue
new file mode 100644
index 00000000..e583f4a9
--- /dev/null
+++ b/src/views/member/user/UpdateLevelForm.vue
@@ -0,0 +1,101 @@
+
+
+
+
diff --git a/src/views/member/user/UserForm.vue b/src/views/member/user/UserForm.vue
index 0b7915a2..0da4ef61 100644
--- a/src/views/member/user/UserForm.vue
+++ b/src/views/member/user/UserForm.vue
@@ -60,22 +60,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -95,7 +79,6 @@ import * as UserApi from '@/api/member/user'
import * as AreaApi from '@/api/system/area'
import { defaultProps } from '@/utils/tree'
import MemberTagSelect from '@/views/member/tag/components/MemberTagSelect.vue'
-import MemberLevelSelect from '@/views/member/level/components/MemberLevelSelect.vue'
import MemberGroupSelect from '@/views/member/group/components/MemberGroupSelect.vue'
const { t } = useI18n() // 国际化
@@ -118,18 +101,14 @@ const formData = ref({
birthday: undefined,
mark: undefined,
tagIds: [],
- levelId: undefined,
- levelReason: undefined,
groupId: undefined
})
const formRules = reactive({
mobile: [{ required: true, message: '手机号不能为空', trigger: 'blur' }],
- status: [{ required: true, message: '状态不能为空', trigger: 'blur' }],
- levelReason: [{ required: true, message: '修改原因不能为空', trigger: 'blur' }]
+ status: [{ required: true, message: '状态不能为空', trigger: 'blur' }]
})
const formRef = ref() // 表单 Ref
const areaList = ref([]) // 地区列表
-const originLevelId = ref() // 修改前的会员等级
/** 打开弹窗 */
const open = async (type: string, id?: number) => {
@@ -142,7 +121,6 @@ const open = async (type: string, id?: number) => {
formLoading.value = true
try {
formData.value = await UserApi.getUser(id)
- originLevelId.value = formData.value.levelId
} finally {
formLoading.value = false
}
@@ -194,8 +172,6 @@ const resetForm = () => {
birthday: undefined,
mark: undefined,
tagIds: [],
- levelId: undefined,
- levelReason: undefined,
groupId: undefined
}
formRef.value?.resetFields()
diff --git a/src/views/member/user/index.vue b/src/views/member/user/index.vue
index 3a8e4259..8f0444c5 100644
--- a/src/views/member/user/index.vue
+++ b/src/views/member/user/index.vue
@@ -107,7 +107,7 @@
:formatter="dateFormatter"
width="180px"
/>
-
+
编辑
+
+
+ 修改等级
+
@@ -131,6 +140,8 @@
+
+