wanggang 1 year ago
parent
commit
379e8b893b
  1. 10
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/compare/_compare.js

10
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

@ -419,14 +419,10 @@ export default {
} else {
result = method();
}
if (!result.errors) {
if (!result.data?.code || result.data.code === 200) {
if (reload) {
if (!result.errors && reload) {
pageModel.pageIndex = 1;
await load();
}
}
}
} catch (error) {
if (error === "cancel") {
ElMessage({
@ -552,7 +548,7 @@ export default {
{ method: config.edit.deleteMethod },
true
);
if (!result.data?.code || result.data.code === 200) {
if (!result.errors) {
pageModel.pageIndex = 1;
await reload();
}
@ -690,7 +686,7 @@ export default {
}
});
const result = await request(url, formData);
if (result.data?.code === 200) {
if (!result.errors) {
editFormloading.value = false;
dialogVisible.value = false;
await load();

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/compare/_compare.js

@ -64,11 +64,9 @@ export default function (type) {
delete data["downLineDateTime"];
const result = await request(url, data, { method: "POST" }, true);
if (!result.errors) {
if (!result.data?.code || result.data.code === 200) {
dialogVisable.value = false;
await load();
}
}
} catch (error) {
console.log(error);
} finally {

Loading…
Cancel
Save