Explorar el Código

更改要事日记点击单位获取列表

sunyanqiang hace 3 años
padre
commit
f78805ae98

+ 19 - 2
src/layout/components/Navbar.vue

@@ -14,6 +14,10 @@
     />
     <top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
 
+    <div class="yong_hu">
+      <span class="span">{{ danWie }}</span>
+      <span>{{ yongHu }}</span>
+    </div>
     <div class="right-menu">
       <template v-if="device !== 'mobile'">
         <screenfull id="screenfull" class="right-menu-item hover-effect" />
@@ -92,14 +96,16 @@ export default {
   data() {
     return {
       user: {},
+      danWie: "",
+      yongHu: "",
     };
   },
   created() {
     this.getUser();
     // console.log(this.sidebar)
     // console.log(this.$route)
-    if(this.$route.query.name=='/regulations'){
-      this.sidebar.opened=false;
+    if (this.$route.query.name == "/regulations") {
+      this.sidebar.opened = false;
     }
     // /print
   },
@@ -123,6 +129,8 @@ export default {
     getUser() {
       getUserProfile().then((response) => {
         this.user = response.data;
+        this.danWie = response.data.dept.deptName;
+        this.yongHu = response.data.dept.leader;
       });
     },
   },
@@ -216,4 +224,13 @@ export default {
     }
   }
 }
+.yong_hu {
+  display: inline-block;
+  margin-top: 14px;
+  font-size: 15px;
+  margin-left: 60%;
+}
+.span {
+  margin-right: 60px;
+}
 </style>

+ 1 - 0
src/views/grassrootsregistration/bdgldiary/index.vue

@@ -1258,6 +1258,7 @@ export default {
     //外面树形选择搜索
     handleNodeClick(data) {
       this.queryParams.unitId = data.id;
+      // this.queryParams.IsUnit = "1";
       this.getList();
     },