| | |
| | | <template> |
| | | <div class="app-container"> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | >创建测试流程</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="" |
| | | >删除</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="tastList"> |
| | | <!-- <el-table-column label="流程ID" align="center" prop="id"/>--> |
| | | <el-table-column label="流程名称" align="center" prop="title"/> |
| | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">转 发</el-button> |
| | | <el-button type="danger" @click="testGetNextNode">获取下一步</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {listTask, todoDetail, transmission, formDataShow, formDataSave} from "@/api/activiti/task"; |
| | | import {createDemoProcessInstance, getNextTaskInfo, listTask, todoDetail, transmission} from "@/api/activiti/task"; |
| | | // import leaveHistoryForm from "@/views/workflow/leave/leaveHistoryForm"; |
| | | |
| | | export default { |
| | |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | |
| | | /** 创建测试流程实例,2023-04-10 */ |
| | | handleAdd() { |
| | | createDemoProcessInstance().then(response => { |
| | | this.$modal.msgSuccess("演示流程实例已创建"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | |
| | | /** 测试获取下一步任务,2023-04-10 */ |
| | | testGetNextNode(){ |
| | | getNextTaskInfo(this.form.taskInstanceId).then(response => { |
| | | this.$modal.msgSuccess(response.data); |
| | | }); |
| | | } |
| | | } |
| | | }; |