| | |
| | | :xml="xml" |
| | | :is-view="false" |
| | | @save="save" |
| | | @update="update" |
| | | @showXML="showXML" |
| | | /> |
| | | <!--在线查看xml--> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {readXml, roleList, saveXml, userList,expList} from "@/api/flowable/definition"; |
| | | import {readXml, roleList, saveXml, userList, expList, updateXml} from "@/api/flowable/definition"; |
| | | import BpmnModel from '@/components/Process' |
| | | import vkBeautify from 'vkbeautify' |
| | | import hljs from 'highlight.js' |
| | |
| | | this.$tab.closeOpenPage(obj); |
| | | }) |
| | | }, |
| | | /** 更新xml */ |
| | | update(data) { |
| | | const params = { |
| | | deploymentId: this.$route.query && this.$route.query.deployId, |
| | | name: data.process.name, |
| | | category: data.process.category, |
| | | xml: data.xml |
| | | } |
| | | updateXml(params).then(res => { |
| | | this.$modal.msgSuccess(res.msg) |
| | | // 关闭当前标签页并返回上个页面 |
| | | const obj = { path: "/flowable/definition", query: { t: Date.now()} }; |
| | | this.$tab.closeOpenPage(obj); |
| | | }) |
| | | }, |
| | | /** 指定流程办理人员列表 */ |
| | | getDataList() { |
| | | userList().then(res => { |