¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="home-container"> |
| | | <div class="left-card"> |
| | | <div class="card"> |
| | | <div class="card-header"> |
| | | <h2 class="card-title">æçå¾
å</h2> |
| | | <h2 class="more-btn" @click = "gotoTodoList">æ´å¤</h2> |
| | | </div> |
| | | <div class="card-content"> |
| | | <!-- åµå
¥todoListç»ä»¶å¹¶è®¾ç½®é»è®¤åç±» --> |
| | | <todo-list |
| | | ref="todoList" |
| | | class="embedded-flow-todo" |
| | | :defaultCategories="['drApproval','ggApproval','programConfirmApproval','ncFileSettingProcessApproval']" |
| | | ></todo-list> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- å³ä¾§ä¸¤ä¸ªå°å¡ç --> |
| | | <div class="right-cards"> |
| | | <div class="card top-card"> |
| | | <h2 class="card-title">å¡ç1</h2> |
| | | <div class="card-content"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="card bottom-card"> |
| | | <h2 class="card-title">派工任å¡é¢å</h2> |
| | | <div class="card-content"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import TodoList from '@views/dashboard/TodoList.vue' |
| | | |
| | | export default { |
| | | name: 'DncManagerSignage', |
| | | components: { |
| | | TodoList |
| | | }, |
| | | data() { |
| | | return { |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.todoList) { |
| | | this.$refs.todoList.loadData(1) |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | gotoTodoList() { |
| | | this.$router.push('/flowable/workflow/FlowTodo') |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .left-card .card-content { |
| | | padding: 5px 0; |
| | | } |
| | | .home-container { |
| | | display: flex; |
| | | min-height: 100vh; |
| | | padding: 5px; |
| | | box-sizing: border-box; |
| | | gap: 16px; |
| | | background-color: #f0f2f7; |
| | | } |
| | | |
| | | .left-card { |
| | | flex: 1; |
| | | min-width: 0; |
| | | } |
| | | |
| | | .right-cards { |
| | | flex: 2; |
| | | min-width: 0; |
| | | display: flex; |
| | | flex-direction: column; |
| | | gap: 16px; |
| | | } |
| | | |
| | | .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; |
| | | justify-content: flex-start; |
| | | } |
| | | |
| | | /* å¨åææ ·å¼åºç¡ä¸æ·»å */ |
| | | .card-header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | /* åç´å±
ä¸å¯¹é½ */ |
| | | align-items: center; |
| | | /* å¯ä»¥æ ¹æ®éè¦è®¾ç½®é«åº¦ï¼è¿éå设设置为 40pxï¼ä¹å¯æ ¹æ®å®é
æ
åµè°æ´ */ |
| | | height: 40px; |
| | | } |
| | | |
| | | .more-btn { |
| | | margin: 0; |
| | | color: #00bfff; |
| | | font-size: 14px; |
| | | border: none; |
| | | cursor: pointer; |
| | | } |
| | | .top-card { |
| | | flex: 1; |
| | | } |
| | | |
| | | .bottom-card { |
| | | flex: 1; |
| | | } |
| | | |
| | | .card-title { |
| | | margin: 0; |
| | | padding-bottom: 0; |
| | | color: #000000; |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | } |
| | | |
| | | .card-content { |
| | | flex: 1; |
| | | overflow: auto; |
| | | } |
| | | |
| | | @media (max-width: 992px) { |
| | | .home-container { |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .left-card, .right-cards { |
| | | width: 100%; |
| | | } |
| | | |
| | | .left-card { |
| | | margin-bottom: 16px; |
| | | } |
| | | } |
| | | </style> |