gradingControl.vue 8.2 KB

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