修改我的布控编辑页面
This commit is contained in:
@ -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(
|
||||
|
@ -39,6 +39,17 @@
|
||||
ref="elform"
|
||||
:rules="rules"
|
||||
>
|
||||
<!-- 自定义插槽(人员标签) -->
|
||||
<template #czJsdwdm>
|
||||
<el-select v-model="listQuery.czJsdwdm" placeholder="请选择处置接收单位" style="width: 240px">
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</FormMessage>
|
||||
|
||||
<!-- 审批流程 -->
|
||||
@ -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) {
|
||||
|
Reference in New Issue
Block a user