瀏覽代碼

荔园添加数据看板

11wqe1 2 周之前
父節點
當前提交
81e46a840c
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 2 1
      src/components/pages/liyuan/aiOffice.vue
  2. 2 0
      src/components/pages/liyuan/components/card.vue

+ 2 - 1
src/components/pages/liyuan/aiOffice.vue

@@ -25,6 +25,7 @@ export default {
         { title: '学生管理', icon: require('../../../assets/icon/liyuan/stumange.svg'), type: 1, to: "/Listudent",role:0 },
         { title: '办公表单', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/test",role:1 },
         { title: '教研室管理', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/teacherOffice",role:1 },
+        { title: '数据看板', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 3, to: `https://liyuan.cocorobo.cn/#/dataBoardNew?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&org=${this.$route.query.org}`,role:1 },
       ]
     }
   },
@@ -51,7 +52,7 @@ export default {
 
 .cardBox{
   display: grid;
-  grid-template-columns: repeat(6, 1fr);
+  grid-template-columns: repeat(7, 1fr);
   gap: 20px;
   width: 100%;
   margin-top: 20px;

+ 2 - 0
src/components/pages/liyuan/components/card.vue

@@ -44,6 +44,8 @@ export default {
                 console.log( `${con}${this.to}`);
                 window.location.href = `${con}${this.to}`;
                 
+            }else if (this.type == 3) {
+                window.location.href = this.to;
             }else if (this.type == 4) {
                 let con = this.betaL =='beta'? 'https://beta.pbl.cocorobo.cn' : 'https://pbl.cocorobo.cn'
                 console.log( `${con}${this.to}`);