gradingControlFinish.vue 8.0 KB

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