|
|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
<div class="table-box">
|
|
|
- <ProTable ref="proTable" :columns="columns" :request-api="getTableList" :init-param="initParam" :data-callback="dataCallback">
|
|
|
+ <ProTable ref="proTable" :columns="columns" :data-callback="dataCallback" :init-param="initParam" :request-api="getTableList">
|
|
|
<!-- 表格 header 按钮 -->
|
|
|
<!-- <template #tableHeader="scope">
|
|
|
<el-button type="primary" :icon="CirclePlus" @click="openDrawer('新增')">新增商铺及商铺管理员</el-button>
|
|
|
</template> -->
|
|
|
<!-- Expand -->
|
|
|
<template #tableHeader="scope">
|
|
|
- <el-button type="primary" :icon="Download" @click="exportInfoExcel(scope)"> 导出 </el-button>
|
|
|
+ <el-button :icon="Download" type="primary" @click="exportInfoExcel(scope)"> 导出 </el-button>
|
|
|
</template>
|
|
|
<template #expand="scope">
|
|
|
{{ scope.row }}
|
|
|
@@ -20,7 +20,7 @@
|
|
|
</template>
|
|
|
<!-- createTime -->
|
|
|
<template #createTime="scope">
|
|
|
- <el-button type="primary" link @click="ElMessage.success('我是通过作用域插槽渲染的内容')">
|
|
|
+ <el-button link type="primary" @click="ElMessage.success('我是通过作用域插槽渲染的内容')">
|
|
|
{{ scope.row.createTime }}
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -28,17 +28,17 @@
|
|
|
<template #operation="scope">
|
|
|
<!-- 审批通过和拒绝按钮仅在状态为0时显示 -->
|
|
|
<template v-if="scope.row.status === '0'">
|
|
|
- <el-button type="primary" link @click="changeTypes(scope.row, 'pass')"> 审核通过 </el-button>
|
|
|
- <el-button type="primary" link @click="changeTypes(scope.row, '')"> 审核拒绝 </el-button>
|
|
|
+ <el-button link type="primary" @click="changeTypes(scope.row, 'pass')"> 审核通过 </el-button>
|
|
|
+ <el-button link type="primary" @click="changeTypes(scope.row, '')"> 审核拒绝 </el-button>
|
|
|
</template>
|
|
|
- <el-button type="primary" link @click="toDetail(scope.row)"> 查看详情 </el-button>
|
|
|
+ <el-button link type="primary" @click="toDetail(scope.row)"> 查看详情 </el-button>
|
|
|
</template>
|
|
|
</ProTable>
|
|
|
|
|
|
<el-dialog v-model="dialogFormVisible" title="审核拒绝" width="500">
|
|
|
<el-form :model="form">
|
|
|
<el-form-item label="" label-width="0">
|
|
|
- <el-input v-model="form.comment" autocomplete="off" type="textarea" maxlength="200" />
|
|
|
+ <el-input v-model="form.comment" autocomplete="off" maxlength="200" type="textarea" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
@@ -57,17 +57,8 @@ import { useRouter } from "vue-router";
|
|
|
import { type Course, GroupPackage, StaffConfig } from "@/api/interface";
|
|
|
import { dayjs, ElMessage, FormInstance } from "element-plus";
|
|
|
import ProTable from "@/components/ProTable/index.vue";
|
|
|
-import { ProTableInstance, ColumnProps } from "@/components/ProTable/interface";
|
|
|
-import {
|
|
|
- getGroupPackageList,
|
|
|
- changeStatus,
|
|
|
- getCouponStatusList,
|
|
|
- exportExcelExpirationTime,
|
|
|
- deleteStatus
|
|
|
-} from "@/api/modules/groupPackage";
|
|
|
-import { Download, Search } from "@element-plus/icons-vue";
|
|
|
-import { deleteCourse } from "@/api/modules/course";
|
|
|
-import { useHandleData } from "@/hooks/useHandleData";
|
|
|
+import { ColumnProps, ProTableInstance } from "@/components/ProTable/interface";
|
|
|
+import { Download } from "@element-plus/icons-vue";
|
|
|
import { audit, exportExcelStaffConfig, getStaffConfigList } from "@/api/modules/staffConfig";
|
|
|
|
|
|
const router = useRouter();
|