1.项目立项新增页面去掉分管领导、主要领导两个字段,项目负责人数据源改为当前创建人部门下

2.项目立项信息页面同理去掉分管领导、主要领导字段
This commit is contained in:
zty 2024-07-30 14:24:57 +08:00
parent ed59ccf7a5
commit 635b0ab4f7
2 changed files with 46 additions and 45 deletions

View File

@ -212,9 +212,10 @@ export default {
return (this.canEdit && this.projectStep === step) return (this.canEdit && this.projectStep === step)
}, },
getAllPeople () { getAllPeople () {
let orgId = JSON.parse(getItem('orgIds'))[1]
let params = { let params = {
path: { path: {
id: 0 id: orgId
} }
} }
Api.Administration.getPeers(params).then((result) => { Api.Administration.getPeers(params).then((result) => {
@ -468,32 +469,32 @@ export default {
options: this.formProjectAdmin options: this.formProjectAdmin
} }
}, },
{ // {
type: 'custom-cascader', // type: 'custom-cascader',
title: '分管领导', // title: '',
model: 'branchLeaders', // model: 'branchLeaders',
rules: [ // rules: [
{required: true, message: '分管领导不能为空'} // {required: true, message: ''}
], // ],
externalValue: { // externalValue: {
// disabled: !this.judgeFormEditable('apply'), // // disabled: !this.judgeFormEditable('apply'),
disable: true, // disable: true,
options: this.formBranchLeader // options: this.formBranchLeader
} // }
}, // },
{ // {
type: 'custom-cascader', // type: 'custom-cascader',
title: '主要领导', // title: '',
model: 'MainLeader', // model: 'MainLeader',
rules: [ // rules: [
{required: true, message: '主要领导不能为空'} // {required: true, message: ''}
], // ],
externalValue: { // externalValue: {
// disabled: !this.judgeFormEditable('apply'), // // disabled: !this.judgeFormEditable('apply'),
disable: true, // disable: true,
options: this.formMainLeader // options: this.formMainLeader
} // }
}, // },
{ {
type: 'custom-input', type: 'custom-input',
title: '项目来源', title: '项目来源',

View File

@ -785,24 +785,24 @@ export default {
options: this.formProjectAdmin options: this.formProjectAdmin
} }
}, },
{ // {
type: 'custom-cascader', // type: 'custom-cascader',
title: '分管领导', // title: '',
model: 'branchLeaders', // model: 'branchLeaders',
externalValue: { // externalValue: {
disabled: true, // disabled: true,
options: this.formBranchLeader // options: this.formBranchLeader
} // }
}, // },
{ // {
type: 'custom-cascader', // type: 'custom-cascader',
title: '主要领导', // title: '',
model: 'MainLeader', // model: 'MainLeader',
externalValue: { // externalValue: {
disabled: true, // disabled: true,
options: this.formMainLeader // options: this.formMainLeader
} // }
}, // },
{ {
type: 'custom-input', type: 'custom-input',
title: '项目来源', title: '项目来源',