|
|
@ -259,7 +259,7 @@ const butttondata = (row,$index) => { |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainPlanOpe') { // 打开 |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.open(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.open(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -270,7 +270,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainPlanClo') { // 关闭 |
|
|
|
await message.confirm('确认要关闭吗?') |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.close(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.close(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -282,7 +282,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
|
await message.confirm('确认要提交审批吗?') |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.submit(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.submit(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -293,7 +293,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainPlanTur') { // 驳回 |
|
|
|
await message.confirm('确认要驳回吗?') |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.reject(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.reject(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -305,7 +305,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') |
|
|
|
await message.confirm('确认要审批通过吗?') |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.agree(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.agree(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -316,7 +316,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainPlanPub') { // 发布 |
|
|
|
await message.confirm('确认要发布吗?') |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.publish(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.publish(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -327,7 +327,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainPlanRes') { // 重置 |
|
|
|
await message.confirm('确认要重置吗?') |
|
|
|
tableObject.loading = true |
|
|
|
PreparetoissueMainApi.resetting(row.id).then(() => { |
|
|
|
PreparetoissueMainApi.resetting(row.masterId).then(() => { |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
tableObject.loading = false |
|
|
|
getList() |
|
|
@ -338,7 +338,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
handleDelete(row.masterId) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|