|
@@ -36,20 +36,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { defineAsyncComponent, onMounted, reactive, ref, watch } from "vue";
|
|
|
+import { computed, defineAsyncComponent, onMounted, onUpdated, reactive, ref, watch } from "vue";
|
|
|
//import { CirclePlusFilled } from '@element-plus/icons-vue'
|
|
|
import { OilEngineDetailsApi } from "/@/api/admin/reportManagement/oilEngineDetails/oilEngineDetailsApi";
|
|
|
import router from "/@/router";
|
|
|
import { MoreOilEngineDetailsApi } from "/@/api/admin/reportManagement/moreOilEngineDetails/moreOilEngineDetailsApi";
|
|
|
import { FuelDispenserDto_SearchFilter, PageInputFuelDispenserDto } from "/@/api/admin/reportManagement/listOfOilEngines/listOfOilEnginesDto";
|
|
|
import { ListOfOilEnginesApi } from "/@/api/admin/reportManagement/listOfOilEngines/listOfOilEnginesApi";
|
|
|
+import { nextTick } from "process";
|
|
|
|
|
|
|
|
|
// 引入组件
|
|
|
const mainView = defineAsyncComponent(() => import('./component/main.vue'))
|
|
|
const getId = ref('') as any
|
|
|
getId.value = router.currentRoute.value.params.id
|
|
|
-console.log(getId.value)
|
|
|
|
|
|
let showicon = ref(true)
|
|
|
const getValue = (data: boolean) => {
|
|
@@ -63,8 +63,6 @@ const handleOpen = (key: string, keyPath: string[]) => {
|
|
|
} else {
|
|
|
getId.value = key
|
|
|
}
|
|
|
- console.log('000', getId.value)
|
|
|
- console.log(key, keyPath)
|
|
|
}
|
|
|
const handleClose = (key: string, keyPath: string[]) => {
|
|
|
console.log(key, keyPath)
|
|
@@ -95,17 +93,16 @@ const oilEngineData = reactive({
|
|
|
} as PageInputFuelDispenserDto,
|
|
|
})
|
|
|
|
|
|
-import { useRoute } from 'vue-router';
|
|
|
-const Arouter = useRoute()
|
|
|
-let data = ref('') as any
|
|
|
let fuelList = ref([]) as any
|
|
|
-data.value = Arouter.query.data
|
|
|
+let data = ref('') as any
|
|
|
+data.value = localStorage.getItem("name")
|
|
|
|
|
|
const getMenuData = async () => {
|
|
|
if (data.value == null) return
|
|
|
oilEngineData.filterModel.gasStation = data.value
|
|
|
const res: any =
|
|
|
await new ListOfOilEnginesApi().getPage({ ...oilEngineData.pageInput, filter: oilEngineData.filterModel })
|
|
|
+
|
|
|
res.data.list.forEach(async (item: any) => {
|
|
|
await new OilEngineDetailsApi().getBasicInfoDto({ Fuelid: item.fuelId }).then(async (res) => {
|
|
|
let list = [] as any
|
|
@@ -115,13 +112,15 @@ const getMenuData = async () => {
|
|
|
fuelList.value.push({ 'id': item.fuelId, 'name': res.data.name, 'onlineStatus': res.data.onlineStatus, 'oilList': list })
|
|
|
})
|
|
|
})
|
|
|
- console.log(fuelList)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
getMenuData()
|
|
|
+
|
|
|
})
|
|
|
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
@@ -153,11 +152,6 @@ onMounted(() => {
|
|
|
margin-right: 30px;
|
|
|
}
|
|
|
|
|
|
-.oilInfo-con-first {
|
|
|
- left: 7em;
|
|
|
- top: 0.5em;
|
|
|
-}
|
|
|
-
|
|
|
.menu-point-first {
|
|
|
left: 2em;
|
|
|
top: 1.8em;
|