From 4ef06d948899e393515bd62819f4f773766f9449 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期六, 16 七月 2022 13:16:42 +0800
Subject: [PATCH] 提交代码
---
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