diff --git a/src/api/auth.ts b/src/api/auth.ts index 9918a36..1828ef3 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -8,9 +8,9 @@ class AuthAPI { /** 登录 接口*/ static login(data: LoginData) { return request({ - url: `/api/user/loginPhone`, - method: "get", - params: data, + url: `/api/admin/login`, + method: "post", + data: { userName: data.phone, password: data.code }, }); } diff --git a/src/api/battery.ts b/src/api/battery.ts new file mode 100644 index 0000000..598e6e2 --- /dev/null +++ b/src/api/battery.ts @@ -0,0 +1,55 @@ +import request from "@/utils/request"; + +class BatteryAPI { + static queryPage(data: PageParams) { + return request>({ + url: `/api/v1/batteryInquiry/findPage`, + method: "get", + params: data, + }); + } + + static updateById(data: BatteryDTO) { + return request({ + url: `/api/v1/batteryInquiry/updateById`, + method: "post", + data: data, + }); + } + + static queryRegis(data: PageParams) { + return request>({ + url: `/api/v1/batteryRegistration/findPage`, + method: "get", + params: data, + }); + } + + static updateRegisById(data: BatteryDTO) { + return request({ + url: `/api/v1/batteryRegistration/updateById`, + method: "post", + data: data, + }); + } +} + +export default BatteryAPI; + +export interface PageParams { + inquiryNo?: string; + contactInfo?: string; + status?: number; // 1=已联系 0=待联系 + startTime?: string | null; + endTime?: string | null; + pageSize?: number; + pageNum?: number; + range?: string[]; + name?: string; +} + +export interface BatteryDTO { + id?: number; + status?: number; // 1=已联系 0=待联系 + remarks?: string; +} diff --git a/src/api/steel.ts b/src/api/steel.ts new file mode 100644 index 0000000..8c9f547 --- /dev/null +++ b/src/api/steel.ts @@ -0,0 +1,39 @@ +import request from "@/utils/request"; + +class SteelAPI { + static queryRegis(data: PageParams) { + return request>({ + url: `/api/v1/trialApplication/findPage`, + method: "get", + params: data, + }); + } + + static updateRegisById(data: SteelDTO) { + return request({ + url: `/api/v1/trialApplication/updateById`, + method: "post", + data: data, + }); + } +} + +export default SteelAPI; + +export interface PageParams { + inquiryNo?: string; + contactInfo?: string; + status?: number; // 1=已联系 0=待联系 + startTime?: string | null; + endTime?: string | null; + pageSize?: number; + pageNum?: number; + range?: string[]; + companyName?: string; +} + +export interface SteelDTO { + id?: number; + status?: number; // 1=已联系 0=待联系 + remarks?: string; +} diff --git a/src/api/vehicle.ts b/src/api/vehicle.ts new file mode 100644 index 0000000..1e97e69 --- /dev/null +++ b/src/api/vehicle.ts @@ -0,0 +1,55 @@ +import request from "@/utils/request"; + +class VehicleAPI { + static queryPage(data: PageParams) { + return request>({ + url: `/api/v1/vehicleInfo/findPage`, + method: "get", + params: data, + }); + } + + static updateById(data: VehicleDTO) { + return request({ + url: `/api/v1/vehicleInfo/updateById`, + method: "post", + data: data, + }); + } + + static queryRegis(data: PageParams) { + return request>({ + url: `/api/v1/vehicleRegistration/findPage`, + method: "get", + params: data, + }); + } + + static updateRegisById(data: VehicleDTO) { + return request({ + url: `/api/v1/vehicleRegistration/updateById`, + method: "post", + data: data, + }); + } +} + +export default VehicleAPI; + +export interface PageParams { + inquiryNo?: string; + contactInfo?: string; + status?: number; // 1=已联系 0=待联系 + startTime?: string | null; + endTime?: string | null; + pageSize?: number; + pageNum?: number; + range?: string[]; + name?: string; +} + +export interface VehicleDTO { + id?: number; + status?: number; // 1=已联系 0=待联系 + remarks?: string; +} diff --git a/src/json/menus.json b/src/json/menus.json index 1f3a317..62749a3 100644 --- a/src/json/menus.json +++ b/src/json/menus.json @@ -50,9 +50,9 @@ }, "children": [ { - "path": "v-inquiry", - "component": "self/vehicle/v-inquiry", - "name": "v-inquiry", + "path": "inquiry", + "component": "self/vehicle/inquiry", + "name": "inquiry", "meta": { "title": "询价管理", "icon": "", @@ -62,9 +62,9 @@ } }, { - "path": "v-regis", - "component": "self/vehicle/v-regis", - "name": "v-regis", + "path": "regis", + "component": "self/vehicle/regis", + "name": "regis", "meta": { "title": "登记列表", "icon": "", @@ -88,9 +88,9 @@ }, "children": [ { - "path": "s-regis", - "component": "self/steel/s-regis", - "name": "s-regis", + "path": "steel-regis", + "component": "self/steel/steel-regis", + "name": "steel-regis", "meta": { "title": "申请列表", "icon": "", diff --git a/src/layout/components/NavBar/components/NavbarAction.vue b/src/layout/components/NavBar/components/NavbarAction.vue index 4e0631b..0e25572 100644 --- a/src/layout/components/NavBar/components/NavbarAction.vue +++ b/src/layout/components/NavBar/components/NavbarAction.vue @@ -71,7 +71,7 @@ :src="userStore.user.avatar + '?imageView2/1/w/80/h/80'" class="rounded-full mr-10px w24px w24px" /> --> - + admin