【update】-联调、修改问题

This commit is contained in:
fengchenchen
2024-07-11 11:37:54 +08:00
parent 37079c9f35
commit 884b39f7d8
5 changed files with 11 additions and 14 deletions
@@ -214,7 +214,7 @@
<a @click="handleEditAccount(record)" :disabled="isAllowEditAccount(record)" v-has="'workingGroupMember:editAccount'">调账</a>
<a @click="handleEdit(record)" v-has="'workingGroupMember:edit'">编辑</a>
<a @click="handleDelete(record.id)" v-has="'workingGroupMember:delete'">删除</a>
<a @click="confirmVoucher(record.id)" v-has="'workingGroupMember:confirmVoucher'">确认凭证</a>
<a @click="confirmVoucher(record.id)" v-show="!record.confirmVoucher" v-has="'workingGroupMember:confirmVoucher'">确认凭证</a>
</span>
</a-table>
</div>
@@ -329,7 +329,7 @@ export default {
exportXlsUrl: '/project/payWorkingGroupSubitem/exportXls',
importExcelUrl: '/project/payWorkingGroupSubitem/importExcel',
downTemplateUrl: '/project/payWorkingGroupSubitem/downloadExcelModel',
// todo 需要进行修改
// 确认凭证
confirmVoucher: '/project/payWorkingGroupSubitem/confirmVoucher'
},
columns: [
@@ -679,14 +679,10 @@ export default {
getAction(that.url.confirmVoucher, {id: id}).then((res) => {
if (res.success) {
that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) {
that.ipagination.current -= 1
}
that.loadData()
} else {
if (res.message.indexOf('<br/>') > -1) {
that.messageLineFeed('删除失败', res.message)
that.messageLineFeed('确认凭证失败', res.message)
} else {
that.$message.warning(res.message)
}