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