|
@@ -42,35 +42,6 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <!-- <el-form-item label="账户余额" prop="balance">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.balance"
|
|
|
|
- placeholder="请输入账户余额"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="积分数量" prop="point">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.point"
|
|
|
|
- placeholder="请输入积分数量"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item> -->
|
|
|
|
- <!-- <el-form-item label="获得时间" prop="createDate">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="queryParams.createDate"
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
- type="daterange"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item> -->
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button @click="handleQuery">
|
|
<el-button @click="handleQuery">
|
|
<Icon icon="ep:search" class="mr-5px" />
|
|
<Icon icon="ep:search" class="mr-5px" />
|
|
@@ -111,6 +82,14 @@
|
|
/>
|
|
/>
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
|
+ <el-button
|
|
|
|
+ link
|
|
|
|
+ @click="openBalanceForm('update', scope.row.id, scope.row.userId)"
|
|
|
|
+ type="primary"
|
|
|
|
+ v-hasPermi="['menduner:reward:user-balance:update']"
|
|
|
|
+ >
|
|
|
|
+ 修改余额
|
|
|
|
+ </el-button>
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
@click="openForm('update', scope.row.id, scope.row.userId)"
|
|
@click="openForm('update', scope.row.id, scope.row.userId)"
|
|
@@ -131,14 +110,18 @@
|
|
/>
|
|
/>
|
|
</ContentWrap>
|
|
</ContentWrap>
|
|
|
|
|
|
- <!-- 表单弹窗:修改 -->
|
|
|
|
|
|
+ <!-- 表单弹窗:修改积分 -->
|
|
<UserPointsForm ref="formRef" @success="getList" />
|
|
<UserPointsForm ref="formRef" @success="getList" />
|
|
|
|
+
|
|
|
|
+ <!-- 修改余额 -->
|
|
|
|
+ <UserBalanceForm ref="balanceFormRef" @success="getList" />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
import UserPointsForm from './UserPointsForm.vue'
|
|
import UserPointsForm from './UserPointsForm.vue'
|
|
|
|
+import UserBalanceForm from './UserBalanceForm.vue'
|
|
import * as UserAccountApi from '@/api/menduner/system/account/user'
|
|
import * as UserAccountApi from '@/api/menduner/system/account/user'
|
|
|
|
|
|
defineOptions({ name: 'AccountUser' })
|
|
defineOptions({ name: 'AccountUser' })
|
|
@@ -176,6 +159,11 @@ const openForm = (type: string, id: number, userId: string) => {
|
|
formRef.value.open(type, id, userId)
|
|
formRef.value.open(type, id, userId)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const balanceFormRef = ref()
|
|
|
|
+const openBalanceForm = (type: string, id: number, userId: string) => {
|
|
|
|
+ balanceFormRef.value.open(type, id, userId)
|
|
|
|
+}
|
|
|
|
+
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
const handleQuery = () => {
|
|
const handleQuery = () => {
|
|
queryParams.pageNo = 1
|
|
queryParams.pageNo = 1
|