更新页面
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="titleBox">
|
||||
<PageTitle title="我的布控" />
|
||||
<PageTitle title="我的布控">
|
||||
<el-button type="primary" @click="sendControl('add',null)">发起布控</el-button>
|
||||
<el-button type="primary">导出</el-button>
|
||||
</PageTitle>
|
||||
</div>
|
||||
<!-- 搜索 -->
|
||||
<div ref="searchBox">
|
||||
@ -9,11 +12,6 @@
|
||||
</div>
|
||||
<!-- 按钮组 -->
|
||||
<div class="content">
|
||||
<div class="btns">
|
||||
<el-button type="primary" @click="sendControl">发起布控</el-button>
|
||||
<el-button type="primary">导出</el-button>
|
||||
<el-button type="danger">批量删除</el-button>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div class="tabBox">
|
||||
<MyTable
|
||||
@ -30,6 +28,9 @@
|
||||
<template #bkDj="{ row }">
|
||||
<DictTag :tag="false" :value="row.bkDj" :options="D_GS_BK_DJ" />
|
||||
</template>
|
||||
<template #bkDx="{ row }">
|
||||
<DictTag :tag="false" :value="row.bkDx" :options="D_GS_BK_DX" />
|
||||
</template>
|
||||
<template #bkDxxx="{ row }">
|
||||
<span v-if="row.bkDxxx"><span v-for="(it,idx) in row.bkDxxx" :key="idx"> {{ it.ryXm }} 、</span></span>
|
||||
<span v-else>暂无</span>
|
||||
@ -46,9 +47,9 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link type="primary" size="small" @click="handleRow('edit', row)">编辑</el-link>
|
||||
<el-link type="primary" size="small" @click="sendControl('detail',row)">详情</el-link>
|
||||
<el-link type="primary" size="small">续控</el-link>
|
||||
<el-link type="danger" size="small" @click="handleRow('delete', row)">删除</el-link>
|
||||
<el-link type="danger" size="small" @click="handleRow(row.id)">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||
@ -59,7 +60,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 布控对象 -->
|
||||
<AddBkdx ref="addBkdxForm" :dic="{D_GS_BK_DX,D_GS_BK_BKYS,D_BZ_XB,D_GS_BK_CZYQ,D_GS_BK_DJ,D_GS_BK_CZJSDWLX,D_GS_BK_TJFS}" />
|
||||
<AddBkdx ref="addBkdxForm" @change="getList" :dic="{D_GS_BK_DX,D_GS_BK_BKYS,D_BZ_XB,D_GS_BK_CZYQ,D_GS_BK_DJ,D_GS_BK_CZJSDWLX,D_GS_BK_TJFS}" />
|
||||
<!-- 预警弹窗 -->
|
||||
<YjDialog ref="warningkdxForm"></YjDialog>
|
||||
</template>
|
||||
@ -127,7 +128,7 @@ const pageData = reactive({
|
||||
tableColumn: [
|
||||
{ label: "布控级别", prop: "bkDj", showSolt: true },
|
||||
{ label: "布控标题", prop: "bkBt" },
|
||||
{ label: "布控对象", prop: "bkDx" },
|
||||
{ label: "布控对象", prop: "bkDx",showSolt: true },
|
||||
{ label: "布控对象信息", prop: "bkDxxx",showSolt: true },
|
||||
{ label: "布控范围", prop: "qyList", showSolt: true },
|
||||
{ label: "涉及人数", prop: "sjrs",showSolt: true },
|
||||
@ -182,17 +183,27 @@ const openWarning = (val) =>{
|
||||
warningkdxForm.value.init(val)
|
||||
}
|
||||
|
||||
const sendControl = () => {
|
||||
addBkdxForm.value.init();
|
||||
const sendControl = (type,row) => {
|
||||
addBkdxForm.value.init(type,row);
|
||||
};
|
||||
|
||||
// 删除
|
||||
const handleRow = (id) => {
|
||||
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||
qcckDelete({}, "/mosty-gsxt/tbGsxtBk/"+id).then(() => {
|
||||
proxy.$message({ type: "success", message: "删除成功" });
|
||||
getList();
|
||||
});
|
||||
})
|
||||
};
|
||||
|
||||
// 表格高度计算
|
||||
const tabHeightFn = () => {
|
||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 292;
|
||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 270;
|
||||
window.onresize = function () {
|
||||
tabHeightFn();
|
||||
};
|
||||
};
|
||||
</script>
|
||||
};</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.el-loading-mask {
|
||||
|
Reference in New Issue
Block a user