From 5b296d9203be4b93cc122dbe204b01f337e8e597 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 7 Mar 2024 19:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=20=E6=89=BF=E8=BD=BD?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E8=AF=84=E4=BC=B0=2040%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/advance-boot/bearingCapacity.ts | 28 ++- src/api/common.ts | 7 + src/components/tree/pqs/loadBearingTree.vue | 2 +- src/layouts/admin/index.vue | 18 +- src/stores/dictData.ts | 12 +- src/stores/interface/index.ts | 1 + .../evaluationList/components/policy.vue | 163 ++++++------------ .../bearingCapacity/evaluationList/index.vue | 24 +-- .../bearingCapacity/userManagement/index.vue | 155 +++++++++++------ .../Region/transientList/index.vue | 7 +- 10 files changed, 227 insertions(+), 190 deletions(-) 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 = () => {