feat(数据集): 增加数据集表单路由页面

This commit is contained in:
fit2cloud-chenyw 2022-09-08 18:02:12 +08:00
parent 9cb834ecab
commit faef8ffda5
3 changed files with 20 additions and 1 deletions

View File

@ -8,3 +8,5 @@ CREATE TABLE `sys_external_token` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
UPDATE `sys_menu` set `component` = 'system/datasource/DsForm' where `component` = 'system/datasource/form';
INSERT INTO `sys_menu` VALUES (800, 0, 0, 1, '数据集表单', 'dataset-form', 'dataset/form', 999, NULL, '/dataset-form', b'0', b'0', b'1', NULL, NULL, NULL, NULL, NULL);

View File

@ -29,7 +29,7 @@ const actions = {
commit('SET_CURRENT_PATH', path)
}
}
export const fullScreenRouters = ['XpackThemeForm', 'system/datasource/DsForm']
export const fullScreenRouters = ['XpackThemeForm', 'system/datasource/DsForm', 'dataset/form']
export const filterAsyncRouter = (routers) => { // 遍历后台传来的路由字符串,转换为组件对象
return routers.map(router => {
if (!fullScreenRouters.includes(router.component) && router.type === 1 && router.pid === 0 && router.component && router.component !== 'Layout') {

View File

@ -0,0 +1,17 @@
<template>
<div>this is dataset form</div>
</template>
<script>
export default {
name: 'DatasetForm',
data() {
return {
}
},
methods: {
}
}
</script>