From 1ecca030f8b99023ae9be22c794b2ea76893dc86 Mon Sep 17 00:00:00 2001 From: jy <1052480693@qq.com> Date: Wed, 4 Jun 2025 18:23:31 +0800 Subject: [PATCH] =?UTF-8?q?feat=E2=9C=A8:=20=E5=AF=B9=E6=8E=A5=E9=87=87?= =?UTF-8?q?=E7=BA=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectCrculate/components/addForm.vue | 21 ++++-- .../CollectCrculate/index.vue | 67 ++++++++++++++++--- 2 files changed, 75 insertions(+), 13 deletions(-) diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue index 9cff06b..663b854 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue @@ -195,8 +195,8 @@ const formData = ref([ { label: "线索编号", prop: "xsBh", type: "input" }, { label: "线索类型", prop: "xsLx", type: "select", options: D_GS_XS_LX }, // { label: "线索来源", prop: "xsly", type: "input" }, - { label: "线索开始日期", prop: "xsRqKs", type: "datetime" }, - { label: "线索截止日期", prop: "xsRqJs", type: "datetime" }, + { label: "线索开始日期", prop: "xsRqKs", type: "date" }, + { label: "线索截止日期", prop: "xsRqJs", type: "date" }, { label: "指向地点", prop: "xsZxdd", type: "input" }, { label: "群体名称", prop: "xsQtmc", type: "input" }, { label: "群体类型", prop: "xsQtlx", type: "select", options: D_GS_ZDQT_LB }, @@ -227,14 +227,23 @@ const init = (type, row) => { dialogForm.value = true; title.value = type == "add" ? "新增" : "编辑"; if (row) getDataById(row.id); + if (row.sbRyId) getDataRyId(row.sbRyId); }; // 根据id查询详情 const getDataById = (id) => { - // qcckGet({}, '/mosty-gsxt/tbGsxtBqgl/'+id).then((res) => { - // listQuery.value = res; - // }); + qcckGet({}, "/mosty-gsxt/tbGsxtXs/selectVoById/" + id).then((res) => { + listQuery.value = res; + tableDate.bqList = listQuery.value.bqList; + }); }; +// 根据id查询详情 +const getDataRyId = (id) => { + qcckGet({}, "/mosty-gsxt/tbGsxtJwry/" + id).then((res) => { + tableDate.ryList = [res]; + listQuery.value.sbRyId = res.id; + }); +}; // 提交 const submit = () => { elform.value.submit((data) => { @@ -295,6 +304,8 @@ const handleTagSelect = (selectedTags) => { // 关闭 const close = () => { listQuery.value = {}; + tableDate.bqList = []; + tableDate.ryList = []; dialogForm.value = false; loading.value = false; }; diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue index 1ece06b..0f585fb 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue @@ -34,16 +34,35 @@ :controlsWidth="pageData.controlsWidth" @chooseData="chooseData" > + + + + + @@ -60,6 +79,15 @@ + + 是否采纳该条数据 + + @@ -84,7 +112,8 @@ const { D_GS_XS_LY, D_GS_XS_FXDJ, D_GS_ZDQT_LB, D_GS_XS_CZZT, D_GS_XS_ZT } = const dialogTitle = ref("新增信息"); //弹窗标题 const detailDiloag = ref(); const searchBox = ref(); //搜索框 - +const dialogVisible = ref(false); +const transferClueId = ref(); const searchConfiger = ref([ { label: "线索名称", @@ -196,20 +225,24 @@ const pageData = reactive({ { label: "线索编号", prop: "xsBh" }, { label: "线索名称", prop: "xsMc" }, // { label: "线索类型", prop: "xsQtlx", options: D_GS_ZDQT_LB }, - { label: "线索来源", prop: "xsLy", options: D_GS_XS_LY }, - { label: "风险等级", prop: "xsFxdj", options: D_GS_XS_FXDJ }, + { label: "线索来源", prop: "xsLy", showSolt: true }, + { label: "风险等级", prop: "xsFxdj", showSolt: true }, { label: "开始时间", prop: "startTime" }, { label: "结束时间", prop: "endTime" }, { label: "指向地点", prop: "xsZxdd" }, { label: "线索内容", prop: "xsNr" }, - { label: "群体类型", prop: "xsQtlx", options: D_GS_ZDQT_LB }, + { label: "群体类型", prop: "xsQtlx", showSolt: true }, { label: "群体名称", prop: "xsQtmc" }, { label: "上报单位", prop: "sbDwMc" }, { label: "上报时间", prop: "sbSj" }, { label: "涉及人数", prop: "xsSjrs" }, { label: "附件", prop: "xsFj" }, - { label: "处置状态", prop: "xsZtCz", options: D_GS_XS_CZZT }, - { label: "状态", prop: "xsZt", options: D_GS_XS_ZT } + { + label: "处置状态", + prop: "xsZtCz", + showSolt: true + }, + { label: "状态", prop: "xsZt", showSolt: true } ] }); @@ -233,6 +266,24 @@ const onSearch = (val) => { getList(); }; +//采纳 +const transferClue = (row) => { + dialogVisible.value = true; + transferClueId.value = row.id; +}; + +const submitClue = () => { + dialogVisible.value = false; + qcckGet({}, "/mosty-gsxt/tbGsxtXs/adopt/" + transferClueId.value) + .then((res) => { + proxy.$message({ type: "success", message: "采纳成功" }); + getList(); + transferClueId.value = ""; + }) + .catch(() => { + transferClueId.value = ""; + }); +}; const changeNo = (val) => { pageData.pageConfiger.pageNum = val; getList();