From aa08c684def3ade794a48c592b033f2824354ce0 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Mon, 25 Sep 2023 13:48:27 +0800 Subject: [PATCH] fix:新增系统管理 --- src/views/list/Unit.vue | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/list/Unit.vue b/src/views/list/Unit.vue index 91a2dd4..f8b6b6d 100644 --- a/src/views/list/Unit.vue +++ b/src/views/list/Unit.vue @@ -406,10 +406,11 @@ private handleAssert(record: any){ get("unit/state",{ - id: record.unitId, + unitId: record.unitId, - }).then(res => { - <a-alert message="������������" type="success" /> + }).then(res => { + this.handleSearch() + this.$message.success('������������') }) .catch(err=>{ console.log(err); @@ -430,8 +431,9 @@ unitId: this.recordTableData.unitId, invalidReason:this.createForm.getFieldValue('code') }).then(res => { - <a-alert message="���������" type="success" /> - this.visibleInvalidityModal=false + this.$message.success('������������') + this.visibleInvalidityModal = false + this.handleSearch() }) .catch(err=>{ console.log(err); @@ -440,7 +442,7 @@ } private progressStateRender(text: string) { - if (text === 0) { + if (text === '0') { return <a-badge status = 'success' text = '������' />; } return <a-badge status = 'processing' text = '���������' />; @@ -525,10 +527,10 @@ <a onClick = { () => this.handleDetailModalVisible(true, record) } > ������ </a> - <a-divider type = 'vertical' / > </div> } - } + } + this.handleSearch(); } } -- Gitblit v1.8.0