liuchengxin
2022-06-02 580e44f2c5503ed172124ceba8c7c1cb03a8f7f3
src/views/components/building/index.vue
@@ -44,6 +44,17 @@
      name: ''
    }
  },
  watch: {
    'value': function (v) {
      if (v) {
        getBuilding(v).then(response => {
          this.name = response.data.name;
        });
      }else {
        this.name = '';
      }
    }
  },
  created() {
    if (this.value) {
      getBuilding(this.value).then(response => {