修改稳态指标排序错误问题
This commit is contained in:
@@ -321,6 +321,7 @@ defineExpose({ open, setRealTrendData, setOverLimitData })
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
padding-bottom: 5px;
|
||||||
p {
|
p {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -346,7 +347,7 @@ defineExpose({ open, setRealTrendData, setOverLimitData })
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
line-height: 40px;
|
line-height: 50px;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
p:nth-child(1) {
|
p:nth-child(1) {
|
||||||
|
|||||||
@@ -135,7 +135,10 @@ const countOptions: any = ref([])
|
|||||||
const legendDictList: any = ref([])
|
const legendDictList: any = ref([])
|
||||||
queryByCode('portable-harmonic').then(res => {
|
queryByCode('portable-harmonic').then(res => {
|
||||||
queryCsDictTree(res.data.id).then(item => {
|
queryCsDictTree(res.data.id).then(item => {
|
||||||
indexOptions.value = item.data
|
//排序
|
||||||
|
indexOptions.value = item.data.sort((a: any, b: any) => {
|
||||||
|
return a.sort - b.sort
|
||||||
|
})
|
||||||
searchForm.value.index[0] = indexOptions.value[0].id
|
searchForm.value.index[0] = indexOptions.value[0].id
|
||||||
})
|
})
|
||||||
queryStatistical(res.data.id).then(vv => {
|
queryStatistical(res.data.id).then(vv => {
|
||||||
|
|||||||
@@ -266,7 +266,9 @@ const countOptions: any = ref([])
|
|||||||
const legendDictList: any = ref([])
|
const legendDictList: any = ref([])
|
||||||
queryByCode('portable-harmonic').then(res => {
|
queryByCode('portable-harmonic').then(res => {
|
||||||
queryCsDictTree(res.data.id).then(item => {
|
queryCsDictTree(res.data.id).then(item => {
|
||||||
indexOptions.value = item.data
|
indexOptions.value = item.data.sort((a: any, b: any) => {
|
||||||
|
return a.sort - b.sort
|
||||||
|
})
|
||||||
searchForm.value.index[0] = indexOptions.value[0].id
|
searchForm.value.index[0] = indexOptions.value[0].id
|
||||||
// searchForm.value.index = indexOptions.value[0].id
|
// searchForm.value.index = indexOptions.value[0].id
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user