fix: 修复运维管理、数据采集卡片跳转

This commit is contained in:
jackhoo_98 2023-03-23 18:01:37 +08:00
parent 0671e2d357
commit f75e9303d4
6 changed files with 19 additions and 17 deletions

View File

@ -37,6 +37,7 @@
:status="getState(slotProps).value" :status="getState(slotProps).value"
:statusText="getState(slotProps).text" :statusText="getState(slotProps).text"
:statusNames="StatusColorEnum" :statusNames="StatusColorEnum"
@click="handlEye(slotProps.id)"
> >
<template #img> <template #img>
<slot name="img"> <slot name="img">
@ -48,8 +49,9 @@
<Ellipsis style="width: calc(100% - 100px)"> <Ellipsis style="width: calc(100% - 100px)">
<span <span
style=" style="
font-size: 16px; font-size: 18px;
font-weight: 600; font-weight: 800;
line-height: 22px;
" "
> >
{{ slotProps.name }} {{ slotProps.name }}
@ -276,6 +278,9 @@ const handlEdit = (data: object) => {
current.value = _.cloneDeep(data); current.value = _.cloneDeep(data);
visible.value = true; visible.value = true;
}; };
const handlEye = (id: string) => {
menuStory.jumpPage(`DataCollect/Collector`, {}, { channelId: id });
};
const saveChange = (value: object) => { const saveChange = (value: object) => {
visible.value = false; visible.value = false;
current.value = {}; current.value = {};

View File

@ -254,7 +254,7 @@ watch(
<style lang="less" scoped> <style lang="less" scoped>
.tree-container { .tree-container {
padding-right: 24px; padding-right: 24px;
width: 300px; width: 350px;
.add-btn { .add-btn {
margin: 10px 0; margin: 10px 0;

View File

@ -36,7 +36,7 @@ const changeTree = (row: any) => {
min-height: calc(100vh - 180px); min-height: calc(100vh - 180px);
width: 100%; width: 100%;
.left { .left {
width: 300px; width: 350px;
border-right: 1px #eeeeee solid; border-right: 1px #eeeeee solid;
margin: 10px; margin: 10px;
} }

View File

@ -51,6 +51,7 @@
enabled: 'processing', enabled: 'processing',
disabled: 'error', disabled: 'error',
}" }"
@click="handlEye(slotProps.id)"
> >
<template #img> <template #img>
<slot name="img"> <slot name="img">
@ -63,13 +64,9 @@
style=" style="
width: calc(100% - 100px); width: calc(100% - 100px);
margin-bottom: 20px; margin-bottom: 20px;
color: #2f54eb;
" "
> >
<span <span class="card-title">
class="card-title"
@click.stop="handlEye(slotProps.id)"
>
{{ slotProps.name }} {{ slotProps.name }}
</span> </span>
</Ellipsis> </Ellipsis>

View File

@ -39,6 +39,7 @@
enabled: 'processing', enabled: 'processing',
disabled: 'error', disabled: 'error',
}" }"
@click="handlEye(slotProps.id)"
> >
<template #img> <template #img>
<slot name="img"> <slot name="img">
@ -51,15 +52,14 @@
style=" style="
width: calc(100% - 100px); width: calc(100% - 100px);
margin-bottom: 20px; margin-bottom: 20px;
color: #2f54eb;
" "
> >
<span <span
style=" style="
font-size: 16px; font-size: 18px;
font-weight: 600; font-weight: 800;
line-height: 22px;
" "
@click.stop="handlEye(slotProps.id)"
> >
{{ slotProps.name }} {{ slotProps.name }}
</span> </span>

View File

@ -41,6 +41,7 @@
enabled: 'processing', enabled: 'processing',
disabled: 'error', disabled: 'error',
}" }"
@click="handlEye(slotProps.id)"
> >
<template #img> <template #img>
<slot name="img"> <slot name="img">
@ -53,15 +54,14 @@
style=" style="
width: calc(100% - 100px); width: calc(100% - 100px);
margin-bottom: 10px; margin-bottom: 10px;
color: #2f54eb;
" "
> >
<span <span
style=" style="
font-size: 16px; font-size: 18px;
font-weight: 600; font-weight: 800;
line-height: 22px;
" "
@click.stop="handlEye(slotProps.id)"
> >
{{ slotProps.name }} {{ slotProps.name }}
</span> </span>