| | |
| | | import {mapGetters} from "vuex"; |
| | | import basicOption from "@/util/basic-option"; |
| | | import {getTypeList} from "@/api/processTemplate/type"; |
| | | import {getProcessTempList,saveProcessTemp,updateProcessTemp,deleteProcessTemp,downloadTemplate,download,stopProcessTemp} from "@/api/processTemplate/define"; |
| | | import {getProcessTempList,detail,saveProcessTemp,updateProcessTemp,deleteProcessTemp,downloadTemplate,download,stopProcessTemp} from "@/api/processTemplate/define"; |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | |
| | | process: {}, |
| | | step: 1, |
| | | step1: { |
| | | toolbar: ['open', 'create', 'fit', 'zoom-in', 'zoom-out', 'undo', 'redo', 'import', 'preview'], |
| | | toolbar: ['open', 'create', 'fit', 'zoom-in', 'zoom-out', 'undo', 'redo',/*'download-xml',*/ 'import', 'preview'], |
| | | }, |
| | | step2: { |
| | | mode: 'view', |
| | |
| | | this.dialogType='add' |
| | | }, |
| | | handleEdit(row,index) { |
| | | this.form={ |
| | | ...row |
| | | } |
| | | //detail({id: row.id}).then(res => { |
| | | const data = {businessObject:{}}//res.data.data |
| | | const {modelEditorXml} = data |
| | | data.id='leave'; |
| | | this.$set(this.nutflowOption.step1, 'xml', modelEditorXml) |
| | | this.$set(this.nutflowOption, 'process', data) |
| | | this.dialogVisible = true; |
| | | this.dialogType = 'edit' |
| | | //}) |
| | | }, |
| | | //保存流程配置 |
| | | handleSubmitModel() { |
| | |
| | | } |
| | | } |
| | | </style> |
| | | <style> |
| | | /**隐层设计器中右下角图标**/ |
| | | a.bjs-powered-by{ |
| | | display: none; |
| | | } |
| | | </style> |