|
|
@@ -57,6 +57,9 @@ const handleStationChange = (stationId: string) => {
|
|
|
|
|
|
const loadStationList = () => {
|
|
|
$body(`/washStation/list`, {pageNum: 1, pageSize: 1024}).then((res: any) => {
|
|
|
+ //必须先结束 loading 再赋值选项:element-plus 在 loading 态下过滤结果为空,
|
|
|
+ //会导致选中项 label 解析失败、回退显示原始站点ID
|
|
|
+ state.loading = false;
|
|
|
let {list} = res;
|
|
|
state.stationList = list || [];
|
|
|
state.options = state.stationList.map((k: any) => {
|
|
|
@@ -90,20 +93,7 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
height: 50px;
|
|
|
- padding: 0 12px 0 4px;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- //与面包屑之间的分隔:范围(哪个站)与位置(哪个页)是两个语境
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- right: 0;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- width: 1px;
|
|
|
- height: 20px;
|
|
|
- background: var(--el-border-color-lighter);
|
|
|
- }
|
|
|
+ padding: 0 8px 0 4px;
|
|
|
|
|
|
.station-select {
|
|
|
width: 180px;
|