fix:时间选择器 历史记录优化

This commit is contained in:
zhangyu
2022-04-25 10:07:10 +08:00
parent 97570affad
commit f1f7d83ee7
3 changed files with 12 additions and 1 deletions

View File

@@ -221,6 +221,10 @@
.nz-icon{
font-size: 14px;
}
&:hover{
border-color: $--color-primary;
color: $--color-primary;
}
}
&.input-error{
.el-input{

View File

@@ -577,6 +577,13 @@ export default {
}
}
}
},
sign (n) {
if (n) {
this.rangeHistory = localStorage.getItem('date-range-history' + this.sign)
? JSON.parse(localStorage.getItem('date-range-history' + this.sign))
: []
}
}
}
}

View File

@@ -40,7 +40,7 @@
<!-- </el-input>-->
<!-- </div>-->
<pick-time id="panel" ref="pickTime" v-model="searchTime" :refresh-data-func="dateChange" :use-chart-unit="false" class="margin-r-10" :sign="panelId"></pick-time>
<pick-time id="panel" ref="pickTime" v-model="searchTime" :refresh-data-func="dateChange" :use-chart-unit="false" class="margin-r-10" :sign="showPanel.id"></pick-time>
<button id="panel-add-chart" v-has="'main_add'" :title="$t('overall.createChart')" class="top-tool-btn margin-r-10"
type="button" @click="addChartBefore">