修改部分字段,调整打包配置
This commit is contained in:
parent
cf550031fa
commit
b831a90a0a
|
@ -46,7 +46,7 @@ const Meter = (props: P) => {
|
||||||
value={props.Meter}
|
value={props.Meter}
|
||||||
placeholder={props.placeholder || "请输入表号检索"}
|
placeholder={props.placeholder || "请输入表号检索"}
|
||||||
loading={equals(MeterStatus, 'loading')}
|
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 }))}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ export const UserReport: FC = () => {
|
||||||
const finalAmount = Number(item?.overall?.amount || 0) + Number(item?.loss?.amount || 0) + Number(item?.publicAmount || 0)
|
const finalAmount = Number(item?.overall?.amount || 0) + Number(item?.loss?.amount || 0) + Number(item?.publicAmount || 0)
|
||||||
return (
|
return (
|
||||||
<tr key={index}>
|
<tr key={index}>
|
||||||
<td>{item?.code}</td>
|
<td>{item?.meterNo}</td>
|
||||||
<td>{item?.address}</td>
|
<td>{item?.address}</td>
|
||||||
<td>{outputWithPrecision(item?.startNumber, 2, '-')}</td>
|
<td>{outputWithPrecision(item?.startNumber, 2, '-')}</td>
|
||||||
<td>{outputWithPrecision(item?.endNumber, 2, '-')}</td>
|
<td>{outputWithPrecision(item?.endNumber, 2, '-')}</td>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { isNil } from 'ramda';
|
||||||
import { MaybeMapFactory } from '@/shared/foundation';
|
import { MaybeMapFactory } from '@/shared/foundation';
|
||||||
|
|
||||||
let engineCache: AxiosInstance | null = null;
|
let engineCache: AxiosInstance | null = null;
|
||||||
export const baseUrl = '/wxApi'
|
export const baseUrl = '/api'
|
||||||
/**
|
/**
|
||||||
* 应用中所需要使用的AJAX引擎。
|
* 应用中所需要使用的AJAX引擎。
|
||||||
* @param forceUnauthorized 是否强制丢弃用户会话令牌信息。
|
* @param forceUnauthorized 是否强制丢弃用户会话令牌信息。
|
||||||
|
|
|
@ -155,7 +155,7 @@ export async function create04KvMeter(pid: string, data: Meter04KvInfo): Promise
|
||||||
* @param data 修改0.4Kv表计信息
|
* @param data 修改0.4Kv表计信息
|
||||||
*/
|
*/
|
||||||
export async function change04KvMeterInfo(pid: string, data: Meter04KvInfo): Promise<BaseResponse> {
|
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);
|
return unwrap(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,11 +119,12 @@ export const enum MeterType {
|
||||||
* 0.4Kv表计信息
|
* 0.4Kv表计信息
|
||||||
*/
|
*/
|
||||||
export interface Meter04KvInfo {
|
export interface Meter04KvInfo {
|
||||||
|
id: string;
|
||||||
tableKey?: string;
|
tableKey?: string;
|
||||||
/** 户址 */
|
/** 户址 */
|
||||||
address: null | string;
|
address: null | string;
|
||||||
/** 表计表号 */
|
/** 表计表号 */
|
||||||
code: string;
|
meterNo: string;
|
||||||
/** 条目创建时间,时间格式为 yyyy-MM-dd HH:mm:ss */
|
/** 条目创建时间,时间格式为 yyyy-MM-dd HH:mm:ss */
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
/** 是否可用 */
|
/** 是否可用 */
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default mode => {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
envDir: './',
|
envDir: './',
|
||||||
publicDir: "/h5",
|
publicDir: "/user-report",
|
||||||
base: './',
|
base: './',
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user