Kaynağa Gözat

清理无用文件

congxuesong 1 ay önce
ebeveyn
işleme
4911af45fc

+ 0 - 24
src/api/modules/course.ts

@@ -1,24 +0,0 @@
-import { ResPage, Course } from "@/api/interface/index";
-import { PORT1 } from "@/api/config/servicePort";
-import http from "@/api";
-
-/**
- * @name 课程管理模块
- */
-
-// 获取课程列表
-export const getCourseList = (params: Course.ReqCourseParams) => {
-  return http.get<ResPage<Course.ResCourseList>>(`/platformClass/getClassManageList`, params);
-};
-// 新增课程
-export const addCourse = (params: Course.ResCourseList) => {
-  return http.post(`/platformClass/addOrUpdateClassManage`, params);
-};
-// 修改课程状态
-export const editCourse = (params: Course.ResCourseList) => {
-  return http.post(PORT1 + `/platformClass/setClassState`, params);
-};
-// 删除课程
-export const deleteCourse = (params: Course.ResCourseList) => {
-  return http.get(`/platformClass/deleteClassById`, params);
-};

+ 1 - 45
src/api/modules/groupPackage.ts

@@ -1,38 +1,9 @@
-import { ResPage, GroupPackage } from "@/api/interface/index";
-import { PORT1, PORT_NONE } from "@/api/config/servicePort";
+import { PORT_NONE } from "@/api/config/servicePort";
 import http from "@/api";
 
 /**
  * @name 套餐管理模块
  */
-// 获取套餐列表
-export const getGroupPackageList = (params: GroupPackage.GroupPackageParams) => {
-  return http.get<ResPage<GroupPackage.GroupPackageParams>>(PORT_NONE + `/platformLifeUser/getCouponList`, params);
-};
-
-// new获取套餐列表
-export const getLifeGroupBuyMainList = (params: GroupPackage.GroupPackageParams) => {
-  return http.get<ResPage<GroupPackage.GroupPackageParams>>(PORT_NONE + `/platformLifeUser/getLifeGroupBuyMainList`, params);
-};
-
-/**
- * 获取套餐状态列表
- * @param params 参数
- * @returns 套餐状态列表
- */
-export const getCouponStatusList = (params: GroupPackage.GroupPackageParams) => {
-  return http.get<ResPage<GroupPackage.GroupPackageParams>>(PORT_NONE + `/platformLifeUser/getCouponStatusList`, params);
-};
-
-// 套餐详情
-export const getDeatail = (params: { id: string }) => {
-  return http.get(PORT_NONE + `/platformLifeUser/getCouponById`, params);
-};
-
-// 新套餐详情
-export const getLifeGroupBuyMainByDetail = (params: { id: string }) => {
-  return http.get(PORT_NONE + `/platformLifeUser/getLifeGroupBuyMainByDetail`, params);
-};
 
 // 切换套餐状态
 export const changeStatus = params => {
@@ -43,18 +14,3 @@ export const changeStatus = params => {
 export const updateStatus = params => {
   return http.get(PORT_NONE + `/groupBuy/updateStatus`, params);
 };
-
-//套餐过期查询页面导出excel
-export const exportExcelExpirationTime = async (params: { status?: string; expiredState?: string }) => {
-  return http.get(PORT_NONE + `/platformLifeUser/couponStatusExport`, params);
-};
-
-// 删除套餐状态
-export const deleteStatus = params => {
-  return http.get(PORT_NONE + `/platformLifeUser/deleteCouponStatus`, params);
-};
-
-// 套餐详情
-export const getCouponStatusDeatail = (params: { id: string }) => {
-  return http.get(PORT_NONE + `/groupPackage/getGroupPackageDetail`, params);
-};

+ 7 - 14
src/api/modules/staffConfig.ts

@@ -1,14 +1,17 @@
 import { ResPage, StaffConfig } from "@/api/interface/index";
-import { PORT1, PORT_NONE } from "@/api/config/servicePort";
+import { PORT_NONE } from "@/api/config/servicePort";
 import http from "@/api";
+
 /**
- * @name 套餐管理模块
+ * @name 员工配置管理模块
  */
-// 获取套餐列表
+
+// 获取员工配置列表
 export const getStaffConfigList = (params: StaffConfig.StaffConfigParams) => {
   return http.get<ResPage<StaffConfig.StaffConfigParams>>(PORT_NONE + `/storeStaffConfig/getStaffConfigList`, params);
 };
 
+// 审核员工配置
 export const audit = params => {
   return http.get<ResPage<StaffConfig.StaffConfigParams>>(PORT_NONE + `/storeStaffConfig/audit`, params);
 };
@@ -18,17 +21,7 @@ export const getStaffConfigDeatail = (params: { id: string }) => {
   return http.get(PORT_NONE + `/storeStaffConfig/getStaffConfigDeatail`, params);
 };
 
-//员工信息查询页面导出excel
+// 员工信息查询页面导出excel
 export const exportExcelStaffConfig = (params: { status?: string }) => {
   return http.get(PORT_NONE + `/storeStaffConfig/staffConfigExport`, params);
 };
-
-// 员工修改
-export const addOrUpdateStaffConfig = (params: { id: string }) => {
-  return http.get(PORT_NONE + `/storeStaffConfig/addOrUpdateStaffConfig`, params);
-};
-
-//新增商铺信息
-export const saveStoreInfo = (params: { id: string }) => {
-  return http.post(PORT_NONE + `/store/info/saveStoreInfo`, params);
-};

+ 9 - 18
src/views/store/storeUser/storeStaffConfigManagement/index.vue

@@ -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();