流程模型-流程分类下拉
This commit is contained in:
parent
7014f351ad
commit
055ad608fa
@ -51,3 +51,11 @@ export function exportCategoryExcel(params) {
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得流程分类下拉
|
||||
export function getCategorySelect() {
|
||||
return request({
|
||||
url: '/bpm/category/simple-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
@ -140,7 +140,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.id" label="流程分类" prop="category">
|
||||
<el-select v-model="form.category" placeholder="请选择流程分类" clearable style="width: 100%">
|
||||
<el-option v-for="dict in categoryDictDatas" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
||||
<el-option v-for="item in categorySelect" :key="item.id" :label="item.name" :value="item.id"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程描述" prop="description">
|
||||
@ -228,6 +228,11 @@ import {
|
||||
createModel,
|
||||
updateModel
|
||||
} from "@/api/bpm/model";
|
||||
|
||||
import {
|
||||
getCategorySelect
|
||||
} from '@/api/bpm/category';
|
||||
|
||||
import {DICT_TYPE, getDictDatas} from "@/utils/dict";
|
||||
import {getForm, getSimpleForms} from "@/api/bpm/form";
|
||||
import {decodeFields} from "@/utils/formGenerator";
|
||||
@ -247,6 +252,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
categorySelect:[],
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 显示搜索条件
|
||||
@ -318,6 +324,10 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
//获取流程分类下拉
|
||||
getCategorySelect().then(response =>{
|
||||
this.categorySelect = response.data;
|
||||
})
|
||||
// 获得流程表单的下拉框的数据
|
||||
getSimpleForms().then(response => {
|
||||
this.forms = response.data
|
||||
|
Loading…
Reference in New Issue
Block a user