digitalHousing.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <scroll-view>
  3. <view class="overview content">
  4. <view class="part">
  5. <view class="card" v-for="(item,index) in cardList" :key="index" :style="{'background-color':item.color}">
  6. <view>
  7. <image :src="item.icon" mode="scaleToFill"></image>
  8. </view>
  9. <view>
  10. <view>{{item.text}}</view>
  11. <view style="margin-top: 20rpx;font-size: 50rpx;font-weight:600">{{item.value}} 件</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="other">
  16. <button type="primary" @click="link1">住建一张图</button>
  17. <button type="primary" @click="link2">数据分析平台</button>
  18. </view>
  19. </view>
  20. <scroll-view class="tableList content">
  21. <myTable :column="column" :tableData="tableData"></myTable>
  22. </scroll-view>
  23. </scroll-view>
  24. </template>
  25. <script setup>
  26. import {ref} from "vue"
  27. const cardList = ref([
  28. {
  29. icon: "../../static/digitalIcon/u1.svg",
  30. text: "党建工作",
  31. color: "#cfe8f5",
  32. value: 0
  33. },
  34. {
  35. icon: "../../static/digitalIcon/u2.svg",
  36. text: "公文办理",
  37. color: "#cfe8f5",
  38. value: 5
  39. },
  40. {
  41. icon: "../../static/digitalIcon/u3.svg",
  42. text: "业务办理",
  43. color: "#cfe8f5",
  44. value: 0
  45. },
  46. {
  47. icon: "../../static/digitalIcon/u4.svg",
  48. text: "数字住建",
  49. color: "#ffeccf",
  50. value: 0
  51. },
  52. {
  53. icon: "../../static/digitalIcon/u5.svg",
  54. text: "政务管理",
  55. color: "#eae9f7",
  56. value: 1
  57. },
  58. {
  59. icon: "../../static/digitalIcon/u6.svg",
  60. text: "监察督办",
  61. color: "#eae9f7",
  62. value: 0
  63. }
  64. ])
  65. const column = ref(["紧急程度", "公文种类", "标题", "操作"])
  66. const tableData = ref([
  67. {
  68. "date": "紧急",
  69. "name": "Dcloud1",
  70. "address": "上海市普陀区金沙江路 1518 弄"
  71. }, {
  72. "date": "紧急",
  73. "name": "Dcloud2",
  74. "address": "上海市普陀区金沙江路 1517 弄"
  75. }, {
  76. "date": "紧急",
  77. "name": "Dcloud3",
  78. "address": "上海市普陀区金沙江路 1519 弄"
  79. }, {
  80. "date": "紧急",
  81. "name": "Dcloud4",
  82. "address": "上海市普陀区金沙江路 1516 弄"
  83. }
  84. ])
  85. const subList = ref([
  86. {
  87. name: '待发货',
  88. num: 10
  89. },
  90. {
  91. name: '待付款'
  92. }
  93. ])
  94. function link1() {
  95. console.log(123)
  96. }
  97. function link2() {
  98. console.log(4562)
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. body{
  103. background-color: #0063d0;
  104. }
  105. .content{
  106. margin: 50rpx;
  107. background-color: #fff;
  108. border-radius: 20rpx;
  109. width: calc(100vw - 100rpx);
  110. }
  111. .overview{
  112. height: 600rpx;
  113. padding: 30rpx;
  114. .part{
  115. display: flex;
  116. flex-direction: row;
  117. justify-content: center;
  118. .card{
  119. width: calc((100vw - 100rpx)/6.5);
  120. margin: 10rpx;
  121. height: 300rpx;
  122. border-radius: 10rpx;
  123. display: flex;
  124. flex-direction: row;
  125. justify-content: center;
  126. align-items: center;
  127. >view:nth-child(1){
  128. width: 150rpx;
  129. height: 150rpx;
  130. border-radius: 20rpx;
  131. background-color: #91d2f6;
  132. margin-right: 40rpx;
  133. display: flex;
  134. justify-content: center;
  135. align-items: center;
  136. image{
  137. width: 75rpx;
  138. height: 75rpx;
  139. }
  140. }
  141. }
  142. }
  143. .other{
  144. display: flex;
  145. flex-direction: row;
  146. justify-content: space-around;
  147. margin-top: 50rpx;
  148. button{
  149. width: 45vw;
  150. height: 120rpx;
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. }
  155. }
  156. }
  157. .tableList{
  158. padding: 50rpx 0;
  159. height: calc(100vh - 950rpx);
  160. margin-top: 0;
  161. }
  162. </style>