Commit d9cbb94e authored by “yiyousong”'s avatar “yiyousong”

perf: 优化窗口板块

parent ae1ef8cb
...@@ -114,19 +114,19 @@ ...@@ -114,19 +114,19 @@
} }
// 带按钮搜索框 // 带按钮搜索框
.search { // .search {
input { // input {
font-size: @fz14; // font-size: @fz14;
color: #BFBFBF; // color: #BFBFBF;
} // }
.chaxun { // .chaxun {
color: @clfff; // color: @clfff;
border: 1px solid #5ab6ff; // border: 1px solid #5ab6ff;
padding: 0 14px; // padding: 0 14px;
background: @addbg; // background: @addbg;
} // }
} // }
// 按钮 // 按钮
.btn { .btn {
......
...@@ -42,6 +42,17 @@ ...@@ -42,6 +42,17 @@
}" }"
@changePagination="getSiteBusinessData" @changePagination="getSiteBusinessData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ record, index }">
<span v-if="record.parentId === 0">
{{
(siteBusinessTable.page - 1) * siteBusinessTable.size +
index +
1
}}
</span>
</template>
<template slot="action" slot-scope="{ record }"> <template slot="action" slot-scope="{ record }">
<a-space size="middle"> <a-space size="middle">
<span <span
...@@ -99,6 +110,13 @@ ...@@ -99,6 +110,13 @@
}" }"
@changePagination="getBusinessListData" @changePagination="getBusinessListData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ record, index }">
<span v-if="record.parentId === 0">
{{ (businessTable.page - 1) * businessTable.size + index + 1 }}
</span>
</template>
<template slot="action" slot-scope="{ record }"> <template slot="action" slot-scope="{ record }">
<a-space size="middle"> <a-space size="middle">
<span class="primary pointer" @click="handleIn(record.id)" <span class="primary pointer" @click="handleIn(record.id)"
...@@ -153,15 +171,8 @@ export default { ...@@ -153,15 +171,8 @@ export default {
{ {
title: "序号", title: "序号",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
if (record.parentId === 0) { customRender: "index",
return (
(this.siteBusinessTable.page - 1) *
this.siteBusinessTable.size +
index +
1
);
}
}, },
}, },
{ {
...@@ -189,14 +200,8 @@ export default { ...@@ -189,14 +200,8 @@ export default {
title: "序号", title: "序号",
key: "id", key: "id",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
if (record.parentId === 0) { customRender: "index",
return (
(this.businessTable.page - 1) * this.businessTable.size +
index +
1
);
}
}, },
}, },
{ {
......
...@@ -71,6 +71,11 @@ ...@@ -71,6 +71,11 @@
}" }"
@changePagination="getMatterSiteData" @changePagination="getMatterSiteData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ index }">{{
(siteMatterTable.page - 1) * siteMatterTable.size + index + 1
}}</template>
<!-- 事项名称 --> <!-- 事项名称 -->
<template slot="matterName" slot-scope="{ record }"> <template slot="matterName" slot-scope="{ record }">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
...@@ -188,6 +193,11 @@ ...@@ -188,6 +193,11 @@
}" }"
@changePagination="getMatterListData" @changePagination="getMatterListData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ index }">{{
(baseMatterTable.page - 1) * baseMatterTable.size + index + 1
}}</template>
<!-- 事项名称 --> <!-- 事项名称 -->
<template slot="matterName" slot-scope="{ record }"> <template slot="matterName" slot-scope="{ record }">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
...@@ -280,12 +290,8 @@ export default { ...@@ -280,12 +290,8 @@ export default {
{ {
title: "序号", title: "序号",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
return ( customRender: "index",
(this.siteMatterTable.page - 1) * this.siteMatterTable.size +
index +
1
);
}, },
}, },
{ {
...@@ -332,12 +338,8 @@ export default { ...@@ -332,12 +338,8 @@ export default {
{ {
title: "序号", title: "序号",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
return ( customRender: "index",
(this.baseMatterTable.page - 1) * this.baseMatterTable.size +
index +
1
);
}, },
}, },
{ {
......
...@@ -36,6 +36,11 @@ ...@@ -36,6 +36,11 @@
}" }"
@changePagination="getBusinessMatterData" @changePagination="getBusinessMatterData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ index }">{{
(siteBusinessTable.page - 1) * siteBusinessTable.size + index + 1
}}</template>
<template slot="action" slot-scope="{ record }"> <template slot="action" slot-scope="{ record }">
<a-space> <a-space>
<span <span
...@@ -109,6 +114,11 @@ ...@@ -109,6 +114,11 @@
}" }"
@changePagination="getMatterSiteData" @changePagination="getMatterSiteData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ index }">{{
(siteMatterTable.page - 1) * siteMatterTable.size + index + 1
}}</template>
<!-- 事项名称 --> <!-- 事项名称 -->
<template slot="matterName" slot-scope="{ record }"> <template slot="matterName" slot-scope="{ record }">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
...@@ -282,13 +292,8 @@ export default { ...@@ -282,13 +292,8 @@ export default {
{ {
title: "序号", title: "序号",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
return ( customRender: "index",
(this.siteBusinessTable.page - 1) *
this.siteBusinessTable.size +
index +
1
);
}, },
}, },
{ {
...@@ -321,12 +326,8 @@ export default { ...@@ -321,12 +326,8 @@ export default {
{ {
title: "序号", title: "序号",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
return ( customRender: "index",
(this.siteMatterTable.page - 1) * this.siteMatterTable.size +
index +
1
);
}, },
}, },
{ {
......
...@@ -77,6 +77,11 @@ ...@@ -77,6 +77,11 @@
}" }"
@changePagination="getMatterSiteData" @changePagination="getMatterSiteData"
> >
<!-- 序号 -->
<template slot="index" slot-scope="{ index }">{{
(searchForm.page - 1) * searchForm.size + index + 1
}}</template>
<!-- 事项名称 --> <!-- 事项名称 -->
<template slot="matterName" slot-scope="{ text }"> <template slot="matterName" slot-scope="{ text }">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
...@@ -168,10 +173,8 @@ export default { ...@@ -168,10 +173,8 @@ export default {
{ {
title: "序号", title: "序号",
width: "50px", width: "50px",
customRender: (text, record, index) => { scopedSlots: {
return ( customRender: "index",
(this.searchForm.page - 1) * this.searchForm.size + index + 1
);
}, },
}, },
{ {
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
methods: { methods: {
// 获取窗口信息 // 获取窗口信息
async getWindowInfo(info) { async getWindowInfo(info) {
await this.siteBusinessList(); await this.getSiteBusinessList();
this.formData = info; this.formData = info;
if (info.businessIds.length) { if (info.businessIds.length) {
this.rowKeys = info.businessIds; this.rowKeys = info.businessIds;
......
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