移动端
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.
 
 

305 rivejä
7.9 KiB

  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. <van-list
  9. v-model="loading"
  10. :finished="finished"
  11. finished-text="没有更多了"
  12. @load="getList"
  13. >
  14. <van-cell center v-for="(item,index) in applicationList" :key="index" :to="{name:'caseDetail', query: {id:item.caseId,caseProgress:item.caseProgress}}">
  15. <template #title>
  16. <div class="first">
  17. <span>{{item.handlerSetDate}}</span>
  18. <span>{{item.caseSource}}</span>
  19. </div>
  20. <span>{{item.caseName}}</span>
  21. </template>
  22. <template #label>
  23. <div class="label">
  24. <p>执法人:{{item.handlerNameStr}}</p>
  25. <p>{{item.caseProgressName}}</p>
  26. </div>
  27. </template>
  28. </van-cell>
  29. </van-list>
  30. </div>
  31. </template>
  32. <script>
  33. import { listSurvey } from "@/api/lawEnforcement/index";
  34. import Cookies from "js-cookie";
  35. import request from '@/utils/request'
  36. export default {
  37. name: "caseAllocation",
  38. data() {
  39. return {
  40. applicationList:[],
  41. applicationListSecond:[],
  42. assetStatusOptions:[],
  43. auditStatus:[],
  44. loading: false,
  45. finished: false,
  46. show: false,
  47. showTab: false,
  48. fileList:[],
  49. listLength:'0',
  50. searchInput:'',
  51. // 查询参数
  52. queryParams: {
  53. // 分页
  54. pageNum: 1,
  55. pageSize: 10,
  56. // 查询排序
  57. orderByColumn: "id",
  58. isAsc: "desc",
  59. caseName: null,
  60. caseProgress: "2",
  61. title:"",
  62. isDistribute: "Y" // 办理人员是否已分配 (查询历史任务传参 “Y” )
  63. },
  64. uploadFiles1:[],
  65. projectId:'',
  66. projectIndex:'',
  67. showBtn:true,
  68. };
  69. },
  70. created() {
  71. this.getDicts("case_source").then(response => {
  72. this.caseSourceOptions = response.data;
  73. });
  74. this.getDicts("case_node").then(response => {
  75. this.caseProgressOptions = response.data;
  76. });
  77. },
  78. methods: {
  79. getList(){
  80. var _this = this;
  81. listSurvey(_this.queryParams).then(response => {
  82. _this.listLength = response.total;
  83. response.rows.map(res=>{
  84. res.caseSource = res.caseSource == '' ? '' : this.selectDictLabel(this.caseSourceOptions, res.caseSource);
  85. res.caseProgressName = res.caseProgress == '' ? '' : this.selectDictLabel(this.caseProgressOptions, res.caseProgress);
  86. _this.applicationList.push(res);
  87. })
  88. if(_this.applicationList.length >= response.total){
  89. _this.finished = true;
  90. return;
  91. }else{
  92. _this.loading = false;
  93. _this.queryParams.pageNum += 1 ;
  94. }
  95. });
  96. },
  97. tabClick(year){
  98. this.queryParams.year = year ;
  99. this.applicationList = [];
  100. this.getList();
  101. },
  102. tabShow(){
  103. this.showTab = !this.showTab;
  104. },
  105. /** 删除按钮操作 */
  106. handleDelete(row,index) {
  107. let assetStatus = row.assetStatus ? row.assetStatus : data[0].assetStatus;
  108. if (assetStatus === '2' || assetStatus === '3') {
  109. this.$notify({
  110. message: "不允许删除已出售或已报废的资产",
  111. type: "warning",
  112. });
  113. return;
  114. }
  115. let useType = row.useType;
  116. if(useType == 3) {
  117. this.$notify({
  118. message: "出租或出借的资产不允许删除",
  119. type: "warning",
  120. });
  121. return ;
  122. }
  123. const ids = row.id || this.ids;
  124. this.$dialog.alert(
  125. {
  126. message:'是否确认删除固定资产?',
  127. title:"警告",
  128. confirmButtonText: "确定",
  129. cancelButtonText: "取消",
  130. }
  131. )
  132. .then(function () {
  133. return delPermanent(ids);
  134. })
  135. .then(() => {
  136. this.applicationList.splice(index, 1);
  137. this.$notify({ type: 'success', message: '删除成功' });
  138. });
  139. },
  140. goAdd(){
  141. this.$router.push('/sunVillage_info/list_finance_add')
  142. },
  143. goDetail(id){
  144. this.$router.push({path:'/sunVillage_info/list_finance_detail',query: {id:id,type:'finance'}})
  145. },
  146. goRanking(id,time){
  147. this.$router.push({path:'/sunVillage_info/list_finance_ranking',query: {id:id,time:time}})
  148. },
  149. goEdit(id){
  150. this.$router.push({path:'/sunVillage_info/list_finance_edit',query: {id:id,type:'finance'}})
  151. },
  152. goRemove(id){
  153. // this.$dialog.alert({
  154. // title: '提示',
  155. // message: '确认删除?',
  156. // showCancelButton:true,
  157. // })
  158. // .then(() => {
  159. // openRemove(id).then(response => {
  160. // this.$notify({ type: 'success', message: '删除成功' });
  161. // this.getList()
  162. // });
  163. // })
  164. // .catch(() => {
  165. // // on cancel
  166. // });
  167. }
  168. },
  169. }
  170. </script>
  171. <style scoped lang="scss">
  172. .jg{
  173. height: 116px;
  174. }
  175. .home_wrapper{
  176. background: #e9e9e9;
  177. min-height: 100vh;
  178. width: 100vw;
  179. padding: 0 0 0.2rem;
  180. .search_box{
  181. display: flex;
  182. justify-content: space-between;
  183. align-items: center;
  184. width: 92%;
  185. margin: 0PX auto;
  186. .search{
  187. background: #ffffff;
  188. display: flex;
  189. justify-content: space-between;
  190. align-items: center;
  191. width: 80%;
  192. margin: 10PX auto;
  193. border: 1px solid #1D6FE9;
  194. padding: 1PX 1PX 1PX 12PX ;
  195. border-radius: 50PX;
  196. input{
  197. flex: 1;
  198. background: transparent;
  199. }
  200. }
  201. }
  202. .header_main{
  203. height: 116px;
  204. background: url('../../../../static/images/lawEnforcement/new/list_head.png') no-repeat;
  205. background-size: 100% 100%;
  206. position: fixed;
  207. top: 0;
  208. left: 0;
  209. width: 100%;
  210. font-size: 36px;
  211. line-height: 116px;
  212. text-align: center;
  213. color: #fff;
  214. z-index: 999;
  215. .return_btn{
  216. width: 24px;
  217. height: 43.2px;
  218. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  219. background-size: 20px 36px;
  220. position: absolute;
  221. left: 38px;
  222. top: 36px;
  223. }
  224. .add_btn{
  225. width: 56.4px;
  226. height: 40.8px;
  227. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  228. background-size: 47px 34px;
  229. position: absolute;
  230. right: 38px;
  231. top: 36px;
  232. }
  233. }
  234. }
  235. /deep/.van-cell__title{
  236. .first{
  237. display: flex;
  238. justify-content: space-between;
  239. span{
  240. color: #D60303;
  241. &:first-child{
  242. color: #1D6FE9;
  243. }
  244. }
  245. }
  246. span{
  247. font-family: Arial;
  248. font-size: 0.35rem;
  249. font-weight: normal;
  250. display: -webkit-box;
  251. -webkit-box-orient: vertical;
  252. -webkit-line-clamp: 1;
  253. word-break: break-all;
  254. overflow: hidden;
  255. }
  256. }
  257. /deep/.van-cell__label .label {
  258. display: flex;
  259. justify-content: space-between;
  260. p{
  261. display: inline-block;
  262. font-size: 0.35rem;
  263. &:first-child{
  264. color: #1D6FE9;
  265. }
  266. &:last-child{
  267. padding: 0 7PX;
  268. border: 1px solid #666666;
  269. color: #666666;
  270. border-radius: 1rem;
  271. }
  272. }
  273. }
  274. /deep/.van-cell__value{
  275. flex: 0.3;
  276. color: #1D6FE9;
  277. font-weight: bold;
  278. }
  279. /deep/.van-cell{
  280. margin-bottom: 0.2rem;
  281. overflow: hidden;
  282. }
  283. /deep/.van-cell:first-child{
  284. margin-top: 0.2rem;
  285. }
  286. /deep/van-ellipsis{
  287. font-weight: bold;
  288. }
  289. .van-row{
  290. height: 100%;
  291. }
  292. .van-col{
  293. height: 100%;
  294. }
  295. .delete-button {
  296. height: 100%;
  297. }
  298. </style>