diff --git a/src/api/school/class/index.js b/src/api/school/class/index.js new file mode 100644 index 0000000..2f53371 --- /dev/null +++ b/src/api/school/class/index.js @@ -0,0 +1,41 @@ +import request from '@/config/axios' + +// 查询列表-分页 +export const getClassTypePage = async (params) => { + return await request.get({ url: '/admin-api/crm/sch-class-type/page', params }) +} + +// 查询详情 +export const getClassType = async (id) => { + return await request.get({ url: '/admin-api/crm/sch-class-type/get?id=' + id }) +} + +// 新增 +export const createClassType = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-class-type/create', data: data }) +} + +// 修改 +export const updateClassType = async (params) => { + return await request.put({ url: '/admin-api/crm/sch-class-type/update', data: params }) +} + +// 删除 +export const deleteClassType = async (id) => { + return await request.delete({ url: '/admin-api/crm/sch-class-type/delete?typeId=' + id }) +} + +// 修改状态 +export const updateClassTypeStatus = async (data) => { + return request.put({ url: '/admin-api/crm/sch-class-type/status/update', data }) +} + +// 批量修改状态 +export const batchUpdateClassTypeStatus = async (data) => { + return request.put({ url: '/admin-api/crm/sch-class-type/status/batch-update', data }) +} + +// 批量删除 +export const batchDeleteClassType = async (ids) => { + return await request.delete({ url: '/admin-api/crm/sch-class-type/batch-delete?ids=' + ids }) +} diff --git a/src/api/school/sch/index.js b/src/api/school/sch/index.js index 4bebbf3..6f82a9e 100644 --- a/src/api/school/sch/index.js +++ b/src/api/school/sch/index.js @@ -1,5 +1,4 @@ import request from '@/config/axios' - // 查询列表 export const getSchoolPage = async (params) => { return await request.get({ url: '/admin-api/crm/sch-school/page', params }) diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 201ccd0..822547b 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -4,7 +4,7 @@ import { store } from '../index' import { DictDataVO } from '@/api/system/dict/types' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' const { wsCache } = useCache('sessionStorage') -// import { listSimpleDictData } from '@/api/system/dict/dict.data' +import { listSimpleDictData } from '@/api/system/dict/dict.data' export interface DictValueType { value: any @@ -45,8 +45,7 @@ export const useDictStore = defineStore('dict', { this.dictMap = dictMap this.isSetDict = true } else { - // const res = await listSimpleDictData() - const res = [] + const res = await listSimpleDictData() // 设置数据 const dictDataMap = new Map() res.forEach((dictData: DictDataVO) => { @@ -76,8 +75,7 @@ export const useDictStore = defineStore('dict', { }, async resetDict() { wsCache.delete(CACHE_KEY.DICT_CACHE) - // const res = await listSimpleDictData() - const res = [] + const res = await listSimpleDictData() // 设置数据 const dictDataMap = new Map() res.forEach((dictData: DictDataVO) => { diff --git a/src/styles/var.css b/src/styles/var.css index d0badc1..2333ca0 100644 --- a/src/styles/var.css +++ b/src/styles/var.css @@ -22,7 +22,7 @@ /* left menu end */ /* logo start */ - --logo-height: 50px; + --logo-height: 40px; --logo-title-text-color: #fff; diff --git a/src/utils/dict.ts b/src/utils/dict.ts index c742274..594c5b2 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -110,45 +110,9 @@ export enum DICT_TYPE { SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status', SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type', - // ========== INFRA 模块 ========== - INFRA_BOOLEAN_STRING = 'infra_boolean_string', - INFRA_JOB_STATUS = 'infra_job_status', - INFRA_JOB_LOG_STATUS = 'infra_job_log_status', - INFRA_API_ERROR_LOG_PROCESS_STATUS = 'infra_api_error_log_process_status', - INFRA_CONFIG_TYPE = 'infra_config_type', - INFRA_CODEGEN_TEMPLATE_TYPE = 'infra_codegen_template_type', - INFRA_CODEGEN_FRONT_TYPE = 'infra_codegen_front_type', - INFRA_CODEGEN_SCENE = 'infra_codegen_scene', - INFRA_FILE_STORAGE = 'infra_file_storage', - - // ========== BPM 模块 ========== - BPM_MODEL_CATEGORY = 'bpm_model_category', - BPM_MODEL_FORM_TYPE = 'bpm_model_form_type', - BPM_TASK_ASSIGN_RULE_TYPE = 'bpm_task_assign_rule_type', - BPM_PROCESS_INSTANCE_STATUS = 'bpm_process_instance_status', - BPM_PROCESS_INSTANCE_RESULT = 'bpm_process_instance_result', - BPM_TASK_ASSIGN_SCRIPT = 'bpm_task_assign_script', - BPM_OA_LEAVE_TYPE = 'bpm_oa_leave_type', - - // ========== PAY 模块 ========== - PAY_CHANNEL_WECHAT_VERSION = 'pay_channel_wechat_version', // 微信渠道版本 - PAY_CHANNEL_ALIPAY_SIGN_TYPE = 'pay_channel_alipay_sign_type', // 支付渠道支付宝算法类型 - PAY_CHANNEL_ALIPAY_MODE = 'pay_channel_alipay_mode', // 支付宝公钥类型 - PAY_CHANNEL_ALIPAY_SERVER_TYPE = 'pay_channel_alipay_server_type', // 支付宝网关地址 - PAY_CHANNEL_CODE_TYPE = 'pay_channel_code_type', // 支付渠道编码类型 - PAY_ORDER_NOTIFY_STATUS = 'pay_order_notify_status', // 商户支付订单回调状态 - PAY_ORDER_STATUS = 'pay_order_status', // 商户支付订单状态 - PAY_ORDER_REFUND_STATUS = 'pay_order_refund_status', // 商户支付订单退款状态 - PAY_REFUND_ORDER_STATUS = 'pay_refund_order_status', // 退款订单状态 - PAY_REFUND_ORDER_TYPE = 'pay_refund_order_type', // 退款订单类别 - - // ========== MP 模块 ========== - MP_AUTO_REPLY_REQUEST_MATCH = 'mp_auto_reply_request_match', // 自动回复请求匹配类型 - MP_MESSAGE_TYPE = 'mp_message_type', // 消息类型 - // ========== MALL 模块 ========== PRODUCT_UNIT = 'product_unit', // 商品单位 PRODUCT_SPU_STATUS = 'product_spu_status', //商品状态 - // ========== MALL 交易模块 ========== - EXPRESS_CHARGE_MODE = 'trade_delivery_express_charge_mode' //快递的计费方式 + // ========== 驾校管理 ========== + LINCENSE_TYPE = 'license_type' //驾照类型 } diff --git a/src/views/SchoolManagement/Class/Comp/DialogClass.vue b/src/views/SchoolManagement/Class/Comp/DialogClass.vue index ccb200a..f719662 100644 --- a/src/views/SchoolManagement/Class/Comp/DialogClass.vue +++ b/src/views/SchoolManagement/Class/Comp/DialogClass.vue @@ -7,31 +7,33 @@ v-loading="formLoading" :model="formData" :rules="formRules" - label-width="80px" + label-width="90px" > - - - - - - - + + - - + + - - - - - - - - 启用 - 停用 + 启用 + 停用 @@ -64,19 +59,19 @@ 新增报价 - + @@ -90,14 +85,16 @@ - + diff --git a/src/views/SchoolManagement/Class/index.vue b/src/views/SchoolManagement/Class/index.vue index 8da7f6e..9c050e1 100644 --- a/src/views/SchoolManagement/Class/index.vue +++ b/src/views/SchoolManagement/Class/index.vue @@ -5,6 +5,8 @@ @@ -12,6 +14,8 @@ @@ -19,19 +23,21 @@ - 查询 - 重置 - 新增 - 批量删除 - 批量启/停用 + 查询 + 重置 + 新增 + 批量删除 + 批量启/停用 @@ -52,9 +74,10 @@
@@ -81,8 +104,9 @@ @@ -93,11 +117,18 @@ type="primary" style="padding: 0" text - @click="handleOpenDialog('update', row)" + v-hasPermi="['school:class:update']" + @click="handleOpenDialog('update', row.typeId)" > 修改 - + 删除 @@ -106,7 +137,7 @@ @@ -116,8 +147,8 @@ - 启用 - 禁用 + 启用 + 禁用 @@ -130,398 +161,66 @@ - +
diff --git a/src/views/SchoolManagement/Place/index.vue b/src/views/SchoolManagement/Place/index.vue index 7f51510..f09c2d9 100644 --- a/src/views/SchoolManagement/Place/index.vue +++ b/src/views/SchoolManagement/Place/index.vue @@ -44,7 +44,12 @@ {{ `数据管理(${getCount(school.schoolId)})` }} - + @@ -184,7 +189,11 @@ @@ -194,6 +203,7 @@ type="primary" style="padding: 4px 8px" @click="handleEditPlace(scope.row)" + v-hasPermi="['school:place:update']" > @@ -222,6 +232,7 @@ diff --git a/src/views/SchoolManagement/Set/Comp/SettingCartype.vue b/src/views/SchoolManagement/Set/Comp/SettingCartype.vue new file mode 100644 index 0000000..75b9f81 --- /dev/null +++ b/src/views/SchoolManagement/Set/Comp/SettingCartype.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/views/SchoolManagement/Set/index.vue b/src/views/SchoolManagement/Set/index.vue new file mode 100644 index 0000000..c42eab1 --- /dev/null +++ b/src/views/SchoolManagement/Set/index.vue @@ -0,0 +1,21 @@ + + + + +