From d138b7df8fa97dc7ed6b07acdfef804ebb186a74 Mon Sep 17 00:00:00 2001
From: liuchengxin <13104445455@163.com>
Date: 星期五, 27 五月 2022 21:21:21 +0800
Subject: [PATCH] BUG修改
---
src/views/components/constructionBatch/index.vue | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/views/components/constructionBatch/index.vue b/src/views/components/constructionBatch/index.vue
index 722b685..4ab18ba 100644
--- a/src/views/components/constructionBatch/index.vue
+++ b/src/views/components/constructionBatch/index.vue
@@ -42,6 +42,17 @@
name: ''
}
},
+ watch: {
+ 'value': function (v) {
+ if (v) {
+ getConstructionBatch(v).then(response => {
+ this.name = response.data.batch;
+ });
+ }else {
+ this.name = '';
+ }
+ }
+ },
created() {
if (this.value) {
getConstructionBatch(this.value).then(response => {
--
Gitblit v1.9.1