zhuoyuan.wang
2024-06-19 15ebe96f28cadec6a726c5324593a40bbf56205f
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
76
77
<template>
  <div class="_wrapper" v-loading="appStore.getLoading('sys_notify_message')">
    <div class="header">
      <div>我的通知</div>
    </div>
    <div class="content">
      <div class="list">
        <div v-for="item in list" :key="item.id" class="item" @click="goPage(item)">
          {{ item.create_time }} {{ item.title }} {{ item.remark }}
        </div>
      </div>
    </div>
  </div>
</template>
 
<script setup>
const router = useRouter();
import {useAppStore, useEntityStore} from '@/store/modules/index.js';
 
const entityStore = useEntityStore();
const appStore = useAppStore();
 
const list = ref([]);
 
const goPage = (item) => {
  router.push({path: `/master/hospitalMd/${item.id}`});
};
 
onMounted(async () => {
  // const {data} = await entityStore.getEntitySet({
  //   dataName: "sys_notify_message",
  //   orderBy: 'create_time desc'
  // });
  // list.value = data['entityset'];
});
 
</script>
 
<style scoped lang="scss">
._wrapper {
  border-top: 3px solid var(--el-color-primary);
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
  border-radius: 6px;
  width: 100%;
 
  .header {
    padding: 8px 13px;
    background-color: #fff;
    border-bottom: 1px solid #e7e7e7;
    font-size: 14px;
    color: #303133;
    font-weight: 500;
  }
 
  .content {
    padding: 0 10px 10px 10px;
 
    .list {
      overflow: auto;
      height: 278px;
 
      .item {
        padding: 10px 5px;
        box-sizing: border-box;
        border-bottom: 1px solid #e7e7e7;
        cursor: pointer;
 
        &:hover {
          color: var(--el-color-primary);
        }
      }
    }
  }
}
</style>