无人机管理后台前端(已迁走)
张含笑
2025-05-09 bec7efb74cb9350dc720fb1ea641f06d7316b4dc
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<template>
  <div class="bocklogBox">
    <div class="block">
      <div class="title">待办事项</div>
 
      <div class="todo-items">
        <div
          v-for="(item, index) in todos"
          :key="index"
          class="todo-item"
          :class="`status-${item.status}`"
          @click="jumporder()"
        >
          <div class="status-indicator"></div>
 
          <div class="content-wrapper">
            <div class="main-content">
              <span class="status-tag">{{ statusMap[item.status] }}</span>
              <span class="todo-text">{{ item.title }}</span>
            </div>
 
            <div class="action-area">
              <img :src="st7" alt="">
              <span class="todo-date">{{ item.date }}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script setup>
import st7 from '@/assets/images/workbench/st7.png'
// 状态显示映射
const statusMap = {
  pending: '待审核',
  processing: '处理中',
  todo: '待处理',
};
 
// 待办事项数据
const todos = ref([
  {
    status: 'pending',
    title: '发现暴露垃圾事件',
    date: '2025.03.26',
  },
  {
    status: 'todo',
    title: '发现暴露垃圾事件',
    date: '2025.03.26',
  },
  {
    status: 'processing',
    title: '发现暴露垃圾事件',
    date: '2025.03.26',
  },
  {
    status: 'pending',
    title: '发现暴露垃圾事件',
    date: '2025.03.26',
  },
  {
    status: 'todo',
    title: '发现暴露垃圾事件',
    date: '2025.03.26',
  },
]);
const jumporder=()=>{
  console.log('tiao');
  
}
</script>
 
<style lang="scss" scoped>
.bocklogBox {
  width: 100%;
  height: 306px;
  background: rgba(255, 255, 255, 0.41);
  box-shadow: 0px 3px 4px -1px rgba(125, 125, 125, 0.25);
  border-radius: 8px 8px 8px 8px;
  border: 2px solid #ffffff;
  .block {
    margin: 11px 21px 13px 22px;
    .title {
      font-weight: bold;
      font-size: 16px;
      color: #363636;
    }
 
    .todo-items {
      display: grid;
      gap: 0.8rem;
      margin-top: 10px;
    }
 
    .todo-item {
      display: flex;
      align-items: center;
 
     background: #FFFFFF;
      border-radius: 8px;
      box-shadow: 0px 2px 4px 0px rgba(173, 173, 173, 0.18);
      transition: all 0.2s ease;
      border-left: 4px solid transparent;
      height: 42px;
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
      }
 
      .status-indicator {
        margin-left: 18px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
      }
 
      .content-wrapper {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
      }
 
      .main-content {
        display: flex;
        align-items: center;
        gap: 0.8rem;
 
        .status-tag {
          font-weight: 400;
          font-size: 14px;
 
          padding: 0.3rem 0.5rem;
          border-radius: 12px;
        }
 
        .todo-text {
          font-size: 14px;
          color: #343434;
        }
      }
 
      .action-area {
        display: flex;
        align-items: center;
     margin-right: 42px;
 
        .todo-date {
          color: #666;
          font-size: 0.9rem;
        }
 
      
      }
    }
 
    // 状态颜色方案
    .status-pending {
      border-left-color: #FF6560;
      color: #FF6560;
      .status-indicator {
        background: #FF6560;
      }
    }
 
    .status-todo {
      border-left-color: #5D77FB;
      color: #5D77FB;
      .status-indicator {
        background: #5D77FB;
      }
    }
 
    .status-processing {
      border-left-color: #FF8B26;
      color: #FF8B26;
 
      .status-indicator {
        background: #FF8B26;
      }
    }
  }
 
  //   @media (max-width: 768px) {
  //     .todo-list-container {
  //       padding: 1rem;
 
  //       .content-wrapper {
  //         flex-direction: column;
  //         align-items: flex-start !important;
  //         gap: 0.5rem !important;
  //       }
 
  //       .action-area {
  //         width: 100%;
  //         justify-content: space-between;
  //       }
  //     }
  //   }
 
  //   @media (max-width: 480px) {
  //     .main-content {
  //       flex-direction: column;
  //       align-items: flex-start !important;
  //     }
 
  //     .status-tag {
  //       margin-bottom: 0.3rem;
  //     }
  //   }
}
</style>