| | |
| | | <script>
|
| | | import draggable from "vuedraggable"
|
| | | import { findAllSdk } from '@/api/taskMange';
|
| | | import {chunkArr} from '@/scripts/util';
|
| | | export default {
|
| | | name: 'toolsEntry',
|
| | | components: { draggable },
|
| | |
| | | title: '人员跟踪'
|
| | | }
|
| | | ],
|
| | | rowSize: 3,
|
| | | //rowSize: 3,
|
| | | badgeNum: 0,
|
| | | }
|
| | | },
|
| | |
| | | let arr = null;
|
| | | //根据屏幕高度来判断是展示3排还是4排 阈值:970
|
| | | if (window.innerHeight >= 930) {
|
| | | this.rowSize = 4;
|
| | | //this.rowSize = 4;
|
| | | arr = this.chunk(tempArr, 24);
|
| | | //arr = chunkArr(tempArr,24);
|
| | | } else {
|
| | | this.rowSize = 3;
|
| | | //this.rowSize = 3;
|
| | | arr = this.chunk(tempArr, 18);
|
| | | //arr = chunkArr(tempArr, 18);
|
| | | }
|
| | | console.log(arr)
|
| | | return arr
|
| | | },
|
| | | rowSize (){
|
| | | if (window.innerHeight >= 930) {
|
| | | return 4;
|
| | | }else{
|
| | | return 3;
|
| | | }
|
| | | }
|
| | | },
|
| | | mounted () {
|