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( >