diff --git a/src/api/operationsManagement/operationalModel/time/index.ts b/src/api/operationsManagement/operationalModel/time/index.ts new file mode 100644 index 0000000..a77531d --- /dev/null +++ b/src/api/operationsManagement/operationalModel/time/index.ts @@ -0,0 +1,48 @@ +import request from '@/config/axios' + +// 场站运营模型详情 VO +export interface RunModelDetailVO { + // id + id: number + // 运营模型id + modelId: number + // 运营区间模型名称 + name: string + // 开始时刻 + startTime: string + // 结束时刻 + endTime: string +} + +// 场站运营模型详情 API +export const RunModelDetailApi = { + // 查询场站运营模型详情分页 + getRunModelDetailPage: async (params: any) => { + return await request.get({ url: `/cloud/run-model-detail/page`, params }) + }, + + // 查询场站运营模型详情详情 + getRunModelDetail: async (id: number) => { + return await request.get({ url: `/cloud/run-model-detail/get?id=` + id }) + }, + + // 新增场站运营模型详情 + createRunModelDetail: async (data: RunModelDetailVO) => { + return await request.post({ url: `/cloud/run-model-detail/create`, data }) + }, + + // 修改场站运营模型详情 + updateRunModelDetail: async (data: RunModelDetailVO) => { + return await request.put({ url: `/cloud/run-model-detail/update`, data }) + }, + + // 删除场站运营模型详情 + deleteRunModelDetail: async (id: number) => { + return await request.delete({ url: `/cloud/run-model-detail/delete?id=` + id }) + }, + + // 导出场站运营模型详情 Excel + exportRunModelDetail: async (params) => { + return await request.download({ url: `/cloud/run-model-detail/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeForm.vue b/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeForm.vue index a5a22d0..98de17c 100644 --- a/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeForm.vue +++ b/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeForm.vue @@ -190,7 +190,7 @@ const formData = ref({ // endTime: undefined }) const formRules = reactive({ - Time:[{ required: true, message: '计费模型名称不能为空', trigger: 'blur' }], + Time:[{ required: true, message: '时间不能为空', trigger: 'blur' }], name: [{ required: true, message: '计费模型名称不能为空', trigger: 'blur' }], price: [{ required: true, message: '换电服务单价不能为空', trigger: 'blur' }] }) diff --git a/src/views/system/operationsManagement/billingModel/components/month/ElectricityDateForm.vue b/src/views/system/operationsManagement/billingModel/components/month/ElectricityDateForm.vue index 664ec1d..8d1e1cd 100644 --- a/src/views/system/operationsManagement/billingModel/components/month/ElectricityDateForm.vue +++ b/src/views/system/operationsManagement/billingModel/components/month/ElectricityDateForm.vue @@ -70,8 +70,8 @@ @@ -81,8 +81,8 @@ diff --git a/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue b/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue index fbac38d..ef9ce65 100644 --- a/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue +++ b/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue @@ -1,5 +1,4 @@