|
|
@@ -133,31 +133,22 @@ export default { |
|
|
|
const res = await questionAnalyze(props.data.id) |
|
|
|
if (res.code === 0) { |
|
|
|
const { confirm, notreviewed } = res.data |
|
|
|
if (notreviewed === 0) { |
|
|
|
await generateReport(props.data.id) |
|
|
|
.then(res => { |
|
|
|
if (res.code === 0) { |
|
|
|
data.isReported = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
$dialog.confirm( |
|
|
|
{ |
|
|
|
type: 'success', |
|
|
|
title: '提示', |
|
|
|
showIcon: false, |
|
|
|
content: `已核实${confirm}条,未核实${notreviewed}条,是否提交并生成报告?`, |
|
|
|
confirm: () => { |
|
|
|
generateReport(props.data.id) |
|
|
|
.then(res => { |
|
|
|
if (res.code === 0) { |
|
|
|
data.isReported = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
$dialog.confirm( |
|
|
|
{ |
|
|
|
type: 'success', |
|
|
|
title: '提示', |
|
|
|
showIcon: false, |
|
|
|
content: `已核实${confirm}条,未核实${notreviewed}条,是否提交并生成报告?`, |
|
|
|
confirm: () => { |
|
|
|
generateReport(props.data.id) |
|
|
|
.then(res => { |
|
|
|
if (res.code === 0) { |
|
|
|
data.isReported = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|