首页-通知公告
Showing
2 changed files
with
38 additions
and
5 deletions
... | @@ -29,4 +29,15 @@ export function queryByBusinessId(businessId) { | ... | @@ -29,4 +29,15 @@ export function queryByBusinessId(businessId) { |
29 | url: '/system/basiccommon/query/'+businessId, | 29 | url: '/system/basiccommon/query/'+businessId, |
30 | method: 'get', | 30 | method: 'get', |
31 | }) | 31 | }) |
32 | } | ||
33 | |||
34 | /** | ||
35 | * 通知公告 | ||
36 | */ | ||
37 | export function getTzggList(data,params) { | ||
38 | return request({ | ||
39 | url: `/system/tzgg/getTzggPageList?pageNo=${params.pageNo}&pageSize=${params.pageSize}`, | ||
40 | method: 'post', | ||
41 | data : data, | ||
42 | }) | ||
32 | } | 43 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -55,10 +55,13 @@ | ... | @@ -55,10 +55,13 @@ |
55 | <el-table-column prop="title" width="500" align="left" class="tr-title" label="标题"> | 55 | <el-table-column prop="title" width="500" align="left" class="tr-title" label="标题"> |
56 | </el-table-column> | 56 | </el-table-column> |
57 | <el-table-column | 57 | <el-table-column |
58 | prop="date" | 58 | prop="createDate" |
59 | align="center" | 59 | align="right" |
60 | label="发布时间" | 60 | label="发布时间" |
61 | > | 61 | > |
62 | <template slot-scope="scope"> | ||
63 | {{changeDate(scope.row.createDate)}} | ||
64 | </template> | ||
62 | </el-table-column> | 65 | </el-table-column> |
63 | </el-table> | 66 | </el-table> |
64 | </el-card> | 67 | </el-card> |
... | @@ -115,7 +118,7 @@ | ... | @@ -115,7 +118,7 @@ |
115 | 118 | ||
116 | <script> | 119 | <script> |
117 | import { Chart, registerShape } from '@antv/g2'; | 120 | import { Chart, registerShape } from '@antv/g2'; |
118 | import {getDbxList,getYbxList} from "@api/dbx"; | 121 | import {getDbxList,getYbxList,getTzggList} from "@api/dbx"; |
119 | export default { | 122 | export default { |
120 | components:{}, | 123 | components:{}, |
121 | data() { | 124 | data() { |
... | @@ -186,9 +189,10 @@ export default { | ... | @@ -186,9 +189,10 @@ export default { |
186 | this.initG2qllx(); | 189 | this.initG2qllx(); |
187 | this.initG2tdfwtj(); | 190 | this.initG2tdfwtj(); |
188 | this.initG2xntjid(); | 191 | this.initG2xntjid(); |
192 | this.getTzggList(); | ||
189 | }, | 193 | }, |
190 | methods: { | 194 | methods: { |
191 | download(row,column,event){ | 195 | download(row,column,event){ |
192 | window.open(row.url) | 196 | window.open(row.url) |
193 | }, | 197 | }, |
194 | handleSelect(item) { | 198 | handleSelect(item) { |
... | @@ -238,7 +242,7 @@ export default { | ... | @@ -238,7 +242,7 @@ export default { |
238 | let data = { | 242 | let data = { |
239 | pageSize:15, | 243 | pageSize:15, |
240 | pageNo:1 | 244 | pageNo:1 |
241 | } | 245 | }; |
242 | getDbxList(data).then((res)=>{ | 246 | getDbxList(data).then((res)=>{ |
243 | if(res.code === 200){ | 247 | if(res.code === 200){ |
244 | this.workList.forEach((item,index)=>{ | 248 | this.workList.forEach((item,index)=>{ |
... | @@ -266,6 +270,24 @@ export default { | ... | @@ -266,6 +270,24 @@ export default { |
266 | }) | 270 | }) |
267 | }) | 271 | }) |
268 | }, | 272 | }, |
273 | getTzggList(){ //通知公告 | ||
274 | let data={ | ||
275 | status: "4", | ||
276 | }; | ||
277 | let params={ | ||
278 | pageNo:1, | ||
279 | pageSize:4 | ||
280 | }; | ||
281 | getTzggList(data,params).then(res=>{ | ||
282 | if(res.code=200){ | ||
283 | console.log(res.result,'通知公告') | ||
284 | this.tableData=res.result.list; | ||
285 | } | ||
286 | }) | ||
287 | }, | ||
288 | changeDate(date){ | ||
289 | return date.substring(0,11) | ||
290 | }, | ||
269 | initG2qllx(){ | 291 | initG2qllx(){ |
270 | const data = [ | 292 | const data = [ |
271 | { item: '国有建设用地使用权', count: 40, percent: 0.4 }, | 293 | { item: '国有建设用地使用权', count: 40, percent: 0.4 }, | ... | ... |
-
Please register or sign in to post a comment