fix: bug#29904 设备运行状态详情,切换今日、近一周、近一月时,界面展示数据错误(请查看附件)

* fix: bug#菜单管理新增菜单时,排序需优化(默认为10000开始)

* fix: bug#29241当前账号无权限时,点击后打开了选择弹窗

* fix: bug#29281 告警记录>>>设备>>>选择筛选条件为产品名称后,可筛选下拉值错误

* fix: bug#29291 物联卡点击详情查看平台类型时,平台类型展示错误

* fix: bug#30018

* fix: bug#29637 OneNet网关目前只使用最新的这一个,原有的需屏蔽

* fix: bug#30403 默认日历标签拖动进日历中,查看颜色展示错误,同实际颜色不一致

* fix: bug#29904 设备运行状态详情,切换今日、近一周、近一月时,界面展示数据错误(请查看附件)
This commit is contained in:
qiaochuLei 2024-10-16 18:21:38 +08:00 committed by GitHub
parent 29930066d5
commit 08c8eda133
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 37 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -44,7 +44,7 @@ export const useSystem = defineStore('system', {
collapsed: false, collapsed: false,
pure: false pure: false
}, },
calendarTagColor:new Map(), calendarTagColor:new Map([['holiday','rgb(161, 180, 204)'],['weekend','rgb(149, 222, 100)'],['workday', 'rgba(105,177,255)']]),
showThreshold: true showThreshold: true
}), }),
actions: { actions: {

View File

@ -307,7 +307,7 @@ watch(
); );
watch( watch(
() => [cycle.value, agg.value, prop.time], () => [cycle.value, agg.value],
([newCycle]) => { ([newCycle]) => {
if (newCycle === '*' && _type.value) { if (newCycle === '*' && _type.value) {
queryChartsList(); queryChartsList();
@ -315,7 +315,7 @@ watch(
queryChartsAggList(); queryChartsAggList();
} }
}, },
{ deep: true, immediate: true }, { deep: true},
); );
watchEffect(() => { watchEffect(() => {

View File

@ -275,7 +275,7 @@ const unbind = (id: string) => {
handleSearch(); handleSearch();
} }
}); });
return response return response;
} }
}; };
@ -292,9 +292,14 @@ const onSave = () => {
formRef.value formRef.value
.validate() .validate()
.then(async () => { .then(async () => {
const arr = toRaw(modelRef).dataSource.filter( const arr = toRaw(modelRef)
(i: any) => i.channelId, .dataSource.filter((i: any) => i.channelId)
); .map((item) => {
if (instanceStore.current.state?.value === 'notActive') {
item.state = 'disabled';
}
return item;
});
if (arr && arr.length !== 0) { if (arr && arr.length !== 0) {
console.log(arr); console.log(arr);
const resp = await saveMapping( const resp = await saveMapping(

View File

@ -47,8 +47,8 @@
platformTypeList.find( platformTypeList.find(
(item) => (item) =>
item.value === item.value ===
detail.operatorPlatformType?.text, detail.operatorName,
)?.label || detail.operatorPlatformType?.text )?.label || detail.operatorName
}}</j-descriptions-item> }}</j-descriptions-item>
<j-descriptions-item label="平台名称">{{ <j-descriptions-item label="平台名称">{{
detail.platformConfigName detail.platformConfigName
@ -274,8 +274,8 @@
platformTypeList.find( platformTypeList.find(
(item) => (item) =>
item.value === item.value ===
detail.operatorPlatformType?.text, detail.operatorName,
)?.label || detail.operatorPlatformType?.text )?.label || detail.operatorName
}}</j-descriptions-item> }}</j-descriptions-item>
<j-descriptions-item label="平台名称">{{ <j-descriptions-item label="平台名称">{{
detail.platformConfigName detail.platformConfigName

View File

@ -139,8 +139,17 @@ const getTypeList = (result: Record<string, any>) => {
const cloud: any[] = []; const cloud: any[] = [];
const channel: any[] = []; const channel: any[] = [];
const edge: any[] = []; const edge: any[] = [];
result.map((item: any) => { result
if (item.id === 'fixed-media' || item.id === 'gb28181-2016' || item.id ==='onvif' || item.id === 'media-plugin') { .filter((i:any) => {
return i.id !== 'OneNet';
})
.forEach((item: any) => {
if (
item.id === 'fixed-media' ||
item.id === 'gb28181-2016' ||
item.id === 'onvif' ||
item.id === 'media-plugin'
) {
item.type = 'media'; item.type = 'media';
media.push(item); media.push(item);
} else if (item.id === 'OneNet' || item.id === 'Ctwing' || item.id === 'OneNet-platform') { } else if (item.id === 'OneNet' || item.id === 'Ctwing' || item.id === 'OneNet-platform') {

View File

@ -31,6 +31,7 @@
accept=".json" accept=".json"
:showUploadList="false" :showUploadList="false"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:disabled="!permission"
> >
<PermissionButton <PermissionButton
hasPermission="notice/Config:import" hasPermission="notice/Config:import"
@ -220,6 +221,8 @@ Object.keys(MSG_TYPE).forEach((key) => {
const configRef = ref<Record<string, any>>({}); const configRef = ref<Record<string, any>>({});
const params = ref<Record<string, any>>({}); const params = ref<Record<string, any>>({});
const permission = usePermissionStore().hasPermission(`notice/Config:import`);
const columns = [ const columns = [
{ {
title: '配置名称', title: '配置名称',

View File

@ -339,13 +339,14 @@ const newColumns = computed(() => {
}, },
]; ];
const resp: any = await getAlarmProduct({ const resp: any = await getAlarmProduct({
paging:false,
sorts: [{ name: 'alarmTime', order: 'desc' }], sorts: [{ name: 'alarmTime', order: 'desc' }],
terms: termType, terms: termType,
}); });
const listMap: Map<string, any> = new Map(); const listMap: Map<string, any> = new Map();
if (resp.status === 200) { if (resp.status === 200) {
resp.result.data.forEach((item) => { resp.result.forEach((item) => {
if (item.productId) { if (item.productId) {
listMap.set(item.productId, { listMap.set(item.productId, {
label: item.productName, label: item.productName,

View File

@ -229,8 +229,10 @@ const table = reactive({
paging: false, paging: false,
}; };
const resp: any = await getMenuTree_api(params); const resp: any = await getMenuTree_api(params);
const lastItem = resp.result[resp.result.length - 1]; const menuArr = resp.result.filter((i:any)=>i.code!=='account-center')
table.total = lastItem ? lastItem.sortIndex + 1 : 1; const lastItem = menuArr[menuArr.length - 1];
//9999
table.total = lastItem ? lastItem.sortIndex + 1 === 9999 ? 10000 : lastItem.sortIndex + 1 : 1;
return { return {
code: resp.message, code: resp.message,