Browse Source

add notice

tags/v1.0.0^2
zhangtao 2 years ago
parent
commit
5cccc7a3af
1 changed files with 15 additions and 24 deletions
  1. +15
    -24
      src/views/task-manage/question/index.vue

+ 15
- 24
src/views/task-manage/question/index.vue View File

@@ -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
}
})
}
)
}
}
)
}
}


Loading…
Cancel
Save