feat(): 增加规则引擎,引擎版本维护页

master
DongZeLiang 2024-04-30 10:04:22 +08:00
parent 5d7167df0f
commit 4da328fe0a
4 changed files with 79 additions and 57 deletions

View File

@ -302,6 +302,18 @@ let routeResponse = {
"link": null "link": null
} }
}, },
{
"name": "EngineVersion",
"path": "engine-version/:ruleEngineId(\\d+)",
"hidden": true,
"component": "ruleEngine/engineVersion/index",
"meta": {
"title": "引擎维护",
"icon": "component",
"noCache": false,
"link": null
}
},
], ],
}, },
] ]

View File

@ -47,95 +47,72 @@ export default {
}, },
scopeList: [ scopeList: [
{ type: "任务", value: "taskContext", "code": { type: "任务", value: "taskContext", "code":
"package com.muyu;\n" + "package com.muyu.scope;\n" +
"\n" +
"import com.muyu.scope.DataModelContext;\n" +
"import com.muyu.scope.DataSetContext;\n" +
"import com.muyu.scope.RecordContext;\n" +
"import com.muyu.scope.TaskContext;\n" +
"\n" + "\n" +
"/**\n" + "/**\n" +
" * @Author: DongZeLiang\n" + " * @Author: DongZeLiang\n" +
" * @date: 2024/4/29\n" + " * @date: 2024/4/29\n" +
" * @Description: ceshi\n" + " * @Description: 任务上下文\n" +
" * @Version: 1.0\n" + " * @Version: 1.0\n" +
" */\n" + " */\n" +
"public class Main {\n" + "public class TaskContext {\n" +
" public static void main (String[] args) {\n" + "\n" +
" // 测试代码\n" + " public static TaskContext build(){\n" +
" TaskContext taskContext = TaskContext.build();\n" + " return new TaskContext();\n" +
" RecordContext recordContext = new RecordContext(taskContext);\n" +
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" +
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" +
" }\n" + " }\n" +
"}" "}\n"
}, },
{ type: "资产集", value: "recordContext", "code": { type: "资产集", value: "recordContext", "code":
"package com.muyu;\n" + "package com.muyu.scope;\n" +
"\n" +
"import com.muyu.scope.DataModelContext;\n" +
"import com.muyu.scope.DataSetContext;\n" +
"import com.muyu.scope.RecordContext;\n" +
"import com.muyu.scope.TaskContext;\n" +
"\n" + "\n" +
"/**\n" + "/**\n" +
" * @Author: DongZeLiang\n" + " * @Author: DongZeLiang\n" +
" * @date: 2024/4/29\n" + " * @date: 2024/4/29\n" +
" * @Description: ceshi\n" + " * @Description: 数据集\n" +
" * @Version: 1.0\n" + " * @Version: 1.0\n" +
" */\n" + " */\n" +
"public class Main {\n" + "public class DataSetContext {\n" +
" public static void main (String[] args) {\n" + "\n" +
" TaskContext taskContext = TaskContext.build();\n" + " private final RecordContext recordContext;\n" +
" RecordContext recordContext = new RecordContext(taskContext);\n" + "\n" +
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" + " public DataSetContext (RecordContext recordContext) {\n" +
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" + " this.recordContext = recordContext;\n" +
" }\n" + " }\n" +
"}" }, "}\n" },
{ type: "资产记录", value: "dataSetContext", "code": { type: "资产记录", value: "dataSetContext", "code":
"package com.muyu;\n" + "package com.muyu.scope;\n" +
"\n" +
"import com.muyu.scope.DataModelContext;\n" +
"import com.muyu.scope.DataSetContext;\n" +
"import com.muyu.scope.RecordContext;\n" +
"import com.muyu.scope.TaskContext;\n" +
"\n" + "\n" +
"/**\n" + "/**\n" +
" * @Author: DongZeLiang\n" + " * @Author: DongZeLiang\n" +
" * @date: 2024/4/29\n" + " * @date: 2024/4/29\n" +
" * @Description: ceshi\n" + " * @Description: 记录/资产模型\n" +
" * @Version: 1.0\n" + " * @Version: 1.0\n" +
" */\n" + " */\n" +
"public class Main {\n" + "public class RecordContext {\n" +
" public static void main (String[] args) {\n" + "\n" +
" TaskContext taskContext = TaskContext.build();\n" + " private final TaskContext taskContext;\n" +
" RecordContext recordContext = new RecordContext(taskContext);\n" + "\n" +
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" + " public RecordContext (TaskContext taskContext) {\n" +
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" + " this.taskContext = taskContext;\n" +
" }\n" + " }\n" +
"}" }, "}\n" },
{ type: "资产模型", value: "dataModelContext", "code": { type: "资产模型", value: "dataModelContext", "code":
"package com.muyu;\n" + "package com.muyu.scope;\n" +
"\n" +
"import com.muyu.scope.DataModelContext;\n" +
"import com.muyu.scope.DataSetContext;\n" +
"import com.muyu.scope.RecordContext;\n" +
"import com.muyu.scope.TaskContext;\n" +
"\n" + "\n" +
"/**\n" + "/**\n" +
" * @Author: DongZeLiang\n" + " * @Author: DongZeLiang\n" +
" * @date: 2024/4/29\n" + " * @date: 2024/4/29\n" +
" * @Description: ceshi\n" + " * @Description: 数据模型\n" +
" * @Version: 1.0\n" + " * @Version: 1.0\n" +
" */\n" + " */\n" +
"public class Main {\n" + "public class DataModelContext {\n" +
" public static void main (String[] args) {\n" + "\n" +
" TaskContext taskContext = TaskContext.build();\n" + " private final DataSetContext dataSetContext;\n" +
" RecordContext recordContext = new RecordContext(taskContext);\n" + "\n" +
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" + " public DataModelContext (DataSetContext dataSetContext) {\n" +
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" + " this.dataSetContext = dataSetContext;\n" +
" }\n" + " }\n" +
"}" } "}\n" }
] ]
} }
}, },

View File

@ -106,6 +106,13 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-takeaway-box"
@click="toEngineVersion(scope.row)"
v-hasPermi="['system:engine:edit']"
>规则维护</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -288,6 +295,9 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
toEngineVersion(row){
this.$router.push({ path: `/rule-engine/engine-version/${row.id}`});
},
/** 查询规则引擎列表 */ /** 查询规则引擎列表 */
getList() { getList() {
this.loading = true; this.loading = true;

View File

@ -0,0 +1,23 @@
<template>
<div>
{{ruleEngineId}}
</div>
</template>
<script>
export default {
name: "EngineVersion",
data() {
return {
ruleEngineId: this.$route.params && this.$route.params.ruleEngineId,
}
},
created() {
},
methods: {}
}
</script>
<style scoped>
</style>