wf state getusers

This commit is contained in:
曹前明 2022-09-06 10:18:44 +08:00
parent a87f529fe8
commit 1a1d809fe3
1 changed files with 47 additions and 23 deletions

View File

@ -9,7 +9,7 @@
></el-button>
</div>
</el-header>
<el-main class="nopadding" style="height: 100%;">
<el-main class="nopadding" style="height: 100%">
<scTable
ref="table"
:data="list"
@ -43,18 +43,23 @@
</el-table-column>
<el-table-column label="参与人类型">
<template #default="scope">
{{options_[scope.row.participant_type]}}</template>
{{ options_[scope.row.participant_type] }}</template
>
</el-table-column>
<el-table-column label="分配方式">
<template #default="scope">
{{options2_[scope.row.distribute_type]}}</template>
{{ options2_[scope.row.distribute_type] }}</template
>
</el-table-column>
<el-table-column label="创建时间" prop="create_time"></el-table-column>
<el-table-column label="操作" fixed="right" align="right" width="120">
<template #default="scope">
<el-button link size="small" @click="handleEdit(scope.row)"
>编辑</el-button>
<el-button link size="small" @click="handleDelete(scope.row)">删除</el-button>
>编辑</el-button
>
<el-button link size="small" @click="handleDelete(scope.row)"
>删除</el-button
>
</template>
</el-table-column>
</scTable>
@ -132,9 +137,18 @@
<el-option
v-for="item in staffs"
:key="item.id"
:label="item.name"
:label="item.name + '-' + item.phone"
:value="item.id"
>
<span style="float: left">{{ item.name }}</span>
<span
style="
float: right;
color: var(--el-text-color-secondary);
font-size: 13px;
"
>{{ item.phone }}</span
>
</el-option>
</el-select>
</el-form-item>
@ -155,6 +169,15 @@
:label="item.name"
:value="item.id"
>
<span style="float: left">{{ item.name }}</span>
<span
style="
float: right;
color: var(--el-text-color-secondary);
font-size: 13px;
"
>{{ item.phone }}</span
>
</el-option>
</el-select>
</el-form-item>
@ -185,10 +208,7 @@
>
<el-input v-model="addForm.participant" placeholder="方法名" />
</el-form-item>
<el-form-item
label="分配方式"
prop="participant"
>
<el-form-item label="分配方式" prop="participant">
<el-select
style="width: 100%"
v-model="addForm.distribute_type"
@ -245,7 +265,11 @@
<el-form-item
label="部门过滤"
prop="filter_dept"
v-if="addForm.participant_type == 4 || addForm.participant_type == 0|| addForm.participant_type == 10"
v-if="
addForm.participant_type == 4 ||
addForm.participant_type == 0 ||
addForm.participant_type == 10
"
>
<el-input v-model="addForm.filter_dept" placeholder="部门字段" />
</el-form-item>
@ -578,9 +602,9 @@ export default {
this.addForm = Object.assign({}, row);
},
handleDelete(row) {
this.$API.wf.state.delete.req(row.id).then(res=>{
this.getList()
})
this.$API.wf.state.delete.req(row.id).then((res) => {
this.getList();
});
},
async getList() {
let res = await this.$API.wf.workflow.states.req(this.id);