fix:时间选择器 历史记录优化
This commit is contained in:
@@ -221,6 +221,10 @@
|
||||
.nz-icon{
|
||||
font-size: 14px;
|
||||
}
|
||||
&:hover{
|
||||
border-color: $--color-primary;
|
||||
color: $--color-primary;
|
||||
}
|
||||
}
|
||||
&.input-error{
|
||||
.el-input{
|
||||
|
||||
@@ -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))
|
||||
: []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user