hyingbo
5 天以前 1598fac6c5769b061dd02e937fbaf969b5e1c20d
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<template>
  <div class="home-container">
    <div class="left-card">
      <div class="card">
        <h2 class="card-title">卡片1</h2>
        <div class="card-content">
        </div>
      </div>
    </div>
 
    <!-- 右侧两个小卡片 -->
    <div class="right-cards">
      <div class="card top-card">
        <h2 class="card-title">我的待办</h2>
        <div class="card-content">
          <!-- 嵌入FlowTodo组件并设置默认分类 -->
          <flow-todo
            ref="flowTodo"
            class="embedded-flow-todo"
            :defaultCategories="['drApproval','ggApproval','programConfirmApproval']"
          ></flow-todo>
        </div>
      </div>
 
      <div class="card bottom-card">
        <h2 class="card-title">卡片2</h2>
        <div class="card-content">
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
import signageApi from '@/api/signage'
import moment from 'moment'
import FlowTodo from '@/views/flowable/workflow/FlowTodo.vue'
 
export default {
  name: 'DncManagerSignage',
  components: {
    FlowTodo
  },
  data() {
    return {
    }
  },
  mounted() {
    // 确保组件加载后使用默认分类查询数据
    this.$nextTick(() => {
      if (this.$refs.flowTodo) {
        this.$refs.flowTodo.searchQuery()
      }
    })
  },
  methods: {
 
  }
}
</script>
 
<style scoped>
.home-container {
  display: flex;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  gap: 20px;
  background-color: #f5f7fa;
}
 
.left-card {
  flex: 1;
  min-width: 0;
}
 
.right-cards {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
 
.top-card {
  flex: 1;
}
 
.bottom-card {
  flex: 1;
}
 
.card-title {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
 
.card-content {
  flex: 1;
  overflow: auto;
}
 
/* 清除待办页面查询条件、选中条数、复选框 */
.embedded-flow-todo >>> .table-page-search-wrapper {
  display: none !important;
}
 
.embedded-flow-todo >>> .table-operator {
  display: none !important;
}
 
.embedded-flow-todo >>> .ant-alert.ant-alert-info {
  display: none !important;
}
 
.embedded-flow-todo >>> .ant-table-thead .ant-table-selection-column,
.embedded-flow-todo >>> .ant-table-tbody .ant-table-selection-column {
  display: none !important;
}
 
.embedded-flow-todo >>> .ant-table-selection {
  display: none !important;
}
.embedded-flow-todo >>> .ant-table-row-selected {
  background: transparent !important;
}
 
.embedded-flow-todo >>> .a-table {
  margin-top: 0 !important;
  border-top: none !important;
}
 
@media (max-width: 992px) {
  .home-container {
    flex-direction: column;
  }
 
  .left-card, .right-cards {
    width: 100%;
  }
 
  .left-card {
    margin-bottom: 20px;
  }
}
</style>