diff --git a/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue b/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue index 8e37f5b..fe0a28d 100644 --- a/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue +++ b/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue @@ -2,27 +2,70 @@
- + +
- + +
-
@@ -32,34 +75,72 @@ import CheckBox from "@/components/checkBox/index.vue"; import Search from "@/components/aboutTable/Search.vue"; import { qcckGet, qcckDelete } from "@/api/qcckApi.js"; -import { reactive, ref, onMounted, getCurrentInstance } from "vue"; +import { reactive, ref, onMounted, getCurrentInstance,watch } from "vue"; const { proxy } = getCurrentInstance(); -const { D_GS_RQFJ_FXDJ} = proxy.$dict("D_GS_RQFJ_FXDJ"); //获取字典数据 +const { D_SG_SJLY,D_SG_TSYPGZ} = proxy.$dict("D_SG_SJLY","D_SG_TSYPGZ"); //获取字典数据 const searchBox = ref(); //搜索框 const refBtn = ref(); +const show = ref(false) const listHeight = ref() const searchConfiger = ref([ - { - label: "管辖部门", - prop: "ssbm", - placeholder: "请选择管辖部门", - showType: "department" - }, + { label: "研判名称", prop: "ypMc", placeholder: "请输入研判名称", showType: "input" }, ]); const checkData = reactive({ - lxBtn:{ - hasChoose: ["警情"], - list: ["警情", "人力情报", "线索", "民警处置文本", "交通事故"] + sjlxBtn:{ + hasChoose: [], + list: [] }, - Btn:{ - hasChoose: ["人员"], - list: ["人员", "地点", "事件", "物品", "组织"] + yplxBtn:{ + hasChoose: [], + list: [] }, }); +const page = ref(1); +const total = ref(0) +const list = ref([]) +const loading = ref(false); +const formData = ref({}) +watch(()=>[D_SG_SJLY.value,D_SG_TSYPGZ.value],val=>{ + checkData.sjlxBtn.list = val[0].map(v=>v.zdmc); + checkData.yplxBtn.list = val[1].map(v=>v.zdmc); + checkData.yplxBtn.hasChoose = val[1].map(v=>v.zdmc); +},{immediate:true,deep:true}); + onMounted(()=>{ - tabHeightFn() + show.value = true; + getLits() + tabHeightFn(); }) + +const load = () =>{ + console.log('加载'); +} + + +const changeData_sjly = (val) =>{ + checkData.sjlxBtn.hasChoose = val; +} +const changeData_yplx = (val) =>{ + checkData.yplxBtn.hasChoose = val; +} + +const getLits = () =>{ + let params = { + pageCurrent:page.value, + pageSize:8 + } + loading.value = true; + qcckGet(params,'/mosty-gsxt/tsyp/selectPage').then(res=>{ + let arr = res.records || []; + list.value = page.value == 1 ? arr : list.value.concat(arr); + total.value = res.total; + loading.value = false; + }).catch(()=>{ + loading.value = false; + }) +} + // 表格高度计算 const tabHeightFn = () => { listHeight.value = window.innerHeight - searchBox.value.offsetHeight - refBtn.value.offsetHeight - 182; @@ -131,6 +212,10 @@ const tabHeightFn = () => { margin-bottom: 10px; } .cntlsit{ + display: flex; + flex-wrap: wrap; + align-content: start; + gap: 22px; overflow: hidden; overflow-y: auto; background: #fff;