feat(): 增加规则引擎,引擎版本维护页
parent
5d7167df0f
commit
4da328fe0a
|
@ -302,6 +302,18 @@ let routeResponse = {
|
|||
"link": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "EngineVersion",
|
||||
"path": "engine-version/:ruleEngineId(\\d+)",
|
||||
"hidden": true,
|
||||
"component": "ruleEngine/engineVersion/index",
|
||||
"meta": {
|
||||
"title": "引擎维护",
|
||||
"icon": "component",
|
||||
"noCache": false,
|
||||
"link": null
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
@ -47,95 +47,72 @@ export default {
|
|||
},
|
||||
scopeList: [
|
||||
{ type: "任务", value: "taskContext", "code":
|
||||
"package com.muyu;\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" +
|
||||
"package com.muyu.scope;\n" +
|
||||
"\n" +
|
||||
"/**\n" +
|
||||
" * @Author: DongZeLiang\n" +
|
||||
" * @date: 2024/4/29\n" +
|
||||
" * @Description: ceshi\n" +
|
||||
" * @Description: 任务上下文\n" +
|
||||
" * @Version: 1.0\n" +
|
||||
" */\n" +
|
||||
"public class Main {\n" +
|
||||
" public static void main (String[] args) {\n" +
|
||||
" // 测试代码\n" +
|
||||
" TaskContext taskContext = TaskContext.build();\n" +
|
||||
" RecordContext recordContext = new RecordContext(taskContext);\n" +
|
||||
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" +
|
||||
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" +
|
||||
"public class TaskContext {\n" +
|
||||
"\n" +
|
||||
" public static TaskContext build(){\n" +
|
||||
" return new TaskContext();\n" +
|
||||
" }\n" +
|
||||
"}"
|
||||
"}\n"
|
||||
},
|
||||
{ type: "资产集", value: "recordContext", "code":
|
||||
"package com.muyu;\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" +
|
||||
"package com.muyu.scope;\n" +
|
||||
"\n" +
|
||||
"/**\n" +
|
||||
" * @Author: DongZeLiang\n" +
|
||||
" * @date: 2024/4/29\n" +
|
||||
" * @Description: ceshi\n" +
|
||||
" * @Description: 数据集\n" +
|
||||
" * @Version: 1.0\n" +
|
||||
" */\n" +
|
||||
"public class Main {\n" +
|
||||
" public static void main (String[] args) {\n" +
|
||||
" TaskContext taskContext = TaskContext.build();\n" +
|
||||
" RecordContext recordContext = new RecordContext(taskContext);\n" +
|
||||
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" +
|
||||
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" +
|
||||
"public class DataSetContext {\n" +
|
||||
"\n" +
|
||||
" private final RecordContext recordContext;\n" +
|
||||
"\n" +
|
||||
" public DataSetContext (RecordContext recordContext) {\n" +
|
||||
" this.recordContext = recordContext;\n" +
|
||||
" }\n" +
|
||||
"}" },
|
||||
"}\n" },
|
||||
{ type: "资产记录", value: "dataSetContext", "code":
|
||||
"package com.muyu;\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" +
|
||||
"package com.muyu.scope;\n" +
|
||||
"\n" +
|
||||
"/**\n" +
|
||||
" * @Author: DongZeLiang\n" +
|
||||
" * @date: 2024/4/29\n" +
|
||||
" * @Description: ceshi\n" +
|
||||
" * @Description: 记录/资产模型\n" +
|
||||
" * @Version: 1.0\n" +
|
||||
" */\n" +
|
||||
"public class Main {\n" +
|
||||
" public static void main (String[] args) {\n" +
|
||||
" TaskContext taskContext = TaskContext.build();\n" +
|
||||
" RecordContext recordContext = new RecordContext(taskContext);\n" +
|
||||
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" +
|
||||
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" +
|
||||
"public class RecordContext {\n" +
|
||||
"\n" +
|
||||
" private final TaskContext taskContext;\n" +
|
||||
"\n" +
|
||||
" public RecordContext (TaskContext taskContext) {\n" +
|
||||
" this.taskContext = taskContext;\n" +
|
||||
" }\n" +
|
||||
"}" },
|
||||
"}\n" },
|
||||
{ type: "资产模型", value: "dataModelContext", "code":
|
||||
"package com.muyu;\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" +
|
||||
"package com.muyu.scope;\n" +
|
||||
"\n" +
|
||||
"/**\n" +
|
||||
" * @Author: DongZeLiang\n" +
|
||||
" * @date: 2024/4/29\n" +
|
||||
" * @Description: ceshi\n" +
|
||||
" * @Description: 数据模型\n" +
|
||||
" * @Version: 1.0\n" +
|
||||
" */\n" +
|
||||
"public class Main {\n" +
|
||||
" public static void main (String[] args) {\n" +
|
||||
" TaskContext taskContext = TaskContext.build();\n" +
|
||||
" RecordContext recordContext = new RecordContext(taskContext);\n" +
|
||||
" DataSetContext dataSetContext = new DataSetContext(recordContext);\n" +
|
||||
" DataModelContext dataModelContext = new DataModelContext(dataSetContext);\n" +
|
||||
"public class DataModelContext {\n" +
|
||||
"\n" +
|
||||
" private final DataSetContext dataSetContext;\n" +
|
||||
"\n" +
|
||||
" public DataModelContext (DataSetContext dataSetContext) {\n" +
|
||||
" this.dataSetContext = dataSetContext;\n" +
|
||||
" }\n" +
|
||||
"}" }
|
||||
"}\n" }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -106,6 +106,13 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<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
|
||||
size="mini"
|
||||
type="text"
|
||||
|
@ -288,6 +295,9 @@ export default {
|
|||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
toEngineVersion(row){
|
||||
this.$router.push({ path: `/rule-engine/engine-version/${row.id}`});
|
||||
},
|
||||
/** 查询规则引擎列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue