feat(gxmu): 审核流的审核意见改为必填项

审核面板文案改为「请输入审核意见(必填)」,提交前校验空值与纯空格并去除首尾空格,输入限制 500 字。
This commit is contained in:
2026-11-01 17:06:29 +08:00
parent 79373bb20e
commit 26706a4e4c
+8 -2
View File
@@ -213,7 +213,8 @@
<textarea
class="action-textarea"
:value="actionContent"
placeholder="请输入审核意见(非必填)"
:maxlength="500"
placeholder="请输入审核意见(必填)"
placeholder-style="color:#a8b2bf;"
@input="handleActionInput"
/>
@@ -623,6 +624,11 @@ export default {
this.showToast('当前记录不是由你审核')
return
}
const content = String(this.actionContent || '').trim()
if (!content) {
this.showToast('请输入审核意见')
return
}
this.submitting = true
try {
await updateReviewList({
@@ -631,7 +637,7 @@ export default {
module: target.module,
pk: target.pk,
sortNumber: target.sortNumber,
content: String(this.actionContent || '').trim() || undefined
content
})
this.showToast('审核已提交')
this.closeActionModal()