Browse Source

修改流程配置页面

dev
long 2 years ago
parent
commit
c446a9f463
  1. 16
      src/views/activiti/ProcessModelList.vue

16
src/views/activiti/ProcessModelList.vue

@ -151,6 +151,9 @@
@cancel="editObj.visible = false"
>
<a-form :form="editForm" v-if="editObj.visible">
<a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="流程名称" >
<a-input v-decorator="[ 'name', {initialValue:editObj.name, rules: [{ required: true, message: '不能为空' }] },]" placeholder="请输入流程名称"/>
</a-form-item>
<a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="流程分类" >
<component :is="LcDict" :trigger-change="true" v-decorator="[ 'categoryId', {initialValue:editObj.categoryId, rules: [{ required: true, message: '不能为空' }] },]"
placeholder="请选择流程分类" dictCode="bpm_process_type" ></component>
@ -324,7 +327,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { activitiMixin } from '@/views/activiti/mixins/activitiMixin'
import JEllipsis from '@/components/jeecg/JEllipsis'
import { deleteAction, getAction,downFile } from '@/api/manage'
import { deleteAction, getAction,httpAction } from '@/api/manage'
import JTreeSelect from '@/components/jeecg/JTreeSelect'
import JTreeDict from '@/components/jeecg/JTreeDict'
import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil'
@ -389,6 +392,8 @@
url: {
list: "/activiti_process/listData",
img: "/activiti/models/export",
add:'/hy/simpleProcess/add',
edit:'/hy/simpleProcess/edit',
updateStatus: "/activiti_process/updateStatus",
delByIds: "/activiti_process/delByIds",
convertToModel: "/activiti_process/convertToModel",
@ -630,8 +635,15 @@
let formData = Object.assign(this.editObj, values)
console.log("formData",formData)
this.confirmLoading = true;
this.postFormAction(this.url.updateInfo,formData).then(res => {
var url = this.url.add;
let method='post';
if (formData.id){
url=this.url.edit;
method='put';
}
httpAction(url,formData,method).then(res => {
if (res.success) {
console.log(res,"返回数据")
_this.$message.success("操作成功");
_this.loadData();
_this.editObj.visible = false;

Loading…
Cancel
Save