技术监督计划-实施问题详情

This commit is contained in:
zhujiyan
2024-05-22 11:00:42 +08:00
parent dd665ee6fe
commit c1919024f4
4 changed files with 96 additions and 25 deletions

View File

@@ -59,7 +59,12 @@ const planId: any = ref('')
const dictData = useDictData()
const dialogFormVisible = ref(false)
const tableRefs = ref()
//字典获取问题类型
const problemTypeList = dictData.getBasicData('problem_type')
//字典整改情况
const rectificationStatusList = dictData.getBasicData('rectification_type')
//字典问题等级
const problemLevelList = dictData.getBasicData('problem_level_type')
const effectTableStore = new TableStore({
url: '/supervision-boot/superProblem/pageProblem',
publicHeight: 65,
@@ -79,7 +84,7 @@ const effectTableStore = new TableStore({
title: '问题等级',
minWidth: 170,
formatter: (row: any) => {
return row.cellValue ? row.cellValue : '/'
return problemLevelList.filter(item => item.id === row.cellValue)[0]?.name
}
},
{
@@ -90,14 +95,33 @@ const effectTableStore = new TableStore({
return row.cellValue ? row.cellValue : '/'
}
},
{ field: 'problemType', title: '问题类型', minWidth: 170 },
{
field: 'problemType',
title: '问题类型',
minWidth: 170 ,
formatter: (row: any) => {
return problemTypeList.filter(item => item.id === row.cellValue)[0]?.name
}
},
{ field: 'rectificationMeasure', title: '整改措施', minWidth: 170 },
{ field: 'rectificationProgramme', title: '整改方案', minWidth: 170 },
{ field: 'rectificationStatus', title: '整改情况', minWidth: 170 },
{ field: 'rectificationTime', title: '整改时间', minWidth: 170 },
{
field: 'rectificationStatus',
title: '整改情况',
minWidth: 170 ,
formatter: (row: any) => {
return rectificationStatusList.filter(item => item.id === row.cellValue)[0]?.name
}
},
{
field: 'rectificationTime',
title: '整改时间',
minWidth: 170 ,
formatter: (row: any) => {
return row.cellValue.replace('T',' ')
}
},
{ field: 'remark', title: '备注', minWidth: 170 },
{ field: 'searchBeginTime', title: '开始时间', minWidth: 170 },
{ field: 'searchEndTime', title: '结束时间', minWidth: 170 },
{
title: '操作',
minWidth: 150,
@@ -120,6 +144,9 @@ const effectTableStore = new TableStore({
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled:row=>{
return true
},
click: row => {
handleEdit(row)
}
@@ -157,11 +184,11 @@ const close = () => {
//新增
const addFormRef=ref()
const addFormModel=()=>{
addFormRef.value.open()
addFormRef.value.open({},'add')
}
//详情
const handleDetail = (row: any) => {
console.log(row)
addFormRef.value.open(row,'detail')
}
//修改
const handleEdit = (row: any) => {