diff --git a/src/views/backOfficeSystem/IntelligentControl/myControl/components/sendControl.vue b/src/views/backOfficeSystem/IntelligentControl/myControl/components/sendControl.vue index 1fe3ca7..52491d8 100644 --- a/src/views/backOfficeSystem/IntelligentControl/myControl/components/sendControl.vue +++ b/src/views/backOfficeSystem/IntelligentControl/myControl/components/sendControl.vue @@ -76,6 +76,10 @@ const submit = async () => { await qcckPost(formData, url); ElMessage.success(formData.id ? "编辑成功" : "新增成功"); close(); + // 触发父组件方法 + if (window.parent.updateList) { + window.parent.getList(); // 调用父组件方法 + } router.push("@/views/backOfficeSystem/IntelligentControl/myControl/index"); // qcckPost(formData, "/mosty-gsxt/tbGsxtBk/save").then((res) => { // router.push( diff --git a/src/views/backOfficeSystem/IntelligentControl/myControl/components/ui/approvalInfo.vue b/src/views/backOfficeSystem/IntelligentControl/myControl/components/ui/approvalInfo.vue index 92b810f..633c8f7 100644 --- a/src/views/backOfficeSystem/IntelligentControl/myControl/components/ui/approvalInfo.vue +++ b/src/views/backOfficeSystem/IntelligentControl/myControl/components/ui/approvalInfo.vue @@ -39,6 +39,17 @@ ref="elform" :rules="rules" > + + @@ -84,6 +95,8 @@ import DialogList from "@/views/backOfficeSystem/IntelligentControl/myControl/co import { qcckPost, qcckPut } from "@/api/qcckApi.js"; import MyTable from "@/components/aboutTable/MyTable.vue"; import { fa } from "element-plus/es/locale.mjs"; +import { selectUserDeptPage } from "@/api/user-manage"; + const { proxy } = getCurrentInstance(); const { D_GS_BK_CZJSDWLX, D_GS_BK_TJFS } = proxy.$dict( "D_GS_BK_CZJSDWLX", @@ -93,14 +106,19 @@ const listQuery = ref({}); //表单 const chooseUserVisible = ref(false); //审批流程 const roleIds = ref([]); //角色id let currentSelectedIndex = null; +const deptList = ref([]); //部门列表 const formData = ref([ { label: "处置接收单位", + prop: "czJsdwdm", + type: "slot" + }, + { + label: "处置接收单位类型", prop: "czJsdwlx", type: "select", options: D_GS_BK_CZJSDWLX }, - { label: "提交方式", prop: "bkTjfs", @@ -124,6 +142,21 @@ const step = ref([ { fqr: "发起人", fqbm: "发起部门", title: "审批确认", default: false } ]); +onMounted(() => { + getdepartmentList(); +}); +// 获取部门列表 +const getdepartmentList = () => { + selectUserDeptPage().then((res) => { + deptList.value = res?.records.map((item) => ({ + label: item.deptName, + value: item.deptId + })); + + console.log(deptList.value, D_GS_BK_CZJSDWLX); + // tableData.value = res?.records; + }); +}; // 处理选择的人员数据 const handleUserSelected = (userData) => { if (currentSelectedIndex !== null) { diff --git a/src/views/backOfficeSystem/IntelligentControl/myControl/index.vue b/src/views/backOfficeSystem/IntelligentControl/myControl/index.vue index 5f96292..d3f1e23 100644 --- a/src/views/backOfficeSystem/IntelligentControl/myControl/index.vue +++ b/src/views/backOfficeSystem/IntelligentControl/myControl/index.vue @@ -59,7 +59,9 @@ - +