fix : 修复数据loading加载
This commit is contained in:
@@ -283,7 +283,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {ElMessage} from "element-plus";
|
||||
import {ElLoading, ElMessage} from "element-plus";
|
||||
import {getEquipmentList, editEquipment, getTunnelDetail} from "@/api/tunnelManage";
|
||||
import TunnelTitle from "@/components/tunnelTitle/index.vue";
|
||||
const router = useRouter()
|
||||
@@ -362,8 +362,14 @@ const handleChangeMenu = (e) => {
|
||||
}
|
||||
|
||||
const getList = () => {
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '正在加载系统资源',
|
||||
background: 'rgba(0, 0, 0, 0.7)',
|
||||
})
|
||||
getEquipmentList(tunnelId).then(res => {
|
||||
if (res.code === 1000) {
|
||||
loading.close()
|
||||
fanData.value = res.data.frequencyChangerList
|
||||
res.data.windPressureSensorList.forEach(item => {
|
||||
item.offset = item.offset + 4000
|
||||
|
||||
Reference in New Issue
Block a user