feat: base 添加工作流分组select
This commit is contained in:
parent
cea821e592
commit
0567d98b93
|
|
@ -10,6 +10,13 @@ export default {
|
|||
return await http.get(this.url, data);
|
||||
}
|
||||
},
|
||||
cates: {
|
||||
url: `${config.API_URL}/wf/workflow/cates/`,
|
||||
name: "工作流分类",
|
||||
req: async function(data){
|
||||
return await http.get(this.url, data);
|
||||
}
|
||||
},
|
||||
item: {
|
||||
name: "工作流详情",
|
||||
req: async function(id){
|
||||
|
|
|
|||
|
|
@ -12,6 +12,15 @@
|
|||
@click="batch_del" v-auth="'workflow.delete'"></el-button> -->
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<el-select v-model="query.cate" placeholder="工作流分组" clearable style="width: 220px;"
|
||||
@change="handleQuery">
|
||||
<el-option
|
||||
v-for="item in wfCateOptions"
|
||||
:key="item"
|
||||
:label="item"
|
||||
:value="item"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input
|
||||
v-model="query.search"
|
||||
placeholder="工作流名称"
|
||||
|
|
@ -222,6 +231,7 @@ export default {
|
|||
edit: "编辑",
|
||||
show: "查看",
|
||||
},
|
||||
wfCateOptions: [],
|
||||
//表单数据
|
||||
addForm: {
|
||||
name: "",
|
||||
|
|
@ -248,6 +258,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
// this.getGroup();
|
||||
this.getWfCates();
|
||||
},
|
||||
methods: {
|
||||
//添加工作流
|
||||
|
|
@ -256,6 +267,12 @@ export default {
|
|||
this.limitedVisible = true;
|
||||
},
|
||||
|
||||
getWfCates() {
|
||||
this.$API.wf.workflow.cates.req().then(res=>{
|
||||
this.wfCateOptions = res
|
||||
})
|
||||
},
|
||||
|
||||
submitHandle() {
|
||||
let that = this;
|
||||
this.$refs.addForm.validate((valid) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue