fix: 修改物模型-指标值float,double值问题

fix: 修改物模型-指标值float,double值问题
This commit is contained in:
XieYongHong 2023-07-27 13:45:17 +08:00 committed by GitHub
parent 9b9b316a5a
commit 749c36bf48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 4 deletions

View File

@ -61,7 +61,7 @@ const layoutConf = reactive({
siderWidth: layout.value.siderWidth,
logo: DefaultSetting.layout.logo,
title: DefaultSetting.layout.title,
menuData: [...menu.siderMenus, AccountMenu],
menuData: menu.siderMenus,
// menuData: menu.siderMenus,
splitMenus: true,
});

View File

@ -123,7 +123,7 @@ export const useMenuStore = defineStore({
})
// console.log(menusData)
// menusData.push(AccountMenu)
this.siderMenus = silderMenus.filter((item: { name: string }) => ![USER_CENTER_MENU_CODE, NotificationRecordCode, NotificationSubscriptionCode].includes(item.name))
this.siderMenus = silderMenus
res(menusData)
}
})

View File

@ -472,7 +472,7 @@ export const handleMenusMap = (menuData: any[], cb: (data: any) => void) => {
}
const hideInMenu = (code: string) => {
return ['account-center', 'message-subscribe'].includes(code)
return ['account-center', 'account-center', 'message-subscribe'].includes(code)
}
export const handleSiderMenu = (menuData: any[]) => {

View File

@ -7,7 +7,7 @@
@change="change"
/>
<j-input-number
v-else-if="['int', 'long', 'float', 'double'].includes(type)"
v-else-if="type === 'int'"
v-model:value="myValue"
:precision="0"
:max="2147483647"
@ -16,6 +16,25 @@
placeholder="请输入"
@change="change"
/>
<j-input-number
v-else-if="type === 'long'"
v-model:value="myValue"
:max="9223372036854775807"
:min="-9223372036854775808"
:precision="0"
placeholder="请输入"
style="width: 100%"
@change="change"
/>
<j-input-number
v-else-if="['float', 'double'].includes(type)"
v-model:value="myValue"
:max="9999999999999999"
:min="-9999999999999999"
placeholder="请输入"
style="width: 100%"
@change="change"
/>
<j-select
v-else-if="type === 'boolean'"
placeholder="请选择"