|
@@ -36,35 +36,6 @@
|
|
|
class="!w-240px"
|
|
|
/>
|
|
|
</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-button @click="handleQuery">
|
|
|
<Icon icon="ep:search" class="mr-5px" />
|
|
@@ -98,6 +69,26 @@
|
|
|
prop="createTime"
|
|
|
:formatter="dateFormatter"
|
|
|
/>
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ @click="openBalanceForm('update', scope.row.id, scope.row.userId, scope.row.enterpriseId)"
|
|
|
+ type="primary"
|
|
|
+ v-hasPermi="['menduner:reward:enterprise-balance:update']"
|
|
|
+ >
|
|
|
+ 修改余额
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ @click="openForm('update', scope.row.id, scope.row.userId, scope.row.enterpriseId)"
|
|
|
+ type="primary"
|
|
|
+ v-hasPermi="['menduner:reward:enterprise-point:update']"
|
|
|
+ >
|
|
|
+ 修改积分
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 分页 -->
|
|
|
<Pagination
|
|
@@ -107,10 +98,17 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
</ContentWrap>
|
|
|
+
|
|
|
+ <!-- 修改积分 -->
|
|
|
+ <EnterprisePointsForm ref="formRef" @success="getList" />
|
|
|
+ <!-- 修改余额 -->
|
|
|
+ <EnterpriseBalanceForm ref="balanceFormRef" @success="getList" />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
+import EnterprisePointsForm from './EnterprisePointsForm.vue'
|
|
|
+import EnterpriseBalanceForm from './EnterpriseBalanceForm.vue'
|
|
|
import * as EnterpriseAccountApi from '@/api/menduner/system/account/enterprise'
|
|
|
|
|
|
defineOptions({ name: 'AccountEnterprise' })
|
|
@@ -142,6 +140,17 @@ const getList = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/** 添加/修改操作 */
|
|
|
+const formRef = ref()
|
|
|
+const openForm = (type: string, id: number, userId: string, enterpriseId: string) => {
|
|
|
+ formRef.value.open(type, id, userId, enterpriseId)
|
|
|
+}
|
|
|
+
|
|
|
+const balanceFormRef = ref()
|
|
|
+const openBalanceForm = (type: string, id: number, userId: string, enterpriseId: string) => {
|
|
|
+ balanceFormRef.value.open(type, id, userId, enterpriseId)
|
|
|
+}
|
|
|
+
|
|
|
/** 搜索按钮操作 */
|
|
|
const handleQuery = () => {
|
|
|
queryParams.pageNo = 1
|