diff --git a/src/components/MyComponents/Date/index.vue b/src/components/MyComponents/Date/index.vue index 0b3582c..352b1c7 100644 --- a/src/components/MyComponents/Date/index.vue +++ b/src/components/MyComponents/Date/index.vue @@ -1,6 +1,6 @@ @@ -13,6 +13,10 @@ const props = defineProps({ default: "请填写", type: String }, + format:{ + default: "YYYY-MM-DD", + type: String + }, modelValue: { default: "", type: String diff --git a/src/views/backOfficeSystem/DeploymentDisposal/mpvPeo/index.vue b/src/views/backOfficeSystem/DeploymentDisposal/mpvPeo/index.vue index 83b29d4..d0d8fac 100644 --- a/src/views/backOfficeSystem/DeploymentDisposal/mpvPeo/index.vue +++ b/src/views/backOfficeSystem/DeploymentDisposal/mpvPeo/index.vue @@ -28,20 +28,43 @@ - +
- +
- 取消 - 分配 + 取消 + 分配
- 转线索 - 移交管控 + 转线索 + 移交管控 @@ -176,9 +199,25 @@ }" /> - + - + @@ -192,8 +231,8 @@ import MyTable from "@/components/aboutTable/MyTable.vue"; import Pages from "@/components/aboutTable/Pages.vue"; import Search from "@/components/aboutTable/Search.vue"; import AddForm from "./components/addForm.vue"; -import { qcckGet,qcckPost } from "@/api/qcckApi.js"; -import { reactive, ref, onMounted, getCurrentInstance,nextTick } from "vue"; +import { qcckGet, qcckPost } from "@/api/qcckApi.js"; +import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue"; const { proxy } = getCurrentInstance(); const { D_GS_ZDR_RYJB, @@ -211,7 +250,7 @@ const { D_BZ_SF, D_GS_XS_LY, D_BZ_SSZT, - D_GS_XS_LX, + D_GS_XS_LX, D_GS_XS_QTLX } = proxy.$dict( "D_GS_ZDR_RYJB", @@ -229,8 +268,8 @@ const { "D_BZ_SF", "D_GS_XS_LY", "D_BZ_SSZT", - 'D_GS_XS_LX', - 'D_GS_XS_QTLX' + "D_GS_XS_LX", + "D_GS_XS_QTLX" ); const obj = ref({ fpmc: "" @@ -357,7 +396,8 @@ const chooseData = (data) => { }; // 选择申请数据数据 const handleApplication = () => { - if (ids.value.length === 0) return ElMessage.error("请先选择需要布控的重点人"); + if (ids.value.length === 0) + return ElMessage.error("请先选择需要布控的重点人"); qcckPost({ ids: ids.value }, "/mosty-gsxt/tbGsxtZdry/addBksq") .then(() => { ElMessage.success("申请成功"); @@ -375,38 +415,47 @@ const handleUserSelected = (val) => { }; const handlefp = () => { - if (ids.value.length === 0) return ElMessage.error("请先选择需要布控的重点人"); - qcckPost({ ids: ids.value, uid: obj.value.fpid },"/mosty-gsxt/tbGsxtZdry/addGkmj").then(() => { - ElMessage.success("分配成功"); - visible.value = false; - visiblefp.value = false; - getList(); - }).catch(() => { - ElMessage.error("分配失败"); - }); + if (ids.value.length === 0) + return ElMessage.error("请先选择需要布控的重点人"); + qcckPost( + { ids: ids.value, uid: obj.value.fpid }, + "/mosty-gsxt/tbGsxtZdry/addGkmj" + ) + .then(() => { + ElMessage.success("分配成功"); + visible.value = false; + visiblefp.value = false; + getList(); + }) + .catch(() => { + ElMessage.error("分配失败"); + }); }; // 移交管控 const handleMove = () => { - if (ids.value.length === 0) return ElMessage.error("请先选择需要移交管控的重点群体"); + if (ids.value.length === 0) + return ElMessage.error("请先选择需要移交管控的重点群体"); proxy.$confirm("是否确定移交?", "警告", { type: "warning" }).then(() => { - qcckPost({ ids: ids.value }, "/mosty-gsxt/tbGsxtZdry/addSfyj").then(() => { - ElMessage.success("移交管控成功"); - getList(); - }).catch(() => { - ElMessage.error("移交管控失败"); - }); - }) + qcckPost({ ids: ids.value }, "/mosty-gsxt/tbGsxtZdry/addSfyj") + .then(() => { + ElMessage.success("移交管控成功"); + getList(); + }) + .catch(() => { + ElMessage.error("移交管控失败"); + }); + }); }; const handleZxs = () => { - if (ids.value.length === 0) return ElMessage.error("请先选择需要转线索的重点群体"); + if (ids.value.length === 0) + return ElMessage.error("请先选择需要转线索的重点群体"); showzxs.value = true; nextTick(() => { zxsDilof.value.init(choosList.value); }); }; - diff --git a/src/views/backOfficeSystem/IntelligentControl/myControl/components/addPeo.vue b/src/views/backOfficeSystem/IntelligentControl/myControl/components/addPeo.vue index f96ac19..dac6d56 100644 --- a/src/views/backOfficeSystem/IntelligentControl/myControl/components/addPeo.vue +++ b/src/views/backOfficeSystem/IntelligentControl/myControl/components/addPeo.vue @@ -1,7 +1,7 @@