干扰源接入问题修改

This commit is contained in:
zhujiyan
2024-05-28 11:01:50 +08:00
parent 72b729c55b
commit a5a7361eca
7 changed files with 574 additions and 557 deletions

View File

@@ -1,35 +1,40 @@
<template>
<div>
<TableHeader ref='TableHeaderRef'>
<TableHeader ref="TableHeaderRef">
<template #select>
<el-form-item label='工程名称'>
<el-input v-model='tableStore.table.params.searchValue' clearable></el-input>
<el-form-item label="工程名称">
<el-input v-model="tableStore.table.params.projectName" clearable></el-input>
</el-form-item>
<el-form-item label='所属地市'>
<el-select v-model='tableStore.table.params.city' clearable placeholder='请选择所属地市'>
<el-form-item label="所属地市">
<el-select v-model="tableStore.table.params.city" clearable placeholder="请选择所属地市">
<el-option
v-for='item in areaOptionList'
:key='item.id'
:label='item.name'
:value='item.id'
v-for="item in areaOptionList"
:key="item.id"
:label="item.name"
:value="item.name"
></el-option>
</el-select>
</el-form-item>
</template>
<template #operation>
<el-button icon='el-icon-Download' type='primary'>导出</el-button>
<!-- <el-button icon='el-icon-Download' type='primary'>导出</el-button> -->
</template>
</TableHeader>
<Table ref='tableRef' />
<Table ref="tableRef" />
</div>
<el-dialog title='干扰源用户详细信息' v-model='dialogVisible' width='85%'>
<BpmUserReportDetail :id='interId' style='max-height: 600px'></BpmUserReportDetail>
<el-dialog
title="干扰源用户详细信息"
v-model="dialogVisible"
width="65%"
:append-to-body="true"
:close-on-click-modal="false"
draggable
>
<BpmUserReportDetail :id="interId" ref="detailsRef"></BpmUserReportDetail>
</el-dialog>
</template>
<script setup lang='ts'>
<script setup lang="ts">
defineOptions({
name: 'supervision/interferenceUserTable'
})
@@ -52,6 +57,7 @@ const tableStore = new TableStore({
method: 'POST',
column: [
{ title: '序号', type: 'seq', width: 80 },
{ field: 'city', title: '所属地市', minWidth: 80 },
{ field: 'projectName', title: '工程名称', minWidth: 170 },
{
field: 'userType',
@@ -62,8 +68,7 @@ const tableStore = new TableStore({
return getUserTypeName(userType)
}
},
{ field: 'city', title: '所属地市', minWidth: 80 },
{ field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130 },
// { field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130 },
{
field: 'userStatus',
title: '用户状态',
@@ -125,7 +130,6 @@ const tableStore = new TableStore({
render: 'basicButton',
click: row => {
toFangAn(row.id, 1)
}
}
]
@@ -133,10 +137,12 @@ const tableStore = new TableStore({
],
beforeSearchFun: () => {
tableStore.table.params.city = tableStore.table.params.deptIndex
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
tableStore.table.params.relationUserName = tableStore.table.params.userName
}
})
tableStore.table.params.city = ''
tableStore.table.params.projectName = ''
tableStore.table.params.loadType = ''
tableStore.table.params.userName = ''
tableStore.table.params.relationUserName = ''
@@ -148,9 +154,10 @@ provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
const detailsRef = ref(null)
/** 打开弹窗 */
const open = async (id: string) => {
// detailsRef.value.open()
dialogVisible.value = true
interId.value = id
}
@@ -164,10 +171,8 @@ const toFangAn = (id: any, typeNo: number) => {
type: typeNo
}
})
}
/**获取用户性质*/
const getUserTypeName = (userType: any) => {
if (userType === 0) {