|
@ -391,17 +391,19 @@ const buttonTableClick = async (val, row) => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
} else if (val == 'mainPlanPub') { // 发布 |
|
|
} else if (val == 'mainPlanPub') { // 发布 |
|
|
await message.confirm('确认要发布吗?') |
|
|
await message.confirm('确认要发布吗?'); |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true; |
|
|
PreparetoissueMainApi.publish(row.masterId).then(() => { |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
try { |
|
|
tableObject.loading = false |
|
|
await PreparetoissueMainApi.publish(row.masterId); |
|
|
buttonBaseClick('refresh',null) |
|
|
message.success(t('common.updateSuccess')); |
|
|
PreparetoissueMainApi.generateIssueRequest(row.number) |
|
|
await PreparetoissueMainApi.generateIssueRequest(row.number); |
|
|
}).catch(err => { |
|
|
} catch (err) { |
|
|
tableObject.loading = false |
|
|
console.log(err); |
|
|
console.log(err) |
|
|
} finally { |
|
|
}) |
|
|
tableObject.loading = false; |
|
|
|
|
|
buttonBaseClick('refresh', null); |
|
|
|
|
|
} |
|
|
} else if (val == 'mainPlanRes') { // 重置 |
|
|
} else if (val == 'mainPlanRes') { // 重置 |
|
|
await message.confirm('确认要重置吗?') |
|
|
await message.confirm('确认要重置吗?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|