|
|
@@ -11,7 +11,7 @@
|
|
|
:columns="listConfig.columns"
|
|
|
:pagination="pagination"
|
|
|
:loading="loading"
|
|
|
- :index-row="false"
|
|
|
+ :index-row="true"
|
|
|
:selection-row="false"
|
|
|
:display-field="title"
|
|
|
@row-click="handleRowClick"
|
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
],
|
|
|
// 表格字段配置
|
|
|
columns: [
|
|
|
- { prop: 'sn', label: '序号', width: 60 },
|
|
|
+ // { prop: '$index', label: '序号', width: 60 },
|
|
|
{ prop: 'suoShuXiTong', label: '所属子系统', width: 100 },
|
|
|
{
|
|
|
prop: 'gongNengMoKuai',
|
|
|
@@ -192,7 +192,6 @@ export default {
|
|
|
querySystemGuide(this.getSearchFormData())
|
|
|
.then((res) => {
|
|
|
const { dataResult } = res.data
|
|
|
- const { page, limit } = this.pagination
|
|
|
const { isEmpty } = this.$utils
|
|
|
// 无排序字段时,默认按序号排序
|
|
|
if (isEmpty(this.sorts)) {
|
|
|
@@ -201,17 +200,12 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
// 处理分页
|
|
|
- const pageResult = {
|
|
|
- limit,
|
|
|
- page,
|
|
|
- totalCount: dataResult.length,
|
|
|
- totalPages: Math.ceil(dataResult.length / limit)
|
|
|
- }
|
|
|
+ const pageResult = res.data.pageResult
|
|
|
const result = {
|
|
|
- dataResult: dataResult.slice((page - 1) * limit, page * limit),
|
|
|
+ dataResult,
|
|
|
pageResult
|
|
|
}
|
|
|
- // console.log(result)
|
|
|
+ console.log(result)
|
|
|
ActionUtils.handleListData(this, result)
|
|
|
})
|
|
|
.finally(() => {
|
|
|
@@ -254,7 +248,7 @@ export default {
|
|
|
parameters: this.formatParameters(params),
|
|
|
...ActionUtils.formatParams(
|
|
|
null,
|
|
|
- { ...this.pagination, limit: 9999 },
|
|
|
+ { ...this.pagination, limit: this.pagination.limit || 100 },
|
|
|
this.sorts
|
|
|
)
|
|
|
}
|
|
|
@@ -388,11 +382,8 @@ export default {
|
|
|
}
|
|
|
.home-text-border {
|
|
|
color: #999999;
|
|
|
- box-shadow:
|
|
|
- 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
- 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
- 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
- 0 1px 0px 0 rgba(0, 0, 0, 0.1);
|
|
|
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.1),
|
|
|
+ 0 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 0px 0 rgba(0, 0, 0, 0.1);
|
|
|
min-height: 20px;
|
|
|
font-size: 14px;
|
|
|
margin-left: 60px;
|