修改部分字段,调整打包配置

This commit is contained in:
qiaomu 2024-07-22 13:24:48 +08:00
parent cf550031fa
commit b831a90a0a
6 changed files with 7 additions and 6 deletions

View File

@ -46,7 +46,7 @@ const Meter = (props: P) => {
value={props.Meter}
placeholder={props.placeholder || "请输入表号检索"}
loading={equals(MeterStatus, 'loading')}
options={(Meters || []).map(d => ({ value: props.valueKey ? d[props.valueKey]: d.code, label: props.labelKey ? d[props.labelKey] : d.code }))}
options={(Meters || []).map(d => ({ value: props.valueKey ? d[props.valueKey]: d.meterNo, label: props.labelKey ? d[props.labelKey] : d.meterNo }))}
/>
)
}

View File

@ -65,7 +65,7 @@ export const UserReport: FC = () => {
const finalAmount = Number(item?.overall?.amount || 0) + Number(item?.loss?.amount || 0) + Number(item?.publicAmount || 0)
return (
<tr key={index}>
<td>{item?.code}</td>
<td>{item?.meterNo}</td>
<td>{item?.address}</td>
<td>{outputWithPrecision(item?.startNumber, 2, '-')}</td>
<td>{outputWithPrecision(item?.endNumber, 2, '-')}</td>

View File

@ -8,7 +8,7 @@ import { isNil } from 'ramda';
import { MaybeMapFactory } from '@/shared/foundation';
let engineCache: AxiosInstance | null = null;
export const baseUrl = '/wxApi'
export const baseUrl = '/api'
/**
* 使AJAX引擎
* @param forceUnauthorized

View File

@ -155,7 +155,7 @@ export async function create04KvMeter(pid: string, data: Meter04KvInfo): Promise
* @param data 0.4Kv表计信息
*/
export async function change04KvMeterInfo(pid: string, data: Meter04KvInfo): Promise<BaseResponse> {
const response = await ajaxEngine().put(`/meter/${pid}/${data.code}`, data);
const response = await ajaxEngine().put(`/meter/${pid}/${data.id}`, data);
return unwrap(response);
}

View File

@ -119,11 +119,12 @@ export const enum MeterType {
* 0.4Kv表计信息
*/
export interface Meter04KvInfo {
id: string;
tableKey?: string;
/** 户址 */
address: null | string;
/** 表计表号 */
code: string;
meterNo: string;
/** 条目创建时间,时间格式为 yyyy-MM-dd HH:mm:ss */
createdAt: string;
/** 是否可用 */

View File

@ -104,7 +104,7 @@ export default mode => {
})
],
envDir: './',
publicDir: "/h5",
publicDir: "/user-report",
base: './',
server: {
port: 3000,