hujunwei 2 rokov pred
rodič
commit
cb8af29c92

+ 6 - 16
src/components/p-header.vue

@@ -31,9 +31,7 @@
         <i class="el-icon-date"></i>
         日历
       </div>
-      <div class="bars-item user-info">
-        你好{{ username }}
-      </div>
+      <div class="bars-item user-info">你好{{ username }}</div>
 
       <div class="bars-item" @click="handleHelp">
         <i class="el-icon-time"></i>
@@ -113,18 +111,7 @@ export default {
     // }
     //this.menuClose();
     this.getDept();
-    this.$http({
-      url: "/sysmgr/csysdept/queryGroupListByLoginNo",
-      method: "post",
-      headers: {
-        "Content-Type": "application/json",
-      },
-      data: {},
-    }).then((res) => {
-      if (res.data[0].parentorgid === "00440063000000000000") {
-        document.title = "IT工作台";
-      }
-    });
+    
   },
   methods: {
     getDept() {
@@ -138,6 +125,9 @@ export default {
       }).then((res) => {
         console.log(res.data[0].parentorgid);
         this.parentorgid = res.data[0].parentorgid;
+        if (res.data[0].parentorgid === "00440063000000000000") {
+          document.title = "IT工作台";
+        }
       });
     },
     handleGoToCalendar() {
@@ -337,7 +327,7 @@ export default {
         bottom: 50%;
         transform: translate(-50%, -50%);
       }
-      span{
+      span {
         margin-left: 15px;
       }
     }

+ 1 - 1
src/components/p-menu.vue

@@ -58,7 +58,7 @@ export default {
     if (this.data.length > 0) {
       this.recursion(this.data);
     }
-    this.getDept();
+    // this.getDept();
   },
   updated() {
     if (this.data.length > 0) {

+ 3 - 0
src/pages/main/index.vue

@@ -117,6 +117,9 @@ export default {
 
 .views {
   height: calc(100% - 97px);
+  div{
+    border-radius: 5px;
+  }
 }
 
 .el-main {

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 114 - 17
src/pages/main/leader/leaderHome.vue


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 26 - 166
src/pages/main/leader/leaderTag.vue


+ 8 - 35
src/pages/main/leader/numberHits.vue

@@ -16,17 +16,17 @@
         :header-cell-style="{ background: '#F2F2F2' }"
         :cell-style="{ background: '#FaFaFa' }"
       >
-        <el-table-column prop="woTitle" label="标题">
+        <el-table-column prop="module_name" label="标题">
           <template slot-scope="scope">
             <span style="color: #afb2d8; margin-right: 5px"
               >{{ scope.$index + 1 }}.</span
             >
-            <span @click="RowTitle" style="cursor: pointer; color: blue">{{
-              scope.row.woTitle
+            <span @click="RowTitle(scope.row.jsp_url)" style="cursor: pointer; color: blue">{{
+              scope.row.module_name
             }}</span>
           </template>
         </el-table-column>
-        <el-table-column prop="woNum" label="点击量" width="100">
+        <el-table-column prop="count" label="点击量" width="70" align="center" >
           <template> </template>
         </el-table-column>
       </el-table>
@@ -36,45 +36,18 @@
 
 <script>
 export default {
+  props: ["numHits"],
   data() {
     return {
-      numHits: [
-        { woTitle: "sdf", woNum: "1111" },
-        { woTitle: "ewsad", woNum: "1010" },
-        { woTitle: "easdw", woNum: "1001" },
-        { woTitle: "ewasdsad", woNum: "1000" },
-        { woTitle: "ewasd", woNum: "1000" },
-        { woTitle: "ewasd", woNum: "1000" },
-        { woTitle: "asdew", woNum: "1000" },
-        { woTitle: "ew213", woNum: "1000" },
-        { woTitle: "ew23", woNum: "1000" },
-        { woTitle: "ew23", woNum: "1000" },
-        { woTitle: "e23w", woNum: "1000" },
-        { woTitle: "ew123", woNum: "1000" },
-      ],
+      // numHits: [],
     };
   },
   methods: {
-    RowTitle() {
-      console.log(11);
+    RowTitle(route) {
+      // this.$router.push(route);
     },
-    getList(){
-      // this.$http({
-      //   url: "/market/cmkline/queryInfo",
-      //   method: "post",
-      //   headers: {
-      //     "Content-Type": "application/json",
-      //   },
-      //   data: {},
-      // }).then((res) => {
-      //   this.funcData = res.data.lineList;
-      //   this.outsideModules = res.data.outsideModules;
-      //   this.groupName = res.data.groupName;
-      // });
-    }
   },
   mounted(){
-    this.getList()
   }
 };
 </script>