feat:补充自动化测试所需id

This commit is contained in:
wangwenrui
2021-02-04 11:21:00 +08:00
parent a2aff02f00
commit b18a3bfa11
61 changed files with 463 additions and 398 deletions

View File

@@ -1,7 +1,8 @@
<template>
<div style="display: flex;justify-content: flex-start">
<button class="input-prepend nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-prepend" @click="openSeletor">{{$t('dashboard.panel.chartForm.unit')}}</button>
<button class="input-prepend nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-prepend" @click="openSeletor" :id="id+'-open-select'">{{$t('dashboard.panel.chartForm.unit')}}</button>
<el-cascader placeholder="" popper-class="no-style-class unit-pop-class" size="mini"
:id="id+'-unit-input'"
:options="chartUnits"
class="chart-unit"
:props="{ expandTrigger: 'click' ,emitPath:false}"
@@ -23,7 +24,8 @@
prop:'postUnit'
},
props:{
postUnit:{}
postUnit:{},
id:{type:String,default:'chart-unit'}
},
data(){
return{