秦子超 2024-10-25 14:16:16 +08:00
commit 83a62f986a
5 changed files with 10 additions and 6 deletions

View File

@ -34,8 +34,8 @@ function DrpSearch({record}) {
} else {
setParams({
...params,
stm: e[0].format("YYYY-MM-DD HH:mm"),
etm: e[1].format("YYYY-MM-DD HH:mm"),
startTime: e[0].format("YYYY-MM-DD HH:mm"),
endTime: e[1].format("YYYY-MM-DD HH:mm"),
tm:e,
})

View File

@ -5,7 +5,7 @@ export default function dtOption(doubleData) {
const maxRz = Math.ceil(Math.max(...doubleData?.detailVos?.map(o => o.rz)))
const minRz = Math.floor(Math.min(...doubleData?.detailVos?.map(o => o.rz)))
const maxcy = Math.ceil(Math.max(...doubleData?.detailVos?.map(o => o.value)))
const mincy = Math.floor(Math.max(...doubleData?.detailVos?.map(o => o.value)))
const mincy = Math.floor(Math.min(...doubleData?.detailVos?.map(o => o.value)))
console.log(maxRz,minRz,maxcy,mincy);
// 字体颜色
const textColor = '#666'

View File

@ -100,6 +100,9 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
setSelectKeys(newData.map(item => item.id))
let total = newData.reduce((total,cur) => total + Number(cur.standardScore),0)
setStandardScore(total)
form.setFieldValue("excellentScore",(total * 0.92).toFixed(2))
form.setFieldValue("goodScore",(total * 0.85).toFixed(2))
form.setFieldValue("passScore",(total * 0.70).toFixed(2))
};

View File

@ -19,9 +19,10 @@ const ToolBar = ({ setSearchVal, onSave, storeData, role }) => {
}
useEffect(() => {
const currentYear = moment().format('YYYY');
let dateRangeSo = {
start: moment().subtract(1,"years").format('YYYY-MM-DD'),
end: moment().format('YYYY-MM-DD')
start: moment(currentYear+ '-01-01').format('YYYY-MM-DD'),
end: moment(currentYear+ '-12-31').format('YYYY-MM-DD')
}
form.setFieldValue("tm", [moment(dateRangeSo.start), moment(dateRangeSo.end)])
setSearchVal({ dateRangeSo })

View File

@ -48,7 +48,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
height: 70px;
min-height: 70px;
}
}
}