diff --git a/src/views/data/PetitionComplaint.vue b/src/views/data/PetitionComplaint.vue index c7972cb..c3981a1 100644 --- a/src/views/data/PetitionComplaint.vue +++ b/src/views/data/PetitionComplaint.vue @@ -136,7 +136,7 @@ @@ -425,6 +425,8 @@ const getDataType =(val)=>{ case "24": key="案件核查"; break + default: + key="案件核查"; } return key; } @@ -439,18 +441,29 @@ function handleExport() { } async function handleDel(row) { await feedback.confirm("确定要删除该数据?"); - console.log('originId:row.originId,tableName:row.tableName',row.tableName) - await delDataThreadFun({originId:row.originId,tableName:row.tableName}); + console.log('originId:row.originId,tableName:row.tableName',row) + await delDataThreadFun({originId:row.originId,problemSourcesCode:row.problemSourcesCode?row.problemSourcesCode:'24'}); getList(); } const getDataTypeFun =(row)=>{ - if(row.tableName === 'gabxf'){ - return row.problemSourcesCode==='21'?'国家信访':'公安部信访'; - }else if(row.tableName ==='jzxx'){ - return '局长信箱'; - }else{ - return '案件核查'; + let key = null; + switch (row.problemSourcesCode){ + case "21": + key = '国家信访'; + break; + case "22": + key="公安部信访"; + break; + case "23": + key="局长信箱"; + break + case "24": + key="案件核查"; + break + default: + key="案件核查"; } + return key; }