Commit 2a5cc640 authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents 0b31c683 1bd03e6f
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
{ key: 'schemaName', title: '类别', align: 'center' }, { key: 'schemaName', title: '类别', align: 'center' },
{ key: 'currentNodeName', title: '环节', align: 'center' }, { key: 'currentNodeName', title: '环节', align: 'center' },
{ key: 'nextNodeName', title: '下一环节', align: 'center' }, { key: 'nextNodeName', title: '下一环节', align: 'center' },
{ key: 'creationTime', title: '创建时间', align: 'center' }, { key: 'creationTime', title: '创建时间', align: 'center',width:'190' },
{ {
key: 'id', key: 'id',
title: '操作', title: '操作',
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="tableBox mb10" :style="{height:tbHeight}"> <div class="tableBox mb10" :style="{height:tbHeight}">
<div class="table"> <div class="table">
<div v-if="listTask.length==0" class="wu_data">暂无数据</div> <div v-if="listTask.length==0" class="wu_data">暂无数据</div>
<Row :gutter="16"> <Row :gutter="16" :style="{width:rowWidth}">
<Col span="6" v-for="(item,index) in listTask" :key="index"> <Col span="6" v-for="(item,index) in listTask" :key="index">
<Card class="card"> <Card class="card">
<h3 slot="title"> <h3 slot="title">
...@@ -264,6 +264,7 @@ export default { ...@@ -264,6 +264,7 @@ export default {
total: 0, //总数 total: 0, //总数
conditions: [] conditions: []
}, },
rowWidth:'',
showPagesize: [20, 50, 100], showPagesize: [20, 50, 100],
showModel: false, showModel: false,
list: [], list: [],
...@@ -381,6 +382,9 @@ export default { ...@@ -381,6 +382,9 @@ export default {
.then(res => { .then(res => {
this.listTask = res.result.items; this.listTask = res.result.items;
this.search.total = res.result.totalCount; this.search.total = res.result.totalCount;
if(this.listTask.length<4){
this.rowWidth = "100%"
}
}); });
}, },
searchModel() { searchModel() {
......
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