2020-08-19 11:44:26 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="right-box right-box-edit-endpoint" v-clickoutside="clickOutside">
|
|
|
|
|
|
<!-- begin--顶部按钮-->
|
|
|
|
|
|
<div class="right-box-top-btns">
|
2020-08-20 14:47:14 +08:00
|
|
|
|
<!--<button id="edit-ep-del" type="button" @click="del" class="nz-btn nz-btn-size-normal nz-btn-size-alien nz-btn-style-light ">-->
|
|
|
|
|
|
<!--<span class="right-box-top-btn-icon"><i class="el-icon-delete"></i></span>-->
|
|
|
|
|
|
<!--<span class="right-box-top-btn-txt">{{$t('overall.delete')}}</span>-->
|
|
|
|
|
|
<!--</button>-->
|
2020-08-19 11:44:26 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<!-- end--顶部按钮-->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- begin--标题-->
|
2020-08-20 14:47:14 +08:00
|
|
|
|
<div class="right-box-title">
|
|
|
|
|
|
<!--{{$t("project.endpoint.editEndpoint") + " ID:" + nodeData.id}}-->
|
|
|
|
|
|
Add Module
|
|
|
|
|
|
</div>
|
2020-08-19 11:44:26 +08:00
|
|
|
|
<!-- end--标题-->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- begin--表单-->
|
|
|
|
|
|
<el-scrollbar class="right-box-form-box">
|
2020-08-20 17:09:22 +08:00
|
|
|
|
<el-form class="right-box-form right-box-form-left" ref="form" :model="form" label-width="160px" :rules="rules">
|
2020-08-24 11:22:59 +08:00
|
|
|
|
<el-form-item label="Module Name" prop="moduleId">
|
2020-08-24 15:02:23 +08:00
|
|
|
|
<el-select v-model="form.moduleId" placeholder="" popper-class="asset-dropdown" size="small">
|
2020-08-19 11:44:26 +08:00
|
|
|
|
<el-option
|
2020-08-20 14:47:14 +08:00
|
|
|
|
v-for="item in moduleDataS.module"
|
2020-08-19 11:44:26 +08:00
|
|
|
|
:key="item.id"
|
2020-08-20 14:47:14 +08:00
|
|
|
|
:label="item.name"
|
2020-08-19 11:44:26 +08:00
|
|
|
|
:value="item.id">
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
2020-08-26 09:34:30 +08:00
|
|
|
|
<el-form-item label="Icon" prop="iconId" class="icon">
|
2020-08-24 15:02:23 +08:00
|
|
|
|
<el-select v-model="form.iconId" placeholder="" popper-class="asset-dropdown" size="small">
|
2020-08-19 11:44:26 +08:00
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in iconArray"
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
:value="item.id">
|
2020-08-20 17:09:22 +08:00
|
|
|
|
<span style="float: left;width: 50%">
|
2020-08-19 11:44:26 +08:00
|
|
|
|
<img :src="item.image" />
|
|
|
|
|
|
</span>
|
2020-08-20 17:09:22 +08:00
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.imageName }}</span>
|
2020-08-19 11:44:26 +08:00
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
2020-08-26 09:34:30 +08:00
|
|
|
|
<el-upload
|
|
|
|
|
|
class="avatar-uploader"
|
|
|
|
|
|
action=" "
|
|
|
|
|
|
:show-file-list="false"
|
|
|
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
|
|
|
@change="onChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
上传文件
|
|
|
|
|
|
</el-upload>
|
2020-08-19 11:44:26 +08:00
|
|
|
|
</el-form-item>
|
2020-08-24 15:02:23 +08:00
|
|
|
|
<div class="right-box-sub-title">
|
|
|
|
|
|
<span>{{$t('alert.config.expr')}}</span>
|
|
|
|
|
|
<span class="float-right" @click="addExpression"><i style="font-size: 16px; cursor: pointer;" class="nz-icon nz-icon-create-square"></i></span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-row class="element-item" style="" v-for="index of promqlKeys.length" :key="'ele' + index">
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<el-col style="width: 120px; padding-right: 20px; text-align: right; color: #666">
|
|
|
|
|
|
Name
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col style="width: calc(100% - 140px);">
|
|
|
|
|
|
<el-input v-model="name[index-1]" type="text" size="small"></el-input>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col style="width: 20px"> <i class="el-icon-minus" @click="removeExpression(index-1)"></i></el-col>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-col style="width: 120px; padding-right: 20px; text-align: right; color: #666">
|
|
|
|
|
|
Unit
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col style="width: calc(100% - 120px);">
|
|
|
|
|
|
<el-cascader filterable placeholder="" popper-class="no-style-class unit-popper-class" size="small" style="width: 100%"
|
|
|
|
|
|
:options="unitOptions"
|
|
|
|
|
|
:props="{ expandTrigger: 'click',emitPath:false }"
|
|
|
|
|
|
:show-all-levels="false"
|
|
|
|
|
|
v-model="unit[index-1]"
|
|
|
|
|
|
></el-cascader>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<promql-input
|
|
|
|
|
|
:ref="'promql-'+(index-1)"
|
|
|
|
|
|
:id="promqlKeys[index-1]"
|
|
|
|
|
|
:key="promqlKeys[index-1]"
|
|
|
|
|
|
:expression-list="expressions"
|
|
|
|
|
|
:index="index-1"
|
|
|
|
|
|
:styleType="2"
|
|
|
|
|
|
:plugins="['metric-selector', 'metric-input', 'remove']"
|
|
|
|
|
|
@change="expressionChange"
|
|
|
|
|
|
@removeExpression="removeExpression"
|
|
|
|
|
|
:showRemove="false"
|
|
|
|
|
|
></promql-input>
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<el-col style="width: 120px; padding-right: 20px; text-align: right; color: #666">
|
|
|
|
|
|
{{$t('dashboard.panel.chartForm.legend')}}
|
|
|
|
|
|
<el-popover :content="$t('dashboard.panel.chartForm.legendTip')" placement="top" width="150" trigger="hover">
|
|
|
|
|
|
<i slot="reference" class="nz-icon nz-icon-info-normal" style="font-size: 12px; -webkit-transform:scale(0.75);display:inline-block;" @mouseover="rz"></i>
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col style="width: calc(100% - 120px);">
|
|
|
|
|
|
<el-input v-model="legends[index-1]" type="text" size="small"></el-input>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-row>
|
2020-08-19 11:44:26 +08:00
|
|
|
|
</el-form>
|
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
|
<!-- end--表单-->
|
|
|
|
|
|
|
|
|
|
|
|
<!--底部按钮-->
|
|
|
|
|
|
<div class="right-box-bottom-btns">
|
|
|
|
|
|
<button @click="esc" id="ep-edit-esc" class="nz-btn nz-btn-size-normal nz-btn-style-light nz-btn-min-width-100">
|
|
|
|
|
|
<span>{{$t('overall.cancel')}}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button @click="onSubmit" id="ep-edit-save" class="nz-btn nz-btn-size-normal nz-btn-style-normal nz-btn-min-width-100">
|
|
|
|
|
|
<span>{{$t('overall.save')}}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-08-20 14:47:14 +08:00
|
|
|
|
import promqlInput from "@/components/page/dashboard/explore/promqlInput";
|
2020-08-24 15:02:23 +08:00
|
|
|
|
import chartDataFormat from "@/components/charts/chartDataFormat";
|
2020-08-20 14:47:14 +08:00
|
|
|
|
import {getUUID,resetZIndex} from "@/components/common/js/common";
|
2020-08-26 09:50:09 +08:00
|
|
|
|
import a from './image/a.png'
|
|
|
|
|
|
import b from './image/b.png'
|
|
|
|
|
|
import c from './image/c.png'
|
|
|
|
|
|
import d from './image/d.png'
|
|
|
|
|
|
import e from './image/e.png'
|
|
|
|
|
|
import f from './image/f.png'
|
2020-08-20 14:47:14 +08:00
|
|
|
|
var rz = {
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
rz(e) {
|
|
|
|
|
|
resetZIndex(e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
2020-08-19 11:44:26 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
name:"addNode",
|
|
|
|
|
|
components:{
|
2020-08-20 14:47:14 +08:00
|
|
|
|
'promql-input': promqlInput,
|
2020-08-19 11:44:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
props:{
|
2020-08-20 14:47:14 +08:00
|
|
|
|
nodeData:{},
|
|
|
|
|
|
moduleDataS:{}
|
2020-08-19 11:44:26 +08:00
|
|
|
|
},
|
2020-08-24 15:02:23 +08:00
|
|
|
|
mixins: [rz],
|
2020-08-19 11:44:26 +08:00
|
|
|
|
watch:{
|
|
|
|
|
|
nodeData:{
|
|
|
|
|
|
handler(n){
|
|
|
|
|
|
for(let key in this.form){
|
|
|
|
|
|
this.form[key]=n[key]
|
|
|
|
|
|
}
|
2020-08-24 11:22:59 +08:00
|
|
|
|
this.form.moduleId=n.id;
|
2020-08-19 11:44:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
deep: true,
|
2020-08-20 14:47:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
moduleDataS:{
|
|
|
|
|
|
handler(n){
|
|
|
|
|
|
console.log(n)
|
|
|
|
|
|
},
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
deep: true,
|
2020-08-19 11:44:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
data(){
|
|
|
|
|
|
return{
|
|
|
|
|
|
form:{
|
2020-08-24 11:22:59 +08:00
|
|
|
|
moduleId:'',
|
|
|
|
|
|
iconId:'',
|
2020-08-19 11:44:26 +08:00
|
|
|
|
},
|
2020-08-24 15:02:23 +08:00
|
|
|
|
unitOptions: chartDataFormat.unitOptions(),
|
2020-08-19 11:44:26 +08:00
|
|
|
|
promqlKeys:[],
|
|
|
|
|
|
expressions: [],
|
2020-08-20 14:47:14 +08:00
|
|
|
|
promqlCount:0,
|
|
|
|
|
|
elementIds:[],
|
|
|
|
|
|
legends:[],
|
2020-08-24 15:02:23 +08:00
|
|
|
|
name:[],
|
|
|
|
|
|
unit:[],
|
2020-08-19 11:44:26 +08:00
|
|
|
|
rules:{
|
2020-08-24 11:22:59 +08:00
|
|
|
|
moduleId:[
|
2020-08-19 11:44:26 +08:00
|
|
|
|
{ required: true, message: '请选择module', trigger: 'blur' },
|
|
|
|
|
|
],
|
2020-08-24 11:22:59 +08:00
|
|
|
|
iconId:[
|
|
|
|
|
|
{ required: true, message: '请选择icon', trigger: 'blur' },
|
2020-08-19 11:44:26 +08:00
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
iconArray:[
|
2020-08-20 17:09:22 +08:00
|
|
|
|
{id:1,image:a,imageName:"module1"},
|
|
|
|
|
|
{id:2,image:b,imageName:"module1"},
|
|
|
|
|
|
{id:3,image:c,imageName:"module1"},
|
|
|
|
|
|
{id:4,image:d,imageName:"module1"},
|
|
|
|
|
|
{id:5,image:e,imageName:"module1"},
|
|
|
|
|
|
{id:6,image:f,imageName:"module1"},
|
2020-08-19 11:44:26 +08:00
|
|
|
|
// {id:7,img:'./a.png',label:'model',},
|
|
|
|
|
|
],
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-08-24 15:02:23 +08:00
|
|
|
|
mounted(){
|
|
|
|
|
|
this.addExpression()
|
|
|
|
|
|
},
|
2020-08-19 11:44:26 +08:00
|
|
|
|
methods:{
|
|
|
|
|
|
onSubmit(){
|
|
|
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
|
|
|
if (valid) {
|
2020-08-24 11:22:59 +08:00
|
|
|
|
let module=this.moduleDataS.module.find(item=>item.id===this.form.moduleId);
|
|
|
|
|
|
let img=this.iconArray.find(item=>item.id===this.form.iconId);
|
|
|
|
|
|
let model=Object.assign({...this.form},{...module},{...img},{id:this.form.moduleId,shape:'image',shapeProperties:{useImageSize:false}},);
|
2020-08-24 15:02:23 +08:00
|
|
|
|
model.label=model.name;
|
|
|
|
|
|
console.log(this.promqlKeys,this.expressions,this.promqlCount,this.legends,this.name,this.unit);
|
|
|
|
|
|
model.expressions=[];
|
|
|
|
|
|
this.promqlKeys.forEach((item,index)=>{
|
|
|
|
|
|
model.expressions.push({
|
|
|
|
|
|
"name": this.name[index],
|
|
|
|
|
|
"unit": this.unit[index],
|
|
|
|
|
|
"metric": this.expressions[index],
|
|
|
|
|
|
"legend": this.legends[index],
|
|
|
|
|
|
})
|
|
|
|
|
|
});
|
|
|
|
|
|
this.$emit('addModel',model);
|
2020-08-19 11:44:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
expressionChange: function () {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
addExpression() {
|
|
|
|
|
|
this.expressions.push('');
|
|
|
|
|
|
this.legends.push('');
|
2020-08-24 15:02:23 +08:00
|
|
|
|
this.name.push('');
|
|
|
|
|
|
this.unit.push('');
|
2020-08-19 11:44:26 +08:00
|
|
|
|
this.promqlKeys.push(getUUID());
|
|
|
|
|
|
this.elementIds.push("");
|
|
|
|
|
|
this.promqlCount++;
|
|
|
|
|
|
},
|
|
|
|
|
|
removeExpression(index) {
|
|
|
|
|
|
if (this.promqlCount > 1) {
|
|
|
|
|
|
this.expressions.splice(index, 1);
|
|
|
|
|
|
this.legends.splice(index, 1);
|
2020-08-24 15:02:23 +08:00
|
|
|
|
this.name.splice(index, 1);
|
|
|
|
|
|
this.unit.splice(index, 1);
|
2020-08-19 11:44:26 +08:00
|
|
|
|
this.promqlKeys.splice(index, 1);
|
|
|
|
|
|
this.elementIds.splice(index, 1);
|
|
|
|
|
|
this.promqlCount--;
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.expressions.forEach((ex, index) => {
|
|
|
|
|
|
if (ex) {
|
|
|
|
|
|
this.$refs[`promql-${index}`][0].metricChange(ex);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
/*关闭弹框*/
|
|
|
|
|
|
esc(refresh) {
|
|
|
|
|
|
this.$emit("close", refresh);
|
|
|
|
|
|
},
|
|
|
|
|
|
clickOutside() {
|
|
|
|
|
|
this.esc(false);
|
|
|
|
|
|
},
|
|
|
|
|
|
del(){
|
|
|
|
|
|
this.$emit('del');
|
|
|
|
|
|
this.esc();
|
2020-08-26 09:34:30 +08:00
|
|
|
|
},
|
|
|
|
|
|
beforeAvatarUpload(file){
|
|
|
|
|
|
const isJPG = file.type === 'image/jpeg';
|
|
|
|
|
|
|
|
|
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
|
|
|
|
|
|
|
|
|
if (!isJPG) {
|
|
|
|
|
|
this.$message.error('上传头像图片只能是 JPG 格式!');
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!isLt2M) {
|
|
|
|
|
|
this.$message.error('上传头像图片大小不能超过 2MB!');
|
|
|
|
|
|
}
|
|
|
|
|
|
console.log(file);
|
2020-08-26 09:50:09 +08:00
|
|
|
|
if(isJPG && isLt2M){
|
|
|
|
|
|
this.getBase64(file).then(res => {
|
|
|
|
|
|
const params = res.split(',')
|
|
|
|
|
|
console.log(params, 'params')
|
|
|
|
|
|
if (params.length > 0) {
|
|
|
|
|
|
this.strimagebase64 = params[1]
|
|
|
|
|
|
console.log(this.strimagebase64);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
return false;
|
2020-08-26 09:34:30 +08:00
|
|
|
|
},
|
|
|
|
|
|
handleAvatarSuccess(file){
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onChange(file,fileList){
|
|
|
|
|
|
this.getBase64(file.raw).then(res => {
|
|
|
|
|
|
const params = res.split(',')
|
|
|
|
|
|
console.log(params, 'params')
|
|
|
|
|
|
if (params.length > 0) {
|
|
|
|
|
|
this.strimagebase64 = params[1]
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
getBase64(file) {
|
|
|
|
|
|
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
|
|
|
const reader = new FileReader()
|
|
|
|
|
|
let imgResult = ''
|
|
|
|
|
|
reader.readAsDataURL(file)
|
|
|
|
|
|
reader.onload = function() {
|
|
|
|
|
|
imgResult = reader.result
|
|
|
|
|
|
}
|
|
|
|
|
|
reader.onerror = function(error) {
|
|
|
|
|
|
reject(error)
|
|
|
|
|
|
}
|
|
|
|
|
|
reader.onloadend = function() {
|
|
|
|
|
|
resolve(imgResult)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2020-08-19 11:44:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2020-08-26 09:50:09 +08:00
|
|
|
|
/deep/ .avatar-uploader{
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
color: #1989fa;
|
|
|
|
|
|
}
|
2020-08-26 09:34:30 +08:00
|
|
|
|
/deep/.right-box-form .icon .el-select{
|
|
|
|
|
|
width: 60%;
|
|
|
|
|
|
}
|
2020-08-24 15:02:23 +08:00
|
|
|
|
.el-icon-minus{
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
}
|
2020-08-19 11:44:26 +08:00
|
|
|
|
.nz-btn-edit-ok{
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
right:0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-btn-edit-esc{
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
left:0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* begin--搜索框*/
|
|
|
|
|
|
.endpoint-asset-search {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
margin-top: -16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search button {
|
|
|
|
|
|
height: 22px !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search-dropdown {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 25px;
|
|
|
|
|
|
background-color: #444;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
width: 44px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search-dropdown-item {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
height: 22px;
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-label-txt {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
width: 19px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search-dropdown-item:first-of-type {
|
|
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search-dropdown-item:last-of-type {
|
|
|
|
|
|
border-radius: 0 0 4px 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search-dropdown-item:hover {
|
|
|
|
|
|
background-color: #222;
|
|
|
|
|
|
color: #ff9900;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-asset-search-input {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
width: 150px;
|
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* end--搜索框*/
|
|
|
|
|
|
|
|
|
|
|
|
/* begin--table*/
|
|
|
|
|
|
.endpoint-sub-table {
|
|
|
|
|
|
padding-top: 30px;
|
|
|
|
|
|
height: 440px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.line-100 {
|
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-head {
|
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-row, .endpoint-sub-table-row-disabled {
|
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
color: #656565;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-row:hover {
|
|
|
|
|
|
background-color: #dadada;
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-row-active {
|
|
|
|
|
|
background-color: #dadada;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-row-selected {
|
|
|
|
|
|
background-color: #656565;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-col {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
width: calc(50% - 15px);
|
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-paginate-all {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 10px;
|
|
|
|
|
|
bottom: 17px;
|
|
|
|
|
|
color: #5a5a5a;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-body {
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
height: calc(100% - 34px);
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-body-dialog {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background-color: #e9ebec;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
opacity: 0.2;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoints-clear-btn {
|
|
|
|
|
|
margin: 6px 0 0 7px;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* end--table*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-row {
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-row:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-col {
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.bg-purple {
|
|
|
|
|
|
background: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
.grid-content {
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
min-height: 36px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.common-float-left {
|
|
|
|
|
|
float: left;
|
|
|
|
|
|
display:inline-block;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-inner {
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
border-top-width: 0px;
|
|
|
|
|
|
border-left-width: 0px;
|
|
|
|
|
|
border-right-width: 0px;
|
|
|
|
|
|
border-bottom-width: 10px;
|
|
|
|
|
|
border-color:red;
|
|
|
|
|
|
/*outline: medium;*/
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.element-bottom-border {
|
|
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
|
border-bottom: 1px solid #dfe7f2;
|
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
/*metric样式--begin*/
|
|
|
|
|
|
.element-item {
|
|
|
|
|
|
padding: 20px 0;
|
|
|
|
|
|
border-bottom: 1px dashed #dfe7f2;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
/*metric样式--end*/
|
|
|
|
|
|
.label-center{
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
line-height: 34px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.z-top {
|
|
|
|
|
|
z-index: 2900;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.right-box-edit-endpoint .el-pagination__total {
|
|
|
|
|
|
float: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
right-box-edit-endpoint .pagination {
|
|
|
|
|
|
padding-top: 12px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.endpoint-sub-table-paginate .el-pager li, .endpoint-sub-table-paginate .el-pagination .btn-next, .endpoint-sub-table-paginate .el-pagination .btn-prev {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
min-width: 20px !important;
|
|
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
border: 1px solid rgba(154,154,154,0.20);
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-paginate .el-pagination.is-background .el-pager li:not(.disabled).active {
|
|
|
|
|
|
color: white !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.endpoint-sub-table-paginate .el-pagination.is-background .el-pager li:not(.disabled):hover {
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pagination .el-pager li.btn-quicknext, .right-box-edit-endpoint .el-pager li.btn-quickprev {
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pagination .el-pager .more::before {
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pager li.number{
|
|
|
|
|
|
font-family: NotoSansSC-Regular;
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
|
font-weight:normal;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pager li.number.active{
|
|
|
|
|
|
font-family: NotoSansSC-Regular;
|
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.endpoint-sub-table-paginate .el-pagination.is-background .el-pager li:not(.disabled).active {
|
|
|
|
|
|
background-color: $global-text-color-active;
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pager li:hover, .right-box-edit-endpoint .el-pagination .btn-next:hover, .right-box-edit-endpoint .el-pagination .btn-prev:hover {
|
|
|
|
|
|
font-family: NotoSansSC-Regular;
|
|
|
|
|
|
color: #666666;
|
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
|
font-weight:normal;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pagination__sizes .el-input .el-input__inner, .right-box-edit-endpoint .el-pagination__editor.el-input .el-input__inner{
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
border-color: rgba(154,154,154,0.20);
|
|
|
|
|
|
}
|
|
|
|
|
|
.right-box-edit-endpoint .el-pagination__sizes .el-input .el-input__inner:hover{
|
|
|
|
|
|
border-color: rgba(154,154,154,0.20);
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|