diff --git a/src/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index.vue b/src/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index.vue index 1d9a6d6..5733f1a 100644 --- a/src/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index.vue +++ b/src/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index.vue @@ -49,13 +49,16 @@ @@ -92,7 +95,8 @@ import MyTable from "@/components/aboutTable/MyTable.vue"; import Pages from "@/components/aboutTable/Pages.vue"; import { qcckPost } from "@/api/qcckApi.js"; const { proxy } = getCurrentInstance(); -const { D_GS_ZDRFJ_SPZT, D_BZ_SF, D_GS_RQFJ_FXDJ, D_GS_RQFJ_FXLB } = proxy.$dict("D_GS_ZDRFJ_SPZT", "D_BZ_SF", "D_GS_RQFJ_FXDJ", "D_GS_RQFJ_FXLB"); //获取字典数据 +const { D_GS_ZDRFJ_SPZT, D_BZ_SF, D_GS_RQFJ_FXDJ, D_GS_RQFJ_FXLB } = + proxy.$dict("D_GS_ZDRFJ_SPZT", "D_BZ_SF", "D_GS_RQFJ_FXDJ", "D_GS_RQFJ_FXLB"); //获取字典数据 const btnsList = reactive(["是否重点人", "布控", "是否关注", "移交管控"]); const chooselx = ref(""); const isShow = ref(false); @@ -208,7 +212,7 @@ const chooseDataBottom = (val) => { if (Array.isArray(val)) { ids.value = val.map((item) => item.id); chooseList.value = val.filter((v) => { - if (v.sfZzdry != 1) return v; + if (v.sfZzdry == 1) return v; }); } else { if (!val.rySfzh) { @@ -217,8 +221,7 @@ const chooseDataBottom = (val) => { stepList.value = []; modelLoading.value = true; let params = { pageSize: 1000, pageNum: 1, yjRysfzh: val.rySfzh }; - qcckPost(params, "/mosty-jmxf/tbYjxx/getPageList") - .then((res) => { + qcckPost(params, "/mosty-jmxf/tbYjxx/getPageList").then((res) => { stepList.value = res.records || []; modelLoading.value = false; }) @@ -234,12 +237,9 @@ const chooseType = (val) => { if (ids.value.length == 0) return ElMessage.warning("请选择对应的数据"); switch (val) { case "布控": - proxy - .$confirm("确定要布控", "警告", { type: "warning" }) - .then(() => { + proxy.$confirm("确定要布控", "警告", { type: "warning" }).then(() => { let params = { ids: ids.value, sfbk: "1" }; - qcckPost(params, "/mosty-gsxt/tbGsxtRqfjRy/updateBySfbkpz").then( - (res) => { + qcckPost(params, "/mosty-gsxt/tbGsxtRqfjRy/updateBySfbkpz").then((res) => { ElMessage.success("布控成功"); getList(); }