gradingControlFinish.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <!-- 准入资格证书 -->
  2. <template>
  3. <view id="accessQualification">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="list">
  6. <view class="list_li" v-for="(item,index) in infoList" :key="index">
  7. <view class="list_li_t">
  8. <!-- <view class="list_li_t_l" :style="'color:'+item.levelColor+';border-color:'+item.levelColor">{{item.levelName}}</view> -->
  9. <view class="list_li_t_c">{{item.subName}}</view>
  10. <!-- <view class="list_li_t_r">{{item.typeName}}</view> -->
  11. </view>
  12. <view class="list_li_b">
  13. <view class="list_li_b_t" @tap="goPageInfo(item2)" v-for="(item2,index2) in item.detailList"
  14. :key="index2"
  15. :style="index2==(item.detailList.length-1)?'border:none;':'border-bottom :1px dashed #cccccc;'">
  16. <view class="list_li_b_t_t">
  17. <view class="list_li_b_t_t_n">
  18. <view class="list_li_b_t_t_l"
  19. :class="[item2.ruleType== '日管控' ? 'purple': '', item2.ruleType=='周管控'? 'blue': '',item2.ruleType=='月管控'? 'orange': '',item2.ruleType=='年管控'? 'green': '',]">
  20. {{item2.ruleType}}
  21. </view>
  22. <view class="list_li_b_t_t_c">{{item2.ruleName}}</view>
  23. <!-- <view class="list_li_b_t_t_r" v-if="item2.isExpired==1">(过期未完成)</view> -->
  24. </view>
  25. <view class="list_li_t_rr"
  26. :class="item2.status==0?'list_li_t_rr_color_a':(item2.status==2?'list_li_t_rr_color_b':'')">
  27. {{item2.status==0?'未执行':(item2.status==2?'已执行':'')}}
  28. </view>
  29. <img class="list_li_b_t_t_img" src="@/pages_basics/images/icon_04.png">
  30. </view>
  31. <!-- <view class="list_li_b_t_b">{{item2.ruleRemark}}</view> -->
  32. <view class="list_li_b_t_b">截止执行时间:{{item2.endDate}}</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="get-null-box" v-if="infoList.length==0">暂无更多数据</view>
  38. </scroll-view>
  39. </view>
  40. </template>
  41. <script>
  42. import {
  43. parseTime
  44. } from '@/component/public.js'
  45. import {
  46. gradingControlFinish
  47. } from '@/pages_basics/api/index.js'
  48. export default {
  49. data() {
  50. return {
  51. infoList: [],
  52. }
  53. },
  54. onLoad() {
  55. },
  56. onShow() {
  57. //this.clearData();
  58. this.getList();
  59. },
  60. methods: {
  61. //清除
  62. clearData() {
  63. this.infoList = [];
  64. },
  65. //去详情页
  66. goPageInfo(item) {
  67. console.log(11)
  68. console.log(item)
  69. uni.navigateTo({
  70. url: '/pages_basics/views/gradingControl/gradingControlDetail?item=' + encodeURIComponent(JSON
  71. .stringify(item))
  72. })
  73. },
  74. //滚动事件
  75. scrollGet() {
  76. this.getList();
  77. },
  78. //获取列表数据
  79. async getList() {
  80. let self = this;
  81. let obj = {
  82. }
  83. const {
  84. data
  85. } = await gradingControlFinish(obj)
  86. if (data.code == 200) {
  87. data.data.forEach(function(item){
  88. item.detailList.forEach(function(item2){
  89. item2.endDate=parseTime(item2.endDate, "{y}-{m}-{d} {h}:{i}:{s}");
  90. })
  91. })
  92. self.infoList = data.data;
  93. }
  94. },
  95. }
  96. }
  97. </script>
  98. <style lang="stylus" scoped>
  99. #accessQualification {
  100. height: 100%;
  101. display flex;
  102. flex-direction column;
  103. .info-max-box {
  104. flex: 1;
  105. overflow: scroll;
  106. .for-big-box:last-child {
  107. margin-bottom: 180rpx;
  108. }
  109. /* 列表 */
  110. .list {
  111. padding 0 20rpx;
  112. box-sizing border-box;
  113. .list_li {
  114. height auto;
  115. .list_li_t {
  116. height: 80rpx;
  117. display flex;
  118. justify-content flex-start;
  119. align-items: center;
  120. .list_li_t_l {
  121. width: 80rpx;
  122. height: 30rpx;
  123. font-size: 24rpx;
  124. font-family: PingFang SC;
  125. font-weight: 500;
  126. color: #EE3A3A;
  127. line-height: 30rpx;
  128. border: 2rpx solid #EE3A3A;
  129. border-radius: 6rpx;
  130. text-align center;
  131. }
  132. .list_li_t_c {
  133. font-size: 28rpx;
  134. font-family: PingFang SC;
  135. font-weight: 500;
  136. color: #333333;
  137. line-height: 30rpx;
  138. margin 0 32rpx 0 16rpx;
  139. flex: 1;
  140. }
  141. .list_li_t_r {
  142. font-size: 28rpx;
  143. font-family: PingFang SC;
  144. font-weight: 500;
  145. color: #999999;
  146. line-height: 30rpx;
  147. }
  148. }
  149. .list_li_b {
  150. width 710rpx;
  151. height auto;
  152. background: #FFFFFF;
  153. border-radius: 20rpx;
  154. padding: 0 14rpx;
  155. box-sizing: border-box;
  156. .list_li_b_t {
  157. overflow: hidden;
  158. border-bottom: 1rpx dashed #cccccc;
  159. .list_li_b_t_t {
  160. display flex;
  161. flex: 1;
  162. justify-content flex-start;
  163. margin: 24rpx 0 18rpx 0;
  164. .list_li_b_t_t_n {
  165. width: 655rpx;
  166. display flex;
  167. justify-content flex-start;
  168. .list_li_b_t_t_l {
  169. width: 100rpx;
  170. height: 30rpx;
  171. font-size: 24rpx;
  172. font-family: PingFang SC;
  173. font-weight: 500;
  174. /* color: #0183FA; */
  175. line-height: 24rpx;
  176. /* background: rgba(1,131,250,0.2); */
  177. border-radius: 6rpx;
  178. text-align: center;
  179. }
  180. .list_li_b_t_t_c {
  181. font-size: 28rpx;
  182. font-family: PingFang SC;
  183. flex: 1;
  184. font-weight: 500;
  185. color: #333333;
  186. line-height: 28rpx;
  187. margin: 0 16rpx 0 12rpx;
  188. }
  189. .list_li_b_t_t_r {
  190. font-size: 24rpx;
  191. font-family: PingFang SC;
  192. font-weight: 500;
  193. color: #EE3A3A;
  194. line-height: 24rpx;
  195. }
  196. }
  197. .list_li_t_rr {
  198. width: 100rpx;
  199. font-size: 28rpx;
  200. font-family: PingFang SC;
  201. font-weight: 500;
  202. color: #999999;
  203. line-height: 28rpx;
  204. margin-right: 10rpx;
  205. }
  206. .list_li_t_rr_color_a {
  207. color: #FF4E00;
  208. }
  209. .list_li_t_rr_color_b {
  210. color: #14AE10;
  211. }
  212. /* 日管控 */
  213. .purple {
  214. color: #AC20E0;
  215. background: rgba(172, 32, 224, 0.2);
  216. }
  217. /* 周管控 */
  218. .blue {
  219. color: #0183FA;
  220. background: rgba(1, 131, 250, 0.2);
  221. }
  222. /* 月管控 */
  223. .orange {
  224. color: #FA8801;
  225. background: rgba(250, 136, 1, 0.2);
  226. }
  227. /* 年管控 */
  228. .green {
  229. color: #11BA25;
  230. background: rgba(17, 186, 37, 0.2);
  231. }
  232. >img {
  233. width: 12rpx;
  234. height: 24rpx;
  235. margin-top: 2rpx;
  236. }
  237. }
  238. .list_li_b_t_b {
  239. font-size: 28rpx;
  240. font-family: PingFang SC;
  241. font-weight: 500;
  242. color: #999999;
  243. line-height: 48rpx;
  244. margin-bottom: 14rpx;
  245. }
  246. }
  247. .list_li_b_b {
  248. .list_li_b_b_t {
  249. display: flex;
  250. justify-content: flex-start;
  251. margin: 30rpx 0 18rpx;
  252. .list_li_b_b_t_n {
  253. width: 655rpx;
  254. display flex;
  255. justify-content flex-start;
  256. .list_li_b_b_t_l {
  257. width: 100rpx;
  258. height: 30rpx;
  259. border-radius: 6rpx;
  260. font-size: 24rpx;
  261. font-family: PingFang SC;
  262. font-weight: 500;
  263. color: #FA8801;
  264. line-height: 30rpx;
  265. background: rgba(250, 136, 1, 0.2);
  266. text-align: center;
  267. margin-right: 12rpx;
  268. }
  269. .list_li_b_b_t_r {
  270. font-size: 28rpx;
  271. font-family: PingFang SC;
  272. font-weight: 500;
  273. color: #333333;
  274. line-height: 30rpx;
  275. }
  276. }
  277. >img {
  278. width: 12rpx;
  279. height: 24rpx;
  280. }
  281. }
  282. .list_li_b_b_b {
  283. font-size: 28rpx;
  284. font-family: PingFang SC;
  285. font-weight: 500;
  286. color: #999999;
  287. line-height: 48rpx;
  288. }
  289. }
  290. }
  291. }
  292. }
  293. /*暂无数据*/
  294. .get-null-box {
  295. height: 100rpx;
  296. line-height: 100rpx;
  297. color: #999;
  298. text-align center
  299. }
  300. }
  301. .bottom-button-box {
  302. border-radius: 20rpx;
  303. margin: 20rpx 50rpx;
  304. width: 650rpx;
  305. height: 100rpx;
  306. line-height: 100rpx;
  307. background: #0183FA;
  308. font-size: 30rpx;
  309. color: #FFFFFF;
  310. text-align center;
  311. }
  312. }
  313. </style>