Explorar el Código

修改数据看板返回

11wqe1 hace 3 días
padre
commit
d2ab14d996
Se han modificado 1 ficheros con 11 adiciones y 4 borrados
  1. 11 4
      src/views/kanBan/components/dataBoardNew/index.vue

+ 11 - 4
src/views/kanBan/components/dataBoardNew/index.vue

@@ -28,6 +28,8 @@ import baseData from "./baseData";
 import AIApp from "./AIApp";
 import teaing from "./teaing";
 import teaMange from "./teaMange";
+import { getUser } from "@/api/user";
+
 export default {
   name:'dataBoardNew',
   props:['oid','org','userid'],
@@ -37,9 +39,6 @@ export default {
     teaing,
     teaMange,
   },
-  mounted(){
-    console.log('oid',this.oid);
-  },
   watch:{
     oid(newL){
       console.log(newL);
@@ -49,7 +48,7 @@ export default {
   data() {
     return {
       gotype: this.$route.query.gotype,
-      useridL: this.$route.query.useridL,
+      useridL: this.$route.query.userid,
       oidL: this.$route.query.oid,
       orgL: this.$route.query.org,
       role: this.$route.query.role,
@@ -65,6 +64,14 @@ export default {
       pageEnd: 0
     };
   },
+  mounted(){
+    if (this.$route.query.userid) {
+      let userjson = getUser({ userid: this.$route.query.userid });
+      this.tType = userjson.data[0][0].type
+      this.role = userjson.data[0][0].role
+    }
+    console.log('oid',this.oid);
+  },
   methods: {
     cutPage(val) {
         this.pageEnd = val