| | |
| | | <div style="float: right"> |
| | | <el-button type="text" icon="el-icon-edit-outline" size="mini" @click="editFrom(item, groups)">编辑 |
| | | </el-button> |
| | | |
| | | <el-button type="text" size="mini" @click="viewGroup(item,groups)">查看流程</el-button> |
| | | |
| | | <el-popover placement="left" trigger="click" width="400" style="margin-left: 10px" |
| | |
| | | getGroups() { |
| | | let template = {"dataname": "sys_state_approve"} |
| | | getEntitySet(template).then(rsp => { |
| | | console.log("getEntitySet", rsp.data.data) |
| | | this.groups = rsp.data.data.entityset |
| | | console.log("this.groups", this.groups) |
| | | //this.groups = rsp.data |
| | | }).catch(err => this.$message.error('获取审批流程异常')) |
| | | }, |
| | | newProcess(groupId) { |
| | | // this.$store.commit("setTemplate", this.getTemplateData()); |
| | | // this.$store.commit("setIsEdit", false); |
| | | this.$router.push("/admin/design?groupId=" + groupId); |
| | | }, |
| | | groupSort() { |
| | | this.groupsSort = false |
| | | groupItemsSort(this.groups).then(rsp => { |
| | | this.$message.success("排序成功") |
| | | this.getGroups() |
| | | }).catch(err => { |
| | | this.getGroups() |
| | | this.$message.error(err.response.data) |
| | | }) |
| | | this.$message.success("排序成功") |
| | | |
| | | }, |
| | | |
| | | |
| | | viewGroup(item, group) { |
| | | console.log("viewGroup",item) |
| | | this.$router.push( |
| | | { |
| | | path: "/workspace/process/instance/tabs", |
| | |
| | | |
| | | |
| | | editFrom(item, group) { |
| | | console.log("item",item) |
| | | this.$router.push("/admin/design?code=" + item.id); |
| | | }, |
| | | |