fix:时间选择器 历史记录优化
This commit is contained in:
@@ -221,6 +221,10 @@
|
|||||||
.nz-icon{
|
.nz-icon{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
&:hover{
|
||||||
|
border-color: $--color-primary;
|
||||||
|
color: $--color-primary;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.input-error{
|
&.input-error{
|
||||||
.el-input{
|
.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>-->
|
<!-- </el-input>-->
|
||||||
<!-- </div>-->
|
<!-- </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"
|
<button id="panel-add-chart" v-has="'main_add'" :title="$t('overall.createChart')" class="top-tool-btn margin-r-10"
|
||||||
type="button" @click="addChartBefore">
|
type="button" @click="addChartBefore">
|
||||||
|
|||||||
Reference in New Issue
Block a user