mirror of
https://gitee.com/maimengcloud/xm-ui-web.git
synced 2025-12-30 10:12:26 +00:00
优化
This commit is contained in:
@@ -519,6 +519,24 @@ import { MdpFormMixin } from '@/components/mdp-ui/mixin/MdpFormMixin';
|
||||
} else if (fieldName === 'funcId') {
|
||||
params.funcId = $event.id
|
||||
params.funcName = $event.name
|
||||
} else if (fieldName === 'dclass') {
|
||||
if(this.editForm.pmenuId>'0'){
|
||||
if($event=='1'){
|
||||
setTimeout(()=>this.editForm.dclass=this.dataBak[fieldName],1)
|
||||
this.$notify.error('需求项遵循【史诗 > 特性 > 故事】规则,当前需求具有上级,不允许变更为【史诗】类型')
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(this.editForm.childrenCnt>0 && $event=='3'){
|
||||
setTimeout(()=>this.editForm.dclass=this.dataBak[fieldName],1)
|
||||
this.$notify.error('当前需求具有多个子节点,不允许变更为【故事】类型')
|
||||
return;
|
||||
}
|
||||
if($event=='3'){
|
||||
params.ntype='0'
|
||||
}else{
|
||||
params.ntype='1'
|
||||
}
|
||||
} else {
|
||||
if (typeof $event === 'string') {
|
||||
params[fieldName] = $event
|
||||
|
||||
Reference in New Issue
Block a user