yangjie #47
|
|
@ -67,7 +67,7 @@ const FeedBackModel = forwardRef((_props: any, ref: any) => {
|
|||
<div className={styles.feedBackModelContentRate}>
|
||||
<div style={{ color: 'white', fontSize: '14px', marginBottom: '4px' }}>评分:</div>
|
||||
<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({
|
||||
...feedBackForm,
|
||||
rateValue: e
|
||||
|
|
@ -115,6 +115,10 @@ const FeedBackModel = forwardRef((_props: any, ref: any) => {
|
|||
otherContent: feedBackList[feedBackList.length - 1].active ? feedBackForm.otherContent : '',
|
||||
types: feedBackList.filter(row => row.active).map((item: any) => item.value),
|
||||
}
|
||||
if (feedBackForm.rateValue === 0) {
|
||||
message.error('请选择评分')
|
||||
return
|
||||
}
|
||||
PostFeedback(parmes).then(res => {
|
||||
if (res.code === 200) {
|
||||
message.success('提交成功!')
|
||||
|
|
|
|||
Loading…
Reference in New Issue