commit
5830d46577
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @Author: 程亮
|
||||
* @Date: 2022-06-02 09:19:37
|
||||
* @LastEditTime: 2022-07-08 16:50:58
|
||||
* @LastEditTime: 2022-08-03 15:11:19
|
||||
* @Description:
|
||||
* @FilePath: /trunk/src4js/pc4mobx/organization/components/department/department.js
|
||||
*/
|
||||
|
|
@ -177,14 +177,15 @@ export default class Department extends React.Component {
|
|||
window.open(`/spa/organization/static/index.html#/main/organization/departmentExtend/${id}`, "_blank")
|
||||
}
|
||||
|
||||
copy() {
|
||||
copy(id) {
|
||||
const {
|
||||
department
|
||||
} = this.props;
|
||||
const {
|
||||
selectedRowKeys
|
||||
} = department;
|
||||
let keys = toJS(selectedRowKeys).toString();
|
||||
|
||||
let keys = id == undefined ? toJS(selectedRowKeys).toString() : id;
|
||||
department.setIds(keys);
|
||||
confirm({
|
||||
title: i18n.confirm.defaultTitle(),
|
||||
|
|
@ -377,6 +378,9 @@ export default class Department extends React.Component {
|
|||
<Menu.Item key="4">
|
||||
<a href='javascript:void(0);' onClick={() => { _this.select(record.id) }}>联查岗位</a>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="5">
|
||||
<a href='javascript:void(0);' onClick={() => { _this.copy(record.id) }}>复制</a>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
)
|
||||
return <Dropdown overlay={menu}>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @Author: 程亮
|
||||
* @Date: 2022-05-26 14:05:59
|
||||
* @LastEditTime: 2022-07-15 14:36:46
|
||||
* @LastEditTime: 2022-08-03 15:13:55
|
||||
* @Description:
|
||||
* @FilePath: /trunk/src4js/pc4mobx/organization/components/job/Job.js
|
||||
*/
|
||||
|
|
@ -160,14 +160,14 @@ export default class Job extends React.Component {
|
|||
}
|
||||
|
||||
|
||||
copy() {
|
||||
copy(id) {
|
||||
const {
|
||||
job
|
||||
} = this.props;
|
||||
const {
|
||||
selectedRowKeys,
|
||||
} = job;
|
||||
let keys = toJS(selectedRowKeys).toString();
|
||||
let keys = id == undefined ? toJS(selectedRowKeys).toString() : id;
|
||||
job.setIds(keys);
|
||||
confirm({
|
||||
title: i18n.confirm.defaultTitle(),
|
||||
|
|
@ -352,6 +352,9 @@ export default class Job extends React.Component {
|
|||
<Menu.Item key="3">
|
||||
<a href='javascript:void(0);' onClick={() => { _this.merge(record.id) }}>合并</a>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="4">
|
||||
<a href='javascript:void(0);' onClick={() => { _this.copy(record.id) }}>复制</a>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
)
|
||||
return <Dropdown overlay={menu}>
|
||||
|
|
|
|||
|
|
@ -301,12 +301,12 @@ export class JobGradeStore {
|
|||
currenttime: currenttime,
|
||||
[id_key]:"''"
|
||||
}
|
||||
// this.condition[0].items[4].browserConditionParam.dataParams = {
|
||||
// ...this.condition[0].items[4].browserConditionParam.dataParams,
|
||||
// [key]: val,
|
||||
// currenttime: currenttime,
|
||||
// [id_key]:"''"
|
||||
// }
|
||||
this.condition[0].items[4].browserConditionParam.dataParams = {
|
||||
...this.condition[0].items[4].browserConditionParam.dataParams,
|
||||
[key]: val,
|
||||
currenttime: currenttime,
|
||||
[id_key]:"''"
|
||||
}
|
||||
this.condition[0].items[4].browserConditionParam.destDataParams = {
|
||||
...this.condition[0].items[4].browserConditionParam.destDataParams,
|
||||
[key]: val,
|
||||
|
|
|
|||
Loading…
Reference in New Issue