From 2e36fbb871a8b23917e513d47e3296b2b34d27d5 Mon Sep 17 00:00:00 2001
From: ZhaoTongYao <531131322@qq.com>
Date: Tue, 26 Apr 2022 16:25:22 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E5=AE=A1=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../rent/rentcontractinfo-add-or-update.vue | 30 ++++++++++++-------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue b/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue
index 387ec8a9..6ee970ef 100644
--- a/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue
+++ b/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue
@@ -32,7 +32,7 @@
-
+
@@ -83,7 +83,7 @@
-
@@ -92,8 +92,8 @@
{{ $t('cancel') }}
- {{ $t('checkTGBtn') }}
- {{ $t('checkBTGBtn') }}
+ {{ $t('checkTGBtn') }}
+ {{ $t('checkBTGBtn') }}
@@ -227,14 +227,24 @@ export default {
},
// 审核提交方法
checkHandle: function (type) {
+ const params = {
+ id: this.dataForm.id,
+ state: type
+ }
+ this.$http.post('/pli/power/rentContractInfo/review', params).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
this.$message({
- message: type,
- type: 'success',
- duration: 500,
- onClose: () => {
- }
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.visible = false
+ this.$emit('refreshDataList')
+ }
})
-
+ }).catch(() => {})
},
// 表单提交
dataFormSubmitHandle: debounce(function () {