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 () {