feat(): 规则配置,引擎维护初始化页面
parent
4c6e1624d6
commit
c88c28c9a5
|
@ -47,87 +47,68 @@ export default {
|
||||||
},
|
},
|
||||||
scopeList: [
|
scopeList: [
|
||||||
{ type: "任务", value: "taskContext", "code":
|
{ type: "任务", value: "taskContext", "code":
|
||||||
"package com.etl;\n" +
|
"package com.etl.scope;\n" +
|
||||||
"\n" +
|
|
||||||
"import com.etl.scope.DataModelContext;\n" +
|
|
||||||
"import com.etl.scope.DataSetContext;\n" +
|
|
||||||
"import com.etl.scope.RecordContext;\n" +
|
|
||||||
"import com.etl.scope.TaskContext;\n" +
|
|
||||||
"\n" +
|
"\n" +
|
||||||
"/**\n" +
|
"/**\n" +
|
||||||
" * @Author: Chao\n" +
|
" * @Author: Chao\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.etl;\n" +
|
"package com.etl.scope;\n" +
|
||||||
"\n" +
|
|
||||||
"import com.etl.scope.DataModelContext;\n" +
|
|
||||||
"import com.etl.scope.DataSetContext;\n" +
|
|
||||||
"import com.etl.scope.RecordContext;\n" +
|
|
||||||
"import com.etl.scope.TaskContext;\n" +
|
|
||||||
"\n" +
|
"\n" +
|
||||||
"/**\n" +
|
"/**\n" +
|
||||||
" * @Author: Chao\n" +
|
" * @Author: Chao\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.etl;\n" +
|
"package com.etl.scope;\n" +
|
||||||
"\n" +
|
|
||||||
"import com.etl.scope.DataModelContext;\n" +
|
|
||||||
"import com.etl.scope.DataSetContext;\n" +
|
|
||||||
"import com.etl.scope.RecordContext;\n" +
|
|
||||||
"import com.etl.scope.TaskContext;\n" +
|
|
||||||
"\n" +
|
"\n" +
|
||||||
"/**\n" +
|
"/**\n" +
|
||||||
" * @Author: Chao\n" +
|
" * @Author: Chao\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.etl;\n" +
|
"package com.etl.scope;\n" +
|
||||||
"\n" +
|
|
||||||
"import com.etl.scope.DataModelContext;\n" +
|
|
||||||
"import com.etl.scope.DataSetContext;\n" +
|
|
||||||
"import com.etl.scope.RecordContext;\n" +
|
|
||||||
"import com.etl.scope.TaskContext;\n" +
|
|
||||||
"\n" +
|
"\n" +
|
||||||
"/**\n" +
|
"/**\n" +
|
||||||
" * @Author: Chao\n" +
|
" * @Author: Chao\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" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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