Merge pull request !71 from reset/feature/cl
This commit is contained in:
reset 2022-09-06 10:54:26 +00:00 committed by Gitee
commit bf8b1fecc4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 8 additions and 9 deletions

View File

@ -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);

View File

@ -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',

View File

@ -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);

View File

@ -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);
} }

View File

@ -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 '部门':