zh
2024-11-25 fa69c4fed092597de0d7e6bb522942da847bb641
src/views/process/modelManagement.vue
@@ -57,20 +57,24 @@
                        <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>
@@ -106,6 +110,7 @@
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: {
@@ -166,9 +171,9 @@
        },
        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;
@@ -180,7 +185,7 @@
        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();
        },
@@ -221,16 +226,19 @@
    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;
}