From 3737ed7dc01ca172cb386e0796d8796a5eac592b Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Mon, 25 Nov 2024 09:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AE=89=E5=90=8E=E5=8F=B0=E5=92=8C?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/projectManager/index/index.vue | 2 +- collect_information/src/pages/register/register.vue | 2 +- .../subPages/projectManager/myProject/myProject.vue | 2 +- .../myProject/projectDetails/projectDetails.vue | 6 +++--- .../securityUserForm/securityUserForm.vue | 4 ++-- securityManagement/src/config/index.ts | 2 +- .../src/views/serviceManagement/index.vue | 10 +++++----- .../src/views/userManagement/bgManagement/index.vue | 6 +++--- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/collect_information/src/pages/projectManager/index/index.vue b/collect_information/src/pages/projectManager/index/index.vue index f9bcefe..13de3c5 100644 --- a/collect_information/src/pages/projectManager/index/index.vue +++ b/collect_information/src/pages/projectManager/index/index.vue @@ -53,8 +53,8 @@ import icon02 from '@/assets/images/工单.jpg' import icon03 from '@/assets/images/排名.jpg' import icon04 from '@/assets/images/法制宣传.jpg' import icon06 from '@/assets/images/警保风采.jpg' - import './index.scss' + const list = ref([process.env.TARO_APP_MINIO_URL + '/police-security/2024/11/5/dunpai.jpg']) const swiperRef = ref() //轮播图 const subModuleList = ref([ diff --git a/collect_information/src/pages/register/register.vue b/collect_information/src/pages/register/register.vue index 7031d06..288db6e 100644 --- a/collect_information/src/pages/register/register.vue +++ b/collect_information/src/pages/register/register.vue @@ -160,7 +160,7 @@ const register = async () => { identity: formData.value.identity, unitId: formData.value.unitId } - const resp = await api.post('/miniProgramUser/register', miniProgramUserRegisterParams, {loading: true}) + const resp = await api.post('/mp/user/register', miniProgramUserRegisterParams, {loading: true}) Taro.showToast({ title: "注册成功", icon: 'success', diff --git a/collect_information/src/subPages/projectManager/myProject/myProject.vue b/collect_information/src/subPages/projectManager/myProject/myProject.vue index a799c33..5d9fcbf 100644 --- a/collect_information/src/subPages/projectManager/myProject/myProject.vue +++ b/collect_information/src/subPages/projectManager/myProject/myProject.vue @@ -48,7 +48,7 @@ import {MyProjectList, ServiceProjectList} from "@/types/subPages/projectManager const myProjectList = ref() const number = ref(0) const getMyServiceProject = async () => { - const resp = await api.get(`/projectManageIndex/getMyServiceProject`) + const resp = await api.get(`/mp/pmi/get_my_sp`) myProjectList.value = resp.data number.value = (resp.data?.length || 0) } diff --git a/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue b/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue index 865a921..535d4c7 100644 --- a/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue +++ b/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue @@ -169,7 +169,7 @@ const projectDetailsTable = async () => { current: current.value } } - const resp = await api.post>('/miniProgramUser/securityUserPager', queryParams) + const resp = await api.post>('/mp/user/securityUserPager', queryParams) securityUserList.value = [...securityUserList.value, ...resp.data!.records] total.value = resp.data!.total isRefresher.value = false @@ -228,7 +228,7 @@ const deleteUssrID = (snowFlakeId: string) => { } // 二次删除 const dialogOk = async () => { - await api.delete(`/projectManageIndex/deleteSecurityUserByServiceProjectId`, {securityUserId: securityUserId.value}) + await api.delete(`/mp/user/del_security_user_id`, {securityUserId: securityUserId.value}) initServiceProjectSecurityUserList() } // 详情 @@ -248,7 +248,7 @@ const generateMiniProgramQRCode = async () => { width: 200, } qrcodeVisible.value = true - const resp = await api.get('/projectManageIndex/shareForm_QR_Code', paramsData, { + const resp = await api.get('/wx/qrCode', paramsData, { header: { "content-type": 'application/x-www-form-urlencoded' }, diff --git a/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue b/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue index 438325f..e0ccea7 100644 --- a/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue +++ b/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue @@ -129,9 +129,9 @@ const submit = () => { if (valid) { let url: string; if (type.value === 'formInput') { - url = '/projectManageIndex/saveOrUpdateSecurityUser' + url = '/mp/user/add_security_user_upd' } else { - url = '/miniProgramUser/qrCodeFormInputSecurityUser' + url = '/mp/user/qrCodeFormInputSecurityUser' } const resp = await api.post(url, formData.value) Taro.showToast({ diff --git a/securityManagement/src/config/index.ts b/securityManagement/src/config/index.ts index 2ab04cc..56bb2e1 100644 --- a/securityManagement/src/config/index.ts +++ b/securityManagement/src/config/index.ts @@ -23,7 +23,7 @@ export const SYSTEM_MENUS: SystemMenu[] = [ type: 'dir', children: [ { - title: '后台管理', + title: '后台用户', name: 'bgManagement', path: '/bgManagement', icon:'icon-guanlianbaoan', diff --git a/securityManagement/src/views/serviceManagement/index.vue b/securityManagement/src/views/serviceManagement/index.vue index 38e754f..e7c65c3 100644 --- a/securityManagement/src/views/serviceManagement/index.vue +++ b/securityManagement/src/views/serviceManagement/index.vue @@ -42,7 +42,7 @@ type TableProps = TableProMaxProps //需要 const tableRef = ref>(null!) // table表格 -const reqApi: TableProps['requestApi'] = (params) => api.post('/serviceProject/pager', params) //分页 +const reqApi: TableProps['requestApi'] = (params) => api.post('/m3/sp/pager', params) //分页 const searchFormOptions: TableProps["searchFormOptions"] = { @@ -196,7 +196,7 @@ const columns: TableProps['columns'] = [ { - const resp = await api.delete('/serviceProject/deleteById', { + const resp = await api.delete('/m3/sp/del_id', { serviceProjectId: record.snowFlakeId, }) message.success(resp.message) @@ -243,7 +243,7 @@ const getAdministrativeDivisionTree = async ()=>{ // 项目经理接口 const userNameOptions = ref([]) const projectManagerMiniProgram = async()=>{ - const resp = await api.get('/management/security/listProjectManager') + const resp = await api.get('/m3/list_p_m') userNameOptions.value = resp.data as any } @@ -276,7 +276,7 @@ const formItemOptions = ref{ - const resp = await api.post[]>('/enterprisesUnit/queryListByAdministrativeDivisionCodes',values) + const resp = await api.post[]>('/eu/list_ad_codes',values) enterprisesUnitIdList.value = resp.data }, } @@ -425,7 +425,7 @@ const submit = async()=>{ securityUserTotal:formParams.value.securityUserTotal, remark: formParams.value.remark, } - const resp = await api.post('/serviceProject/saveOrUpdate',serviceProjectSaveOrUpdateParams) + const resp = await api.post('/m3/sp/add_upd',serviceProjectSaveOrUpdateParams) message.success(resp.message) await tableRef.value?.requestGetTableData() await closeModal() diff --git a/securityManagement/src/views/userManagement/bgManagement/index.vue b/securityManagement/src/views/userManagement/bgManagement/index.vue index b7feee4..ff835f6 100644 --- a/securityManagement/src/views/userManagement/bgManagement/index.vue +++ b/securityManagement/src/views/userManagement/bgManagement/index.vue @@ -43,7 +43,7 @@ type TableProps = TableProMaxProps const tableRef = ref>(null!) // table表格 -const reqApi: TableProps['requestApi'] = (params) => api.post('/management/security/user/pager', params) //分页 +const reqApi: TableProps['requestApi'] = (params) => api.post('/m3/user/pager', params) //分页 const columns: TableProps['columns'] = [ { dataIndex: 'account', @@ -95,7 +95,7 @@ const columns: TableProps['columns'] = [ style="width:100%" title="确认删除账号吗?" onConfirm={async () => { - const resp = await api.delete('/management/security/user/deleteById', { + const resp = await api.delete('/m3/user/del_id', { managementSecurityUnitUserId: record.snowFlakeId, }) message.success(resp.message) @@ -215,7 +215,7 @@ const submit = async () => { isEnable: formParams.value.isEnable, remark: formParams.value.remark } - const resp = await api.post('/management/security/user/saveOrUpdate', managementSecurityUnitUserSaveOrUpdateParams) + const resp = await api.post('/m3/user/add_upd', managementSecurityUnitUserSaveOrUpdateParams) message.success(resp.message) tableRef.value?.requestGetTableData() closeModal()