From 24750339c41352b5d7046928ec9138d90130c2a6 Mon Sep 17 00:00:00 2001 From: 18652063575 Date: Mon, 7 Nov 2022 15:38:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=A1=B9=E7=9A=84=E4=BF=9D=E5=AD=98=E6=B7=BB=E5=8A=A0=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E9=98=B2=E6=8A=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/salaryItem/systemSalaryItemModal.js | 13 +++++++++---- pc4mobx/hrmSalary/stores/salaryItem.js | 3 +++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js b/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js index e75387e0..19caa266 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js @@ -31,7 +31,7 @@ export default class SystemSalaryItemModal extends React.Component { render() { const { salaryItemStore } = this.props; - const { sysListTableStore } = salaryItemStore; + const { sysListTableStore, saveLoading } = salaryItemStore; const { searchValue } = this.state; const handleAdd = () => { @@ -50,14 +50,19 @@ export default class SystemSalaryItemModal extends React.Component { }} style={{ width: "60vw" }} buttons={[ - + ]} >
{ this.handleSearchChange(value); }} diff --git a/pc4mobx/hrmSalary/stores/salaryItem.js b/pc4mobx/hrmSalary/stores/salaryItem.js index 96d60416..53727474 100644 --- a/pc4mobx/hrmSalary/stores/salaryItem.js +++ b/pc4mobx/hrmSalary/stores/salaryItem.js @@ -15,6 +15,7 @@ export class SalaryItemStore { @observable hasRight = true; // 判断用户是有权限查看当前页面: 没有权限渲染无权限页面,有权限渲染数据 @observable showSearchAd = false; // 高级搜索面板显示 @observable loading = true; // 数据加载状态 + @observable saveLoading = false; // 数据保存状态 @observable systemItemVisible = false; @observable deleteTableStore = new TableStore(); // 批量删除 @observable deleteItemVisible = false; // 删除Modal @@ -142,7 +143,9 @@ export class SalaryItemStore { message.warning("未选择任何条目"); return; } + this.saveLoading = true; API.saveSysItem(ids).then(res => { + this.saveLoading = false; if (res.status) { this.setSystemItemVisible(false); this.getTableDatas({});