|
@@ -1,20 +1,16 @@
|
|
|
<!-- 签到配置 -->
|
|
|
<template>
|
|
|
-
|
|
|
- <!-- 搜索工作栏 -->
|
|
|
- <ContentWrap>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="openForm('create')"
|
|
|
- v-hasPermi="['menduner:signin-config']"
|
|
|
- >
|
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
- </el-button>
|
|
|
- </ContentWrap>
|
|
|
-
|
|
|
<!-- 列表 -->
|
|
|
<ContentWrap>
|
|
|
+ <div style="text-align: end;" v-hasPermi="['menduner:reward:sign-in-config:create']">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="openForm('create')"
|
|
|
+ >
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
<el-table v-loading="loading" :data="list">
|
|
|
<el-table-column
|
|
|
label="签到天数"
|
|
@@ -35,15 +31,15 @@
|
|
|
link
|
|
|
type="primary"
|
|
|
@click="openForm('update', scope.row.id)"
|
|
|
- v-hasPermi="'menduner:signin-config'"
|
|
|
+ v-hasPermi="['menduner:reward:sign-in-config:update']"
|
|
|
>
|
|
|
- 编辑
|
|
|
+ 修改
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
link
|
|
|
type="danger"
|
|
|
@click="handleDelete(scope.row.id)"
|
|
|
- v-hasPermi="'menduner:signin-config'"
|
|
|
+ v-hasPermi="['menduner:reward:sign-in-config:delete']"
|
|
|
>
|
|
|
删除
|
|
|
</el-button>
|
|
@@ -56,7 +52,7 @@
|
|
|
<SignInConfigForm ref="formRef" @success="getList" />
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
-import * as SignInConfigApi from '@/api/member/signin/config'
|
|
|
+import * as SignInConfigApi from '@/api/menduner/member/signConfig'
|
|
|
import SignInConfigForm from './SignInConfigForm.vue'
|
|
|
import { DICT_TYPE } from '@/utils/dict'
|
|
|
|
|
@@ -72,8 +68,7 @@ const list = ref([]) // 列表的数据
|
|
|
const getList = async () => {
|
|
|
loading.value = true
|
|
|
try {
|
|
|
- const data = await SignInConfigApi.getSignInConfigList()
|
|
|
- console.log(data)
|
|
|
+ const data = await SignInConfigApi.getSignInConfigList({})
|
|
|
list.value = data
|
|
|
} finally {
|
|
|
loading.value = false
|