Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dev
0.0 2 years ago
parent
commit
1b5b9b8685
  1. 46
      src/views/activiti/ProcessUserModelList.vue

46
src/views/activiti/ProcessUserModelList.vue

@ -74,7 +74,7 @@
</span> </span>
<span slot="make" slot-scope="text, record"> <span slot="make" slot-scope="text, record">
<div v-if="record.name!='预算计划采购流程' && record.name!='权限授权流程'"> <div v-if="record.name!='预算计划采购流程' && record.name!='权限授权流程'">
<a href="javascript:void(0);" @click="getNodeData(record)" >审批人员</a> <a href="javascript:void(0);" @click="openDepart(record)" >审批人员</a>
</div> </div>
<!-- <div v-else-if="record.name!='权限授权流程'"> <!-- <div v-else-if="record.name!='权限授权流程'">
<a href="javascript:void(0);" @click="getNodeData(record)" >审批人员</a> <a href="javascript:void(0);" @click="getNodeData(record)" >审批人员</a>
@ -230,6 +230,24 @@
</a-button> </a-button>
</div> </div>
</a-modal> </a-modal>
<a-modal
title="选择项目部" width="900px" :maskClosable="false"
:confirmLoading="confirmLoading"
:visible="showDepartCode"
:footer="null"
@cancel="showDepartCode=false"
>
<a-row>
<a-form :form="departForm" >
<a-form-item label="项目部" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-depart v-decorator="['departId']" />
</a-form-item>
<a-button @click="departSubmit" type="primary" style="float: right">
确定
</a-button>
</a-form>
</a-row>>
</a-modal>
<!--查看图片--> <!--查看图片-->
<a-modal <a-modal
:title="viewTitle" width="90%" :title="viewTitle" width="90%"
@ -263,7 +281,6 @@
import JSelectRole from '@/components/jeecgbiz/JSelectRole' import JSelectRole from '@/components/jeecgbiz/JSelectRole'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
import JDictSelectTag from "@/components/dict/JDictSelectTag" import JDictSelectTag from "@/components/dict/JDictSelectTag"
export default { export default {
name: "ProcessUserModelList", name: "ProcessUserModelList",
mixins:[activitiMixin,JeecgListMixin], mixins:[activitiMixin,JeecgListMixin],
@ -349,7 +366,7 @@
visible: false, visible: false,
}, },
editForm: this.$form.createForm(this), editForm: this.$form.createForm(this),
departForm: this.$form.createForm(this),
description: '已部署模型', description: '已部署模型',
// //
queryParam: { queryParam: {
@ -375,6 +392,8 @@
nodeList:[], nodeList:[],
editNode:{}, editNode:{},
showProcessNodeEdit:false, showProcessNodeEdit:false,
showDepartCode:false,
thisData:'',
dictNodeType:{ dictNodeType:{
'0':'开始节点', '0':'开始节点',
'1':'审批节点', '1':'审批节点',
@ -553,6 +572,16 @@
} }
}); });
}, },
openDepart(row){
this.departForm.resetFields();
this.showDepartCode=true;
this.thisData=row;
},
departSubmit(){
let departCode=this.departForm.getFieldValue('departId');
this. getNodeData(this.thisData,departCode);
},
// //
sprySubmit() { sprySubmit() {
console.log(this.nodeList,this.isIndex,"---------------->") console.log(this.nodeList,this.isIndex,"---------------->")
@ -571,18 +600,16 @@
}, },
/*节点设置*/ /*节点设置*/
getNodeData(row){ getNodeData(row,departCode){
let is_project = sessionStorage.getItem('IS_PROJECT') if (!departCode){
let projcet= JSON.parse(is_project) this.$message.error("项目部不能为空");
if (!projcet.departId){
this.$message.error("无权限");
return; return;
} }
let _this = this; let _this = this;
_this.updateRow = row; _this.updateRow = row;
_this.postFormAction(_this.url.getProcessNodeByDepart,{ _this.postFormAction(_this.url.getProcessNodeByDepart,{
id:row.id, id:row.id,
departId:projcet.departId departId:departCode
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
// null"" // null""
@ -632,6 +659,7 @@
_this.$message.success("操作成功"); _this.$message.success("操作成功");
_this.loadData(); _this.loadData();
_this.editObj.visible = false; _this.editObj.visible = false;
_this.showDepartCode=false;
}else { }else {
_this.$message.error(res.message); _this.$message.error(res.message);
} }

Loading…
Cancel
Save