From 5f700e8cdf48ab2b4db45ba9fb4b0a889f1a7208 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期一, 15 八月 2022 13:22:29 +0800
Subject: [PATCH] 提交代码
---
src/views/components/organization/index.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/views/components/organization/index.vue b/src/views/components/organization/index.vue
index 0f60b08..bf56525 100644
--- a/src/views/components/organization/index.vue
+++ b/src/views/components/organization/index.vue
@@ -44,6 +44,17 @@
name: ''
}
},
+ watch: {
+ 'value': function (v) {
+ if (v) {
+ getOrganization(v).then(response => {
+ this.name = response.data.name;
+ });
+ }else {
+ this.name = '';
+ }
+ }
+ },
created() {
if (this.value) {
getOrganization(this.value).then(response => {
@@ -73,4 +84,4 @@
<style scoped>
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.1