页面搭建

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 = () => { const doSearch = () => {
search({ search: params }) const exportParams={
getData(params) ...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 = { const params = {
search: { search: {
stm, stm,
etm etm,
stcd:record.stcd
} }
} }
if (record?.stcd) { if (record?.stcd) {

View File

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

View File

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

View File

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