From 1e6f8f2b3fc0968d89f1b52936dbda235d1c2dc4 Mon Sep 17 00:00:00 2001 From: admin <> Date: Mon, 9 Sep 2024 13:52:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=B5=E6=B1=A0=E5=9B=9E=E6=94=B6=20?= =?UTF-8?q?=E6=B1=BD=E8=BD=A6=E5=9B=9E=E6=94=B6=20=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth.ts | 6 +- src/api/battery.ts | 55 ++++ src/api/steel.ts | 39 +++ src/api/vehicle.ts | 55 ++++ src/json/menus.json | 18 +- .../NavBar/components/NavbarAction.vue | 2 +- src/plugins/permission.ts | 9 +- src/utils/request.ts | 20 +- src/views/dashboard/index.vue | 176 +--------- src/views/login/index.vue | 8 +- src/views/self/battery/b-inquiry.vue | 284 +++++++++++++++- src/views/self/battery/b-regis.vue | 294 ++++++++++++++++- src/views/self/battery/components/photo.vue | 28 ++ .../self/battery/components/remarkDialog.vue | 102 ++++++ .../self/steel/components/remarkDialog.vue | 90 +++++ src/views/self/steel/s-regis.vue | 1 - src/views/self/steel/steel-regis.vue | 285 ++++++++++++++++ src/views/self/vehicle/components/photo.vue | 27 ++ .../self/vehicle/components/remarkDialog.vue | 102 ++++++ src/views/self/vehicle/inquiry.vue | 308 ++++++++++++++++++ src/views/self/vehicle/regis.vue | 286 ++++++++++++++++ src/views/self/vehicle/v-inquiry.vue | 1 - src/views/self/vehicle/v-regis.vue | 1 - src/views/system/menu/index.vue | 1 - vite.config.ts | 2 +- 25 files changed, 1989 insertions(+), 211 deletions(-) create mode 100644 src/api/battery.ts create mode 100644 src/api/steel.ts create mode 100644 src/api/vehicle.ts create mode 100644 src/views/self/battery/components/photo.vue create mode 100644 src/views/self/battery/components/remarkDialog.vue create mode 100644 src/views/self/steel/components/remarkDialog.vue delete mode 100644 src/views/self/steel/s-regis.vue create mode 100644 src/views/self/steel/steel-regis.vue create mode 100644 src/views/self/vehicle/components/photo.vue create mode 100644 src/views/self/vehicle/components/remarkDialog.vue create mode 100644 src/views/self/vehicle/inquiry.vue create mode 100644 src/views/self/vehicle/regis.vue delete mode 100644 src/views/self/vehicle/v-inquiry.vue delete mode 100644 src/views/self/vehicle/v-regis.vue 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