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
6b202c33
Commit
6b202c33
authored
Apr 21, 2023
by
ww-xxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化网络理政报表
parent
2ad54f65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
155 additions
and
127 deletions
+155
-127
portal-manager-ui/admin/src/views/dataAdmin/components/Impossible/index.vue
...admin/src/views/dataAdmin/components/Impossible/index.vue
+65
-65
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/networkForm.vue
...ws/dataAdmin/components/networkGovernance/networkForm.vue
+90
-62
No files found.
portal-manager-ui/admin/src/views/dataAdmin/components/Impossible/index.vue
View file @
6b202c33
...
@@ -227,9 +227,9 @@
...
@@ -227,9 +227,9 @@
},
},
{
{
title
:
"
所属部门
"
,
title
:
"
所属部门
"
,
dataIndex
:
"
dept_name
"
,
dataIndex
:
"
reply_dept
"
,
align
:
'
center
'
,
align
:
'
center
'
,
customRender
:
(
text
,
record
,
index
)
=>
`
${
record
.
dept_name
||
'
--
'
}
`
customRender
:
(
text
,
record
,
index
)
=>
`
${
record
.
reply_dept
||
'
--
'
}
`
},
},
{
{
title
:
"
操作
"
,
title
:
"
操作
"
,
...
@@ -336,7 +336,7 @@
...
@@ -336,7 +336,7 @@
this
.
tHeader
,
this
.
tHeader
,
this
.
filterVal
,
this
.
filterVal
,
data
,
data
,
"
填单记录
报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
"
办不成事
报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
);
this
.
btnLoading
=
false
;
this
.
btnLoading
=
false
;
},
},
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/networkForm.vue
View file @
6b202c33
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"callRecord-Container"
>
<div
class=
"callRecord-Container"
>
<div
class=
"header_box"
>
<div
class=
"header_box"
>
<div>
<div>
<a-button
type=
"success"
@
click=
"
toexportTable
"
>
<a-button
type=
"success"
@
click=
"
handleExportTable"
:loading=
"btnLoading
"
>
<span>
{{
tableSelectedRows
.
length
?
"
导出
"
:
"
导出全部
"
}}
</span>
<span>
{{
tableSelectedRows
.
length
?
"
导出
"
:
"
导出全部
"
}}
</span>
</a-button>
</a-button>
<b>
建议次数:
<i>
{{
JYCount
}}
次
</i></b>
<b>
建议次数:
<i>
{{
JYCount
}}
次
</i></b>
...
@@ -57,8 +57,38 @@
...
@@ -57,8 +57,38 @@
<
script
>
<
script
>
import
table
from
"
@/mixins/table
"
;
import
table
from
"
@/mixins/table
"
;
import
FormDetails
from
"
./components/FormDetails.vue
"
;
import
FormDetails
from
"
./components/FormDetails.vue
"
;
import
{
getWLLZList
,
getWLLZCount
,
getWLLZInfo
}
from
"
@/api/dataAdmin
"
import
{
getWLLZList
,
getWLLZCount
,
getWLLZInfo
}
from
"
@/api/dataAdmin
"
import
{
export2Excel
}
from
"
@/utils/js/exportExcel
"
;
const
tHeader
=
[
// 导出的表头名信息
"
建议标题
"
,
"
建议类型
"
,
"
真实姓名
"
,
"
联系电话
"
,
"
是否公开
"
,
"
是否保密
"
,
"
提交日期
"
,
"
是否回复
"
,
"
回复人
"
,
"
回复时间
"
,
"
所属部门
"
,
]
const
filterVal
=
[
// 导出的表头字段名,需要导出表格字段名
"
title
"
,
"
type
"
,
"
upname
"
,
"
upphone
"
,
"
valid
"
,
"
secrecy
"
,
"
create_time
"
,
"
status
"
,
"
reply_name
"
,
"
update_time
"
,
"
deptName
"
,
]
export
default
{
export
default
{
mixins
:
[
table
],
mixins
:
[
table
],
name
:
"
networkForm
"
,
name
:
"
networkForm
"
,
...
@@ -159,6 +189,7 @@ export default {
...
@@ -159,6 +189,7 @@ export default {
timeList
:[],
// 时间
timeList
:[],
// 时间
JYCount
:
0
,
//建议次数
JYCount
:
0
,
//建议次数
HFCount
:
0
,
//回复次数
HFCount
:
0
,
//回复次数
btnLoading
:
false
,
};
};
},
},
components
:
{
components
:
{
...
@@ -186,66 +217,64 @@ export default {
...
@@ -186,66 +217,64 @@ export default {
this
.
isReply
=
false
this
.
isReply
=
false
this
.
togetWLLZCount
()
this
.
togetWLLZCount
()
},
},
// 重写导出
// 导出
toexportTable
()
{
async
handleExportTable
()
{
let
tableData
=
[];
this
.
btnLoading
=
true
;
if
(
this
.
tableSelectedRows
.
length
==
0
)
{
let
obj
=
{
getWLLZList
({
1
:
"
部门建议
"
,
page
:
1
,
2
:
"
办事建议
"
,
size
:
-
1
,
3
:
"
网站建议
"
,
4
:
"
我要就错
"
,
5
:
"
我要投诉
"
,
6
:
"
我要咨询
"
,
};
let
data
=
[];
if
(
this
.
tableSelectedKeys
.
length
&&
this
.
tableSelectedRows
.
length
)
{
// 深度克隆避免影响页面表格展示
data
=
this
.
$_
.
cloneDeep
(
this
.
tableSelectedRows
);
data
.
forEach
((
item
)
=>
{
Object
.
keys
(
obj
).
forEach
((
keys
)
=>
{
if
(
item
.
type
==
keys
)
{
item
.
type
=
obj
[
keys
];
}
});
item
.
valid
==
1
?
item
.
valid
=
"
是
"
:
item
.
valid
=
'
否
'
item
.
secrecy
==
1
?
item
.
secrecy
=
"
是
"
:
item
.
secrecy
=
'
否
'
item
.
status
==
1
?
item
.
status
=
"
是
"
:
item
.
status
=
'
否
'
});
}
else
{
let
datas
=
this
.
$_
.
cloneDeep
(
await
getWLLZList
({
page
:
1
,
size
:
-
1
,
status
:
this
.
isReply
?
0
:
""
,
status
:
this
.
isReply
?
0
:
""
,
type
:
this
.
nowType
,
type
:
this
.
nowType
,
device
:
this
.
nowDevice
,
device
:
this
.
nowDevice
,
keyword
:
this
.
searchName
,
keyword
:
this
.
searchName
,
time
:
this
.
timeList
,
time
:
this
.
timeList
,
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
if
(
code
==
1
){
// 改变输出内容
data
.
data
.
forEach
(
item
=>
{
item
.
type
=
item
.
type
==
1
?
'
部门建议
'
:
item
.
type
==
2
?
'
办事建议
'
:
item
.
type
==
3
?
'
网站建议
'
:
item
.
type
==
4
?
'
我要就错
'
:
item
.
type
==
5
?
'
我要投诉
'
:
'
我要咨询
'
;
item
.
valid
=
item
.
valid
==
1
?
'
是
'
:
'
否
'
;
item
.
secrecy
=
item
.
secrecy
==
1
?
'
是
'
:
'
否
'
;
item
.
status
=
item
.
status
==
1
?
'
是
'
:
'
否
'
;
});
tableData
=
JSON
.
parse
(
JSON
.
stringify
(
data
.
data
));
let
tableColumns
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableHeaders
));
let
newTableData
=
tableData
.
map
(
item
=>
{
let
obj
=
{};
for
(
let
key
in
item
)
{
obj
[
key
]
=
item
[
key
];
}
return
obj
;
})
})
let
exprotExcelName
=
`
${
this
.
nowDay
}
/
${
this
.
nowTime
}
/
${
this
.
$route
[
'
meta
'
][
'
title
'
]
||
'
报表信息统计
'
}
`
;
);
this
.
exportExcel
(
tableColumns
,
newTableData
,
exprotExcelName
);
data
=
datas
.
data
.
data
if
(
!
data
.
length
)
return
;
for
(
let
item
of
data
)
{
Object
.
keys
(
obj
).
forEach
((
key
)
=>
{
if
(
item
.
type
==
key
)
{
item
.
type
=
obj
[
key
];
}
}
})
}
else
{
tableData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSelectedRows
));
tableData
.
forEach
(
item
=>
{
item
.
type
=
item
.
type
==
1
?
'
部门建议
'
:
item
.
type
==
2
?
'
办事建议
'
:
item
.
type
==
3
?
'
网站建议
'
:
item
.
type
==
4
?
'
我要就错
'
:
item
.
type
==
5
?
'
我要投诉
'
:
'
我要咨询
'
;
item
.
valid
=
item
.
valid
==
1
?
'
是
'
:
'
否
'
;
item
.
secrecy
=
item
.
secrecy
==
1
?
'
是
'
:
'
否
'
;
item
.
status
=
item
.
status
==
1
?
'
是
'
:
'
否
'
;
});
});
item
.
valid
==
1
?
item
.
valid
=
"
是
"
:
item
.
valid
=
'
否
'
let
tableColumns
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableHeaders
));
item
.
secrecy
==
1
?
item
.
secrecy
=
"
是
"
:
item
.
secrecy
=
'
否
'
let
newTableData
=
tableData
.
map
(
item
=>
{
item
.
status
==
1
?
item
.
status
=
"
是
"
:
item
.
status
=
'
否
'
let
obj
=
{};
for
(
let
key
in
item
)
{
obj
[
key
]
=
item
[
key
];
}
}
return
obj
;
})
let
exprotExcelName
=
`
${
this
.
nowDay
}
/
${
this
.
nowTime
}
/
${
this
.
$route
[
'
meta
'
][
'
title
'
]
||
'
报表信息统计
'
}
`
;
this
.
exportExcel
(
tableColumns
,
newTableData
,
exprotExcelName
);
}
}
export2Excel
(
tHeader
,
filterVal
,
data
,
"
网络理政报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
this
.
btnLoading
=
false
;
},
},
changeReply
(
e
){
changeReply
(
e
){
this
.
isReply
=
e
.
target
.
checked
this
.
isReply
=
e
.
target
.
checked
},
},
...
@@ -294,7 +323,6 @@ export default {
...
@@ -294,7 +323,6 @@ export default {
time
:
this
.
timeList
,
time
:
this
.
timeList
,
}
}
getWLLZList
(
params
).
then
((
res
)
=>
{
getWLLZList
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
const
{
code
,
data
}
=
res
;
const
{
code
,
data
}
=
res
;
if
(
code
==
1
){
if
(
code
==
1
){
this
.
tableSourceData
=
data
.
data
this
.
tableSourceData
=
data
.
data
...
...
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