guhongwei 1 year ago
parent
commit
95752861f3
3 changed files with 80 additions and 0 deletions
  1. 4 0
      src/views/dock/index.vue
  2. 38 0
      src/views/dock/parts/c-channel.vue
  3. 38 0
      src/views/dock/parts/c-train.vue

+ 4 - 0
src/views/dock/index.vue

@@ -3,6 +3,8 @@
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
         <cAchieve v-if="user.type == '7'"></cAchieve>
+        <cChannel v-else-if="user.type == '8'"></cChannel>
+        <cTrain v-else-if="user.type == '9'"></cTrain>
       </el-col>
     </el-row>
   </div>
@@ -11,6 +13,8 @@
 <script setup lang="ts">
 // 基础
 import cAchieve from './parts/c-achieve.vue';
+import cChannel from './parts/c-channel.vue';
+import cTrain from './parts/c-train.vue';
 import store from '@/stores/counter';
 import type { Ref } from 'vue';
 // reactive,

+ 38 - 0
src/views/dock/parts/c-channel.vue

@@ -0,0 +1,38 @@
+<template>
+  <div id="c-channel">
+    <el-row>
+      <el-col :span="24" class="main" v-loading="loading">
+        <el-col :span="24" class="one">系统首页</el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script setup lang="ts">
+// 基础
+import type { Ref } from 'vue';
+// reactive,
+import { onMounted, ref, getCurrentInstance } from 'vue';
+// 接口
+//import { TestStore } from '@common/src/stores/test';
+//import type { IQueryResult } from '@/util/types.util';
+//const testAxios = TestStore();
+const { proxy } = getCurrentInstance() as any;
+// 加载中
+const loading: Ref<any> = ref(false);
+// 分页数据
+//  const skip = 0;
+//  const limit = proxy.limit;;
+// 请求
+onMounted(async () => {
+  loading.value = true;
+  //  await search({ skip, limit });
+  loading.value = false;
+});
+//const search = async (e: { skip: number; limit: number }) => {
+//  const info = { skip: e.skip, limit: e.limit, ...searchInfo.value  };
+//  const res: IQueryResult = await testAxios.query(info);
+//  console.log(res);
+//};
+</script>
+<style scoped lang="scss"></style>

+ 38 - 0
src/views/dock/parts/c-train.vue

@@ -0,0 +1,38 @@
+<template>
+  <div id="c-train">
+    <el-row>
+      <el-col :span="24" class="main" v-loading="loading">
+        <el-col :span="24" class="one">系统首页</el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script setup lang="ts">
+// 基础
+import type { Ref } from 'vue';
+// reactive,
+import { onMounted, ref, getCurrentInstance } from 'vue';
+// 接口
+//import { TestStore } from '@common/src/stores/test';
+//import type { IQueryResult } from '@/util/types.util';
+//const testAxios = TestStore();
+const { proxy } = getCurrentInstance() as any;
+// 加载中
+const loading: Ref<any> = ref(false);
+// 分页数据
+//  const skip = 0;
+//  const limit = proxy.limit;;
+// 请求
+onMounted(async () => {
+  loading.value = true;
+  //  await search({ skip, limit });
+  loading.value = false;
+});
+//const search = async (e: { skip: number; limit: number }) => {
+//  const info = { skip: e.skip, limit: e.limit, ...searchInfo.value  };
+//  const res: IQueryResult = await testAxios.query(info);
+//  console.log(res);
+//};
+</script>
+<style scoped lang="scss"></style>