diff --git a/src/views/data/PetitionComplaint.vue b/src/views/data/PetitionComplaint.vue index 211fc54..c7972cb 100644 --- a/src/views/data/PetitionComplaint.vue +++ b/src/views/data/PetitionComplaint.vue @@ -136,7 +136,7 @@ @@ -283,7 +283,7 @@
{{ - (activeRow.tableName === 'gabxf')?(activeRow.problemSourcesCode==='21'?'国家信访':'公安部信访'):'局长信箱' + getDataTypeFun(activeRow) }}
@@ -443,7 +443,15 @@ async function handleDel(row) { await delDataThreadFun({originId:row.originId,tableName:row.tableName}); getList(); } - +const getDataTypeFun =(row)=>{ + if(row.tableName === 'gabxf'){ + return row.problemSourcesCode==='21'?'国家信访':'公安部信访'; + }else if(row.tableName ==='jzxx'){ + return '局长信箱'; + }else{ + return '案件核查'; + } +} const activeNegativeId = ref(""); @@ -461,6 +469,10 @@ function handleDetail(row) { console.log(activeRow.value) detailShow.value = true; } +watch(()=>query.value.problemSourcesCode,(val)=>{ + query.value.problemSourcesCode=val; + getList(); +})