Browse Source

修改项目部配置节点报错问题

dev
long 2 years ago
parent
commit
8f985bc3f2
  1. 18
      src/views/activiti/ProcessUserModelList.vue

18
src/views/activiti/ProcessUserModelList.vue

@ -394,6 +394,7 @@
showProcessNodeEdit:false,
showDepartCode:false,
thisData:'',
departCode:'',
dictNodeType:{
'0':'开始节点',
'1':'审批节点',
@ -542,9 +543,7 @@
console.log("this.spry",this.spry)
},
submitUsers(val){
let is_project = sessionStorage.getItem('IS_PROJECT')
this.spry.userIds=val;
let projcet= JSON.parse(is_project)
var _this = this;
if (!this.spry.userIds){
_this.$message.error("必须选择审批人!");
@ -553,9 +552,7 @@
// _this.confirmLoading = true;
this.spry.nodeId = this.editNode.id;
this.spry.procDefId = this.editNode.procDefId;
if (projcet.departId){
this.spry.departId=projcet.departId;
}
this.spry.departId=this.departCode
this.spry.userIds=val;
if (!this.spry.roleIds){
this.spry.roleIds=""
@ -579,13 +576,12 @@
},
departSubmit(){
this.showDepartCode=false;
let departCode=this.departForm.getFieldValue('departId');
this.getNodeData(this.thisData,departCode);
this.departCode=this.departForm.getFieldValue('departId');
this.getNodeData(this.thisData);
},
//
sprySubmit() {
console.log(this.nodeList,this.isIndex,"---------------->")
if(this.nodeList.length==this.isIndex){
if (!this.spry.userIds){
this.$message.error("审核人员能为空!");
@ -601,8 +597,8 @@
},
/*节点设置*/
getNodeData(row,departCode){
if (!departCode){
getNodeData(row){
if (!this.departCode){
this.$message.error("项目部不能为空");
return;
}
@ -610,7 +606,7 @@
_this.updateRow = row;
_this.postFormAction(_this.url.getProcessNodeByDepart,{
id:row.id,
departId:departCode
departId:this.departCode
}).then(res => {
if (res.success) {
// null""

Loading…
Cancel
Save