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