This commit is contained in:
timorls 2022-09-15 20:26:50 +08:00
parent f9f053c182
commit 42820bdc53
3 changed files with 35 additions and 30 deletions

View File

@ -153,6 +153,7 @@ h2:before {
.el-tag--dark.el-tag--success { .el-tag--dark.el-tag--success {
background-color: #4ab793; background-color: #4ab793;
color: rgb(255, 255, 255, 0.87);
border: none; border: none;
} }

View File

@ -112,31 +112,31 @@ export default {
title: "宏观数据", title: "宏观数据",
content: "", content: "",
}, },
{ // {
id: "3-3", // id: "3-3",
title: "状态监测", // title: "",
content: "", // content: "",
}, // },
{ // {
id: "3-4", // id: "3-4",
title: "日志统计", // title: "",
content: "", // content: "",
}, // },
{ // {
id: "3-5", // id: "3-5",
title: "定时任务", // title: "",
content: "", // content: "",
}, // },
{ // {
id: "3-6", // id: "3-6",
title: "ETL设置", // title: "ETL",
content: "", // content: "",
}, // },
{ // {
id: "3-7", // id: "3-7",
title: "通知设置", // title: "",
content: "", // content: "",
}, // },
], ],
}, },
{ {

View File

@ -2,6 +2,7 @@
<template> <template>
<el-row> <el-row>
<fecr-dialog <fecr-dialog
:width="'700px'"
:title="'编辑数据结构'" :title="'编辑数据结构'"
:visible="createDataVisible" :visible="createDataVisible"
@cancel="deleteCreateData" @cancel="deleteCreateData"
@ -89,16 +90,18 @@
class="dimension" class="dimension"
> >
<el-col :span="4" class="dimension-col"> <el-col :span="4" class="dimension-col">
<el-tag type="success" dark>{{ item.index_1 }}</el-tag> <el-tag type="success" effect="dark" v-if="index>0&&item.index_1 !== data.index[index-1].index_1">{{ item.index_1 }}</el-tag>
<el-tag v-else-if="index === 0" type="success" effect="dark">{{ item.index_1 }}</el-tag>
</el-col> </el-col>
<el-col :span="4" class="dimension-col"> <el-col :span="4" class="dimension-col">
<el-tag type="success" dark>{{ item.index_2 }}</el-tag> <el-tag type="success" effect="dark" v-if="index>0&&item.index_2 !== data.index[index-1].index_2">{{ item.index_2 }}</el-tag>
<el-tag v-else-if="index === 0" type="success" effect="dark">{{ item.index_1 }}</el-tag>
</el-col> </el-col>
<el-col :span="4" class="dimension-col"> <el-col :span="4" class="dimension-col">
<el-tag type="success" dark>{{ item.index_3 }}</el-tag> <el-tag type="success" effect="dark">{{ item.index_3 }}</el-tag>
</el-col> </el-col>
<el-col :span="4" class="dimension-col"> <el-col :span="4" class="dimension-col">
<el-tag type="success" dark>{{ item.weight }}%</el-tag> <el-tag type="success" effect="dark">{{ item.weight }}%</el-tag>
</el-col> </el-col>
<el-col :span="4" class="dimension-col"> <el-col :span="4" class="dimension-col">
<el-button <el-button
@ -437,7 +440,7 @@ export default {
.el-tag { .el-tag {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin: 0; margin: 5px 0;
} }
} }
@ -496,6 +499,7 @@ p {
.my-editor { .my-editor {
width: 100%; width: 100%;
min-height: 500px;
background: #2d2d2d; background: #2d2d2d;
color: #ccc; color: #ccc;
font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace; font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace;