diff --git a/src/components/Layout/FullPage.vue b/src/components/Layout/FullPage.vue
new file mode 100644
index 00000000..d4f61d7c
--- /dev/null
+++ b/src/components/Layout/FullPage.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Layout/index.ts b/src/components/Layout/index.ts
index c4c946e2..9214b6a0 100644
--- a/src/components/Layout/index.ts
+++ b/src/components/Layout/index.ts
@@ -1,2 +1,3 @@
export { default as BasicLayoutPage } from './BasicLayoutPage.vue'
-export { default as BlankLayoutPage } from './BlankLayoutPage.vue'
\ No newline at end of file
+export { default as BlankLayoutPage } from './BlankLayoutPage.vue'
+export { default as FullPage } from './FullPage.vue'
\ No newline at end of file
diff --git a/src/components/index.ts b/src/components/index.ts
index 71e6d881..e798c473 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -8,7 +8,7 @@ import Search from './Search'
import NormalUpload from './NormalUpload/index.vue'
import FileFormat from './FileFormat/index.vue'
import JProUpload from './Upload/index.vue'
-import { BasicLayoutPage, BlankLayoutPage } from './Layout'
+import { BasicLayoutPage, BlankLayoutPage, FullPage } from './Layout'
import { PageContainer, AIcon, Ellipsis } from 'jetlinks-ui-components'
// import Ellipsis from './Ellipsis/index.vue'
import JEmpty from './Empty/index.vue'
@@ -38,5 +38,6 @@ export default {
.component('PathSimplifier', PathSimplifier)
.component('ValueItem', ValueItem)
.component('RowPagination', RowPagination)
+ .component('FullPage', FullPage)
}
}
diff --git a/src/router/index.ts b/src/router/index.ts
index 9290694b..f2b5a21c 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,5 +1,5 @@
import { createRouter, createWebHashHistory } from 'vue-router'
-import menus, { LoginPath } from './menu'
+import menus, { AccountCenterBindPath, InitHomePath, LoginPath } from './menu'
import { cleanToken, getToken } from '@/utils/comm'
import { useUserInfo } from '@/store/userInfo'
import { useSystem } from '@/store/system'
@@ -14,6 +14,8 @@ const router = createRouter({
}
})
+const filterPath = [ InitHomePath, AccountCenterBindPath ]
+
router.beforeEach((to, from, next) => {
// TODO 切换路由取消请求
const token = getToken()
@@ -24,7 +26,7 @@ router.beforeEach((to, from, next) => {
const userInfo = useUserInfo()
const system = useSystem()
const menu = useMenuStore()
- if (!menu.siderMenus.length) {
+ if (!menu.siderMenus.length && !filterPath.includes(to.path)) {
userInfo.getUserInfo().then(() => {
system.getSystemVersion().then((menuData: any[]) => {
menuData.forEach(r => {
diff --git a/src/router/menu.ts b/src/router/menu.ts
index 823178a7..cd2e8bf8 100644
--- a/src/router/menu.ts
+++ b/src/router/menu.ts
@@ -1,4 +1,6 @@
export const LoginPath = '/login'
+export const InitHomePath = '/init-home'
+export const AccountCenterBindPath = '/account/center/bind'
export const AccountMenu = {
path: '/account',
@@ -55,11 +57,11 @@ export default [
component: () => import('@/views/user/Login/index.vue')
},
{
- path: '/account/center/bind',
+ path: AccountCenterBindPath,
component: () => import('@/views/account/Center/bind/index.vue')
},
{
- path: '/init-home', // 初始化
+ path: InitHomePath, // 初始化
component: () => import('@/views/init-home/index.vue')
},
diff --git a/src/views/DataCollect/Collector/Tree/Save/index.vue b/src/views/DataCollect/Collector/Tree/Save/index.vue
index 01ec25b3..0c8782fb 100644
--- a/src/views/DataCollect/Collector/Tree/Save/index.vue
+++ b/src/views/DataCollect/Collector/Tree/Save/index.vue
@@ -106,13 +106,7 @@
:column="2"
/>
-
+
当前内存布局:{{
endianMap.get(formData.configuration.endian)
@@ -123,6 +117,19 @@
具有4种内存布局,其它只有ABCD、DCBA两种内存布局(以双字配置为准)
+
+
+
{
params.value = e;
- expandedRowKeys.value = []
+ expandedRowKeys.value = [];
};
/**
* 操作栏按钮
@@ -210,21 +210,20 @@ const table = reactive({
dataIndex: 'name',
key: 'name',
ellipsis: true,
- width: 600,
+ width: 500,
},
{
title: '排序',
dataIndex: 'sortIndex',
key: 'sortIndex',
scopedSlots: true,
- width: 200,
+ width: 100,
},
{
title: '说明',
dataIndex: 'description',
key: 'description',
ellipsis: true,
- width: 700,
},
{
title: '操作',
@@ -232,6 +231,7 @@ const table = reactive({
fixed: 'right',
ellipsis: true,
scopedSlots: true,
+ width: 120,
},
],
/**
diff --git a/src/views/rule-engine/Scene/Save/components/Timer/index.vue b/src/views/rule-engine/Scene/Save/components/Timer/index.vue
index 7531a609..38c690ab 100644
--- a/src/views/rule-engine/Scene/Save/components/Timer/index.vue
+++ b/src/views/rule-engine/Scene/Save/components/Timer/index.vue
@@ -220,7 +220,7 @@ Object.assign(formModel, props.value)
formModel.when = props.value.when || []
watchEffect(() => {
- if(props.value?.period.unit === 'hours') {
+ if(props.value?.period?.unit === 'hours') {
unitMax.
value = 99999
} else {
diff --git a/src/views/rule-engine/Scene/Save/index.vue b/src/views/rule-engine/Scene/Save/index.vue
index da8797e9..86f2f3ce 100644
--- a/src/views/rule-engine/Scene/Save/index.vue
+++ b/src/views/rule-engine/Scene/Save/index.vue
@@ -1,42 +1,44 @@
-
-
+
diff --git a/src/views/rule-engine/Scene/index.vue b/src/views/rule-engine/Scene/index.vue
index dc9641d5..b9aa6cef 100644
--- a/src/views/rule-engine/Scene/index.vue
+++ b/src/views/rule-engine/Scene/index.vue
@@ -1,6 +1,8 @@
+
+
+
diff --git a/src/views/user/Login/index.vue b/src/views/user/Login/index.vue
index a1ec8cdb..ffa0eab2 100644
--- a/src/views/user/Login/index.vue
+++ b/src/views/user/Login/index.vue
@@ -237,7 +237,7 @@ const onFinish = async () => {
username: form.username,
});
LocalStore.set(TOKEN_KEY, res?.result.token);
- if (res.result.username === 'admin') {
+ if (res.result.user?.username === 'admin') {
const resp: any = await getInitSet();
if (resp.status === 200 && !resp.result.length) {
window.location.href = '/#/init-home';