页面搭建

lsf-dev
xielei 2024-10-12 16:52:03 +08:00
parent 7dc9e7d805
commit 886e22feef
4 changed files with 28 additions and 18 deletions

View File

@ -41,8 +41,15 @@ export default function KrLine({ record }) {
};
const doSearch = () => {
search({ search: params })
getData(params)
const exportParams={
...params,
stm: params.tm[0].format("YYYY-MM-DD HH:mm:ss"),
etm: params.tm[1].format("YYYY-MM-DD HH:mm:ss"),
tm:params.tm,
}
search({ search: exportParams })
// debugger;
getData(exportParams)
}
@ -53,7 +60,8 @@ export default function KrLine({ record }) {
const params = {
search: {
stm,
etm
etm,
stcd:record.stcd
}
}
if (record?.stcd) {

View File

@ -36,18 +36,18 @@ export default function options(data={}) {
},
xAxis: {
data:xAxisData,
axisLine: {
show: true // 隐藏X轴轴线
},
axisTick: {
show: true // 隐藏X轴轴线
},
// axisLine: {
// show: false // 隐藏X轴轴线
// },
// axisTick: {
// show: false // 隐藏X轴轴线
// },
axisLabel: {
show: true,
margin: 14,
// formatter: '{value}月'
}
// axisLabel: {
// show: true,
// margin: 14,
// // formatter: '{value}月'
// }
},
yAxis: [
{
@ -55,6 +55,7 @@ export default function options(data={}) {
offset: 10,
min: minCount,
max: maxCount,
// splitLine:false,
axisTick: {
show: false
},
@ -71,6 +72,7 @@ export default function options(data={}) {
{
type: 'value',
name: '(%)',
splitLine:false,
min: minRate,
max: maxRate,

View File

@ -36,8 +36,8 @@ const ToolBar = ({ setSearchVal, onSave, storeData, role = [],callback,exportFil
let dateSo;
if (values.tm) {
dateSo = {
stm: moment(values.tm[0]).format('YYYY'),
etm: moment(values.tm[1]).format('YYYY')
stm: moment(values.tm[0]),
etm: moment(values.tm[1])
}
}
delete values.tm

View File

@ -20,7 +20,7 @@ const ToolBar = ({ setSearchVal, onSave, exportFile,role }) => {
}
}
delete values.tm
setSearchVal({...values, startTime:dateSo?.start,endTime:dateSo?.end});
setSearchVal({...values, dateSo});
}
@ -31,7 +31,7 @@ const ToolBar = ({ setSearchVal, onSave, exportFile,role }) => {
end:moment(time[1]).format('YYYY-MM-DD 23:59:59'),
}
form.setFieldValue("tm",time)
setSearchVal(dateSo)
setSearchVal({dateSo})
}, [])
return (
<>