index.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <template>
  2. <view class="content">
  3. <!-- 项目总览 -->
  4. <view class="projectAll">
  5. <view class="all-text">项目总览</view>
  6. <view class="all-more">查看更多</view>
  7. <view class="all-select">
  8. <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
  9. <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
  10. <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
  11. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
  12. <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
  13. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
  14. </view>
  15. <view class="all-num">
  16. <view class="shuzi" v-for="(item,index) in allList">
  17. <view class="shu-num">{{item.num}}</view>
  18. <view>{{item.txt}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 项目列表 -->
  23. <view class="projectlist">
  24. <view class="all-text">项目列表</view>
  25. <view class="all-cui">催办</view>
  26. <view class="all-more" style="margin: -59rpx 0 0 581rpx;">查看更多</view>
  27. <view class="all-select">
  28. <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
  29. <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
  30. <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
  31. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
  32. <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
  33. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
  34. </view>
  35. <!-- 列表 -->
  36. <view class="projectL" v-for="(item,index) in list" :key="index">
  37. <view class="projectName">{{item.name}}</view>
  38. <view class="all-cui" style="margin: -44rpx 0 0 581rpx;">催办</view>
  39. <view style="margin: 10rpx 0 0 19rpx;">结束时间:{{item.time}}</view>
  40. <view style="margin: 20rpx 0 0 19rpx;">参与成员:{{item.people}}</view>
  41. <progress v-if="item.batteryName!='/'" :percent="item.batteryName" activeColor="rgba(0, 97, 255, 1)" border-radius="50" stroke-width="12" show-info font-size='12' active='true' />
  42. <view class="projectLine" v-if="list.length>1&&(index<=list.length-1)"></view>
  43. </view>
  44. </view>
  45. <!-- 未完成清单 -->
  46. <view class="projectlist" style="height: 100%;">
  47. <view class="all-text">未完成清单</view>
  48. <view class="wei-title1 title1" v-if="qingdan==0">
  49. <view>问题清单</view>
  50. <view class="wei-line1"></view>
  51. </view>
  52. <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="qingdan=0">
  53. 问题清单
  54. <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
  55. </view>
  56. <view class="wei-title1 title2" v-if="qingdan==1">
  57. <view>预警清单</view>
  58. <view class="wei-line1"></view>
  59. </view>
  60. <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="qingdan=1">
  61. 预警清单
  62. <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
  63. </view>
  64. <view class="all-cui" style="margin: -35px 0 0 581rpx;">催办</view>
  65. <view class="all-select">
  66. <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
  67. <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
  68. <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
  69. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
  70. <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
  71. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
  72. </view>
  73. <!-- 未完成清单表格 -->
  74. <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;">
  75. <uni-table ref="table" :loading="loading" emptyText="暂无更多数据"
  76. style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
  77. <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
  78. <uni-th align="center">姓名</uni-th>
  79. <uni-th align="center">项目名称</uni-th>
  80. <uni-th align="center">项目任务</uni-th>
  81. <uni-th align="center">情况状态</uni-th>
  82. </uni-tr>
  83. <uni-tr v-for="(item, index) in tableData" :key="index" style="color: rgba(0, 0, 0, 1);">
  84. <uni-td align="center">{{ item.name }}</uni-td>
  85. <uni-td align="center">
  86. <view class="name">{{ item.proname }}</view>
  87. </uni-td>
  88. <uni-td align="center">{{ item.proren }}</uni-td>
  89. <uni-td align="center">{{ item.prozhuang }}</uni-td>
  90. </uni-tr>
  91. </uni-table>
  92. </view>
  93. </view>
  94. <!-- 部门排行榜 -->
  95. <view class="projectlist" style="height: 100%;">
  96. <view class="all-text">部门排行榜</view>
  97. <view class="wei-title1 title1" v-if="qingdan==0">
  98. <view>评分</view>
  99. <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
  100. </view>
  101. <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="qingdan=0">
  102. 评分
  103. <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
  104. </view>
  105. <view class="wei-title1 title2" v-if="qingdan==1">
  106. <view>完成率</view>
  107. <view class="wei-line1" style="margin: 10rpx 0 0 4rpx;"></view>
  108. </view>
  109. <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="qingdan=1">
  110. 完成率
  111. <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
  112. </view>
  113. <view class="all-select">
  114. <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
  115. <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
  116. <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
  117. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
  118. <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
  119. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
  120. </view>
  121. <!-- 部门排行榜表格 -->
  122. <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;">
  123. <uni-table ref="table" :loading="loading" emptyText="暂无更多数据"
  124. style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
  125. <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
  126. <uni-th align="center">排行</uni-th>
  127. <uni-th align="center">部门名称</uni-th>
  128. <uni-th align="center">评分</uni-th>
  129. </uni-tr>
  130. <uni-tr v-for="(item, index) in tableData" :key="index" style="color: rgba(0, 0, 0, 1);">
  131. <uni-td align="center">{{ item.name }}</uni-td>
  132. <uni-td align="center">
  133. <view class="name">{{ item.proname }}</view>
  134. </uni-td>
  135. <uni-td align="center">{{ item.proren }}</uni-td>
  136. </uni-tr>
  137. </uni-table>
  138. </view>
  139. </view>
  140. <!-- 消息预警推送汇总 -->
  141. <view class="projectlist" style="height: 100%;">
  142. <view class="all-text">消息预警推送汇总</view>
  143. <view class="wei-title1 title1" v-if="qingdan==0">
  144. <view>汇总</view>
  145. <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
  146. </view>
  147. <view class="title1" style="rgba(0, 0, 0, 1)" v-else @click="qingdan=0">
  148. 汇总
  149. <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
  150. </view>
  151. <view class="wei-title1 title2" v-if="qingdan==1">
  152. <view>明细</view>
  153. <view class="wei-line1" style="margin: 10rpx 0 0 -8rpx;"></view>
  154. </view>
  155. <view class="title2" style="rgba(0, 0, 0, 1)" v-else @click="qingdan=1">
  156. 明细
  157. <view class="wei-line1" style="background: rgba(255, 255, 255, 1);"></view>
  158. </view>
  159. <view class="all-select">
  160. <view class="all-list" style="margin-left: 15rpx;" v-if="change==0">今日</view>
  161. <view class="all-list2" style="margin-left: 15rpx;" v-else @click="changeTime(0)">今日</view>
  162. <view class="all-list" style="margin-left: 25rpx;" v-if="change==1">本周</view>
  163. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(1)">本周</view>
  164. <view class="all-list" style="margin-left: 25rpx;" v-if="change==2">本月</view>
  165. <view class="all-list2" style="margin-left: 25rpx;" v-else @click="changeTime(2)">本月</view>
  166. </view>
  167. <!-- 汇总表格 -->
  168. <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;" v-if="qingdan==0">
  169. <view class="hui-kuang" v-for="(item,index) in xiaoban" :key="index">
  170. <view class="hui-left">{{item.dan}}</view>
  171. <view>
  172. <view class="hui-center">提醒次数</view>
  173. <view class="hui-center">{{item.num1}}次</view>
  174. </view>
  175. <view>
  176. <view class="hui-center">预警次数</view>
  177. <view class="hui-center">{{item.num2}}次</view>
  178. </view>
  179. </view>
  180. </view>
  181. <!-- 消息预警推送汇总明细表格 -->
  182. <view style="margin: 24rpx 0 0 20rpx;width: 710rpx;" v-if="qingdan==1">
  183. <uni-table ref="table" :loading="loading" emptyText="暂无更多数据"
  184. style="width:710rpx;table-layout: fixed; word-wrap: break-word;">
  185. <uni-tr style="background-color: rgba(245, 246, 250, 1);color: rgba(90, 96, 127, 1);font-size: 24rpx;">
  186. <uni-th align="center">项目</uni-th>
  187. <uni-th align="center">任务</uni-th>
  188. <uni-th align="center">类型</uni-th>
  189. <uni-th align="center">发生时间</uni-th>
  190. <uni-th align="center">部门</uni-th>
  191. <uni-th align="center">姓名</uni-th>
  192. </uni-tr>
  193. <uni-tr v-for="(item, index) in tableData" :key="index" style="color: rgba(0, 0, 0, 1);">
  194. <uni-td align="center">{{ item.name }}</uni-td>
  195. <uni-td align="center">
  196. <view class="name">{{ item.proname }}</view>
  197. </uni-td>
  198. <uni-td align="center">{{ item.proren }}</uni-td>
  199. <uni-td align="center">2024-01-11 12:11:11</uni-td>
  200. <uni-td align="center">
  201. <view class="name">{{ item.proname }}</view>
  202. </uni-td>
  203. <uni-td align="center">{{ item.proren }}</uni-td>
  204. </uni-tr>
  205. </uni-table>
  206. </view>
  207. <view style="width: 100%;height:120rpx;"></view>
  208. </view>
  209. </view>
  210. </template>
  211. <script>
  212. export default {
  213. data() {
  214. return {
  215. allList:[
  216. {num:5,txt:'超时在办'},
  217. {num:5,txt:'正常在办'},
  218. {num:5,txt:'预警在办'},
  219. {num:5,txt:'超时办结'},
  220. {num:5,txt:'正常办结'},
  221. ],
  222. change:0,
  223. list:[
  224. {name:'a项目',time:'2024-06-25 15:00',people:'参与成员:张三 | 李四',batteryName:70,},
  225. {name:'a项目',time:'2024-06-25 15:00',people:'参与成员:张三 | 李四',batteryName:60,},
  226. ],
  227. qingdan:0,
  228. // 未完成清单
  229. tableData:[
  230. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  231. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  232. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  233. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  234. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  235. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  236. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  237. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  238. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  239. {name:'张三',proname:'xx项目',proren:'xx任务',prozhuang:'紧急'},
  240. ],
  241. // 校办
  242. xiaoban:[
  243. {dan:'校办',num1:'3',num2:'5'},
  244. {dan:'校办',num1:'3',num2:'5'},
  245. {dan:'校办',num1:'3',num2:'5'},
  246. {dan:'校办',num1:'3',num2:'5'},
  247. ],
  248. }
  249. },
  250. onLoad() {
  251. },
  252. methods: {
  253. //修改时间框
  254. changeTime(a){
  255. this.change=a
  256. if(a==1){
  257. }
  258. },
  259. }
  260. }
  261. </script>
  262. <style>
  263. .content {
  264. display: flex;
  265. flex-direction: column;
  266. align-items: center;
  267. justify-content: center;
  268. }
  269. /* 项目总览 */
  270. .projectAll{
  271. margin-top: 26rpx;
  272. width: 100%;
  273. height: 350rpx;
  274. background: #FFFFFF;
  275. }
  276. .all-text{
  277. margin: 27rpx 0 0 19rpx;
  278. font-size: 32rpx;
  279. font-weight: 500;
  280. color: rgba(0, 0, 0, 1);
  281. }
  282. .all-more{
  283. margin: -47rpx 0 0 581rpx;
  284. width: 149rpx;
  285. height: 59rpx;
  286. border-radius: 92rpx;
  287. background: #0061FF;
  288. font-size: 28rpx;
  289. color: rgba(255, 255, 255, 1);
  290. line-height: 59rpx;
  291. text-align: center;
  292. }
  293. .all-select{
  294. display: flex;
  295. margin: 31rpx 0 0 19rpx;
  296. width: 712rpx;
  297. height: 90rpx;
  298. border-radius: 7rpx;
  299. background: rgba(242, 247, 255, 1);
  300. align-items: center;
  301. }
  302. .all-list{
  303. width: 211rpx;
  304. height: 71rpx;
  305. border-radius: 7rpx;
  306. background: rgba(0, 97, 255, 0.1);
  307. border: 1rpx solid rgba(0, 97, 255, 1);
  308. font-size: 28rpx;
  309. line-height: 71rpx;
  310. color: rgba(0, 97, 255, 1);
  311. text-align: center;
  312. }
  313. .all-list2{
  314. width: 211rpx;
  315. height: 71rpx;
  316. border-radius: 7rpx;
  317. font-size: 28rpx;
  318. line-height: 71rpx;
  319. color: rgba(56, 56, 56, 1);
  320. text-align: center;
  321. }
  322. .all-num{
  323. display: flex;
  324. margin: 31rpx 0 0 19rpx;
  325. width: 712rpx;
  326. }
  327. .shuzi{
  328. width: 20%;
  329. text-align: center;
  330. font-size: 24rpx;
  331. font-weight: 400;
  332. color: rgba(128, 128, 128, 1);
  333. }
  334. .shu-num{
  335. font-size: 40rpx;
  336. color: rgba(0, 0, 0, 1);
  337. font-weight: 500;
  338. }
  339. /* 项目列表 */
  340. .projectlist{
  341. margin-top: 20rpx;
  342. width: 100%;
  343. height: 741rpx;
  344. background: #FFFFFF;
  345. }
  346. .all-cui{
  347. margin: -47rpx 0 0 412rpx;
  348. width: 149rpx;
  349. height: 59rpx;
  350. border-radius: 92rpx;
  351. border: 1rpx solid rgba(0, 97, 255, 1);
  352. font-size: 28rpx;
  353. color: rgba(0, 97, 255, 1);
  354. line-height: 59rpx;
  355. text-align: center;
  356. }
  357. /* 列表 */
  358. .projectL{
  359. margin-top: 10rpx;
  360. width: 100%;
  361. font-size: 24rpx;
  362. color: rgba(0, 0, 0, 1);
  363. }
  364. .projectName{
  365. margin: 45rpx 0 0 20rpx;
  366. font-size: 28rpx;
  367. font-weight: 500;
  368. }
  369. >>>.uni-progress-bar {
  370. border-radius: 129rpx;
  371. }
  372. >>>.uni-progress-inner-bar {
  373. border-radius: 129rpx;
  374. }
  375. >>>.uni-progress-info {
  376. margin-top: 0;
  377. margin-bottom: 0;
  378. min-width: 2em;
  379. margin-left: 15px;
  380. font-size: 24rpx;
  381. color: rgba(0, 0, 0, 1);
  382. }
  383. >>>uni-progress {
  384. width: 90%;
  385. margin: 25rpx 0 0 20rpx;
  386. }
  387. .projectLine{
  388. margin: 40rpx 0 0 20rpx;
  389. width: 711rpx;
  390. height: 1rpx;
  391. background: rgba(230, 230, 230, 1);
  392. }
  393. /* 未完成清单 */
  394. .wei-title1{
  395. color: rgba(0, 97, 255, 1);
  396. }
  397. .title1{
  398. margin: 37rpx 0 0 20rpx;
  399. font-size: 28rpx;
  400. }
  401. .title2{
  402. margin: -29px 0 0 197rpx;
  403. font-size: 28rpx;
  404. }
  405. .wei-line1{
  406. margin: 10rpx 0 0 15rpx;
  407. width: 79rpx;
  408. height: 8rpx;
  409. border-radius: 75rpx;
  410. background: rgba(0, 97, 255, 1);
  411. }
  412. >>>.uni-table[data-v-6cd49106] {
  413. position: relative;
  414. width: 710rpx;
  415. border-radius: 5px;
  416. background-color: #fff;
  417. box-sizing: border-box;
  418. display: table;
  419. /* overflow-x: inherit; */
  420. }
  421. /* 消息预警汇总表格 */
  422. .hui-kuang{
  423. display: flex;
  424. width: 710rpx;
  425. height: 120rpx;
  426. /* border: 1rpx solid rgba(215, 219, 236, 1); */
  427. font-size: 24rpx;
  428. color: rgba(90, 96, 127, 1);
  429. }
  430. .hui-left{
  431. width: 171rpx;
  432. height: 120rpx;
  433. background: rgba(245, 246, 250, 1);
  434. line-height: 120rpx;
  435. text-align: center;
  436. }
  437. .hui-center{
  438. width: 270rpx;
  439. height: 60rpx;
  440. border: 1rpx solid rgba(215, 219, 236, 1);
  441. line-height: 60rpx;
  442. text-align: center;
  443. }
  444. </style>