zhangwei
7 天以前 3324a54fa4d0840f8a5dc8adb21753180ecd3f3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<script setup lang="ts">
import { onMounted, reactive, ref, h } from "vue";
import MyHeader from "./component/myHeader.vue";
import MyFooter from "./component/myFooter.vue";
import { useIndex } from "../home/utils/hook";
import tableList from "./component/tableList.vue";
import { ArrowRight } from "@element-plus/icons-vue";
import EosIconsClusterManagement from "~icons/eos-icons/cluster-management";
const {
  getNeirongfabuDetail,
  route,
  router,
  getFeizhengfuDetail,
  stateHook,
  getOrderList
} = useIndex();
defineOptions({
  name: "gonggaoInfo"
});
</script>
 
<template>
  <div class="bg-[#f5f5f5] min-h-[100%]">
    <my-header />
    <div class="w-[80%] m-auto p-5">
      <div class="h=[52px] w-[100%] bg-white p-2 pl-4 flex items-center">
        <span class="text-sm">您的当前位置:</span>
        <el-breadcrumb :separator-icon="ArrowRight">
          <el-breadcrumb-item :to="{ path: '/index' }" replace>
            首页
          </el-breadcrumb-item>
          <el-breadcrumb-item>{{ route.meta.title }}</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <el-row class="mt-5 flex justify-between">
        <el-col :span="3">
          <div class="left">
            <div
              v-for="(item, index) in stateHook.gonggaoList"
              :key="index"
              :class="['item', stateHook.activeList == index ? 'item1' : '']"
              class="h-[58px] w-[188px] bg-white flex items-center justify-center"
              @click="getOrderList(index)"
            >
              <EosIconsClusterManagement
                :style="{ color: stateHook.activeList == index ? 'white' : '' }"
              />
              <span class="ml-4">{{ item.name }}</span>
            </div>
          </div>
        </el-col>
        <el-col :span="21">
          <div class="right">
            <tableList />
          </div>
        </el-col>
      </el-row>
    </div>
    <my-footer />
  </div>
</template>
 
<style lang="scss" scoped>
.item {
  background: white;
  cursor: pointer;
  font-size: 14px;
}
.item1 {
  background: rgb(20, 92, 205);
  span {
    color: rgb(254, 254, 254);
  }
}
</style>