gradingControl.vue 7.7 KB

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