diff --git a/src/api/advance-boot/bearingCapacity.ts b/src/api/advance-boot/bearingCapacity.ts index 9ca48c90..1d52906c 100644 --- a/src/api/advance-boot/bearingCapacity.ts +++ b/src/api/advance-boot/bearingCapacity.ts @@ -13,14 +13,14 @@ export function updateUse(data) { return createAxios({ url: '/advance-boot/carrycapacityuser/update', method: 'post', - params: data + data }) } //承载能力评估用户批量删除 export function removeUse(data) { return createAxios({ url: '/advance-boot/carrycapacityuser/remove', - method: 'post', + method: 'POST', params: data }) } @@ -32,3 +32,27 @@ export function carryCapacityTree() { }) } +//承载能力评估策略初始化查询 +export function queyDetail() { + return createAxios({ + url: '/advance-boot/carrycapacity/queyDetail', + method: 'post', + + }) +} +//承载能力评估策略初始化查询 +export function addCarryc() { + return createAxios({ + url: '/advance-boot/carrycapacity/add', + method: 'post', + + }) +} +//承载能力评估策略一键还原 +export function restore() { + return createAxios({ + url: '/advance-boot/carrycapacity/restore', + method: 'post', + + }) +} diff --git a/src/api/common.ts b/src/api/common.ts index df0d4904..2ed918a1 100644 --- a/src/api/common.ts +++ b/src/api/common.ts @@ -15,6 +15,13 @@ export function getAreaList() { method: 'POST' }) } +// 获取省市区下拉框 +export function areaSelect() { + return createAxios({ + url: '/system-boot/area/areaSelect', + method: 'POST' + }) +} // 设备列表 export function getDeviceTree() { diff --git a/src/components/tree/pqs/loadBearingTree.vue b/src/components/tree/pqs/loadBearingTree.vue index bbab82c7..0c67a8a5 100644 --- a/src/components/tree/pqs/loadBearingTree.vue +++ b/src/components/tree/pqs/loadBearingTree.vue @@ -31,7 +31,7 @@ const loadData = () => { console.log(res) nodeKey = res.data[0].children[0].children[0].children[0].children[0].children[0].id emit('init', res.data[0].children[0].children[0].children[0].children[0].children[0]) - tree.value = res.data + tree.value = res.data[0].children[0].children if (nodeKey) { nextTick(() => { treeRef.value.treeRef.setCurrentKey(nodeKey) diff --git a/src/layouts/admin/index.vue b/src/layouts/admin/index.vue index 0614dcb3..e95cef4f 100644 --- a/src/layouts/admin/index.vue +++ b/src/layouts/admin/index.vue @@ -1,8 +1,8 @@ - diff --git a/src/views/pqs/voltageSags/Region/transientList/index.vue b/src/views/pqs/voltageSags/Region/transientList/index.vue index 6b299bed..0575c5cf 100644 --- a/src/views/pqs/voltageSags/Region/transientList/index.vue +++ b/src/views/pqs/voltageSags/Region/transientList/index.vue @@ -126,7 +126,7 @@ -
+
@@ -142,14 +142,13 @@ import { ElMessageBox, ElMessage } from 'element-plus' import { getTransientValue } from '@/api/event-boot/report' import waveForm from '@/components/echarts/waveForm.vue' -import { getMonitorEventAnalyseWave ,downloadWaveFile} from '@/api/event-boot/transient' +import { getMonitorEventAnalyseWave, downloadWaveFile } from '@/api/event-boot/transient' defineOptions({ name: 'Region/transientlist' }) const dictData = useDictData() const pageHeight = mainHeight(20) const view = ref(true) -const view2 = ref(false) const typeoptions = dictData.getBasicData('Event_Type') const tableRef = ref() @@ -231,7 +230,6 @@ const tableStore = new TableStore({ if (res != undefined) { wp.value = res.data view.value = false - view2.value = true } }) .catch(() => { @@ -283,7 +281,6 @@ onMounted(() => { }) const backbxlb = () => { view.value = true - view2.value = false } // 导出列表 const exportEvent = () => {