commit
bf8b1fecc4
|
|
@ -194,9 +194,9 @@ export class DepartmentStore {
|
|||
|
||||
|
||||
getDeptForm() {
|
||||
let params = {};
|
||||
|
||||
this.setDialogLoadingStatus(true);
|
||||
Api.getDeptForm(params).then(res => {
|
||||
Api.getDeptForm(this.selectTreeNodeInfo).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setDialogLoadingStatus(false);
|
||||
res.data.condition && this.setCondition(res.data.condition);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @Author: 程亮
|
||||
* @Date: 2022-06-09 10:16:00
|
||||
* @LastEditTime: 2022-08-22 15:25:05
|
||||
* @LastEditTime: 2022-09-06 09:43:39
|
||||
* @Description:
|
||||
* @FilePath: /trunk/src4js/pc4mobx/organization/stores/fieldDefined.js
|
||||
*/
|
||||
|
|
@ -227,7 +227,7 @@ export class FieldDefinedStore extends HrmBaseStore {
|
|||
key: 'fieldType',
|
||||
useRecord: true,
|
||||
colSpan: 1,
|
||||
width: "40%",
|
||||
width: "45%",
|
||||
com: [{
|
||||
label: '',
|
||||
type: 'CUSTOMFIELD',
|
||||
|
|
|
|||
|
|
@ -195,9 +195,8 @@ export class JobStore {
|
|||
|
||||
|
||||
getJobForm() {
|
||||
let params = {};
|
||||
this.setDialogLoadingStatus(true);
|
||||
Api.getJobForm(params).then(res => {
|
||||
Api.getJobForm(this.selectTreeNodeInfo).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.setDialogLoadingStatus(false);
|
||||
res.data.condition && this.setCondition(res.data.condition);
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ export class JobGradeStore {
|
|||
this.setDialogLoadingStatus(false);
|
||||
res.data.condition && this.setCondition(res.data.condition);
|
||||
res.data.condition && this.form.initFormFields(res.data.condition);
|
||||
this.updateConditions(this.selectedTreeNodeInfo.domid);
|
||||
this.isNew ? this.updateConditions(this.selectedTreeNodeInfo.domid):'';
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
action
|
||||
} from 'mobx';
|
||||
import * as mobx from 'mobx';
|
||||
import * as Api from '../apis/staff'; // 引入API接口文件
|
||||
import * as Api from '../apis/staff'; // 引入API接口文件
|
||||
import {
|
||||
WeaForm
|
||||
} from 'comsMobx';
|
||||
|
|
@ -199,7 +199,7 @@ export class StaffStore {
|
|||
switch(type) {
|
||||
case '分部':
|
||||
this.condition[0].items = this.condition[0].items.filter(item => {
|
||||
return (item.domkey[0] != 'deptId' && item.domkey[0] != 'jobId')
|
||||
return (item.domkey[0] != 'ecDepartment' && item.domkey[0] != 'jobId')
|
||||
});
|
||||
break;
|
||||
case '部门':
|
||||
|
|
|
|||
Loading…
Reference in New Issue