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="分配方式">
<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>
@ -178,23 +201,20 @@
</el-select> -->
<el-input v-model="addForm.participant" placeholder="工单字段" />
</el-form-item>
<el-form-item
label="参与者"
prop="participant"
v-if="addForm.participant_type == 6"
>
<el-input v-model="addForm.participant" placeholder="方法名" />
</el-form-item>
<el-form-item
label="分配方式"
label="参与者"
prop="participant"
v-if="addForm.participant_type == 6"
>
<el-input v-model="addForm.participant" placeholder="方法名" />
</el-form-item>
<el-form-item label="分配方式" prop="participant">
<el-select
style="width: 100%"
v-model="addForm.distribute_type"
placeholder="请选择分配方式"
>
<el-option
<el-option
v-for="item in dis_type_options"
:key="item.value"
:label="item.label"
@ -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>
@ -328,7 +352,7 @@
</el-col>
</el-row>
</el-form-item>
<el-form-item label="到达方法" prop="on_reach_func">
<el-form-item label="到达方法" prop="on_reach_func">
<el-input v-model="addForm.on_reach_func" placeholder="到达方法" />
</el-form-item>
</el-form>
@ -391,7 +415,7 @@ export default {
9: "代码获取",
10: "岗位",
},
options2_: {
options2_: {
1: "主动接单",
2: "直接处理",
3: "随机分配",
@ -512,7 +536,7 @@ export default {
let roles = await this.$API.system.role.list.req({ page: 0 });
this.roles = roles;
},
//
//
async getPost() {
let posts = await this.$API.system.post.list.req({ page: 0 });
this.posts = posts;
@ -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);