Commit 9af52bde by xionglin

infoit修改

parent 91743251
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
// paging // paging
pageNum: 1, pageNum: 1,
pageSize: 5, pageSize: 5,
totals: 0, total: 0,
}, },
} }
}, },
......
...@@ -65,26 +65,25 @@ ...@@ -65,26 +65,25 @@
</el-button> </el-button>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="24" style=""> <c-paging-table
<el-table :data="oitData" :columns="oitColumns" style="width:100%"> :data="oitData"
<el-table-column :columns="oitColumns"
v-for="(item, key) in oitColumns" :pageNumber="model.pageNum"
:key="key" :pageSize="model.pageSize"
:label="item.label" :total="model.total"
:prop="item.prop" v-on:queryFunc="queryFunc"
:border="true"
>
<c-table-column fixed="right" prop="op" label="操作" width="240px">
<template slot-scope="{ scope }">
<c-button
style="margin-left: 0"
size="small"
@click="oitInfo(scope.$index, scope.row)"
>详情</c-button
> >
<c-button
</el-table-column>
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align:center"><span>操作</span></c-col>
</template>
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="oitInfo(scope.$index, scope.row)">
详情
</c-button>
<c-button
style="margin-left: 5px" style="margin-left: 5px"
size="small" size="small"
type="primary" type="primary"
...@@ -97,20 +96,27 @@ ...@@ -97,20 +96,27 @@
@click="oitDelete(scope.$index, scope.row)" @click="oitDelete(scope.$index, scope.row)"
>删除</c-button >删除</c-button
> >
</template> <el-popover placement="top-start" width="50" trigger="click">
</el-table-column> <ul class="table-button-item-list">
</el-table> <li>
<el-pagination <c-button size="small" style="margin-left: 0">指派</c-button>
@size-change="handleSizeChange" </li>
@current-change="handleCurrentChange" <li>
:current-page.sync="model.pageNum" <c-button size="small" style="margin-left: 0">删除</c-button>
:page-sizes="[5,10, 20, 50, 100, 500]" </li>
:page-size="model.pageSize" </ul>
layout="total, sizes, prev, pager, next, jumper" <a
:total="model.totals"> slot="reference"
</el-pagination> href="javascript:void(0)"
</c-col> style="margin-left: 5px"
>
<i class="el-icon-more"></i>
</a>
</el-popover>
</template>
</c-table-column>
</c-paging-table>
</c-col>
</div> </div>
</template> </template>
...@@ -131,11 +137,11 @@ export default { ...@@ -131,11 +137,11 @@ export default {
prop: 'objtypCn', prop: 'objtypCn',
width: '120', width: '120',
}, },
{ label: 'Key', prop: 'ownref' }, { label: 'Key', prop: 'ownref', width: '120' },
{ label: 'Name', prop: 'nam' }, { label: 'Name', prop: 'nam', width: '120' },
{ label: '提示类型', prop: 'subtypCn'}, { label: '提示类型', prop: 'subtypCn', width: '120' },
{ label: '相关业务品种', prop: 'subbus'}, { label: '相关业务品种', prop: 'subbus', width: '150' },
{ label: '提示信息级别', prop: 'inflevCn' }, { label: '提示信息级别', prop: 'inflevCn', width: '200' },
], ],
} }
}, },
...@@ -189,19 +195,13 @@ export default { ...@@ -189,19 +195,13 @@ export default {
this.oitData = list this.oitData = list
this.model.pageNum = res.pageNumber this.model.pageNum = res.pageNumber
this.model.pageSize = res.pageSize this.model.pageSize = res.pageSize
this.model.totals= parseInt(res.total) this.model.total = parseInt(res.total)
}) })
}, },
// pageSize改变 queryFunc(pageNumber, pageSize) {
handleSizeChange(val) { this.model.pageNum = pageNumber
this.model.pageNum = 1; this.model.pageSize = pageSize
this.model.pageSize = val; this.onInfOitSearch()
this.onInfOitSearch();
},
// 页码改变
handleCurrentChange(val) {
this.model.pageNum = val;
this.onInfOitSearch();
}, },
getCodesByKey(key) { getCodesByKey(key) {
return codes[key] ?? [] return codes[key] ?? []
......
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