移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

81 line
2.6 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. title="制度建设"
  5. left-arrow
  6. @click-left="$router.back(-1)"
  7. />
  8. <van-list>
  9. <van-cell v-for="item in list" :key="item.id" is-link :to="{path:'villageAffairsDetail',query:{id:item.id,type:'4'}}" style="margin:2%;width:96%;border-radius: 6px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);">
  10. <template #title>
  11. <p style="display:inline-block;background: #EC4B2C;height:20px;width: 20px;border-radius: 2px;margin-right: 10px;float: left"></p><p style="font-weight: bold;font-size: 18px;">{{item.title}}</p>
  12. </template>
  13. <template #label>
  14. <van-row>
  15. <van-col span="12"><p style="font-size: 12px">发布人/单位:{{item.issuedBy}}</p></van-col>
  16. <van-col span="12"><p style="font-size: 12px;text-align: right">发布时间:{{item.issuedDate}}</p></van-col>
  17. </van-row>
  18. </template>
  19. </van-cell>
  20. </van-list>
  21. <van-cell v-if="list.length==0" is-link url="" style="margin:2%;width:96%;border-radius: 6px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);">
  22. <template #title>
  23. <p style="display:inline-block;background: #dddddd;height:20px;width: 20px;border-radius: 2px;margin-right: 10px;float: left"></p><p style="font-weight: bold;font-size: 18px;">暂无数据</p>
  24. </template>
  25. <template #label>
  26. <van-row>
  27. <van-col span="12"><p style="font-size: 12px"></p></van-col>
  28. <van-col span="12"><p style="font-size: 12px;text-align: right"></p></van-col>
  29. </van-row>
  30. </template>
  31. </van-cell>
  32. </div>
  33. </template>
  34. <script>
  35. import onlineHomeIndex from "../onlineHomeIndex";
  36. import {listVillageAffairs} from "../../api/onlineHome/villageAffairs";
  37. export default {
  38. components: {
  39. onlineHomeIndex
  40. },
  41. name: "zdjs",
  42. data() {
  43. return {
  44. list: [],
  45. loading: false,
  46. finished: false,
  47. // 查询参数
  48. queryParams: {
  49. pageNum: 1,
  50. pageSize: 10,
  51. title: null,
  52. villageAffairsType: null,
  53. deptId: null,
  54. isWechat: null,
  55. status: null,
  56. },
  57. };
  58. },
  59. created() {
  60. this.getList(4);
  61. },
  62. methods: {
  63. getList(name,title) {
  64. this.loading = true;
  65. this.queryParams.openType = name
  66. listVillageAffairs(this.queryParams).then(response => {
  67. this.list = response.rows;
  68. this.total = response.total;
  69. this.loading = false;
  70. });
  71. },
  72. },
  73. }
  74. </script>
  75. <style scoped>
  76. </style>