+
)
} else {
return
{
- if ( e.keyCode == 13 && e.target.tagName === "INPUT") {
- staff.getTableInfo();
+ if (e.keyCode == 13 && e.target.tagName === "INPUT") {
+ staff.getTableInfo();
staff.setPanelStatus(false)
}
}}>{arr}
@@ -357,8 +389,8 @@ export default class Staff extends React.Component {
staff
} = this.props;
const {
- isPanelShow, form2, staffName, conditionNum, tableStore,nEdialogTitle,visible,condition,
- form,dialogLoading,isEdit,date,hasRight
+ isPanelShow, form2, staffName, conditionNum, tableStore, nEdialogTitle, visible, condition,
+ form, dialogLoading, isEdit, date, hasRight
} = staff;
if (hasRight === false) {
@@ -381,29 +413,32 @@ export default class Staff extends React.Component {
dropMenuDatas={this.getDropMenuDatas()}
onDropMenuClick={(e) => this.handleMenuClick(e)}
>
-
staff.setPanelStatus(bool)}
- hideSearchAd={() => staff.setPanelStatus(false)}
- searchsAd= {isPanelShow ? this.getPanelComponents() : }
- advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20}
- hasMask={false}
- buttonsAd={this.getTabBtn()}
- onSearch={() => staff.getTableInfo()}
- onSearchChange={val => this.onSearchChange(val)}
- />
- this.reRenderColumns(c)}
- onOperatesClick={(record, index, operate) => this.onOperatesClick(record, index, operate)}
- />
+
+
+ staff.setPanelStatus(bool)}
+ hideSearchAd={() => staff.setPanelStatus(false)}
+ searchsAd={isPanelShow ? this.getPanelComponents() : }
+ advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20}
+ hasMask={false}
+ buttonsAd={this.getTabBtn()}
+ onSearch={() => staff.getTableInfo()}
+ onSearchChange={val => this.onSearchChange(val)}
+ />
+ this.reRenderColumns(c)}
+ onOperatesClick={(record, index, operate) => this.onOperatesClick(record, index, operate)}
+ />
+
- this.handleSave()}
onCancel={() => staffScheme.setVisible(false)}
- enable={false} //是否开启字段联动
+ enable={true} //是否开启字段联动
+ bindChangeEnvent={val => staffScheme.updateConditions(val)}
/>
)
diff --git a/pc4mobx/organization/stores/department.js b/pc4mobx/organization/stores/department.js
index 1f6f10b..6c8497d 100644
--- a/pc4mobx/organization/stores/department.js
+++ b/pc4mobx/organization/stores/department.js
@@ -65,12 +65,14 @@ export class DepartmentStore {
@observable isMerge = true;
@observable hasRight = '';
+ @observable selectTreeNodeInfo;
+
@action
- getTableInfo(params) {
+ getTableInfo() {
this.setLoading(true);
- params = {
- ...params,
+ let params = {
+ ...this.selectTreeNodeInfo,
current: this.current,
pageSize: this.pageSize
}
@@ -106,8 +108,11 @@ export class DepartmentStore {
@action("nodetree事件")
doSearch(params) {
+ this.selectTreeNodeInfo = params;
+ this.setCurrent(1);
+ this.setPageSize(10);
this.setInit(true);
- this.getTableInfo(params);
+ this.getTableInfo();
}
@action("联查岗位")
@@ -371,7 +376,7 @@ export class DepartmentStore {
updateFields(val) {
this.form.updateFields({
- compName: {
+ departmentName: {
value: val
}
});
diff --git a/pc4mobx/organization/stores/fieldDefined.js b/pc4mobx/organization/stores/fieldDefined.js
index cc230f6..ae8839b 100644
--- a/pc4mobx/organization/stores/fieldDefined.js
+++ b/pc4mobx/organization/stores/fieldDefined.js
@@ -1,7 +1,7 @@
/**
* @Author: 程亮
* @Date: 2022-06-09 10:16:00
- * @LastEditTime: 2022-06-20 11:07:43
+ * @LastEditTime: 2022-06-23 09:58:27
* @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/stores/fieldDefined.js
*/
diff --git a/pc4mobx/organization/stores/job.js b/pc4mobx/organization/stores/job.js
index 853dd2a..1eb56c4 100644
--- a/pc4mobx/organization/stores/job.js
+++ b/pc4mobx/organization/stores/job.js
@@ -60,12 +60,14 @@ export class JobStore {
@observable companysId = 1
@observable hasRight = '';
+ @observable selectTreeNodeInfo;
+
@action
- getTableInfo(params) {
+ getTableInfo() {
this.setLoading(true);
- params = {
- ...params,
+ let params = {
+ ...this.selectTreeNodeInfo,
current: this.current,
pageSize: this.pageSize
}
@@ -101,8 +103,11 @@ export class JobStore {
@action("nodetree事件")
doSearch(params) {
+ this.selectTreeNodeInfo = params;
+ this.setCurrent(1);
+ this.setPageSize(10);
this.setInit(true);
- this.getTableInfo(params);
+ this.getTableInfo();
}
@action("联查人员")
diff --git a/pc4mobx/organization/stores/staff.js b/pc4mobx/organization/stores/staff.js
index be15286..e4e10df 100644
--- a/pc4mobx/organization/stores/staff.js
+++ b/pc4mobx/organization/stores/staff.js
@@ -46,7 +46,7 @@ export class StaffStore {
@observable date = '';
@observable hasRight = '';
@observable operateType = ''; //1 编辑 2 变更
-
+ @observable companysId = 1;
@action
diff --git a/pc4mobx/organization/stores/staffscheme.js b/pc4mobx/organization/stores/staffscheme.js
index adf62a4..84bc659 100644
--- a/pc4mobx/organization/stores/staffscheme.js
+++ b/pc4mobx/organization/stores/staffscheme.js
@@ -17,6 +17,9 @@ import {
import {
i18n
} from '../public/i18n';
+import {
+ findIndex
+} from 'lodash';
const toJS = mobx.toJS;
const {
@@ -216,6 +219,26 @@ export class StaffSchemeStore {
})
}
+ updateConditions(val) {
+ const timeStartValue = val+'-01-01';
+ const timeEndValue = val+'-12-31'
+ // const label = "年度"
+ // let item = findIndex(this.condition[0].items,{label});
+ this.form.updateFields({
+ timeStart: {
+ value: timeStartValue
+ }
+ });
+ this.form.updateFields({
+ timeEnd: {
+ value: timeEndValue
+ }
+ });
+
+
+
+ }
+
updateFields(val) {
this.form2.updateFields({
planName: {