This commit is contained in:
2025-07-22 14:08:37 +08:00
parent 6d106674bd
commit 3c1c42a8c5
3 changed files with 15 additions and 12 deletions

View File

@ -72,8 +72,8 @@ import Search from "@/components/aboutTable/Search.vue";
import AddForm from "./components/addForm.vue";
import ZlForm from "./components/zlForm.vue";
import HbForm from "./components/hbForm.vue";
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
import { qcckGet } from "@/api/qcckApi.js";
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
const { proxy } = getCurrentInstance();
const {D_GS_ZDQT_FXDJ,D_GS_XS_ZLLX,D_GS_XS_CZZT,D_GS_XS_LY, D_BZ_SSZT,D_BZ_SF,D_GS_XS_LX ,D_GS_XS_QTLX,D_BZ_XB,D_BZ_XSSHZT} = proxy.$dict("D_GS_ZDQT_FXDJ","D_GS_XS_ZLLX","D_GS_XS_CZZT","D_GS_XS_LY","D_BZ_SSZT","D_BZ_SF","D_GS_XS_LX","D_GS_XS_QTLX","D_BZ_XB","D_BZ_XSSHZT"); //获取字典数据
const detailDiloag = ref();

View File

@ -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()
}

View File

@ -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;