@ebiz/designer-components 0.1.119 → 0.1.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.1.119",
3
+ "version": "0.1.121",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  <div class="room-percent">{{ roomPercent(room) }}%</div>
19
19
  </div>
20
20
  <div class="room-no">{{ room.roomNo }}</div>
21
- <div class="room-type">{{ room.roomType }}</div>
21
+ <div class="room-type">{{ room.roomType }}{{ room.roomDormType ? `(${room.roomDormType})` : ''}}</div>
22
22
  </div>
23
23
  </t-tooltip>
24
24
  </div>
@@ -128,6 +128,7 @@ const emitRoomClick = (room, floor) => {
128
128
  floor: floor.name ?? floor.floor,
129
129
  roomNo: room.roomNo,
130
130
  roomType: room.roomType,
131
+ roomDormType: room.roomDormType,
131
132
  totalBeds: Number(room.totalBeds || 0),
132
133
  occupiedBeds: Number(room.occupiedBeds || 0),
133
134
  percent: roomPercent(room)
@@ -160,6 +161,7 @@ const getFloors = () => {
160
161
  rooms: rooms.map((r) => ({
161
162
  roomNo: String(r.room_no ?? r.name ?? ''),
162
163
  roomType: r.type_desc ?? '',
164
+ roomDormType: r.dorm_type_desc ?? '',
163
165
  totalBeds: Number(r.occupant_max_num ?? r.bed_num ?? 0),
164
166
  occupiedBeds: Number(r.occupant_num ?? 0)
165
167
  }))
@@ -242,7 +244,6 @@ onMounted(() => {
242
244
  }
243
245
  .floor-block {
244
246
  display: flex;
245
- flex-direction: column;
246
247
  gap: 8px;
247
248
  border: 1px solid #eee;
248
249
  border-radius: 12px;
@@ -256,11 +257,14 @@ onMounted(() => {
256
257
  }
257
258
  .floor-title {
258
259
  font-weight: 500;
260
+ white-space: nowrap;
261
+ margin-top: 10px;
259
262
  }
260
263
  .rooms-grid {
264
+ width: calc(100% - 30px);
261
265
  display: grid;
262
- grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
263
- gap: 12px;
266
+ grid-template-columns: repeat(auto-fill, 40px);
267
+ gap: 28px;
264
268
  }
265
269
  .room-item {
266
270
  display: flex;
@@ -269,7 +273,7 @@ onMounted(() => {
269
273
  }
270
274
  .room-card {
271
275
  position: relative;
272
- height: 70px;
276
+ height: 40px;
273
277
  border-radius: 8px;
274
278
  background: #f0f0f0;
275
279
  overflow: hidden;
@@ -297,13 +301,14 @@ onMounted(() => {
297
301
  line-height: 1;
298
302
  font-weight: 600;
299
303
  color: #333;
300
- text-align: center;
304
+ text-align: left;
301
305
  }
302
306
  .room-type {
303
307
  margin-top: 2px;
304
- font-size: 12px;
308
+ font-size: 10px;
305
309
  line-height: 1;
306
310
  color: #666;
307
- text-align: center;
311
+ text-align: left;
312
+ white-space: nowrap;
308
313
  }
309
314
  </style>
@@ -9,12 +9,13 @@
9
9
  <t-card :bordered="true" class="slot-card">
10
10
  <div class="slot-header">
11
11
  <div class="slot-number">{{ assignedMap[n]?.number || (curType === 'free' ? '0'+n : n) }}</div>
12
- <t-tag v-if="assignedMap[n]" theme="success" size="small">已分配</t-tag>
12
+ <t-tag v-if="assignedMap[n] && assignedMap[n].status === 'CANCELLED'" theme="success" size="small">已分配</t-tag>
13
+ <t-tag v-else-if="assignedMap[n] && assignedMap[n].status === 'DESTORY'" theme="danger" size="small">已注销</t-tag>
13
14
  <t-tag v-else theme="default" size="small">未分配</t-tag>
14
15
  </div>
15
16
  <div class="slot-body">
16
17
  <div v-if="assignedMap[n]" class="slot-info">
17
- <div class="slot-name">{{ assignedMap[n].name }}</div>
18
+ <div class="slot-name">{{ assignedMap[n].name || assignedMap[n].employee_info?.name }}</div>
18
19
  <div class="slot-plate">{{ assignedMap[n].plate_number }}</div>
19
20
  <div class="slot-desc">{{ assignedMap[n].fee_type_desc }} · {{ assignedMap[n].location_id_name }}</div>
20
21
  </div>
@@ -106,12 +107,12 @@ const fetchData = () => {
106
107
  page: 1,
107
108
  pageSize: 500,
108
109
  queryParams: {
109
- status: 'CANCELLED'
110
+ status: 'CANCELLED,DESTORY'
110
111
  }
111
112
  },
112
113
  {
113
- key: 'ParkingSpaceApply_Key',
114
- apiId: 2977,
114
+ key: 'ParkingSpaceApplyDashboard',
115
+ apiId: 3395,
115
116
  apiType: 0
116
117
  }
117
118
  )