Forráskód Böngészése

Merge branch 'V0.0.2' of http://10.87.10.227:4000/jzyd_yyds/soc_web into V0.0.2

luowei 2 éve
szülő
commit
e1a36805ac
1 módosított fájl, 10 hozzáadás és 11 törlés
  1. 10 11
      src/components/orgTree/index.vue

+ 10 - 11
src/components/orgTree/index.vue

@@ -60,11 +60,11 @@ export default {
     },
     defaultProps: {
       type: Object,
-      default: ()=>{
+      default: () => {
         return {
           children: "children",
-          label: "name",
-        }
+          label: "shortName",
+        };
       },
     },
     customRequest: {
@@ -109,7 +109,7 @@ export default {
         this.treeList = response.data;
         this.defaultKeys.push(response.data[0].id);
         this.$emit("defaultKey", response.data[0].id);
-        this.$emit('defaultOrg',response.data[0]);
+        this.$emit("defaultOrg", response.data[0]);
         this.defaultKey = response.data[0].id;
         setTimeout(() => {
           this.$refs.tree.setCurrentKey(response.data[0].id);
@@ -129,12 +129,11 @@ export default {
 };
 </script>
 
-<style lang='scss' scoped>
-  .el-tree-ex {
-    overflow: auto;
-    ::v-deep .is-current > .el-tree-node__content {
-      background-color: #d1e0f1 !important;
-    }
+<style lang="scss" scoped>
+.el-tree-ex {
+  overflow: auto;
+  ::v-deep .is-current > .el-tree-node__content {
+    background-color: #d1e0f1 !important;
   }
-
+}
 </style>