detail.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. <template>
  2. <view>
  3. <view class="text-area">
  4. <text class="top-line"></text>
  5. <view class="form">
  6. <view class="select1">
  7. <picker @change="bindPickerChange" :value="select1" :range="array">
  8. <view class="uni-input">{{select1==0?'黄码':select1==1?'红码':select1==2?'重点':select1==3?'脱管':'发热'}}</view>
  9. <image src="../../static/select_img.png" class="select-img"></image>
  10. </picker>
  11. </view>
  12. <view class="select2">
  13. <picker @change="bindPickerChange2" :value="handle_state" :range="handle">
  14. <view class="uni-input">{{handle_state==1?'已处置':'处置中'}}</view>
  15. <image src="../../static/select_img.png" class="select-img2"></image>
  16. </picker>
  17. </view>
  18. <text class="big" v-show="handle_state==1">
  19. <text class="bg">
  20. <span class="line1"></span>
  21. <span class="line2"></span>
  22. </text>
  23. <text class="table_title">
  24. <span style=" width: 150rpx;margin-left: 10px">姓名</span>
  25. <span style=" width: 300rpx;margin: 88rpx ">发现/处置时间</span>
  26. <span style="width: 300rpx;margin-left: 58rpx ">处置单位</span>
  27. </text>
  28. <view v-for="(item,i) in xinxi" :key="i">
  29. <!-- <navigator url="./mark?uuid=item.uuid" hover-class="navigator-hover"> -->
  30. <view class="list" @click="onCLick(item.id)">
  31. <text style=" width: 75rpx;margin-left: 30rpx; line-height: 88rpx;">{{item.sm_name}}</text>
  32. <text style=" margin-left: 80rpx;">{{item.sm_time}} \n{{item.handler_time==''||item.handler_time==null?'':item.handler_time}}</text>
  33. <!-- <text style=" margin-left: 70rpx;">{{item.handler_time==''||item.handler_time==null?'':item.handler_time.slice(0, 10)}} \n &nbsp; {{item.handler_time==''||item.handler_time==null?'暂无时间':item.handler_time.slice(11, 19)}}</text> -->
  34. <text style=" margin-left: 90rpx; line-height: 88rpx;">{{item.handler_unit}}</text>
  35. </view>
  36. <!-- </navigator> -->
  37. <view class="list-line"></view>
  38. </view>
  39. </text>
  40. <!-- 处置中 -->
  41. <text class="big" v-show="handle_state==0">
  42. <text class="bg">
  43. <span class="line1"></span>
  44. <span class="line2"></span>
  45. </text>
  46. <text class="table_title">
  47. <span style=" width: 150rpx;margin-left: 10px">姓名</span>
  48. <span style=" width: 300rpx;margin-left: 118rpx ">发现时间</span>
  49. <span style="width: 300rpx;margin-left: 178rpx ">处置单位</span>
  50. </text>
  51. <view v-for="(item,i) in xinxi" :key="i">
  52. <!-- <navigator url="./mark?uuid=item.uuid" hover-class="navigator-hover"> -->
  53. <view class="list" @click="onCLick(item.id)">
  54. <text style=" width: 75rpx; margin-left: 30rpx; line-height: 88rpx;">{{item.sm_name}}</text>
  55. <text style=" margin-left: 80rpx;line-height: 88rpx;">{{item.sm_time}}</text>
  56. <text style=" margin-left: 90rpx;line-height: 88rpx;">{{item.handler_unit}}</text>
  57. </view>
  58. <!-- </navigator> -->
  59. <view class="list-line"></view>
  60. </view>
  61. </text>
  62. <text class="foot">
  63. <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
  64. :page-sizes="pageSizes" :page-size="pageSize" layout="total, sizes, pager, jumper"
  65. :total="total">
  66. </el-pagination>
  67. </text>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. export default {
  74. data() {
  75. return {
  76. array: ['黄码', '红码', '重点', '脱管', '发热'],
  77. index: 0,
  78. handle: [ '处置中','已处置'],
  79. index2: 0,
  80. pageSize:10,//每页数量
  81. ma_color:'',
  82. handle_state:'',
  83. ishot:'',
  84. istoken:'',
  85. iskey:'',
  86. select1:'',
  87. total: 0, //总页数
  88. cur: 1, //当前页码
  89. pageSizes: [10],
  90. pageSize: 10, //每页条数
  91. xinxi:[],
  92. lid:'',
  93. uuid:'',
  94. ltime:'',
  95. }
  96. },
  97. onLoad(options) {
  98. this.ma_color=options.sm_color
  99. this.handle_state=options.handler_state2
  100. this.ishot=options.ishot
  101. this.istoken=options.istoken
  102. this.iskey=options.iskey
  103. // this.select1=ishot==1?'发热':iskey==1?'重点':istoken==1?'脱管':ma_color
  104. if (this.ishot==1) {
  105. this.select1=4
  106. } else if (this.iskey==1) {
  107. this.select1=2
  108. } else if (this.istoken==1) {
  109. this.select1=3
  110. } else if (this.ma_color!=undefined && this.ma_color=='黄码') {
  111. this.select1=0
  112. } else if (this.ma_color!=undefined && this.ma_color=='红码') {
  113. this.select1=1
  114. }
  115. // console.log(this.ma_color)
  116. // console.log(this.handle_state)
  117. // console.log(this.ishot)
  118. // console.log(this.istoken)
  119. // console.log(this.iskey)
  120. if (this.ma_color!= undefined && this.handle_state!= undefined) {
  121. this.getHandlePeople()
  122. }else if (this.ishot!= undefined && this.handle_state!= undefined) {
  123. this.getHandlePeople2()
  124. }else if (this.iskey!= undefined && this.handle_state!= undefined) {
  125. this.getHandlePeople3()
  126. }else if (this.istoken!= undefined && this.handle_state!= undefined) {
  127. this.getHandlePeople4()
  128. }
  129. },
  130. methods: {
  131. onCLick (id) {
  132. for(var i=0;i<this.xinxi.length;i++){
  133. if(id===this.xinxi[i].id){
  134. this.lid=this.xinxi[i].id
  135. this.uuid=this.xinxi[i].uuid
  136. this.ltime=this.xinxi[i].sm_time
  137. }
  138. }
  139. setTimeout(() => {
  140. uni.navigateTo({
  141. url: "./mark?lid="+this.lid+"&uuid="+this.uuid,
  142. });
  143. }, 600);
  144. },
  145. // 分页
  146. handleSizeChange1(val) {
  147. this.pageSize = val;
  148. if (this.select1 === 0 || this.select1 === 1) {
  149. this.pageSize = val;
  150. this.getHandlePeople()
  151. } else if (this.select1 === 4) {
  152. this.pageSize = val;
  153. this.getHandlePeople2()
  154. } else if (this.select1 === 2) {
  155. this.pageSize = val;
  156. this.getHandlePeople3()
  157. } else if (this.select1 === 3) {
  158. this.pageSize = val;
  159. this.getHandlePeople4()
  160. }
  161. },
  162. handleCurrentChange1(val) {
  163. this.cur = val;
  164. if (this.select1 === 0 || this.select1 === 1) {
  165. this.cur = val;
  166. this.getHandlePeople()
  167. } else if (this.select1 === 4) {
  168. this.cur = val;
  169. this.getHandlePeople2()
  170. } else if (this.select1 === 2) {
  171. this.cur = val;
  172. this.getHandlePeople3()
  173. } else if (this.select1 === 3) {
  174. this.cur = val;
  175. this.getHandlePeople4()
  176. }
  177. },
  178. //选择框1
  179. bindPickerChange: function(e) {
  180. // console.log(e.target.value)
  181. this.select1 = e.target.value
  182. if(this.select1==0) {
  183. this.ma_color='黄码'
  184. this.getHandlePeople()
  185. }else if(this.select1==1) {
  186. this.ma_color='红码'
  187. this.getHandlePeople()
  188. }else if(this.select1==2) {
  189. this.iskey=1
  190. this.getHandlePeople3()
  191. }else if(this.select1==3) {
  192. this.istoken=1
  193. this.getHandlePeople4()
  194. }else if(this.select1==4) {
  195. this.ishot=1
  196. this.getHandlePeople2()
  197. }
  198. },
  199. //选择框2
  200. bindPickerChange2: function(e) {
  201. this.handle_state = e.target.value
  202. this.getHandlePeople()
  203. this.getHandlePeople2()
  204. this.getHandlePeople3()
  205. this.getHandlePeople4()
  206. },
  207. //根据码色处置人员详情
  208. getHandlePeople() {
  209. this.xinxi=[]
  210. this.$axios.post('/bigData2/mobqueryHandler.action?page='+this.cur+'&rows=' + this.pageSize + '&sm_color=' + this.ma_color + '&handler_state2=' + this.handle_state, {
  211. headers: {
  212. 'Content-Type': 'application/json',
  213. }
  214. })
  215. .then(res => {
  216. for(var i=0; i<res.data.rows.length; i++){
  217. this.xinxi.push(res.data.rows[i])
  218. }
  219. this.total = res.data.total
  220. })
  221. .catch(err => {
  222. console.log(err)
  223. })
  224. },
  225. //根据发热处置人员详情
  226. getHandlePeople2() {
  227. this.xinxi=[]
  228. this.$axios.post('/bigData2/mobqueryHandler.action?page='+this.cur+'&rows=' + this.pageSize + '&handler_state2=' + this.handle_state + '&ishot=' + this.ishot, {
  229. headers: {
  230. 'Content-Type': 'application/json',
  231. }
  232. })
  233. .then(res => {
  234. for(var i=0; i<res.data.rows.length; i++){
  235. this.xinxi.push(res.data.rows[i])
  236. }
  237. this.total = res.data.total
  238. })
  239. .catch(err => {
  240. console.log(err)
  241. })
  242. },
  243. //根据重点处置人员详情
  244. getHandlePeople3() {
  245. this.xinxi=[]
  246. this.$axios.post('/bigData2/mobqueryHandler.action?page='+this.cur+'&rows=' + this.pageSize + '&handler_state2=' + this.handle_state + '&iskey=' + this.iskey, {
  247. headers: {
  248. 'Content-Type': 'application/json',
  249. }
  250. })
  251. .then(res => {
  252. for(var i=0; i<res.data.rows.length; i++){
  253. this.xinxi.push(res.data.rows[i])
  254. }
  255. this.total = res.data.total
  256. })
  257. .catch(err => {
  258. console.log(err)
  259. })
  260. },
  261. //根据脱管处置人员详情
  262. getHandlePeople4() {
  263. this.xinxi=[]
  264. this.$axios.post('/bigData2/mobqueryHandler.action?page='+this.cur+'&rows=' + this.pageSize + '&handler_state2=' + this.handle_state + '&istoken=' + this.istoken, {
  265. headers: {
  266. 'Content-Type': 'application/json',
  267. }
  268. })
  269. .then(res => {
  270. for(var i=0; i<res.data.rows.length; i++){
  271. this.xinxi.push(res.data.rows[i])
  272. }
  273. this.total = res.data.total
  274. })
  275. .catch(err => {
  276. console.log(err)
  277. })
  278. },
  279. }
  280. }
  281. </script>
  282. <style>
  283. .content {
  284. display: flex;
  285. flex-direction: column;
  286. align-items: center;
  287. justify-content: center;
  288. }
  289. .text-area {
  290. display: flex;
  291. width: 375px;
  292. }
  293. .top-line{
  294. margin-top: 0rpx;
  295. margin-left: 0;
  296. position: absolute;
  297. width: 100%;
  298. height: 1rpx;
  299. background: #CCCCCC;
  300. }
  301. .form{
  302. margin-top: 29rpx;
  303. display: flex;
  304. width: 690rpx;
  305. height: 1457rpx;
  306. }
  307. /* 选择器 */
  308. .select1 picker{
  309. position: absolute;
  310. margin-top: 29rpx;
  311. margin-left: 354rpx;
  312. width: 180rpx;
  313. height: 54rpx;
  314. border: 2rpx solid #B3B3B3;
  315. border-radius: 27rpx;
  316. text-align: center;
  317. line-height: 54rpx;
  318. font-size: 28rpx;
  319. font-family: Microsoft YaHei-3970(82674968);
  320. font-weight: bold;
  321. color: #333333;
  322. z-index: 1;
  323. }
  324. .select-img{
  325. position: absolute;
  326. margin-top: -30rpx;
  327. margin-left: 57rpx;
  328. width: 15rpx;
  329. height: 15rpx;
  330. z-index: 2;
  331. }
  332. .select2 picker{
  333. position: absolute;
  334. margin-top: 29rpx;
  335. margin-left: 554rpx;
  336. width: 166rpx;
  337. height: 54rpx;
  338. border: 2rpx solid #B3B3B3;
  339. border-radius: 27rpx;
  340. text-align: center;
  341. line-height: 54rpx;
  342. font-size: 28rpx;
  343. font-family: Microsoft YaHei-3970(82674968);
  344. font-weight: bold;
  345. color: #333333;
  346. z-index: 1;
  347. }
  348. .select-img2{
  349. position: absolute;
  350. margin-top: -30rpx;
  351. margin-left: 57rpx;
  352. width: 15rpx;
  353. height: 15rpx;
  354. z-index: 2;
  355. }
  356. .big{
  357. display: flex;
  358. justify-content: center;
  359. margin-top: 113rpx;
  360. margin-left: 29rpx;
  361. /* text-align: center; */
  362. width: 692rpx;
  363. height: 90%;
  364. }
  365. .bg{
  366. display: flex;
  367. margin-top: 0;
  368. margin-left: 0;
  369. width: 692rpx;
  370. height: 70rpx;
  371. background: #E6F4FF;
  372. z-index: 1;
  373. }
  374. .table_title{
  375. display: flex;
  376. margin-top: -55rpx;
  377. margin-left: 26rpx;
  378. width: 608rpx;
  379. height: 70rpx;
  380. font-size: 28rpx;
  381. font-family: Microsoft YaHei-3970(82674968);
  382. font-weight: bold;
  383. color: #666666;
  384. text-align: center;
  385. z-index: 2;
  386. }
  387. .line1{
  388. display: flex;
  389. margin-top: 0rpx;
  390. width: 692rpx;
  391. height: 1rpx;
  392. background: #CCCCCC;
  393. }
  394. .line2{
  395. display: flex;
  396. margin-top: 70rpx;
  397. width: 692rpx;
  398. height: 1rpx;
  399. background: #CCCCCC;
  400. }
  401. .list{
  402. display: flex;
  403. margin-top: 3rpx;
  404. margin-left: 15rpx;
  405. width: 666rpx;
  406. line-height: 48rpx;
  407. font-size: 24rpx;
  408. font-family: Microsoft YaHei-3970(82674968);
  409. font-weight: bold;
  410. color: #333333;
  411. }
  412. .list-line{
  413. float: left;
  414. margin-top: 28rpx;
  415. margin-bottom: 10rpx;
  416. margin-left: 0rpx;
  417. width: 692rpx;
  418. height: 1rpx;
  419. background: #CCCCCC;
  420. }
  421. .foot{
  422. position: absolute;
  423. margin-top: 1189px;
  424. margin-left: 29rpx;
  425. /* text-align: center; */
  426. width:992rpx;
  427. height: 30rpx;
  428. }
  429. >>>.el-pagination span:not([class*=suffix]) {
  430. display: inline-block;
  431. font-size: 28rpx;
  432. min-width: 35.5rpx;
  433. height: 28rpx;
  434. line-height: 28rpx;
  435. vertical-align: top;
  436. -webkit-box-sizing: border-box;
  437. box-sizing: border-box;
  438. }
  439. >>>.el-pagination .btn-prev {
  440. background: center center no-repeat;
  441. background-size: 28rpx;
  442. cursor: pointer;
  443. margin-left: 20rpx;
  444. width: 40rpx;
  445. height: 40rpx;
  446. color: #000000;
  447. }
  448. >>>.el-icon-arrow-left::before {
  449. content: "\e6de";
  450. /* background-image: url('../../assets/images/before.png'); */
  451. width: 15rpx;
  452. height: 28rpx;
  453. }
  454. >>>.el-pagination .btn-prev .el-icon {
  455. display: block;
  456. font-size: 28rpx;
  457. font-weight: 700;
  458. }
  459. >>>.el-pagination .btn-next .el-icon,
  460. .el-pagination .btn-prev .el-icon {
  461. display: block;
  462. font-size: 28rpx;
  463. font-weight: 700;
  464. }
  465. >>>.el-pager {
  466. -webkit-user-select: none;
  467. -moz-user-select: none;
  468. -ms-user-select: none;
  469. user-select: none;
  470. list-style: none;
  471. font-size: 28rpx;
  472. color: #000000;
  473. background: none;
  474. height: 40rpx;
  475. margin-top: 5rpx;
  476. padding: 0;
  477. }
  478. >>>.el-pager,
  479. .el-pager li {
  480. vertical-align: top;
  481. margin: 0;
  482. display: inline-flex;
  483. font-size: 26rpx;
  484. color: #000000;
  485. height: 40rpx;
  486. margin-top: 5rpx;
  487. }
  488. >>>.el-pager li {
  489. background: none;
  490. -webkit-box-sizing: border-box;
  491. }
  492. >>>.el-pager li.active {
  493. color: #409EFF;
  494. cursor: default;
  495. }
  496. >>>.el-pager li {
  497. padding: 0 4rpx;
  498. font-size: 30rpx;
  499. min-width: 35.5rpx;
  500. height: 30rpx;
  501. line-height: 30rpx;
  502. box-sizing: border-box;
  503. text-align: center;
  504. }
  505. .el-dialog,
  506. .el-pager li {
  507. -webkit-box-sizing: border-box;
  508. font-size: 26rpx;
  509. }
  510. >>>.el-pagination .btn-next,
  511. .el-pagination .btn-prev {
  512. background: center center no-repeat;
  513. background-size: 26rpx;
  514. cursor: pointer;
  515. margin: 0;
  516. width: 40rpx;
  517. height: 40rpx;
  518. color: #000000;
  519. }
  520. >>>.el-pagination {
  521. white-space: nowrap;
  522. padding: 2rpx 5rpx;
  523. font-size: 28rpx;
  524. font-weight: 200;
  525. }
  526. >>>.el-pagination__total {
  527. margin-top: 10rpx;
  528. font-size: 28rpx;
  529. color: #000000;
  530. }
  531. >>>.el-pagination span:not([class*=suffix]) {
  532. display: inline-flex;
  533. height: 30rpx;
  534. line-height: 30rpx;
  535. color: #000000;
  536. vertical-align: top;
  537. -webkit-box-sizing: border-box;
  538. box-sizing: border-box;
  539. }
  540. >>>.el-pagination .el-select .el-input .el-input__inner {
  541. padding-right: 25rpx;
  542. font-size: 28rpx;
  543. color: #000000;
  544. width: 100rPX;
  545. height: 50rPX;
  546. font-weight: 200;
  547. }
  548. >>>.foot .el-input__inner {
  549. width: 50rpx;
  550. height: 45rpx;
  551. font-size: 28rpx;
  552. padding-left: 10rpx;
  553. border-radius: 5rpx;
  554. font-weight: 200;
  555. }
  556. </style>