|
|
|
|
@ -342,7 +342,7 @@
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<div class="flex v-center"> |
|
|
|
|
<el-button type="primary" link @click="handleSamplingDetail(row)">查看详情</el-button> |
|
|
|
|
<el-button type="danger" link>删除</el-button> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -1613,8 +1613,10 @@ const getTaskType = (val) => {
|
|
|
|
|
return "日常督察"; |
|
|
|
|
} else if (val === 'testing_alcohol') { |
|
|
|
|
return "禁酒督察"; |
|
|
|
|
} else { |
|
|
|
|
} else if(val === 'selfexamination') { |
|
|
|
|
return "所队自查"; |
|
|
|
|
}else{ |
|
|
|
|
return "重点人员督察" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1700,6 +1702,27 @@ const peopleQuery = ref({
|
|
|
|
|
current: 1, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 数据导出 |
|
|
|
|
* */ |
|
|
|
|
const handleExport = async ()=>{ |
|
|
|
|
let data = Object.assign({},editData.value) |
|
|
|
|
delete data.samplingPolices |
|
|
|
|
delete data.startTime |
|
|
|
|
delete data.endTime |
|
|
|
|
if(!data.samplingTime){ |
|
|
|
|
delete data.samplingTime |
|
|
|
|
} |
|
|
|
|
if(data.samplingObjectList){ |
|
|
|
|
data.orgStr = |
|
|
|
|
data.samplingObjectList.map(s=>s.deptId).join(",") |
|
|
|
|
delete data.samplingObjectList |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
window.open(`${BASE_PATH}/sampling/export/samplingPoling?` + new URLSearchParams(data).toString()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 获取禁酒督察详情 |
|
|
|
|
async function handleTestingDetailShow(row) { |
|
|
|
|
testingDetailShow.value = true; |
|
|
|
|
|