修改我的布控编辑页面
This commit is contained in:
@ -59,7 +59,9 @@
|
||||
<template #czYq="{ row }">
|
||||
<DictTag :tag="false" :value="row.czYq" :options="D_GS_BK_CZYQ" />
|
||||
</template>
|
||||
|
||||
<template #czJsdwdm="{ row }">
|
||||
<div>{{ deptList.find(item => item.id == row.czJsdwdm)?.label || '未知单位' }}</div>
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-button size="small" @click="editControl('edit', row)"
|
||||
@ -125,15 +127,24 @@ import DrawerAreaModel from "./components/drawerAreaModel.vue";
|
||||
|
||||
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
|
||||
import { selectUserDeptPage } from "@/api/user-manage";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_GS_BK_DJ, D_GS_BK_DX, D_GS_BK_ZT, D_GS_BK_SJLX, D_GS_BK_CZYQ } =
|
||||
proxy.$dict(
|
||||
"D_GS_BK_DJ",
|
||||
"D_GS_BK_DX",
|
||||
"D_GS_BK_ZT",
|
||||
"D_GS_BK_SJLX",
|
||||
"D_GS_BK_CZYQ"
|
||||
); //获取字典数据
|
||||
const {
|
||||
D_GS_BK_DJ,
|
||||
D_GS_BK_DX,
|
||||
D_GS_BK_ZT,
|
||||
D_GS_BK_SJLX,
|
||||
D_GS_BK_CZYQ,
|
||||
D_GS_BK_CZJSDWLX
|
||||
} = proxy.$dict(
|
||||
"D_GS_BK_DJ",
|
||||
"D_GS_BK_DX",
|
||||
"D_GS_BK_ZT",
|
||||
"D_GS_BK_SJLX",
|
||||
"D_GS_BK_CZYQ",
|
||||
"D_GS_BK_CZJSDWLX"
|
||||
); //获取字典数据
|
||||
const deptList = ref([]); //部门列表
|
||||
const detailDiloag = ref();
|
||||
const dialogVisible = ref(false);
|
||||
const searchBox = ref(); //搜索框
|
||||
@ -226,25 +237,40 @@ const pageData = reactive({
|
||||
tableColumn: [
|
||||
{ label: "布控级别", prop: "bkDj", showSolt: true },
|
||||
{ label: "布控标题", prop: "bkBt" },
|
||||
{ label: "布控对象", prop: "bkDx", showSolt: true },
|
||||
{ label: "布控对象信息", prop: "bkDxxx" },
|
||||
{ label: "预警标签模型", prop: "yjbqmx" },
|
||||
{ label: "布控范围", prop: "bkfw" },
|
||||
{ label: "预警信息", prop: "yjxx" },
|
||||
{ label: "处置接收单位", prop: "czjsdw" },
|
||||
// { label: "布控对象", prop: "bkDx", showSolt: true },
|
||||
// { label: "布控对象信息", prop: "bkDxxx" },
|
||||
// { label: "预警标签模型", prop: "yjbqmx" },
|
||||
// { label: "布控范围", prop: "bkfw" },
|
||||
// { label: "预警信息", prop: "yjxx" },
|
||||
{ label: "处置接收单位", prop: "czJsdwdm", showSolt: true },
|
||||
{ label: "处置要求", prop: "czYq", showSolt: true },
|
||||
{ label: "开始时间", prop: "bkSjKs" },
|
||||
{ label: "结束时间", prop: "bkSjJs" },
|
||||
{ label: "最近预警时间", prop: "zjyjsj" },
|
||||
// { label: "最近预警时间", prop: "zjyjsj" },
|
||||
{ label: "失效时间", prop: "bkSjSx" },
|
||||
{ label: "布控发起人", prop: "bkfqrXm" },
|
||||
{ label: "布控状态", prop: "bkZt", showSolt: true }
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
tabHeightFn();
|
||||
getdepartmentList();
|
||||
|
||||
});
|
||||
|
||||
// 获取部门列表
|
||||
const getdepartmentList = () => {
|
||||
selectUserDeptPage().then((res) => {
|
||||
deptList.value = res?.records.map((item) => ({
|
||||
label: item.deptName,
|
||||
value: item.deptId
|
||||
}));
|
||||
|
||||
});
|
||||
};
|
||||
const openDetail = (row) => {
|
||||
console.log(row);
|
||||
autoId.value = row.id;
|
||||
@ -317,8 +343,6 @@ const editControl = (type, row) => {
|
||||
sendControlRef.value.init(type, row);
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 涉及人数
|
||||
const personNum = () => {
|
||||
personNumRef.value.init();
|
||||
|
Reference in New Issue
Block a user