This commit is contained in:
曹前明 2022-07-18 17:08:20 +08:00
commit d9d647af43
5 changed files with 38 additions and 21 deletions

View File

@ -37,9 +37,7 @@
<template #default="scope"> <template #default="scope">
<el-button type="text" size="small" @click="handleShow(scope.row)">查看详情</el-button> <el-button type="text" size="small" @click="handleShow(scope.row)">查看详情</el-button>
<!--多人且主动接单--> <!--多人且主动接单-->
<el-button v-if="scope.row.state_.distribute_type===1&&scope.row.participant_type===2"
type="text" size="small" @click="handleAccept(scope.row)">接单
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -101,14 +99,6 @@
}, },
}); });
}, },
handleAccept(row) {
this.$API.wf.ticket.ticketAccept.req(row.id, {}).then(res => {
if (res.err_msg) {
} else {
this.getList();
}
})
},
}, },
}; };
</script> </script>

View File

@ -1,6 +1,6 @@
<template> <template>
<el-container> <el-container>
<el-tabs style="width: 100%; height:100%" type="border-card" v-model="activeName" @tab-click="handleClick"> <el-tabs style="width: 100%; height:100%" type="border-card" v-model="activeName" id="workflowElTabs" @tab-click="handleClick">
<el-tab-pane label="自定义字段" name="customField"> <el-tab-pane label="自定义字段" name="customField">
<field v-if="activeName==='customField'"></field> <field v-if="activeName==='customField'"></field>
</el-tab-pane> </el-tab-pane>
@ -45,5 +45,14 @@
} }
} }
</script> </script>
<style>
#workflowElTabs > .el-tabs__content{
height:calc(100% - 40px);
}
#workflowElTabs .el-tab-pane{
height: calc(100% - 20px);
}
</style>

View File

@ -36,12 +36,24 @@
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template #default="scope"> <template #default="scope">
<el-link <el-link
v-if="(scope.row.act_state===1||scope.row.act_state===3)&&scope.row.participant_type!==2&&scope.row.state_.type===0" v-if="(scope.row.act_state===1||scope.row.act_state===3)&&scope.row.state_.type===0"
type="primary" type="primary"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)"
> >
处理 处理
</el-link> </el-link>
<!--多人处理直接接单-->
<!--<el-link
v-if="scope.row.state_.distribute_type===1&&scope.row.participant_type===2"
type="primary"
@click="handleDetail(scope.row)"
>
接单
</el-link>-->
<el-button v-if="scope.row.state_.distribute_type===1&&scope.row.participant_type===2"
type="text" size="small" @click="handleAccept(scope.row)">
接单
</el-button>
<el-link <el-link
type="success" type="success"
@click="handleLogs(scope.row)" @click="handleLogs(scope.row)"
@ -149,6 +161,14 @@
} }
}) })
}, },
handleAccept(row) {
this.$API.wf.ticket.ticketAccept.req(row.id, {}).then(res => {
if (res.err_msg) {
} else {
this.getList();
}
})
},
}, },
}; };
</script> </script>

View File

@ -42,21 +42,18 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="参与人类型"> <el-table-column label="参与人类型">
<template #default="scope">{{ <template #default="scope">
options_[scope.row.participant_type] {{options_[scope.row.participant_type]}}</template>
}}</template>
</el-table-column> </el-table-column>
<el-table-column label="分配方式"> <el-table-column label="分配方式">
<template #default="scope">{{ <template #default="scope">
options2_[scope.row.distribute_type] {{options2_[scope.row.distribute_type]}}</template>
}}</template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="create_time"></el-table-column> <el-table-column label="创建时间" prop="create_time"></el-table-column>
<el-table-column label="操作" fixed="right" align="right" width="120"> <el-table-column label="操作" fixed="right" align="right" width="120">
<template #default="scope"> <template #default="scope">
<el-button link size="small" @click="handleEdit(scope.row)" <el-button link size="small" @click="handleEdit(scope.row)"
>编辑</el-button >编辑</el-button>
>
<el-popconfirm title="确定删除吗?"> <el-popconfirm title="确定删除吗?">
<template #reference> <template #reference>
<el-button link size="small">删除</el-button> <el-button link size="small">删除</el-button>

View File

@ -11,6 +11,7 @@
:data="list" ref="table" :data="list" ref="table"
row-key="id" stripe highlightCurrentRow hidePagination row-key="id" stripe highlightCurrentRow hidePagination
> >
<el-table-column label="#" type="index"></el-table-column>
<el-table-column label="ID" prop="id"></el-table-column> <el-table-column label="ID" prop="id"></el-table-column>
<el-table-column label="名称" prop="name"></el-table-column> <el-table-column label="名称" prop="name"></el-table-column>
<el-table-column label="定时器(单位秒)" prop="timer"></el-table-column> <el-table-column label="定时器(单位秒)" prop="timer"></el-table-column>