Commit 1b84ab97 authored by mahui's avatar mahui

init

parent 18620858
...@@ -131,8 +131,9 @@ ...@@ -131,8 +131,9 @@
<div class="cell flex_3">{{item.value}} {{item.unit}}</div> <div class="cell flex_3">{{item.value}} {{item.unit}}</div>
<div class="cell">{{item.CreatedAt}}</div> <div class="cell">{{item.CreatedAt}}</div>
</div> </div>
<div class="no-data" v-show="list.data.length==0">暂无历史数据</div>
</div> </div>
<div class="page" style="flex-shrink: 0;display: flex;justify-content: center"> <div class="pagination">
<el-pagination <el-pagination
v-model:currentPage="list.page" v-model:currentPage="list.page"
v-model:page-size="list.pageSize" v-model:page-size="list.pageSize"
...@@ -140,8 +141,8 @@ ...@@ -140,8 +141,8 @@
:small="small" :small="small"
layout="sizes, prev, pager, next" layout="sizes, prev, pager, next"
:total="list.total" :total="list.total"
@size-change="handleSizeChange" @size-change="()=>getHistoryDataList()"
@current-change="handleCurrentChange" @current-change="(val)=>getHistoryDataList(val)"
/> />
</div> </div>
</div> </div>
...@@ -243,6 +244,7 @@ ...@@ -243,6 +244,7 @@
<span class="opt" @click="seeDetail(item)">查看</span> <span class="opt" @click="seeDetail(item)">查看</span>
</div> </div>
</div> </div>
<div class="no-data" v-show="list.data.length==0">暂无巡检工单</div>
</div> </div>
<div class="pagination"> <div class="pagination">
<el-pagination <el-pagination
...@@ -250,12 +252,10 @@ ...@@ -250,12 +252,10 @@
v-model:page-size="list.pageSize" v-model:page-size="list.pageSize"
:page-sizes="[10, 15, 20, 25]" :page-sizes="[10, 15, 20, 25]"
:small="small" :small="small"
:disabled="disabled"
:background="background"
layout="sizes, prev, pager, next" layout="sizes, prev, pager, next"
:total="list.total" :total="list.total"
@size-change="()=>getOrderList()" @size-change="()=>getOrderList()"
@current-change="()=>getOrderList()" @current-change="(val)=>getOrderList(val)"
/> />
</div> </div>
</div> </div>
...@@ -684,13 +684,6 @@ ...@@ -684,13 +684,6 @@
return {text:'...',color:'#f78131'}; return {text:'...',color:'#f78131'};
} }
} }
const handleSizeChange = (val) => {
state.list.pageSize = val;
getHistoryDataList();
};
const handleCurrentChange = (val) => {
getHistoryDataList(val);
};
onMounted(() => { onMounted(() => {
getDetail(); getDetail();
initGauge(); initGauge();
...@@ -704,9 +697,7 @@ ...@@ -704,9 +697,7 @@
getOrderList, getOrderList,
getHistoryDataList, getHistoryDataList,
seeDetail, seeDetail,
wcTypeChange, wcTypeChange
handleSizeChange,
handleCurrentChange
} }
}, },
components: { components: {
...@@ -956,8 +947,17 @@ ...@@ -956,8 +947,17 @@
background-color: #7d848b; background-color: #7d848b;
} }
.table-body{ .table-body{
position: relative;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
.no-data{
position: absolute;
flex: 1;
display: flex;
justify-content: center;
align-items: center;
color:#999;
}
} }
.row{ .row{
height: 60px; height: 60px;
......
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