Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
19398ba5
authored
2021-02-05 15:41:31 +0800
by
宋力
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页-通知公告
1 parent
52fc008e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
src/api/dbx.js
src/views/panel/index.vue
src/api/dbx.js
View file @
19398ba
...
...
@@ -30,3 +30,14 @@ export function queryByBusinessId(businessId) {
method
:
'get'
,
})
}
/**
* 通知公告
*/
export
function
getTzggList
(
data
,
params
)
{
return
request
({
url
:
`/system/tzgg/getTzggPageList?pageNo=
${
params
.
pageNo
}
&pageSize=
${
params
.
pageSize
}
`
,
method
:
'post'
,
data
:
data
,
})
}
\ No newline at end of file
...
...
src/views/panel/index.vue
View file @
19398ba
...
...
@@ -55,10 +55,13 @@
<el-table-column
prop=
"title"
width=
"500"
align=
"left"
class=
"tr-title"
label=
"标题"
>
</el-table-column>
<el-table-column
prop=
"
d
ate"
align=
"
center
"
prop=
"
createD
ate"
align=
"
right
"
label=
"发布时间"
>
<template
slot-scope=
"scope"
>
{{
changeDate
(
scope
.
row
.
createDate
)
}}
</
template
>
</el-table-column>
</el-table>
</el-card>
...
...
@@ -115,7 +118,7 @@
<
script
>
import
{
Chart
,
registerShape
}
from
'@antv/g2'
;
import
{
getDbxList
,
getYbxList
}
from
"@api/dbx"
;
import
{
getDbxList
,
getYbxList
,
getTzggList
}
from
"@api/dbx"
;
export
default
{
components
:{},
data
()
{
...
...
@@ -186,6 +189,7 @@ export default {
this
.
initG2qllx
();
this
.
initG2tdfwtj
();
this
.
initG2xntjid
();
this
.
getTzggList
();
},
methods
:
{
download
(
row
,
column
,
event
){
...
...
@@ -238,7 +242,7 @@ export default {
let
data
=
{
pageSize
:
15
,
pageNo
:
1
}
}
;
getDbxList
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
workList
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -266,6 +270,24 @@ export default {
})
})
},
getTzggList
(){
//通知公告
let
data
=
{
status
:
"4"
,
};
let
params
=
{
pageNo
:
1
,
pageSize
:
4
};
getTzggList
(
data
,
params
).
then
(
res
=>
{
if
(
res
.
code
=
200
){
console
.
log
(
res
.
result
,
'通知公告'
)
this
.
tableData
=
res
.
result
.
list
;
}
})
},
changeDate
(
date
){
return
date
.
substring
(
0
,
11
)
},
initG2qllx
(){
const
data
=
[
{
item
:
'国有建设用地使用权'
,
count
:
40
,
percent
:
0.4
},
...
...
Please
register
or
sign in
to post a comment