| | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleDesign(scope.$index, scope.row)">设计</el-button> |
| | | @click="handleDesign(scope.$index, scope.row)">设计 |
| | | </el-button> |
| | | <el-button |
| | | v-if="!scope.row.deploymentId" |
| | | size="mini" |
| | | type="text" |
| | | @click="handlePublish(scope.$index, scope.row)">发布</el-button> |
| | | @click="handlePublish(scope.$index, scope.row)">发布 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleExport(scope.$index, scope.row)">导出</el-button> |
| | | @click="handleExport(scope.$index, scope.row)">导出 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleDelete(scope.$index, scope.row)">删除</el-button> |
| | | @click="handleDelete(scope.$index, scope.row)">删除 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | import {getModelLists, addModel, publishModelById, deleteModelById} from "./api/model.js"; |
| | | import commonHelper from "@/utils/common.js" |
| | | import TableTemplate from "@/components/TableTemplate"; |
| | | |
| | | export default { |
| | | name: "ModelManagement", |
| | | components: { |
| | |
| | | }, |
| | | handleDesign(index, row) { |
| | | // flowable改变设计的路径 |
| | | const path = "/designer/index.html#/editor/" + row.id; |
| | | const path = process.env.VUE_APP_FLOWABLE_PREFIX + "/designer/index.html#/editor/" + row.id; |
| | | // const path = "/editor?modelId=" + row.id; |
| | | commonHelper.openWindow(path); |
| | | window.open(path, '') |
| | | }, |
| | | handlePublish(index, row) { |
| | | const id = row.id; |
| | |
| | | handleExport(index, row) { |
| | | const {key ,id} = row; |
| | | const a = document.createElement("a"); |
| | | const url = process.env.VUE_APP_TAB_URL_PREFIX + "/model/manage/export/" + id; |
| | | const url = process.env.VUE_APP_FLOWABLE_PREFIX + "/model/manage/export/" + id; |
| | | a.href = url; |
| | | a.click(); |
| | | }, |
| | |
| | | color: #606266; |
| | | margin-right: 8px; |
| | | } |
| | | |
| | | .search-bar { |
| | | display: flex; |
| | | margin-top: 8px; |
| | | margin-left: 8px; |
| | | } |
| | | |
| | | .el-input { |
| | | display: inline-block; |
| | | width: 300px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .el-textarea { |
| | | width: 300px; |
| | | } |