z_yu
3 years ago
7 changed files with 185 additions and 129 deletions
-
5src/assets/styles/lend-manage.scss
-
68src/views/components/WarehouseWarning.vue
-
100src/views/components/data1.json
-
17src/views/home.vue
-
42src/views/storeManage/warehouse3D/collateRoom/index.vue
-
40src/views/storeManage/warehouse3D/fullView/index.vue
-
42src/views/storeManage/warehouse3D/readRoom/index.vue
@ -0,0 +1,68 @@ |
|||
<template> |
|||
<div class="warehouse-right container-wrap"> |
|||
<span class="right-top-line" /> |
|||
<span class="left-bottom-line" /> |
|||
<h3 class=" table-title"> |
|||
<p class="title-arrow"> |
|||
<svg-icon icon-class="alerm" class-name="warehouse-svg" />报警记录 |
|||
</p> |
|||
</h3> |
|||
<!--表格渲染--> |
|||
<el-table ref="table" style="min-width: 100%;" :width="width" :height="height" :data="tableData" class="warehose-el-table" :row-class-name="rowBgColor"> |
|||
<el-table-column prop="time" label="时间" align="center" min-width="60" /> |
|||
<el-table-column prop="warehouse" label="库房" align="center" min-width="60" /> |
|||
<el-table-column prop="warning" label="警情" align="center" :show-overflow-tooltip="true" min-width="85" /> |
|||
</el-table> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
import data1 from './data1.json' |
|||
export default { |
|||
name: 'WarehouseWarning', |
|||
props: { |
|||
width: { |
|||
type: String, |
|||
default: '100%' |
|||
}, |
|||
height: { |
|||
type: String, |
|||
default: '100%' |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
tableData: [] |
|||
} |
|||
}, |
|||
created() { |
|||
this.getData() |
|||
}, |
|||
methods: { |
|||
getData() { |
|||
this.tableData = data1.rows |
|||
}, |
|||
// 表格隔行变色 |
|||
rowBgColor({ row, rowIndex }) { |
|||
if (rowIndex % 2 === 1) { |
|||
return 'light-blue' |
|||
} else { |
|||
return '' |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import '~@/assets/styles/lend-manage.scss'; |
|||
.warehouse-left{ |
|||
position: relative; |
|||
h2{ |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 0; |
|||
transform: translateX(-50%); |
|||
color: #fff; |
|||
font-size: 16px; |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,100 @@ |
|||
{ |
|||
"rows":[ |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
}, |
|||
{ |
|||
"time":"2022-6-30 13:00", |
|||
"warehouse":"文书档案库房", |
|||
"warning":"温度温度温度温度温度温度" |
|||
} |
|||
|
|||
] |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue