|
@@ -25,7 +25,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import * as UserPointsApi from '@/api/menduner/reward/userPoints'
|
|
|
+import * as UserAccountApi from '@/api/menduner/system/account/user'
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
const message = useMessage() // 消息弹窗
|
|
@@ -33,7 +33,7 @@ const message = useMessage() // 消息弹窗
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
const dialogTitle = ref('') // 弹窗的标题
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
|
|
-const formData = ref<UserPointsApi.UserPointsVO>({} as UserPointsApi.UserPointsVO)
|
|
|
+const formData = ref<UserAccountApi.UserPointsVO>({} as UserAccountApi.UserPointsVO)
|
|
|
|
|
|
const formRules = reactive({
|
|
|
operation: [{ required: true, message: '变动类型不能空', trigger: 'blur' }],
|
|
@@ -64,7 +64,7 @@ const submitForm = async () => {
|
|
|
// 提交请求
|
|
|
formLoading.value = true
|
|
|
try {
|
|
|
- await UserPointsApi.updateUserPoints(formData.value)
|
|
|
+ await UserAccountApi.updateUserPoints(formData.value)
|
|
|
message.success(t('common.updateSuccess'))
|
|
|
dialogVisible.value = false
|
|
|
// 发送操作成功的事件
|