diff --git a/src/api/school/place/index.js b/src/api/school/place/index.js new file mode 100644 index 0000000..6e61327 --- /dev/null +++ b/src/api/school/place/index.js @@ -0,0 +1,39 @@ +import request from '@/config/axios' + +// 查询列表-分页 +export const getPlacePage = async (params) => { + return await request.get({ url: '/admin-api/crm/sch-place/page', params }) +} + +// 查询列表-不分页 +export const getPlaceList = async (params) => { + return await request.get({ url: '/admin-api/crm/sch-place/list', params }) +} + +// 查询详情 +export const getPlace = async (id) => { + return await request.get({ url: '/admin-api/crm/sch-place/get?id=' + id }) +} + +// 新增 +export const createPlace = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-place/create', data: data }) +} + +// 修改 +export const updatePlace = async (params) => { + return await request.put({ url: '/admin-api/crm/sch-place/update', data: params }) +} + +// 删除 +export const deletePlace = async (id) => { + return await request.delete({ url: '/admin-api/crm/sch-place/delete?id=' + id }) +} + +export const updatePlaceStatus = async (id, status) => { + const data = { + id, + status + } + return request.put({ url: '/admin-api/crm/sch-place/update-status', data: data }) +} diff --git a/src/api/school/sch/index.js b/src/api/school/sch/index.js new file mode 100644 index 0000000..4bebbf3 --- /dev/null +++ b/src/api/school/sch/index.js @@ -0,0 +1,34 @@ +import request from '@/config/axios' + +// 查询列表 +export const getSchoolPage = async (params) => { + return await request.get({ url: '/admin-api/crm/sch-school/page', params }) +} + +// 查询详情 +export const getSchool = async (id) => { + return await request.get({ url: '/admin-api/crm/sch-school/get?id=' + id }) +} + +// 新增 +export const createSchool = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-school/create', data: data }) +} + +// 修改 +export const updateSchool = async (params) => { + return await request.put({ url: '/admin-api/crm/sch-school/update', data: params }) +} + +// 删除 +export const deleteSchool = async (id) => { + return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id }) +} + +export const updateSchoolStatus = async (id, status) => { + const data = { + id, + status + } + return request.put({ url: '/admin-api/crm/sch-school/update-status', data: data }) +} diff --git a/src/assets/imgs/logo.png b/src/assets/imgs/logo.png deleted file mode 100644 index 7e1043f..0000000 Binary files a/src/assets/imgs/logo.png and /dev/null differ diff --git a/src/layout/components/Logo/src/Logo.vue b/src/layout/components/Logo/src/Logo.vue index 14b5021..ffb2d27 100644 --- a/src/layout/components/Logo/src/Logo.vue +++ b/src/layout/components/Logo/src/Logo.vue @@ -12,6 +12,7 @@ const appStore = useAppStore() const show = ref(true) const title = computed(() => appStore.getAppInfo?.instanceName) +const logoUrl = computed(() => appStore.getAppInfo?.instanceIcon) const layout = computed(() => appStore.getLayout) @@ -67,7 +68,7 @@ watch( >
([]) // 角色的列表 /** 打开弹窗 */ const open = async (row: UserApi.UserVO) => { @@ -62,7 +62,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 const submitForm = async () => { // 校验表单 - if (!formRef) return + if (!formRef.value) return const valid = await formRef.value.validate() if (!valid) return // 提交请求 diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 6d96f5f..ef355fb 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -9,7 +9,7 @@ >
- + {{ underlineToHump(appInfo.instanceName) }}
@@ -34,7 +34,7 @@
- + {{ underlineToHump(appInfo.instanceName) }}
diff --git a/src/views/Login/components/QrCodeForm.vue b/src/views/Login/components/QrCodeForm.vue index c485d28..96fe484 100644 --- a/src/views/Login/components/QrCodeForm.vue +++ b/src/views/Login/components/QrCodeForm.vue @@ -5,7 +5,8 @@ - + + {{ t('login.qrcode') }} @@ -17,12 +18,14 @@ diff --git a/src/views/SchoolManagement/Place/index.vue b/src/views/SchoolManagement/Place/index.vue index ffd105b..7f51510 100644 --- a/src/views/SchoolManagement/Place/index.vue +++ b/src/views/SchoolManagement/Place/index.vue @@ -221,6 +221,8 @@