Commit c0022bf9 authored by xinzhedeai's avatar xinzhedeai

左右背景图更换、标题颜色 active 时间换行

parent a48a1358
...@@ -134,7 +134,7 @@ const tableData = ref([ ...@@ -134,7 +134,7 @@ const tableData = ref([
span { span {
font-weight: 500; font-weight: 500;
font-size: 0.14rem; font-size: 0.14rem;
color: #fff; color: #36F3FF;
flex: 1; flex: 1;
text-align: center; text-align: center;
......
...@@ -26,7 +26,10 @@ ...@@ -26,7 +26,10 @@
<dd class="list-item" :class="getItemClass(item)"> <dd class="list-item" :class="getItemClass(item)">
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
<span>{{ item.cardNumber }}</span> <span>{{ item.cardNumber }}</span>
<span>{{ item.alarmTime }}</span> <span class="time-cell">
<div class="date-part">{{ item.alarmTime.split(' ')[0] }}</div>
<div class="time-part">{{ item.alarmTime.split(' ')[1] }}</div>
</span>
</dd> </dd>
</template> </template>
</dl> </dl>
...@@ -48,7 +51,10 @@ ...@@ -48,7 +51,10 @@
<span>{{ item.vehicleOrDriver }}</span> <span>{{ item.vehicleOrDriver }}</span>
<span>{{ item.plateNumber }}</span> <span>{{ item.plateNumber }}</span>
<span>{{ item.alarmType }}</span> <span>{{ item.alarmType }}</span>
<span>{{ item.alarmTime }}</span> <span class="time-cell">
<div class="date-part">{{ item.alarmTime.split(' ')[0] }}</div>
<div class="time-part">{{ item.alarmTime.split(' ')[1] }}</div>
</span>
</dd> </dd>
</template> </template>
</dl> </dl>
...@@ -68,7 +74,10 @@ ...@@ -68,7 +74,10 @@
<dd class="list-item" :class="getItemClass(item)"> <dd class="list-item" :class="getItemClass(item)">
<span>{{ item.personOrVehicle }}</span> <span>{{ item.personOrVehicle }}</span>
<span>{{ item.cardOrPlate }}</span> <span>{{ item.cardOrPlate }}</span>
<span>{{ item.boundaryTime }}</span> <span class="time-cell">
<div class="date-part">{{ item.boundaryTime.split(' ')[0] }}</div>
<div class="time-part">{{ item.boundaryTime.split(' ')[1] }}</div>
</span>
</dd> </dd>
</template> </template>
</dl> </dl>
...@@ -90,7 +99,10 @@ ...@@ -90,7 +99,10 @@
<span>{{ item.deviceName }}</span> <span>{{ item.deviceName }}</span>
<span>{{ item.monitorValue }}</span> <span>{{ item.monitorValue }}</span>
<span>{{ item.alarmLevel }}</span> <span>{{ item.alarmLevel }}</span>
<span>{{ item.alarmTime }}</span> <span class="time-cell">
<div class="date-part">{{ item.alarmTime.split(' ')[0] }}</div>
<div class="time-part">{{ item.alarmTime.split(' ')[1] }}</div>
</span>
</dd> </dd>
</template> </template>
</dl> </dl>
...@@ -281,7 +293,7 @@ background-size: cover; ...@@ -281,7 +293,7 @@ background-size: cover;
color: #88DBBD; color: #88DBBD;
&.active { &.active {
color: var(--n-text-color-primary); color: #05FFA4;
&::after { &::after {
content: ""; content: "";
...@@ -378,6 +390,21 @@ background-size: cover; ...@@ -378,6 +390,21 @@ background-size: cover;
} }
} }
.time-cell {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
line-height: 1.2;
.date-part, .time-part {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
}
&.status-chengse { &.status-chengse {
span { span {
color: #FF852B; color: #FF852B;
......
...@@ -38,6 +38,7 @@ declare module 'vue' { ...@@ -38,6 +38,7 @@ declare module 'vue' {
NCheckbox: typeof import('naive-ui')['NCheckbox'] NCheckbox: typeof import('naive-ui')['NCheckbox']
NColorPicker: typeof import('naive-ui')['NColorPicker'] NColorPicker: typeof import('naive-ui')['NColorPicker']
NDataTable: typeof import('naive-ui')['NDataTable'] NDataTable: typeof import('naive-ui')['NDataTable']
NDatePicker: typeof import('naive-ui')['NDatePicker']
NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider'] NDivider: typeof import('naive-ui')['NDivider']
NDrawer: typeof import('naive-ui')['NDrawer'] NDrawer: typeof import('naive-ui')['NDrawer']
...@@ -104,6 +105,7 @@ declare global { ...@@ -104,6 +105,7 @@ declare global {
const NCheckbox: typeof import('naive-ui')['NCheckbox'] const NCheckbox: typeof import('naive-ui')['NCheckbox']
const NColorPicker: typeof import('naive-ui')['NColorPicker'] const NColorPicker: typeof import('naive-ui')['NColorPicker']
const NDataTable: typeof import('naive-ui')['NDataTable'] const NDataTable: typeof import('naive-ui')['NDataTable']
const NDatePicker: typeof import('naive-ui')['NDatePicker']
const NDialogProvider: typeof import('naive-ui')['NDialogProvider'] const NDialogProvider: typeof import('naive-ui')['NDialogProvider']
const NDivider: typeof import('naive-ui')['NDivider'] const NDivider: typeof import('naive-ui')['NDivider']
const NDrawer: typeof import('naive-ui')['NDrawer'] const NDrawer: typeof import('naive-ui')['NDrawer']
......
...@@ -338,28 +338,28 @@ const navTo = () => { ...@@ -338,28 +338,28 @@ const navTo = () => {
.left { .left {
top: 0rem; top: 0rem;
left: 0; left: 0;
width: 264px; width: 5.76rem;
// height: 11.8rem; // height: 11.8rem;
// height: 1080px; // height: 1080px;
// height: 9.4rem; // height: 9.4rem;
height: calc(100vh); height: calc(100vh);
background-size: contain; background-size: cover;
background-position-x: left; background-position-x: left;
background-image: url("@/assets/jinrun/left.png"); background-image: url("@/assets/jinrun/bg-left.png");
} }
.right { .right {
top: 0rem; top: 0rem;
right: 0; right: 0;
// right: -34px; // right: -34px;
width: 264px; width: 5.76rem;
// height: 11.8rem; // height: 11.8rem;
// height: 1080px; // height: 1080px;
// height: 9.4rem; // height: 9.4rem;
height: 100vh; height: 100vh;
background-image: url("@/assets/jinrun/right.png"); background-image: url("@/assets/jinrun/bg-right.png");
background-size: contain; background-size: cover;
background-position-x: right; background-position-x: right;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment