From bd3efe07d5ed63497f7ee04a2e1740050b6f6985 Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:16:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86/=E8=AF=91=E6=96=87=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=B3=E8=AF=B7=20=E9=A9=B3=E5=9B=9E=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.vue | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue index 32d04e8fd..f46198520 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue @@ -316,14 +316,26 @@ export default { return } const ids = id.join(',') - this.$confirm('确定驳回?', '提示', { + this.$prompt('请输入驳回原因', '提示', { confirmButtonText: '确定', confirmButtonClass: 'common-button-primary', cancelButtonText: '取消', type: 'warning', - roundButton: false - }).then(() => { - this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => { + roundButton: false, + inputValidator: (value) => { + if (value === null || value === undefined) { + return '驳回原因不能为空' + } else if (value.length > 500) { + return '驳回原因不能超过500个字符' + } else if (value.length === 0) { + return '驳回原因不能为空' + } else { + return true + } + }, + inputErrorMessage: '' + }).then(({ value }) => { + this.$http.postData(this.url.updateState, { status: 'refuse', refuseCause: value, ids }, { _this: this }, res => { if (res.ok) { this.$message.success('操作成功') this.getList()