移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

individualRelation.vue 5.2 KiB

2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main">
  4. 关联案件
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div class="jg"></div>
  8. <div class="search_box" v-if="list.length>0">
  9. <p><span>{{list[0].name}}</span>关联案件</p>
  10. </div>
  11. <van-list
  12. v-model="loading"
  13. :finished="finished"
  14. finished-text="没有更多了"
  15. @load="getList"
  16. >
  17. <van-swipe-cell v-for="(item,index) in list" :key="index">
  18. <van-cell center :to="{name:'caseDetail', query: {id:item.id,caseProgress:item.caseProgress}}">
  19. <template #title>
  20. <span>{{item.caseName}}</span>
  21. </template>
  22. <template #label>
  23. <div class="label">
  24. <p>{{item.caseSource}}</p>
  25. <p>{{item.caseProgressText}}</p>
  26. </div>
  27. </template>
  28. </van-cell>
  29. </van-swipe-cell>
  30. </van-list>
  31. </div>
  32. </template>
  33. <script>
  34. import { listCase } from "@/api/lawEnforcement/index";
  35. export default {
  36. name: "caseAllocation",
  37. data() {
  38. return {
  39. loading: false,
  40. finished: false,
  41. caseQueryParams:{
  42. // 分页
  43. pageNum: 1,
  44. pageSize: 10,
  45. // 查询排序
  46. orderByColumn: "id",
  47. isAsc: "desc",
  48. bodyId: null, //个体户ID
  49. type: "1"
  50. },
  51. list:[]
  52. };
  53. },
  54. created() {
  55. console.log(this.$route.query.id)
  56. this.getDicts("case_node").then(response => {
  57. this.caseProgressOptions = response.data;
  58. });
  59. this.getDicts("case_source").then(response => {
  60. this.caseSourceOptions = response.data;
  61. });
  62. this.caseQueryParams.bodyId = this.$route.query.id;
  63. },
  64. methods: {
  65. getList(){
  66. var _this = this;
  67. listCase(_this.caseQueryParams).then(response => {
  68. response.rows.map(res=>{
  69. res.caseProgressText = res.caseProgress == '' ? '' : this.selectDictLabel(this.caseProgressOptions, res.caseProgress);
  70. res.caseSource = res.caseSource == '' ? '' : this.selectDictLabel(this.caseSourceOptions, res.caseSource);
  71. _this.list.push(res);
  72. })
  73. if(_this.list.length >= response.total){
  74. _this.finished = true;
  75. return;
  76. }else{
  77. _this.loading = false;
  78. _this.queryParams.pageNum += 1 ;
  79. }
  80. });
  81. },
  82. },
  83. }
  84. </script>
  85. <style scoped lang="scss">
  86. .jg{
  87. height: 116px;
  88. }
  89. .home_wrapper{
  90. background: #e9e9e9;
  91. min-height: 100vh;
  92. width: 100vw;
  93. padding: 0 2% 0.2rem;
  94. .search_box{
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. width: 92%;
  99. margin: 10PX auto;
  100. font-size: 0.4rem;
  101. span{
  102. color: #1D6FE9;
  103. }
  104. }
  105. .header_main{
  106. height: 116px;
  107. background: url('../../../../static/images/lawEnforcement/new/list_head.png') no-repeat;
  108. background-size: 100% 100%;
  109. position: fixed;
  110. top: 0;
  111. left: 0;
  112. width: 100%;
  113. font-size: 36px;
  114. line-height: 116px;
  115. text-align: center;
  116. color: #fff;
  117. z-index: 999;
  118. .return_btn{
  119. width: 24px;
  120. height: 43.2px;
  121. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  122. background-size: 20px 36px;
  123. position: absolute;
  124. left: 38px;
  125. top: 36px;
  126. }
  127. .add_btn{
  128. width: 56.4px;
  129. height: 40.8px;
  130. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  131. background-size: 47px 34px;
  132. position: absolute;
  133. right: 38px;
  134. top: 36px;
  135. }
  136. }
  137. }
  138. /deep/.van-cell__title{
  139. .first{
  140. display: flex;
  141. justify-content: space-between;
  142. span{
  143. color: #FE1313;
  144. &:last-child{
  145. color: #B4B0B0;
  146. }
  147. }
  148. }
  149. span{
  150. font-family: Arial;
  151. font-size: 0.35rem;
  152. font-weight: normal;
  153. display: -webkit-box;
  154. -webkit-box-orient: vertical;
  155. -webkit-line-clamp: 1;
  156. word-break: break-all;
  157. overflow: hidden;
  158. }
  159. }
  160. /deep/.van-cell__label .label {
  161. display: flex;
  162. justify-content: space-between;
  163. p{
  164. display: inline-block;
  165. font-size: 0.35rem;
  166. &:first-child{
  167. background: rgba(29,111,233,0.2);
  168. padding: 0 8PX;
  169. border-radius: 3PX;
  170. color: #1D6FE9;
  171. }
  172. &:last-child{
  173. padding: 0 7PX;
  174. border: 1px solid #1CB8B1;
  175. color: #1CB8B1;
  176. border-radius: 1rem;
  177. }
  178. }
  179. }
  180. /deep/.van-cell__value{
  181. flex: 0.3;
  182. color: #1D6FE9;
  183. font-weight: bold;
  184. }
  185. /deep/.van-cell{
  186. /*margin-bottom: 0.2rem;*/
  187. /*overflow: hidden;*/
  188. }
  189. /deep/.van-cell:first-child{
  190. /*margin-top: 0.2rem;*/
  191. }
  192. /deep/van-ellipsis{
  193. font-weight: bold;
  194. }
  195. /deep/ .van-swipe-cell{
  196. margin-bottom: 0.3rem;
  197. border-radius: 0.2rem;
  198. overflow: hidden;
  199. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  200. &:first-child{
  201. margin-top: 0.3rem;
  202. }
  203. }
  204. /deep/ .van-swipe-cell__right{
  205. right: -1PX;
  206. }
  207. .van-row{
  208. height: 100%;
  209. }
  210. .van-col{
  211. height: 100%;
  212. }
  213. .delete-button {
  214. height: 100%;
  215. }
  216. </style>