commit
58b99e41ff
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @Author: 程亮
|
||||
* @Date: 2022-05-18 16:23:32
|
||||
* @LastEditTime: 2022-06-06 14:21:43
|
||||
* @LastEditTime: 2022-06-07 16:39:25
|
||||
* @Description:
|
||||
* @FilePath: /trunk/src4js/pc4mobx/organization/components/company/company.js
|
||||
*/
|
||||
|
|
@ -41,7 +41,7 @@ import '../../style/common.less';
|
|||
import NewTableDialog from '../NewTableDialog';
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import NewWeaTable from '../NewWeaTableDialog';
|
||||
import { renderLoading } from '../../util'; // 从util文件引入公共的方法
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
||||
|
|
@ -396,9 +396,13 @@ export default class Company extends React.Component {
|
|||
const {
|
||||
isPanelShow, companyName, conditionNum, visible, condition, form,
|
||||
tableStore, dataSource, columns, loading, date, nEdialogTitle, dialogLoading,
|
||||
form1, isEdit, newVisible, deptDataSource, deptColumns, selectedRowKeys, total, current, pageSize, init
|
||||
form1, isEdit, newVisible, deptDataSource, deptColumns, selectedRowKeys, total, current, pageSize, init,hasRight
|
||||
} = company;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
const rowSelection = {
|
||||
type: "checkbox",
|
||||
onChange(selectedRowKeys, selectedRows) {
|
||||
|
|
@ -426,7 +430,7 @@ export default class Company extends React.Component {
|
|||
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @Author: 程亮
|
||||
* @Date: 2022-06-02 09:19:37
|
||||
* @LastEditTime: 2022-06-06 19:32:11
|
||||
* @LastEditTime: 2022-06-07 16:15:54
|
||||
* @Description:
|
||||
* @FilePath: /trunk/src4js/pc4mobx/organization/components/department/department.js
|
||||
*/
|
||||
|
|
@ -40,6 +40,7 @@
|
|||
} from '../../public/i18n';
|
||||
|
||||
import '../../style/common.less';
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import NewTableDialog from '../NewTableDialog';
|
||||
|
|
@ -526,8 +527,12 @@
|
|||
isPanelShow, departmentName, conditionNum, visible, condition, form,
|
||||
tableStore, dataSource, columns, loading, date, nEdialogTitle, dialogLoading,
|
||||
form1, isEdit, newVisible, jobDataSource, jobColumns, selectedRowKeys, total, current, pageSize, init,
|
||||
defaultShowLeft,confirmVisible,confirmLoading,postionDataSource,postionColumns,isMerge
|
||||
defaultShowLeft,confirmVisible,confirmLoading,postionDataSource,postionColumns,isMerge,hasRight
|
||||
} = department;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
const rowSelection = {
|
||||
type:"checkbox",
|
||||
|
|
@ -556,7 +561,7 @@
|
|||
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @Author: 程亮
|
||||
* @Date: 2022-05-26 14:05:59
|
||||
* @LastEditTime: 2022-06-02 15:51:37
|
||||
* @LastEditTime: 2022-06-07 16:44:49
|
||||
* @Description:
|
||||
* @FilePath: /trunk/src4js/pc4mobx/organization/components/job/Job.js
|
||||
*/
|
||||
|
|
@ -42,7 +42,7 @@ import '../../style/common.less';
|
|||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import NewWeaTableDialog from '../NewWeaTableDialog';
|
||||
import { renderLoading } from '../../util'; // 从util文件引入公共的方法
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
||||
|
|
@ -487,9 +487,14 @@ export default class Job extends React.Component {
|
|||
isPanelShow, jobName, conditionNum, visible, condition, form,
|
||||
tableStore, dataSource, columns, loading, date, nEdialogTitle, dialogLoading,
|
||||
form1, isEdit, newVisible,selectedRowKeys, total, current, pageSize, init,
|
||||
defaultShowLeft,form2
|
||||
defaultShowLeft,form2,hasRight
|
||||
} = job;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
|
||||
const rowSelection = {
|
||||
onChange(selectedRowKeys, selectedRows) {
|
||||
job.setSelectedRowKeys(selectedRowKeys);
|
||||
|
|
@ -516,7 +521,7 @@ export default class Job extends React.Component {
|
|||
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ import {
|
|||
import { Row, Col, Spin, Modal, Button, message, Switch } from "antd";
|
||||
import { WeaSwitch, WeaTableNew } from "comsMobx";
|
||||
import "./index.less";
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
const confirm = Modal.confirm;
|
||||
const WeaTable = WeaTableNew.WeaTable;
|
||||
|
|
@ -58,7 +60,7 @@ export default class OfficeManage extends Component {
|
|||
|
||||
handleMenuClick = (key) => {
|
||||
const { officeManageStore } = this.props;
|
||||
const { isPanelShow,tableStore} = officeManageStore;
|
||||
const { isPanelShow, tableStore } = officeManageStore;
|
||||
isPanelShow && officeManageStore.setPanelStatus(false);
|
||||
switch (key) {
|
||||
case "new":
|
||||
|
|
@ -248,11 +250,11 @@ export default class OfficeManage extends Component {
|
|||
const {
|
||||
officeManageStore
|
||||
} = this.props, {
|
||||
tableStore,
|
||||
tableStore,
|
||||
} = officeManageStore;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
getPanelComponents = () => {
|
||||
const { officeManageStore } = this.props;
|
||||
|
|
@ -266,24 +268,21 @@ export default class OfficeManage extends Component {
|
|||
c.items.map((field, index) => {
|
||||
arr.push(
|
||||
<Col
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_Col@4cc308@${index}`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_Col@4cc308@${index}`}
|
||||
span={index % 2 == 0 ? 10 : 11}
|
||||
offset={1}>
|
||||
<div style={{ marginTop: 20 }}>
|
||||
<WeaFormItem
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_WeaFormItem@u6ex85@${index}`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_WeaFormItem@u6ex85@${index}`}
|
||||
label={`${field.label}`}
|
||||
labelCol={{ span: `${field.labelcol}` }}
|
||||
wrapperCol={{ span: `${field.fieldcol}` }}>
|
||||
{
|
||||
<WeaSwitch
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_WeaSwitch@p7d3td@${index}`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_WeaSwitch@p7d3td@${index}`}
|
||||
fieldConfig={field}
|
||||
form={form2}
|
||||
formParams={formParams}
|
||||
|
|
@ -300,9 +299,8 @@ export default class OfficeManage extends Component {
|
|||
return (
|
||||
<div className="hrm-loading-center-small" style={{ top: "25%" }}>
|
||||
<Spin
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_Spin@lbktzb`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_Spin@lbktzb`}
|
||||
spinning={searchConditionLoading}></Spin>
|
||||
</div>
|
||||
);
|
||||
|
|
@ -370,24 +368,28 @@ export default class OfficeManage extends Component {
|
|||
condition,
|
||||
form,
|
||||
dialogLoading,
|
||||
hasRight
|
||||
} = officeManageStore;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="office-wapper">
|
||||
hasRight && <div className="office-wapper">
|
||||
<WeaLeftRightLayout
|
||||
isNew={true}
|
||||
leftWidth={310}
|
||||
leftCom={<LeftTree />}
|
||||
onCollapse={(showLeft) => console.log("showLeft:", showLeft)}>
|
||||
<WeaRightMenu
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_WeaRightMenu@cea97d`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_WeaRightMenu@cea97d`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={(key) => this.handleMenuClick(key)}>
|
||||
<WeaTop
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_WeaTop@446d12`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_WeaTop@446d12`}
|
||||
title={i18n.label.officeName()}
|
||||
icon={<i className="icon-coms-hrm" />}
|
||||
iconBgcolor="#217346"
|
||||
|
|
@ -397,9 +399,8 @@ export default class OfficeManage extends Component {
|
|||
dropMenuDatas={this.getDropMenuDatas()}
|
||||
onDropMenuClick={(e) => this.handleMenuClick(e)}>
|
||||
<WeaTab
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_WeaTab@39c727`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_WeaTab@39c727`}
|
||||
searchType={["base", "advanced"]}
|
||||
showSearchAd={isPanelShow}
|
||||
searchsBaseValue={
|
||||
|
|
@ -421,9 +422,8 @@ export default class OfficeManage extends Component {
|
|||
onSearchChange={(val) => this.onSearchChange(val)}
|
||||
/>
|
||||
<WeaTable
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_WeaTable@b43a4c`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_WeaTable@b43a4c`}
|
||||
comsWeaTableStore={tableStore}
|
||||
hasOrder={true}
|
||||
needScroll={true}
|
||||
|
|
@ -442,9 +442,8 @@ export default class OfficeManage extends Component {
|
|||
/>
|
||||
</WeaTop>
|
||||
<NewAndEditDialog
|
||||
ecId={`${
|
||||
(this && this.props && this.props.ecId) || ""
|
||||
}_NewAndEditDialog@q4rrwm`}
|
||||
ecId={`${(this && this.props && this.props.ecId) || ""
|
||||
}_NewAndEditDialog@q4rrwm`}
|
||||
title={nEdialogTitle}
|
||||
visible={visible}
|
||||
condition={toJS(condition)}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
||||
|
|
@ -360,12 +361,15 @@ export default class JobGrade extends React.Component {
|
|||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, gradeName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,selectedKey,topTab,topTabCount,date
|
||||
form,dialogLoading,isEdit,selectedKey,topTab,topTabCount,date,hasRight
|
||||
} = jobGrade;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
const toJS = mobx.toJS;
|
||||
|
|
@ -225,18 +225,18 @@ export default class JobLevel extends React.Component {
|
|||
let _this = this;
|
||||
columns.forEach((c, index) => {
|
||||
if (c.dataIndex == 'forbidden_tag') {
|
||||
c.render = function(text, record) {
|
||||
return <Switch defaultChecked={record.forbidden_tag == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked,record.id)} />
|
||||
c.render = function (text, record) {
|
||||
return <Switch defaultChecked={record.forbidden_tag == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
||||
}
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
updateForbiddenTag(checked,id) {
|
||||
updateForbiddenTag(checked, id) {
|
||||
const {
|
||||
jobLevel
|
||||
} = this.props;
|
||||
jobLevel.updateForbiddenTag(checked,id);
|
||||
jobLevel.updateForbiddenTag(checked, id);
|
||||
}
|
||||
|
||||
onOperatesClick(record, rowIndex, operate) {
|
||||
|
|
@ -262,7 +262,7 @@ export default class JobLevel extends React.Component {
|
|||
const {
|
||||
jobLevel
|
||||
} = this.props;
|
||||
|
||||
|
||||
jobLevel.setNeDialogTitle(i18n.label.editJobLevel());
|
||||
jobLevel.setLevelId(id);
|
||||
jobLevel.setIsNew(false);
|
||||
|
|
@ -309,29 +309,29 @@ export default class JobLevel extends React.Component {
|
|||
|
||||
isFormInit && searchCondition.map(c => {
|
||||
c.items.map((field, index) => {
|
||||
arr.push(<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@4cc308@${index}`} span={(index%2 == 0) ? 10 : 11} offset={1}>
|
||||
<div style={{marginTop: 20}}>
|
||||
<WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@u6ex85@${index}`}
|
||||
label={`${field.label}`}
|
||||
labelCol={{span: `${field.labelcol}`}}
|
||||
wrapperCol={{span: `${field.fieldcol}`}}>
|
||||
{<WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@p7d3td@${index}`} fieldConfig={field} form={form2} formParams={formParams} />}
|
||||
</WeaFormItem>
|
||||
</div>
|
||||
</Col>)
|
||||
arr.push(<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@4cc308@${index}`} span={(index % 2 == 0) ? 10 : 11} offset={1}>
|
||||
<div style={{ marginTop: 20 }}>
|
||||
<WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@u6ex85@${index}`}
|
||||
label={`${field.label}`}
|
||||
labelCol={{ span: `${field.labelcol}` }}
|
||||
wrapperCol={{ span: `${field.fieldcol}` }}>
|
||||
{<WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@p7d3td@${index}`} fieldConfig={field} form={form2} formParams={formParams} />}
|
||||
</WeaFormItem>
|
||||
</div>
|
||||
</Col>)
|
||||
})
|
||||
})
|
||||
|
||||
if (searchConditionLoading) {
|
||||
return (
|
||||
<div className='hrm-loading-center-small' style={{top:'25%'}}>
|
||||
<div className='hrm-loading-center-small' style={{ top: '25%' }}>
|
||||
<Spin ecId={`${this && this.props && this.props.ecId || ''}_Spin@lbktzb`} spinning={searchConditionLoading}></Spin>
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
return <Row ecId={`${this && this.props && this.props.ecId || ''}_Row@ppeb6z`} onKeyDown={(e) => {
|
||||
if ( e.keyCode == 13 && e.target.tagName === "INPUT") {
|
||||
jobLevel.getTableInfo();
|
||||
if (e.keyCode == 13 && e.target.tagName === "INPUT") {
|
||||
jobLevel.getTableInfo();
|
||||
jobLevel.setPanelStatus(false)
|
||||
}
|
||||
}}>{arr}</Row>
|
||||
|
|
@ -356,13 +356,16 @@ export default class JobLevel extends React.Component {
|
|||
jobLevel
|
||||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, levelName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,selectedKey,topTab,topTabCount,date
|
||||
isPanelShow, form2, levelName, conditionNum, tableStore, nEdialogTitle, visible, condition,
|
||||
form, dialogLoading, isEdit, selectedKey, topTab, topTabCount, date, hasRight
|
||||
} = jobLevel;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
@ -389,7 +392,7 @@ export default class JobLevel extends React.Component {
|
|||
searchsBaseValue={this.isEmptyObject(form2.getFormParams()) ? levelName : form2.getFormParams().levelName}
|
||||
setShowSearchAd={bool => jobLevel.setPanelStatus(bool)}
|
||||
hideSearchAd={() => jobLevel.setPanelStatus(false)}
|
||||
searchsAd= {isPanelShow ? this.getPanelComponents() : <div></div>}
|
||||
searchsAd={isPanelShow ? this.getPanelComponents() : <div></div>}
|
||||
advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20}
|
||||
hasMask={false}
|
||||
buttonsAd={this.getTabBtn()}
|
||||
|
|
@ -405,7 +408,7 @@ export default class JobLevel extends React.Component {
|
|||
/>
|
||||
</WeaTop>
|
||||
</WeaRightMenu>
|
||||
<NewAndEditDialog ecId={`${this && this.props && this.props.ecId || ''}_NewAndEditDialog@q4rrwm`}
|
||||
<NewAndEditDialog ecId={`${this && this.props && this.props.ecId || ''}_NewAndEditDialog@q4rrwm`}
|
||||
title={nEdialogTitle}
|
||||
visible={visible}
|
||||
condition={toJS(condition)}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import {
|
|||
WeaTab,
|
||||
WeaFormItem,
|
||||
WeaRightMenu,
|
||||
WeaAlertPage
|
||||
} from 'ecCom'
|
||||
import {
|
||||
Row,
|
||||
|
|
@ -30,6 +31,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import { renderNoright } from '../../util'; // 从util文件引入公共的方法
|
||||
|
||||
|
||||
|
||||
|
|
@ -229,18 +231,18 @@ export default class RankScheme extends React.Component {
|
|||
let _this = this;
|
||||
columns.forEach((c, index) => {
|
||||
if (c.dataIndex == 'forbidden_tag') {
|
||||
c.render = function(text, record) {
|
||||
return <Switch defaultChecked={record.forbidden_tag == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked,record.id)} />
|
||||
c.render = function (text, record) {
|
||||
return <Switch defaultChecked={record.forbidden_tag == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
||||
}
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
updateForbiddenTag(checked,id) {
|
||||
updateForbiddenTag(checked, id) {
|
||||
const {
|
||||
rankScheme
|
||||
} = this.props;
|
||||
rankScheme.updateForbiddenTag(checked,id);
|
||||
rankScheme.updateForbiddenTag(checked, id);
|
||||
}
|
||||
|
||||
onOperatesClick(record, rowIndex, operate) {
|
||||
|
|
@ -256,7 +258,7 @@ export default class RankScheme extends React.Component {
|
|||
const {
|
||||
rankScheme
|
||||
} = this.props;
|
||||
|
||||
|
||||
rankScheme.setNeDialogTitle(i18n.label.editRankScheme());
|
||||
rankScheme.setSchemeId(id);
|
||||
rankScheme.setIsNew(false);
|
||||
|
|
@ -303,29 +305,29 @@ export default class RankScheme extends React.Component {
|
|||
|
||||
isFormInit && searchCondition.map(c => {
|
||||
c.items.map((field, index) => {
|
||||
arr.push(<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@4cc308@${index}`} span={(index%2 == 0) ? 10 : 11} offset={1}>
|
||||
<div style={{marginTop: 20}}>
|
||||
<WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@u6ex85@${index}`}
|
||||
label={`${field.label}`}
|
||||
labelCol={{span: `${field.labelcol}`}}
|
||||
wrapperCol={{span: `${field.fieldcol}`}}>
|
||||
{<WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@p7d3td@${index}`} fieldConfig={field} form={form2} formParams={formParams} />}
|
||||
</WeaFormItem>
|
||||
</div>
|
||||
</Col>)
|
||||
arr.push(<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@4cc308@${index}`} span={(index % 2 == 0) ? 10 : 11} offset={1}>
|
||||
<div style={{ marginTop: 20 }}>
|
||||
<WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@u6ex85@${index}`}
|
||||
label={`${field.label}`}
|
||||
labelCol={{ span: `${field.labelcol}` }}
|
||||
wrapperCol={{ span: `${field.fieldcol}` }}>
|
||||
{<WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@p7d3td@${index}`} fieldConfig={field} form={form2} formParams={formParams} />}
|
||||
</WeaFormItem>
|
||||
</div>
|
||||
</Col>)
|
||||
})
|
||||
})
|
||||
|
||||
if (searchConditionLoading) {
|
||||
return (
|
||||
<div className='hrm-loading-center-small' style={{top:'25%'}}>
|
||||
<div className='hrm-loading-center-small' style={{ top: '25%' }}>
|
||||
<Spin ecId={`${this && this.props && this.props.ecId || ''}_Spin@lbktzb`} spinning={searchConditionLoading}></Spin>
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
return <Row ecId={`${this && this.props && this.props.ecId || ''}_Row@ppeb6z`} onKeyDown={(e) => {
|
||||
if ( e.keyCode == 13 && e.target.tagName === "INPUT") {
|
||||
rankScheme.getTableInfo();
|
||||
if (e.keyCode == 13 && e.target.tagName === "INPUT") {
|
||||
rankScheme.getTableInfo();
|
||||
rankScheme.setPanelStatus(false)
|
||||
}
|
||||
}}>{arr}</Row>
|
||||
|
|
@ -350,12 +352,16 @@ export default class RankScheme extends React.Component {
|
|||
rankScheme
|
||||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, schemeName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,date
|
||||
isPanelShow, form2, schemeName, conditionNum, tableStore, nEdialogTitle, visible, condition,
|
||||
form, dialogLoading, isEdit, date, hasRight
|
||||
} = rankScheme;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
@ -376,7 +382,7 @@ export default class RankScheme extends React.Component {
|
|||
searchsBaseValue={this.isEmptyObject(form2.getFormParams()) ? schemeName : form2.getFormParams().schemeName}
|
||||
setShowSearchAd={bool => rankScheme.setPanelStatus(bool)}
|
||||
hideSearchAd={() => rankScheme.setPanelStatus(false)}
|
||||
searchsAd= {isPanelShow ? this.getPanelComponents() : <div></div>}
|
||||
searchsAd={isPanelShow ? this.getPanelComponents() : <div></div>}
|
||||
advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20}
|
||||
hasMask={false}
|
||||
buttonsAd={this.getTabBtn()}
|
||||
|
|
@ -392,7 +398,7 @@ export default class RankScheme extends React.Component {
|
|||
/>
|
||||
</WeaTop>
|
||||
</WeaRightMenu>
|
||||
<NewAndEditDialog ecId={`${this && this.props && this.props.ecId || ''}_NewAndEditDialog@q4rrwm`}
|
||||
<NewAndEditDialog ecId={`${this && this.props && this.props.ecId || ''}_NewAndEditDialog@q4rrwm`}
|
||||
title={nEdialogTitle}
|
||||
visible={visible}
|
||||
condition={toJS(condition)}
|
||||
|
|
@ -407,6 +413,6 @@ export default class RankScheme extends React.Component {
|
|||
enable={false} //是否开启字段联动
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -30,6 +30,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
||||
|
|
@ -358,12 +359,15 @@ export default class Sequence extends React.Component {
|
|||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, levelName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,selectedKey,topTab,topTabCount,date
|
||||
form,dialogLoading,isEdit,selectedKey,topTab,topTabCount,date,hasRight
|
||||
} = sequence;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
||||
|
|
@ -210,7 +211,7 @@ export default class Staff extends React.Component {
|
|||
form2
|
||||
} = staff;
|
||||
|
||||
staff.setSchemeName(val);
|
||||
staff.setStaffName(val);
|
||||
!this.isEmptyObject(form2.getFormParams()) && staff.updateFields(val);
|
||||
}
|
||||
|
||||
|
|
@ -353,11 +354,15 @@ export default class Staff extends React.Component {
|
|||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, staffName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,date
|
||||
form,dialogLoading,isEdit,date,hasRight
|
||||
} = staff;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
||||
|
|
@ -210,7 +211,7 @@ export default class StaffScheme extends React.Component {
|
|||
form2
|
||||
} = staffScheme;
|
||||
|
||||
staffScheme.setSchemeName(val);
|
||||
staffScheme.setPlanName(val);
|
||||
!this.isEmptyObject(form2.getFormParams()) && staffScheme.updateFields(val);
|
||||
}
|
||||
|
||||
|
|
@ -238,7 +239,7 @@ export default class StaffScheme extends React.Component {
|
|||
} = operate;
|
||||
(index == '0') && this.doEdit(record.randomFieldId);
|
||||
(index == '1') && this.doDel(record.randomFieldId);
|
||||
|
||||
(index == '2') && this.doWorkflow(record.randomFieldId);
|
||||
}
|
||||
|
||||
doEdit(id) {
|
||||
|
|
@ -282,6 +283,10 @@ export default class StaffScheme extends React.Component {
|
|||
this.showConfirm('del');
|
||||
}
|
||||
|
||||
doWorkflow(id) {
|
||||
alert("逻辑太自由,暂缓")
|
||||
}
|
||||
|
||||
|
||||
handleSave() {
|
||||
const {
|
||||
|
|
@ -360,12 +365,17 @@ export default class StaffScheme extends React.Component {
|
|||
staffScheme
|
||||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, schemeName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,date
|
||||
isPanelShow, form2, planName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,date,hasRight
|
||||
} = staffScheme;
|
||||
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div ref='page' style={{ height: '100%' }}>
|
||||
hasRight && <div ref='page' style={{ height: '100%' }}>
|
||||
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@k6oc4u`}
|
||||
datas={this.getDropMenuDatas()}
|
||||
onClick={key => this.handleMenuClick(key)}
|
||||
|
|
@ -383,7 +393,7 @@ export default class StaffScheme extends React.Component {
|
|||
<WeaTab ecId={`${this && this.props && this.props.ecId || ''}_WeaTab@9c3zts`}
|
||||
searchType={['base', 'advanced']}
|
||||
showSearchAd={isPanelShow}
|
||||
searchsBaseValue={this.isEmptyObject(form2.getFormParams()) ? schemeName : form2.getFormParams().schemeName}
|
||||
searchsBaseValue={this.isEmptyObject(form2.getFormParams()) ? planName : form2.getFormParams().planName}
|
||||
setShowSearchAd={bool => staffScheme.setPanelStatus(bool)}
|
||||
hideSearchAd={() => staffScheme.setPanelStatus(false)}
|
||||
searchsAd= {isPanelShow ? this.getPanelComponents() : <div></div>}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ export class CompanyStore {
|
|||
@observable total = '';
|
||||
@observable current = 1;
|
||||
@observable pageSize = 10;
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
|
||||
|
|
@ -63,8 +63,8 @@ export class CompanyStore {
|
|||
getTableInfo() {
|
||||
this.setLoading(true);
|
||||
let params = {
|
||||
current:this.current,
|
||||
pageSize:this.pageSize
|
||||
current: this.current,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
if (this.isEmptyObject(this.form.getFormParams())) {
|
||||
params = {
|
||||
|
|
@ -82,11 +82,12 @@ export class CompanyStore {
|
|||
return response.json()
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
|
||||
this.setTotal(res.data.pageInfo.total);
|
||||
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
|
||||
this.setLoading(false);
|
||||
this.setInit(false);
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
|
||||
this.setTotal(res.data.pageInfo.total);
|
||||
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
|
||||
this.setLoading(false);
|
||||
this.setInit(false);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
|
|
@ -103,7 +104,7 @@ export class CompanyStore {
|
|||
@action("联查部门")
|
||||
getDeptTable(id) {
|
||||
let params = {
|
||||
parentComp:id
|
||||
parentComp: id
|
||||
}
|
||||
Api.getDeptListByPid(params).then(response => {
|
||||
return response.json()
|
||||
|
|
@ -126,17 +127,17 @@ export class CompanyStore {
|
|||
ids: this.ids
|
||||
};
|
||||
Api.deleteTableData(params).then(response => {
|
||||
return response.json()
|
||||
return response.json()
|
||||
}).then(data => {
|
||||
if (data.code === 200) {
|
||||
message.success(i18n.message.deleteSuccess());
|
||||
this.setSelectedRowKeys('');
|
||||
this.getTableInfo();
|
||||
} else {
|
||||
message.warning(data.msg);
|
||||
}
|
||||
if (data.code === 200) {
|
||||
message.success(i18n.message.deleteSuccess());
|
||||
this.setSelectedRowKeys('');
|
||||
this.getTableInfo();
|
||||
} else {
|
||||
message.warning(data.msg);
|
||||
}
|
||||
}).catch(error => {
|
||||
message.warning(error.msg);
|
||||
message.warning(error.msg);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -146,31 +147,31 @@ export class CompanyStore {
|
|||
id: id
|
||||
}
|
||||
Api.updateForbiddenTag(params).then(response => {
|
||||
return response.json()
|
||||
return response.json()
|
||||
}).then(data => {
|
||||
if (data.code === 200) {
|
||||
message.success(data.msg);
|
||||
this.getTableInfo();
|
||||
} else {
|
||||
message.warning(data.msg);
|
||||
}
|
||||
if (data.code === 200) {
|
||||
message.success(data.msg);
|
||||
this.getTableInfo();
|
||||
} else {
|
||||
message.warning(data.msg);
|
||||
}
|
||||
}).catch(error => {
|
||||
message.warning(error.msg);
|
||||
message.warning(error.msg);
|
||||
})
|
||||
}
|
||||
|
||||
getSearchCondition() {
|
||||
this.setScLoadingStatus(true);
|
||||
Api.getAdvanceSearchCondition().then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setScLoadingStatus(false);
|
||||
res.data.conditions && this.setSearchCondition(res.data.conditions);
|
||||
res.data.conditions && this.form.initFormFields(res.data.conditions);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
if (res.code === 200) {
|
||||
this.setScLoadingStatus(false);
|
||||
res.data.conditions && this.setSearchCondition(res.data.conditions);
|
||||
res.data.conditions && this.form.initFormFields(res.data.conditions);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
}, error => {
|
||||
message.warning(error.msg);
|
||||
message.warning(error.msg);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -179,57 +180,57 @@ export class CompanyStore {
|
|||
let params = {};
|
||||
this.setDialogLoadingStatus(true);
|
||||
Api.getCompanyForm(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setDialogLoadingStatus(false);
|
||||
res.data.condition && this.setCondition(res.data.condition);
|
||||
res.data.condition && this.form1.initFormFields(res.data.condition);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
if (res.code === 200) {
|
||||
this.setDialogLoadingStatus(false);
|
||||
res.data.condition && this.setCondition(res.data.condition);
|
||||
res.data.condition && this.form1.initFormFields(res.data.condition);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
}, error => {
|
||||
message.warning(error.msg);
|
||||
message.warning(error.msg);
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
save() {
|
||||
let params = {
|
||||
save() {
|
||||
let params = {
|
||||
...this.form1.getFormParams()
|
||||
};
|
||||
this.form1.validateForm().then(f => {
|
||||
};
|
||||
this.form1.validateForm().then(f => {
|
||||
if (f.isValid) {
|
||||
Api.add(params).then(response => {
|
||||
return response.json()
|
||||
}).then(data => {
|
||||
if (data.code === 200) {
|
||||
message.success(data.msg);
|
||||
this.getTableInfo();
|
||||
this.setNewVisible(false);
|
||||
} else {
|
||||
message.warning(data.msg);
|
||||
}
|
||||
}).catch(error => {
|
||||
message.warning(error.msg);
|
||||
})
|
||||
Api.add(params).then(response => {
|
||||
return response.json()
|
||||
}).then(data => {
|
||||
if (data.code === 200) {
|
||||
message.success(data.msg);
|
||||
this.getTableInfo();
|
||||
this.setNewVisible(false);
|
||||
} else {
|
||||
message.warning(data.msg);
|
||||
}
|
||||
}).catch(error => {
|
||||
message.warning(error.msg);
|
||||
})
|
||||
} else {
|
||||
f.showErrors();
|
||||
this.setDate(new Date());
|
||||
f.showErrors();
|
||||
this.setDate(new Date());
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@action
|
||||
getHasRight() {
|
||||
Api.getHasRight().then(res => {
|
||||
if (res.code === 200) {
|
||||
res.data.rightMenu && this.setRightMenu(res.data.rightMenu);
|
||||
res.data.topMenu && this.setTopMenu(res.data.topMenu);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
if (res.code === 200) {
|
||||
res.data.rightMenu && this.setRightMenu(res.data.rightMenu);
|
||||
res.data.topMenu && this.setTopMenu(res.data.topMenu);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
}, error => {
|
||||
message.warning(error.msg);
|
||||
message.warning(error.msg);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -273,7 +274,7 @@ save() {
|
|||
}
|
||||
|
||||
setId(id) {
|
||||
this.id =id;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
scLoadingReset() {
|
||||
|
|
@ -292,7 +293,7 @@ save() {
|
|||
|
||||
setDialogLoadingStatus(bool) {
|
||||
this.dialogLoading = bool;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
setSearchCondition(searchCondition) {
|
||||
|
|
@ -359,7 +360,7 @@ save() {
|
|||
setCurrent(current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
|
||||
setPageSize(pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
|
@ -367,5 +368,9 @@ save() {
|
|||
setInit(bool) {
|
||||
this.init = bool;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -63,6 +63,7 @@ export class DepartmentStore {
|
|||
@observable confirmVisible = false;
|
||||
@observable confirmLoading = true;
|
||||
@observable isMerge = true;
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
@action
|
||||
|
|
@ -89,6 +90,7 @@ export class DepartmentStore {
|
|||
return response.json()
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
|
||||
this.setTotal(res.data.pageInfo.total);
|
||||
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
|
||||
|
|
@ -517,4 +519,8 @@ export class DepartmentStore {
|
|||
setIsMerge(bool) {
|
||||
this.isMerge = bool;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
}
|
||||
|
|
@ -58,7 +58,7 @@ export class JobStore {
|
|||
|
||||
@observable defaultShowLeft = true;
|
||||
@observable companysId = 1
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
@action
|
||||
|
|
@ -85,6 +85,7 @@ export class JobStore {
|
|||
return response.json()
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.pageInfo.columns && this.setColumns(res.data.pageInfo.columns);
|
||||
this.setTotal(res.data.pageInfo.total);
|
||||
res.data.pageInfo.list && this.setDataSource(res.data.pageInfo.list);
|
||||
|
|
@ -402,4 +403,8 @@ export class JobStore {
|
|||
this.init = bool;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -48,7 +48,7 @@ export class JobGradeStore {
|
|||
@observable topTab = [];
|
||||
@observable topTabCount = {};
|
||||
@observable key = '';//
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
@action
|
||||
|
|
@ -69,6 +69,7 @@ export class JobGradeStore {
|
|||
}
|
||||
Api.getSearchList(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
|
|
@ -378,4 +379,8 @@ export class JobGradeStore {
|
|||
this.key = key;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -47,6 +47,7 @@ export class JobLevelStore {
|
|||
@observable selectedKey = -1;
|
||||
@observable topTab = [];
|
||||
@observable topTabCount = {};
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
|
||||
|
|
@ -70,6 +71,7 @@ export class JobLevelStore {
|
|||
}
|
||||
Api.getSearchList(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
|
|
@ -337,4 +339,8 @@ export class JobLevelStore {
|
|||
this.rightMenu = rightMenu;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -31,6 +31,7 @@ export class OfficeManageStore {
|
|||
@observable dialogLoading = false;
|
||||
@observable schemeId = "";
|
||||
@observable date = "";
|
||||
@observable hasRight = '';
|
||||
|
||||
@action
|
||||
getHasRight() {
|
||||
|
|
@ -94,6 +95,7 @@ export class OfficeManageStore {
|
|||
}
|
||||
API.getPostInfoTable(params).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.error(res.msg);
|
||||
|
|
@ -227,4 +229,8 @@ export class OfficeManageStore {
|
|||
officeFormReset() {
|
||||
this.form1 = new WeaForm();
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export class RankSchemeStore {
|
|||
@observable dialogLoading = true;
|
||||
@observable schemeId = '';
|
||||
@observable date = '';
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
|
||||
|
|
@ -65,6 +65,7 @@ export class RankSchemeStore {
|
|||
}
|
||||
Api.getSearchList(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
|
|
@ -305,4 +306,8 @@ export class RankSchemeStore {
|
|||
this.rightMenu = rightMenu;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ export class SequenceStore {
|
|||
@observable selectedKey = -1;
|
||||
@observable topTab = [];
|
||||
@observable topTabCount = {};
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
@action
|
||||
|
|
@ -68,6 +68,7 @@ export class SequenceStore {
|
|||
}
|
||||
Api.getSearchList(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
|
|
@ -337,4 +338,8 @@ export class SequenceStore {
|
|||
this.rightMenu = rightMenu;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -44,7 +44,7 @@ export class StaffStore {
|
|||
@observable dialogLoading = true;
|
||||
@observable staffId = '';
|
||||
@observable date = '';
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
|
||||
|
|
@ -65,6 +65,7 @@ export class StaffStore {
|
|||
}
|
||||
Api.getSearchList(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight);
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
|
|
@ -287,4 +288,8 @@ export class StaffStore {
|
|||
this.rightMenu = rightMenu;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -35,7 +35,7 @@ export class StaffSchemeStore {
|
|||
@observable form2 = new WeaForm();
|
||||
@observable form = new WeaForm();
|
||||
@observable form1 = new WeaForm();
|
||||
@observable schemeName = '';
|
||||
@observable planName = '';
|
||||
@observable conditionNum = 8;
|
||||
@observable ids = ''; //选择行id
|
||||
@observable searchConditionLoading = true;
|
||||
|
|
@ -44,7 +44,7 @@ export class StaffSchemeStore {
|
|||
@observable dialogLoading = true;
|
||||
@observable schemeId = '';
|
||||
@observable date = '';
|
||||
|
||||
@observable hasRight = '';
|
||||
|
||||
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ export class StaffSchemeStore {
|
|||
if (this.isEmptyObject(this.form2.getFormParams())) {
|
||||
params = {
|
||||
...this.form2.getFormParams(),
|
||||
schemeName: this.schemeName
|
||||
planName: this.planName
|
||||
};
|
||||
} else {
|
||||
params = {
|
||||
|
|
@ -65,6 +65,7 @@ export class StaffSchemeStore {
|
|||
}
|
||||
Api.getSearchList(params).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setHasRight(res.data.hasRight)
|
||||
res.data.datas && this.tableStore.getDatas(res.data.datas, 1);
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
|
|
@ -216,7 +217,7 @@ export class StaffSchemeStore {
|
|||
|
||||
updateFields(val) {
|
||||
this.form2.updateFields({
|
||||
schemeName: {
|
||||
planName: {
|
||||
value: val
|
||||
}
|
||||
});
|
||||
|
|
@ -238,8 +239,8 @@ export class StaffSchemeStore {
|
|||
}
|
||||
}
|
||||
|
||||
setSchemeName(val) {
|
||||
this.schemeName = val;
|
||||
setPlanName(val) {
|
||||
this.planName = val;
|
||||
}
|
||||
|
||||
isEmptyObject(obj) {
|
||||
|
|
@ -305,4 +306,8 @@ export class StaffSchemeStore {
|
|||
this.rightMenu = rightMenu;
|
||||
}
|
||||
|
||||
setHasRight(bool) {
|
||||
this.hasRight = bool;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue