更新
This commit is contained in:
@ -155,10 +155,10 @@ const onSearch = (val) =>{
|
||||
}
|
||||
const reset = (val) =>{
|
||||
active.value = 0;
|
||||
listQuery.value = val;
|
||||
listQuery.value = {};
|
||||
listQuery.value.dateRange = timeSlotChange('天');
|
||||
listQuery.value.hskssj = timeSlotChange('天')[0];
|
||||
listQuery.value.hsjssj = timeSlotChange('天')[1];
|
||||
listQuery.value.hskssj = timeSlotChange('天')[0] + ' 00:00:00';
|
||||
listQuery.value.hsjssj = timeSlotChange('天')[1] + ' 23:59:59';
|
||||
loadDate()
|
||||
}
|
||||
|
||||
|
||||
@ -10,12 +10,12 @@
|
||||
|
||||
<script setup>
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
import { onMounted, reactive , ref} from "vue";
|
||||
const list = reactive([
|
||||
{ label:'线索数量', num :0 },
|
||||
{ label:'线索转指令数量', num :0 },
|
||||
{ label:'关联群体数量', num :0 },
|
||||
{ label:'关联人员数量', num :0 },
|
||||
import { onMounted , ref} from "vue";
|
||||
const list = ref([
|
||||
{ label:'线索数量', num :0 ,type:'xs'},
|
||||
{ label:'线索转指令数量', num :0,type:'zlxx' },
|
||||
{ label:'关联群体数量', num :0 ,type:'zdqt'},
|
||||
{ label:'关联人员数量', num :0,type:'zdry' },
|
||||
])
|
||||
|
||||
const loading = ref(false)
|
||||
@ -34,7 +34,10 @@ function getDate (){
|
||||
delete params.dateRange;
|
||||
loading.value = true;
|
||||
qcckPost(params,'/mosty-gsxt/qbcj/getXscjTjForZs').then(res=>{
|
||||
pageData.tableData = res || [];
|
||||
for(let key in res){
|
||||
let index = list.value.findIndex(v=>v.type == key);
|
||||
if(index!= -1) list.value[index].num = res[key];
|
||||
}
|
||||
loading.value = false;
|
||||
}).catch(()=>{
|
||||
loading.value = false;
|
||||
|
||||
Reference in New Issue
Block a user