Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
ae1ef8cb
Commit
ae1ef8cb
authored
Oct 09, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化办事指南数据管理
parent
5fe0b31b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
177 deletions
+159
-177
base-manager-ui/admin/src/components/YTable.vue
base-manager-ui/admin/src/components/YTable.vue
+3
-3
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs1.vue
.../src/pages/basicset/business/components/businessTabs1.vue
+14
-14
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs2.vue
.../src/pages/basicset/business/components/businessTabs2.vue
+14
-14
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs3.vue
.../src/pages/basicset/business/components/businessTabs3.vue
+14
-14
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs4.vue
.../src/pages/basicset/business/components/businessTabs4.vue
+114
-132
No files found.
base-manager-ui/admin/src/components/YTable.vue
View file @
ae1ef8cb
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
10
,
default
:
10
,
},
},
current
:
{
page
:
{
required
:
true
,
required
:
true
,
type
:
Number
,
type
:
Number
,
default
:
1
,
default
:
1
,
...
@@ -119,10 +119,10 @@ export default {
...
@@ -119,10 +119,10 @@ export default {
},
},
Current
:
{
Current
:
{
get
()
{
get
()
{
return
this
.
current
;
return
this
.
page
;
},
},
set
(
value
)
{
set
(
value
)
{
this
.
$emit
(
"
update:
current
"
,
value
);
this
.
$emit
(
"
update:
page
"
,
value
);
},
},
},
},
Pagination
()
{
Pagination
()
{
...
...
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs1.vue
View file @
ae1ef8cb
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
:expandIconColumnIndex=
"2"
:expandIconColumnIndex=
"2"
:data=
"siteBusinessTable.data"
:data=
"siteBusinessTable.data"
:pageSize.sync=
"siteBusinessTable.size"
:pageSize.sync=
"siteBusinessTable.size"
:
current.sync=
"siteBusinessTable.current
"
:
page.sync=
"siteBusinessTable.page
"
:total=
"siteBusinessTable.total"
:total=
"siteBusinessTable.total"
:loading=
"siteBusinessTable.loading"
:loading=
"siteBusinessTable.loading"
size=
"middle"
size=
"middle"
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
:expandIconColumnIndex=
"2"
:expandIconColumnIndex=
"2"
:data=
"businessTable.data"
:data=
"businessTable.data"
:pageSize.sync=
"businessTable.size"
:pageSize.sync=
"businessTable.size"
:
current.sync=
"businessTable.current
"
:
page.sync=
"businessTable.page
"
:total=
"businessTable.total"
:total=
"businessTable.total"
:loading=
"businessTable.loading"
:loading=
"businessTable.loading"
size=
"middle"
size=
"middle"
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
customRender
:
(
text
,
record
,
index
)
=>
{
customRender
:
(
text
,
record
,
index
)
=>
{
if
(
record
.
parentId
===
0
)
{
if
(
record
.
parentId
===
0
)
{
return
(
return
(
(
this
.
siteBusinessTable
.
current
-
1
)
*
(
this
.
siteBusinessTable
.
page
-
1
)
*
this
.
siteBusinessTable
.
size
+
this
.
siteBusinessTable
.
size
+
index
+
index
+
1
1
...
@@ -178,7 +178,7 @@ export default {
...
@@ -178,7 +178,7 @@ export default {
},
},
],
],
total
:
0
,
total
:
0
,
current
:
1
,
page
:
1
,
size
:
10
,
size
:
10
,
data
:
[],
data
:
[],
},
},
...
@@ -192,7 +192,7 @@ export default {
...
@@ -192,7 +192,7 @@ export default {
customRender
:
(
text
,
record
,
index
)
=>
{
customRender
:
(
text
,
record
,
index
)
=>
{
if
(
record
.
parentId
===
0
)
{
if
(
record
.
parentId
===
0
)
{
return
(
return
(
(
this
.
businessTable
.
current
-
1
)
*
this
.
businessTable
.
size
+
(
this
.
businessTable
.
page
-
1
)
*
this
.
businessTable
.
size
+
index
+
index
+
1
1
);
);
...
@@ -213,7 +213,7 @@ export default {
...
@@ -213,7 +213,7 @@ export default {
},
},
],
],
total
:
0
,
total
:
0
,
current
:
1
,
page
:
1
,
size
:
10
,
size
:
10
,
data
:
[],
data
:
[],
},
},
...
@@ -255,15 +255,15 @@ export default {
...
@@ -255,15 +255,15 @@ export default {
async
getSiteBusinessData
()
{
async
getSiteBusinessData
()
{
this
.
siteBusinessTable
.
loading
=
true
;
this
.
siteBusinessTable
.
loading
=
true
;
let
res
=
await
siteBusinessList
({
let
res
=
await
siteBusinessList
({
page
:
this
.
siteBusinessTable
.
current
,
page
:
this
.
siteBusinessTable
.
page
,
size
:
this
.
siteBusinessTable
.
size
,
size
:
this
.
siteBusinessTable
.
size
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
businessName
:
`%
${
this
.
serchSiteBusiness
}
%`
,
businessName
:
`%
${
this
.
serchSiteBusiness
}
%`
,
});
});
let
{
code
,
data
}
=
res
.
data
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
if
(
!
data
.
data
.
length
&&
this
.
siteBusinessTable
.
current
>
1
)
{
if
(
!
data
.
data
.
length
&&
this
.
siteBusinessTable
.
page
>
1
)
{
this
.
siteBusinessTable
.
current
-=
1
;
this
.
siteBusinessTable
.
page
-=
1
;
this
.
getSiteBusinessData
();
this
.
getSiteBusinessData
();
}
}
this
.
siteBusinessTable
.
total
=
data
.
pageInfo
.
totalResult
;
this
.
siteBusinessTable
.
total
=
data
.
pageInfo
.
totalResult
;
...
@@ -275,15 +275,15 @@ export default {
...
@@ -275,15 +275,15 @@ export default {
async
getBusinessListData
()
{
async
getBusinessListData
()
{
this
.
businessTable
.
loading
=
true
;
this
.
businessTable
.
loading
=
true
;
let
res
=
await
businessList
({
let
res
=
await
businessList
({
page
:
this
.
businessTable
.
current
,
page
:
this
.
businessTable
.
page
,
size
:
this
.
businessTable
.
size
,
size
:
this
.
businessTable
.
size
,
name
:
`%
${
this
.
serchData
}
%`
,
name
:
`%
${
this
.
serchData
}
%`
,
businessType
:
0
,
//一体化业务
businessType
:
0
,
//一体化业务
});
});
let
{
code
,
data
}
=
res
.
data
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
if
(
!
data
.
data
.
length
&&
this
.
businessTable
.
current
>
1
)
{
if
(
!
data
.
data
.
length
&&
this
.
businessTable
.
page
>
1
)
{
this
.
businessTable
.
current
-=
1
;
this
.
businessTable
.
page
-=
1
;
this
.
getBusinessListData
();
this
.
getBusinessListData
();
}
}
this
.
businessTable
.
total
=
data
.
pageInfo
.
totalResult
;
this
.
businessTable
.
total
=
data
.
pageInfo
.
totalResult
;
...
@@ -294,7 +294,7 @@ export default {
...
@@ -294,7 +294,7 @@ export default {
// 站点业务搜索
// 站点业务搜索
onSiteBusinessSearch
()
{
onSiteBusinessSearch
()
{
this
.
siteBusinessTable
.
current
=
1
;
this
.
siteBusinessTable
.
page
=
1
;
this
.
getSiteBusinessData
();
this
.
getSiteBusinessData
();
},
},
// 删除站点业务
// 删除站点业务
...
@@ -401,7 +401,7 @@ export default {
...
@@ -401,7 +401,7 @@ export default {
},
},
// 搜索一体化业务
// 搜索一体化业务
async
onSearch
()
{
async
onSearch
()
{
this
.
businessTable
.
current
=
1
;
this
.
businessTable
.
page
=
1
;
this
.
getBusinessListData
();
this
.
getBusinessListData
();
},
},
// 一体化业务加入站点
// 一体化业务加入站点
...
...
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs2.vue
View file @
ae1ef8cb
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
:columns=
"siteMatterTable.columns"
:columns=
"siteMatterTable.columns"
:data=
"siteMatterTable.data"
:data=
"siteMatterTable.data"
:pageSize.sync=
"siteMatterTable.size"
:pageSize.sync=
"siteMatterTable.size"
:
current.sync=
"siteMatterTable.current
"
:
page.sync=
"siteMatterTable.page
"
:total=
"siteMatterTable.total"
:total=
"siteMatterTable.total"
:loading=
"siteMatterTable.loading"
:loading=
"siteMatterTable.loading"
size=
"middle"
size=
"middle"
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
:columns=
"baseMatterTable.columns"
:columns=
"baseMatterTable.columns"
:data=
"baseMatterTable.data"
:data=
"baseMatterTable.data"
:pageSize.sync=
"baseMatterTable.size"
:pageSize.sync=
"baseMatterTable.size"
:
current.sync=
"baseMatterTable.current
"
:
page.sync=
"baseMatterTable.page
"
:total=
"baseMatterTable.total"
:total=
"baseMatterTable.total"
:loading=
"baseMatterTable.loading"
:loading=
"baseMatterTable.loading"
size=
"middle"
size=
"middle"
...
@@ -270,7 +270,7 @@ export default {
...
@@ -270,7 +270,7 @@ export default {
data
:
[],
data
:
[],
total
:
0
,
total
:
0
,
size
:
10
,
size
:
10
,
current
:
1
,
page
:
1
,
search
:
{
search
:
{
source
:
undefined
,
// 事项来源
source
:
undefined
,
// 事项来源
matterName
:
""
,
// 事项名称
matterName
:
""
,
// 事项名称
...
@@ -282,7 +282,7 @@ export default {
...
@@ -282,7 +282,7 @@ export default {
width
:
"
50px
"
,
width
:
"
50px
"
,
customRender
:
(
text
,
record
,
index
)
=>
{
customRender
:
(
text
,
record
,
index
)
=>
{
return
(
return
(
(
this
.
siteMatterTable
.
current
-
1
)
*
this
.
siteMatterTable
.
size
+
(
this
.
siteMatterTable
.
page
-
1
)
*
this
.
siteMatterTable
.
size
+
index
+
index
+
1
1
);
);
...
@@ -322,7 +322,7 @@ export default {
...
@@ -322,7 +322,7 @@ export default {
data
:
[],
data
:
[],
total
:
0
,
total
:
0
,
size
:
10
,
size
:
10
,
current
:
1
,
page
:
1
,
search
:
{
search
:
{
source
:
undefined
,
// 事项来源
source
:
undefined
,
// 事项来源
matterName
:
""
,
// 事项名称
matterName
:
""
,
// 事项名称
...
@@ -334,7 +334,7 @@ export default {
...
@@ -334,7 +334,7 @@ export default {
width
:
"
50px
"
,
width
:
"
50px
"
,
customRender
:
(
text
,
record
,
index
)
=>
{
customRender
:
(
text
,
record
,
index
)
=>
{
return
(
return
(
(
this
.
baseMatterTable
.
current
-
1
)
*
this
.
baseMatterTable
.
size
+
(
this
.
baseMatterTable
.
page
-
1
)
*
this
.
baseMatterTable
.
size
+
index
+
index
+
1
1
);
);
...
@@ -397,7 +397,7 @@ export default {
...
@@ -397,7 +397,7 @@ export default {
async
getMatterSiteData
()
{
async
getMatterSiteData
()
{
this
.
siteMatterTable
.
loading
=
true
;
this
.
siteMatterTable
.
loading
=
true
;
let
res
=
await
getSiteMatterList
({
let
res
=
await
getSiteMatterList
({
page
:
this
.
siteMatterTable
.
current
,
page
:
this
.
siteMatterTable
.
page
,
size
:
this
.
siteMatterTable
.
size
,
size
:
this
.
siteMatterTable
.
size
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
source
:
this
.
siteMatterTable
.
search
.
source
,
source
:
this
.
siteMatterTable
.
search
.
source
,
...
@@ -406,8 +406,8 @@ export default {
...
@@ -406,8 +406,8 @@ export default {
});
});
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
pageInfo
,
data
}
=
res
.
data
.
data
;
let
{
pageInfo
,
data
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
siteMatterTable
.
current
>
1
)
{
if
(
!
data
.
length
&&
this
.
siteMatterTable
.
page
>
1
)
{
this
.
siteMatterTable
.
current
-=
1
;
this
.
siteMatterTable
.
page
-=
1
;
this
.
getMatterSiteData
();
this
.
getMatterSiteData
();
}
}
this
.
siteMatterTable
.
total
=
pageInfo
.
totalResult
;
this
.
siteMatterTable
.
total
=
pageInfo
.
totalResult
;
...
@@ -420,7 +420,7 @@ export default {
...
@@ -420,7 +420,7 @@ export default {
this
.
baseMatterTable
.
loading
=
true
;
this
.
baseMatterTable
.
loading
=
true
;
let
res
=
await
getMatterListSubList
({
let
res
=
await
getMatterListSubList
({
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
page
:
this
.
baseMatterTable
.
current
,
page
:
this
.
baseMatterTable
.
page
,
size
:
this
.
baseMatterTable
.
size
,
size
:
this
.
baseMatterTable
.
size
,
matterName
:
`%
${
this
.
baseMatterTable
.
search
.
matterName
}
%`
,
matterName
:
`%
${
this
.
baseMatterTable
.
search
.
matterName
}
%`
,
source
:
this
.
baseMatterTable
.
search
.
source
,
source
:
this
.
baseMatterTable
.
search
.
source
,
...
@@ -428,8 +428,8 @@ export default {
...
@@ -428,8 +428,8 @@ export default {
});
});
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
pageInfo
,
data
,
dict
}
=
res
.
data
.
data
;
let
{
pageInfo
,
data
,
dict
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
baseMatterTable
.
current
>
1
)
{
if
(
!
data
.
length
&&
this
.
baseMatterTable
.
page
>
1
)
{
this
.
baseMatterTable
.
current
-=
1
;
this
.
baseMatterTable
.
page
-=
1
;
this
.
getMatterListData
();
this
.
getMatterListData
();
}
}
this
.
baseMatterTable
.
data
=
data
;
this
.
baseMatterTable
.
data
=
data
;
...
@@ -440,7 +440,7 @@ export default {
...
@@ -440,7 +440,7 @@ export default {
},
},
// 站点事项搜索
// 站点事项搜索
onSearchSiteMatter
()
{
onSearchSiteMatter
()
{
this
.
siteMatterTable
.
current
=
1
;
this
.
siteMatterTable
.
page
=
1
;
this
.
getMatterSiteData
();
this
.
getMatterSiteData
();
},
},
// 左边移除站点事项
// 左边移除站点事项
...
@@ -508,7 +508,7 @@ export default {
...
@@ -508,7 +508,7 @@ export default {
},
},
// 基础事项搜索
// 基础事项搜索
onSearchBaseMatter
()
{
onSearchBaseMatter
()
{
this
.
baseMatterTable
.
current
=
1
;
this
.
baseMatterTable
.
page
=
1
;
this
.
getMatterListData
();
this
.
getMatterListData
();
},
},
// 加入
// 加入
...
...
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs3.vue
View file @
ae1ef8cb
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
:columns=
"siteBusinessTable.columns"
:columns=
"siteBusinessTable.columns"
:data=
"siteBusinessTable.data"
:data=
"siteBusinessTable.data"
:pageSize.sync=
"siteBusinessTable.size"
:pageSize.sync=
"siteBusinessTable.size"
:
current.sync=
"siteBusinessTable.current
"
:
page.sync=
"siteBusinessTable.page
"
:total=
"siteBusinessTable.total"
:total=
"siteBusinessTable.total"
:loading=
"siteBusinessTable.loading"
:loading=
"siteBusinessTable.loading"
size=
"middle"
size=
"middle"
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
:columns=
"siteMatterTable.columns"
:columns=
"siteMatterTable.columns"
:data=
"siteMatterTable.data"
:data=
"siteMatterTable.data"
:pageSize.sync=
"siteMatterTable.size"
:pageSize.sync=
"siteMatterTable.size"
:
current.sync=
"siteMatterTable.current
"
:
page.sync=
"siteMatterTable.page
"
:total=
"siteMatterTable.total"
:total=
"siteMatterTable.total"
:loading=
"siteMatterTable.loading"
:loading=
"siteMatterTable.loading"
size=
"middle"
size=
"middle"
...
@@ -274,7 +274,7 @@ export default {
...
@@ -274,7 +274,7 @@ export default {
data
:
[],
data
:
[],
total
:
0
,
total
:
0
,
size
:
10
,
size
:
10
,
current
:
1
,
page
:
1
,
search
:
{
search
:
{
siteBusinessName
:
""
,
// 站点业务名称
siteBusinessName
:
""
,
// 站点业务名称
},
},
...
@@ -284,7 +284,7 @@ export default {
...
@@ -284,7 +284,7 @@ export default {
width
:
"
50px
"
,
width
:
"
50px
"
,
customRender
:
(
text
,
record
,
index
)
=>
{
customRender
:
(
text
,
record
,
index
)
=>
{
return
(
return
(
(
this
.
siteBusinessTable
.
current
-
1
)
*
(
this
.
siteBusinessTable
.
page
-
1
)
*
this
.
siteBusinessTable
.
size
+
this
.
siteBusinessTable
.
size
+
index
+
index
+
1
1
...
@@ -312,7 +312,7 @@ export default {
...
@@ -312,7 +312,7 @@ export default {
data
:
[],
data
:
[],
total
:
0
,
total
:
0
,
size
:
10
,
size
:
10
,
current
:
1
,
page
:
1
,
search
:
{
search
:
{
deptCode
:
undefined
,
// 部门编码
deptCode
:
undefined
,
// 部门编码
matterName
:
""
,
// 事项名称
matterName
:
""
,
// 事项名称
...
@@ -323,7 +323,7 @@ export default {
...
@@ -323,7 +323,7 @@ export default {
width
:
"
50px
"
,
width
:
"
50px
"
,
customRender
:
(
text
,
record
,
index
)
=>
{
customRender
:
(
text
,
record
,
index
)
=>
{
return
(
return
(
(
this
.
siteMatterTable
.
current
-
1
)
*
this
.
siteMatterTable
.
size
+
(
this
.
siteMatterTable
.
page
-
1
)
*
this
.
siteMatterTable
.
size
+
index
+
index
+
1
1
);
);
...
@@ -403,15 +403,15 @@ export default {
...
@@ -403,15 +403,15 @@ export default {
async
getBusinessMatterData
()
{
async
getBusinessMatterData
()
{
this
.
siteBusinessTable
.
loading
=
true
;
this
.
siteBusinessTable
.
loading
=
true
;
let
res
=
await
getBusinesslistData
({
let
res
=
await
getBusinesslistData
({
page
:
this
.
siteBusinessTable
.
current
,
page
:
this
.
siteBusinessTable
.
page
,
size
:
this
.
siteBusinessTable
.
size
,
size
:
this
.
siteBusinessTable
.
size
,
siteId
:
Number
(
this
.
siteId
),
siteId
:
Number
(
this
.
siteId
),
siteBusinessName
:
`%
${
this
.
siteBusinessTable
.
search
.
siteBusinessName
}
%`
,
siteBusinessName
:
`%
${
this
.
siteBusinessTable
.
search
.
siteBusinessName
}
%`
,
});
});
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
total
,
data
}
=
res
.
data
.
data
;
let
{
total
,
data
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
siteBusinessTable
.
current
>
1
)
{
if
(
!
data
.
length
&&
this
.
siteBusinessTable
.
page
>
1
)
{
this
.
siteBusinessTable
.
current
-=
1
;
this
.
siteBusinessTable
.
page
-=
1
;
this
.
getBusinessMatterData
();
this
.
getBusinessMatterData
();
}
}
this
.
siteBusinessTable
.
total
=
total
;
this
.
siteBusinessTable
.
total
=
total
;
...
@@ -457,7 +457,7 @@ export default {
...
@@ -457,7 +457,7 @@ export default {
async
getMatterSiteData
()
{
async
getMatterSiteData
()
{
this
.
siteMatterTable
.
loading
=
true
;
this
.
siteMatterTable
.
loading
=
true
;
let
res
=
await
getSiteMatterList
({
let
res
=
await
getSiteMatterList
({
page
:
this
.
siteMatterTable
.
current
,
page
:
this
.
siteMatterTable
.
page
,
size
:
this
.
siteMatterTable
.
size
,
size
:
this
.
siteMatterTable
.
size
,
matterName
:
`%
${
this
.
siteMatterTable
.
search
.
matterName
}
%`
,
matterName
:
`%
${
this
.
siteMatterTable
.
search
.
matterName
}
%`
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
...
@@ -465,8 +465,8 @@ export default {
...
@@ -465,8 +465,8 @@ export default {
});
});
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
pageInfo
,
data
}
=
res
.
data
.
data
;
let
{
pageInfo
,
data
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
siteMatterTable
.
current
>
1
)
{
if
(
!
data
.
length
&&
this
.
siteMatterTable
.
page
>
1
)
{
this
.
siteMatterTable
.
current
-=
1
;
this
.
siteMatterTable
.
page
-=
1
;
this
.
getMatterSiteData
();
this
.
getMatterSiteData
();
}
}
this
.
siteMatterTable
.
total
=
pageInfo
.
totalResult
;
this
.
siteMatterTable
.
total
=
pageInfo
.
totalResult
;
...
@@ -477,7 +477,7 @@ export default {
...
@@ -477,7 +477,7 @@ export default {
// 站点关联业务列表搜索
// 站点关联业务列表搜索
async
onSiteBusinessSearch
()
{
async
onSiteBusinessSearch
()
{
this
.
siteBusinessTable
.
current
=
1
;
this
.
siteBusinessTable
.
page
=
1
;
this
.
getBusinessMatterData
();
this
.
getBusinessMatterData
();
},
},
...
@@ -617,7 +617,7 @@ export default {
...
@@ -617,7 +617,7 @@ export default {
},
},
// 站点事项搜索
// 站点事项搜索
onSearchSiteMatter
()
{
onSearchSiteMatter
()
{
this
.
siteMatterTable
.
current
=
1
;
this
.
siteMatterTable
.
page
=
1
;
this
.
getMatterSiteData
();
this
.
getMatterSiteData
();
},
},
// 关联
// 关联
...
...
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs4.vue
View file @
ae1ef8cb
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
showSearch
showSearch
style=
"min-width: 120px"
style=
"min-width: 120px"
allowClear
allowClear
v-model=
"
dept
"
v-model=
"
searchForm.deptCode
"
class=
"select-department"
class=
"select-department"
placeholder=
"全部部门"
placeholder=
"全部部门"
optionFilterProp=
"label"
optionFilterProp=
"label"
...
@@ -37,15 +37,20 @@
...
@@ -37,15 +37,20 @@
<a-select
<a-select
style=
"width: 120px"
style=
"width: 120px"
allowClear
allowClear
v-model=
"source"
v-model=
"s
earchForm.s
ource"
class=
"select-department"
class=
"select-department"
placeholder=
"全部来源"
placeholder=
"全部来源"
>
>
<a-select-option
:value=
"0"
>
一体化添加
</a-select-option>
<a-select-option
<a-select-option
:value=
"1"
>
手动添加
</a-select-option>
v-for=
"(v, key) in sourceType"
:key=
"key"
:value=
"Number(key)"
>
{{
v
}}
</a-select-option>
</a-select>
</a-select>
<a-input-search
<a-input-search
v-model=
"search
Val
"
v-model=
"search
Form.matterName
"
placeholder=
"请输入事项名称搜索"
placeholder=
"请输入事项名称搜索"
enter-button=
"搜索"
enter-button=
"搜索"
@
search=
"onSearch"
@
search=
"onSearch"
...
@@ -57,39 +62,23 @@
...
@@ -57,39 +62,23 @@
</div>
</div>
<div
class=
"table-content"
>
<div
class=
"table-content"
>
<!-- 表格 -->
<!-- 表格 -->
<a-table
<y-table
bordered
:columns=
"columns"
size=
"middle"
:data=
"matterSiteData"
:pageSize.sync=
"searchForm.size"
:page.sync=
"searchForm.page"
:total=
"total"
:loading=
"loading"
:loading=
"loading"
:pagination=
"
{
size=
"middle"
showTotal: (total) => `共 ${total} 条`,
current: current,
total: total,
pageSize: size,
size: 'middle',
showSizeChanger: true,
showQuickJumper: true,
pageSizeOptions: pageSizeOptions,
onChange: changePage,
onShowSizeChange: showSizeChange,
}"
:scroll=
"
{ y: 550 }"
:scroll=
"
{ y: 550 }"
:columns="columns"
:data-source="matterSiteData"
:rowKey="(record) => record.id"
:row-selection="{
:row-selection="{
selectedRowKeys: selectedRowKeys,
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
onChange: onSelectChange,
}"
}"
@changePagination="getMatterSiteData"
>
>
<template
slot=
"index"
slot-scope=
"text, record, index"
>
<span>
{{
(
current
-
1
)
*
size
+
index
+
1
}}
</span>
</
template
>
<!-- 事项名称 -->
<!-- 事项名称 -->
<
template
slot=
"matterName"
slot-scope=
"
text
"
>
<template
slot=
"matterName"
slot-scope=
"
{ text }
">
<a-tooltip
placement=
"topLeft"
>
<a-tooltip
placement=
"topLeft"
>
<template
slot=
"title"
>
<template
slot=
"title"
>
{{
text
}}
{{
text
}}
...
@@ -98,46 +87,46 @@
...
@@ -98,46 +87,46 @@
</a-tooltip>
</a-tooltip>
</template>
</template>
<!-- 事项来源 -->
<!-- 事项来源 -->
<
template
slot=
"source"
slot-scope=
"
text
"
>
<
template
slot=
"source"
slot-scope=
"
{ text }
"
>
<a-tag
v-if=
"text == 0"
color=
"green"
>
一体化添加
</a-tag>
<a-tag
v-if=
"text == 0"
color=
"green"
>
一体化添加
</a-tag>
<a-tag
v-else
color=
"blue"
>
手动添加
</a-tag>
<a-tag
v-else
color=
"blue"
>
手动添加
</a-tag>
</
template
>
</
template
>
<!-- 大厅入驻事项 -->
<!-- 大厅入驻事项 -->
<
template
slot=
"hallCheckIn"
slot-scope=
"
text
"
>
<
template
slot=
"hallCheckIn"
slot-scope=
"
{ record }
"
>
<y-switch
<y-switch
v-model=
"
text
.hallCheckIn"
v-model=
"
record
.hallCheckIn"
@
onChange=
"changeHallCheckIn(
text
)"
@
onChange=
"changeHallCheckIn(
record
)"
></y-switch>
></y-switch>
</
template
>
</
template
>
<!-- 帮办代办 -->
<!-- 帮办代办 -->
<
template
slot=
"agent"
slot-scope=
"
text
"
>
<
template
slot=
"agent"
slot-scope=
"
{ record }
"
>
<y-switch
<y-switch
v-model=
"
text
.agent"
v-model=
"
record
.agent"
@
onChange=
"changeAgent($event,
text
)"
@
onChange=
"changeAgent($event,
record
)"
></y-switch>
></y-switch>
</
template
>
</
template
>
<!-- 操作 -->
<!-- 操作 -->
<
template
slot=
"action"
slot-scope=
"
text
"
>
<
template
slot=
"action"
slot-scope=
"
{ record }
"
>
<a-space
size=
"middle"
>
<a-space
size=
"middle"
>
<div
<div
class=
"workguide_btn"
class=
"workguide_btn"
:style=
"
{ color:
text
.hot == 1 ? '#03d76f' : '#1890FF' }"
:style=
"
{ color:
record
.hot == 1 ? '#03d76f' : '#1890FF' }"
@click="handleSiteEdit(
text
, 'hot')"
@click="handleSiteEdit(
record
, 'hot')"
>
>
{{
text
.
hot
==
1
?
"
取消热门
"
:
"
设置热门
"
}}
{{
record
.
hot
==
1
?
"
取消热门
"
:
"
设置热门
"
}}
</div>
</div>
<div
<div
class=
"workguide_btn"
class=
"workguide_btn"
style=
"width: 60px"
style=
"width: 60px"
@
click=
"handleSiteEdit(
text
, 'display')"
@
click=
"handleSiteEdit(
record
, 'display')"
>
>
{{
text
.
display
==
1
?
"
取消展示
"
:
"
展示
"
}}
{{
record
.
display
==
1
?
"
取消展示
"
:
"
展示
"
}}
</div>
</div>
</a-space>
</a-space>
</
template
>
</
template
>
</
a
-table>
</
y
-table>
</div>
</div>
</div>
</div>
<!-- 帮办代办人员信息 -->
<!-- 帮办代办人员信息 -->
...
@@ -155,82 +144,92 @@ import {
...
@@ -155,82 +144,92 @@ import {
addSitematter
,
addSitematter
,
batchSaveSitematter
,
batchSaveSitematter
,
}
from
"
@/services/matter
"
;
}
from
"
@/services/matter
"
;
import
{
pageSizeOptions
}
from
"
@/config/pageConfig.js
"
;
import
{
getDeptList
}
from
"
@/services/dept
"
;
import
{
getDeptList
}
from
"
@/services/dept
"
;
import
YSwitch
from
"
@/components/yswitch/YSwitch.vue
"
;
import
YSwitch
from
"
@/components/yswitch/YSwitch.vue
"
;
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
import
SetAgent
from
"
../group/SetAgent.vue
"
;
import
SetAgent
from
"
../group/SetAgent.vue
"
;
const
columns
=
[
import
YTable
from
"
@/components/YTable.vue
"
;
{
const
sourceType
=
{
title
:
"
序号
"
,
0
:
"
一体化添加
"
,
width
:
"
50px
"
,
1
:
"
手动添加
"
,
scopedSlots
:
{
customRender
:
"
index
"
},
};
},
{
title
:
"
部门
"
,
width
:
"
20%
"
,
dataIndex
:
"
deptName
"
,
},
{
title
:
"
事项名称
"
,
// ellipsis: true,
align
:
"
left
"
,
dataIndex
:
"
matterName
"
,
scopedSlots
:
{
customRender
:
"
matterName
"
,
},
},
{
title
:
"
事项来源
"
,
dataIndex
:
"
source
"
,
scopedSlots
:
{
customRender
:
"
source
"
,
},
},
{
title
:
"
大厅入驻事项
"
,
scopedSlots
:
{
customRender
:
"
hallCheckIn
"
,
},
},
{
title
:
"
帮办代办
"
,
scopedSlots
:
{
customRender
:
"
agent
"
,
},
},
{
title
:
"
操作
"
,
width
:
"
200px
"
,
scopedSlots
:
{
customRender
:
"
action
"
,
},
},
];
export
default
{
export
default
{
components
:
{
components
:
{
YSwitch
,
YSwitch
,
SetAgent
,
SetAgent
,
YTable
,
},
},
data
()
{
data
()
{
return
{
return
{
columns
,
sourceType
,
siteId
:
local
.
getLocal
(
"
siteId
"
),
// 站点id
columns
:
[
{
title
:
"
序号
"
,
width
:
"
50px
"
,
customRender
:
(
text
,
record
,
index
)
=>
{
return
(
(
this
.
searchForm
.
page
-
1
)
*
this
.
searchForm
.
size
+
index
+
1
);
},
},
{
title
:
"
部门
"
,
width
:
"
20%
"
,
dataIndex
:
"
deptName
"
,
},
{
title
:
"
事项名称
"
,
// ellipsis: true,
align
:
"
left
"
,
dataIndex
:
"
matterName
"
,
scopedSlots
:
{
customRender
:
"
matterName
"
,
},
},
{
title
:
"
事项来源
"
,
dataIndex
:
"
source
"
,
scopedSlots
:
{
customRender
:
"
source
"
,
},
},
{
title
:
"
大厅入驻事项
"
,
scopedSlots
:
{
customRender
:
"
hallCheckIn
"
,
},
},
{
title
:
"
帮办代办
"
,
scopedSlots
:
{
customRender
:
"
agent
"
,
},
},
{
title
:
"
操作
"
,
width
:
"
200px
"
,
scopedSlots
:
{
customRender
:
"
action
"
,
},
},
],
loading
:
false
,
loading
:
false
,
addVisile
:
false
,
addVisile
:
false
,
source
:
undefined
,
// 左边来源
selectedRowKeys
:
[],
selectedRowKeys
:
[],
selectedRows
:
[],
selectedRows
:
[],
matterSiteData
:
[],
// 站点事项
matterSiteData
:
[],
// 站点事项
matterDataList
:
[],
//事项列表数据
matterDataList
:
[],
//事项列表数据
current
:
1
,
total
:
0
,
size
:
10
,
pageSizeOptions
,
siteId
:
local
.
getLocal
(
"
siteId
"
),
// 站点id
deptList
:
[],
// 站点部门
deptList
:
[],
// 站点部门
searchVal
:
""
,
// 站点事项搜索
total
:
0
,
dept
:
undefined
,
// 部门搜索
searchForm
:
{
page
:
1
,
size
:
10
,
matterName
:
""
,
// 站点事项名称搜索
deptCode
:
undefined
,
// 部门搜索
source
:
undefined
,
// 来源 0:一体化添加,1:自建
},
};
};
},
},
created
()
{
created
()
{
...
@@ -240,53 +239,36 @@ export default {
...
@@ -240,53 +239,36 @@ export default {
methods
:
{
methods
:
{
// 获取部门列表
// 获取部门列表
async
getDeptListData
(
obj
=
{})
{
async
getDeptListData
()
{
this
.
deptLoading
=
true
;
let
res
=
await
getDeptList
({
let
res
=
await
getDeptList
({
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
page
:
1
,
page
:
1
,
size
:
-
1
,
size
:
-
1
,
...
obj
,
});
});
this
.
deptLoading
=
false
;
let
{
code
,
data
}
=
res
.
data
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
deptList
=
data
.
data
;
this
.
deptList
=
data
.
data
;
}
}
},
},
// 获取站点事项
// 获取站点事项
async
getMatterSiteData
(
search
=
{}
)
{
async
getMatterSiteData
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
let
res
=
await
getSiteMatterList
({
let
res
=
await
getSiteMatterList
({
page
:
this
.
current
,
size
:
this
.
size
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
source
:
this
.
source
,
...
this
.
searchForm
,
matterName
:
`%
${
this
.
searchVal
}
%`
,
matterName
:
`%
${
this
.
searchForm
.
matterName
}
%`
,
deptCode
:
this
.
dept
,
...
search
,
});
});
let
{
pageInfo
,
data
}
=
res
.
data
.
data
;
if
(
res
.
data
.
code
==
1
)
{
this
.
total
=
pageInfo
.
totalResult
;
let
{
pageInfo
,
data
}
=
res
.
data
.
data
;
this
.
matterSiteData
=
data
;
this
.
total
=
pageInfo
.
totalResult
;
this
.
matterSiteData
=
data
;
}
this
.
loading
=
false
;
this
.
loading
=
false
;
},
},
// 搜索
// 搜索
onSearch
()
{
onSearch
()
{
this
.
current
=
1
;
this
.
searchForm
.
page
=
1
;
this
.
getMatterSiteData
();
},
// 左翻页
changePage
(
num
)
{
this
.
current
=
num
;
this
.
getMatterSiteData
();
},
// 左边改变每页显示数量
showSizeChange
(
current
,
size
)
{
this
.
current
=
current
;
this
.
size
=
size
;
this
.
getMatterSiteData
();
this
.
getMatterSiteData
();
},
},
...
@@ -307,12 +289,12 @@ export default {
...
@@ -307,12 +289,12 @@ export default {
display
=
1
;
display
=
1
;
}
}
}
}
let
obj
=
{
let
form
=
{
id
:
row
.
id
,
id
:
row
.
id
,
};
};
if
(
hot
!=
"
undefined
"
)
obj
.
hot
=
hot
;
if
(
hot
!=
"
undefined
"
)
form
.
hot
=
hot
;
if
(
display
!=
"
undefined
"
)
obj
.
display
=
display
;
if
(
display
!=
"
undefined
"
)
form
.
display
=
display
;
let
res
=
await
addSitematter
(
obj
);
let
res
=
await
addSitematter
(
form
);
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
this
.
$message
.
success
(
"
设置成功
"
);
this
.
$message
.
success
(
"
设置成功
"
);
this
.
getMatterSiteData
();
this
.
getMatterSiteData
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment