This commit is contained in:
yj 2025-01-06 14:30:54 +08:00
parent c299f6f5af
commit 3b79abb8ee
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,7 @@ const FeedBackModel = forwardRef((_props: any, ref: any) => {
<div className={styles.feedBackModelContentRate}> <div className={styles.feedBackModelContentRate}>
<div style={{ color: 'white', fontSize: '14px', marginBottom: '4px' }}>:</div> <div style={{ color: 'white', fontSize: '14px', marginBottom: '4px' }}>:</div>
<div style={{ display: 'flex', justifyContent: 'center' }}> <div style={{ display: 'flex', justifyContent: 'center' }}>
<Rate value={feedBackForm.rateValue} style={{ transform: 'scale(2)' }} allowClear onChange={(e) => { <Rate value={feedBackForm.rateValue} allowHalf style={{ transform: 'scale(2)' }} allowClear onChange={(e) => {
setFeedBackForm({ setFeedBackForm({
...feedBackForm, ...feedBackForm,
rateValue: e rateValue: e
@ -115,6 +115,10 @@ const FeedBackModel = forwardRef((_props: any, ref: any) => {
otherContent: feedBackList[feedBackList.length - 1].active ? feedBackForm.otherContent : '', otherContent: feedBackList[feedBackList.length - 1].active ? feedBackForm.otherContent : '',
types: feedBackList.filter(row => row.active).map((item: any) => item.value), types: feedBackList.filter(row => row.active).map((item: any) => item.value),
} }
if (feedBackForm.rateValue === 0) {
message.error('请选择评分')
return
}
PostFeedback(parmes).then(res => { PostFeedback(parmes).then(res => {
if (res.code === 200) { if (res.code === 200) {
message.success('提交成功!') message.success('提交成功!')