联调 承载能力评估
This commit is contained in:
@@ -85,10 +85,10 @@
|
||||
import { onMounted, ref, provide } from 'vue'
|
||||
import 'splitpanes/dist/splitpanes.css'
|
||||
import { Splitpanes, Pane } from 'splitpanes'
|
||||
import PointTree from '@/components/tree/pms/pointTree.vue'
|
||||
import PointTree from '@/components/tree/pqs/loadBearingTree.vue'
|
||||
import DatePicker from '@/components/form/datePicker/index.vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { text } from './text'
|
||||
import { text } from '../text'
|
||||
import MyEChart from '@/components/echarts/MyEchart.vue'
|
||||
import { useMonitoringPoint } from '@/stores/monitoringPoint'
|
||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||
@@ -78,9 +78,9 @@ import Table from '@/components/table/index.vue'
|
||||
import TableHeader from '@/components/table/header/index.vue'
|
||||
import Area from '@/components/form/area/index.vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import policy from './policy.vue'
|
||||
import photovoltaic from './photovoltaic.vue'
|
||||
import charge from './charge.vue'
|
||||
import policy from './components/policy.vue'
|
||||
import photovoltaic from './components/photovoltaic.vue'
|
||||
import charge from './components/charge.vue'
|
||||
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
@@ -123,7 +123,7 @@ const rules = {
|
||||
|
||||
const ruleFormRef = ref()
|
||||
const tableStore = new TableStore({
|
||||
url: '/advance-boot/process/querySagEventsPage',
|
||||
url: '/advance-boot/carrycapacity/queryCarryCapacityData',
|
||||
method: 'POST',
|
||||
column: [
|
||||
{ width: '60', type: 'checkbox' },
|
||||
@@ -198,6 +198,7 @@ const tableStore = new TableStore({
|
||||
}
|
||||
})
|
||||
tableStore.table.params.searchValue = ''
|
||||
tableStore.table.params.userId = dictData.state.area[0].id
|
||||
|
||||
provide('tableStore', tableStore)
|
||||
onMounted(() => {
|
||||
|
||||
@@ -4,31 +4,32 @@
|
||||
<TableHeader datePicker ref="TableHeaderRef">
|
||||
<template #select>
|
||||
<el-form-item label="用户类型">
|
||||
<el-input
|
||||
<el-select
|
||||
v-model="tableStore.table.params.searchValue"
|
||||
clearable
|
||||
placeholder="输入关键字筛选"
|
||||
/>
|
||||
collapse-tagsplaceholder="请选择用户类型"
|
||||
>
|
||||
<el-option v-for="item in uesrList" :key="item.id" :label="item.name" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template #operation>
|
||||
<el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
|
||||
|
||||
</template>
|
||||
</TableHeader>
|
||||
<Table ref="tableRef" />
|
||||
<el-dialog v-model="dialogVisible" :title="title" width="600" :before-close="handleClose">
|
||||
<el-form ref="ruleFormRef" :model="form" label-width="auto" :disabled="disabled" :rules="rules">
|
||||
<el-form-item label="用户名称:" prop="name">
|
||||
<el-input v-model="form.name" clearable placeholder="请输入用户名称" />
|
||||
<el-form-item label="用户名称:" prop="userName">
|
||||
<el-input v-model="form.userName" clearable placeholder="请输入用户名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户类型:" prop="userType">
|
||||
<el-select v-model="form.userType" clearable collapse-tagsplaceholder="请选择用户类型">
|
||||
<el-option v-for="item in uesrList" :key="item.id" :label="item.name" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="电压等级:" prop="level">
|
||||
<el-select v-model="form.level" clearable collapse-tags placeholder="请选择电压等级">
|
||||
<el-form-item label="电压等级:" prop="voltage">
|
||||
<el-select v-model="form.voltage" clearable collapse-tags placeholder="请选择电压等级">
|
||||
<el-option v-for="item in levelList" :key="item.id" :label="item.name" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -71,6 +72,7 @@ import Area from '@/components/form/area/index.vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
|
||||
defineOptions({
|
||||
name: 'estimate/userManagement'
|
||||
})
|
||||
@@ -82,40 +84,34 @@ const disabled = ref(false)
|
||||
const TableHeaderRef = ref()
|
||||
const title = ref('')
|
||||
interface RuleForm {
|
||||
name: string
|
||||
level: string
|
||||
deptIndex: string
|
||||
area: string
|
||||
city: string
|
||||
province: string
|
||||
region: string
|
||||
userName: string
|
||||
userType: string
|
||||
type: string
|
||||
mav1: string
|
||||
mav2: string
|
||||
user: string
|
||||
time: string
|
||||
detailed: string
|
||||
voltage: string
|
||||
}
|
||||
const form = ref<RuleForm>({
|
||||
name: '',
|
||||
level: '',
|
||||
deptIndex: dictData.state.area[0].id,
|
||||
userType: '光伏电站',
|
||||
type: '光伏电站',
|
||||
mav1: '100',
|
||||
mav2: '100',
|
||||
user: 'Admin',
|
||||
time: '2024-01-03',
|
||||
detailed: '详细地址'
|
||||
area: '',
|
||||
city: '',
|
||||
province: '',
|
||||
region: '',
|
||||
userName: '',
|
||||
userType: '',
|
||||
voltage: ''
|
||||
})
|
||||
const rules = {
|
||||
name: [{ required: true, message: '请输入用户名称', trigger: 'blur' }],
|
||||
userName: [{ required: true, message: '请输入用户名称', trigger: 'blur' }],
|
||||
userType: [{ required: true, message: '请选择用户类型', trigger: 'change' }],
|
||||
level: [{ required: true, message: '请选择电压等级', trigger: 'change' }],
|
||||
voltage: [{ required: true, message: '请选择电压等级', trigger: 'change' }],
|
||||
mav1: [{ required: true, message: '请输入用户协议容量', trigger: 'blur' }],
|
||||
mav2: [{ required: true, message: '请输入拟接入容量', trigger: 'blur' }],
|
||||
detailed: [{ required: true, message: '请输入详细地址', trigger: 'blur' }]
|
||||
}
|
||||
const ruleFormRef = ref()
|
||||
const tableStore = new TableStore({
|
||||
url: '/hzj/carrycapacityuser/queyDetailUser',
|
||||
url: '/advance-boot/carrycapacityuser/queyDetailUser',
|
||||
method: 'POST',
|
||||
column: [
|
||||
{ width: '60', type: 'checkbox' },
|
||||
@@ -186,7 +182,9 @@ const tableStore = new TableStore({
|
||||
title: '确定删除?'
|
||||
},
|
||||
click: row => {
|
||||
|
||||
removeUse({ userIds: row.id }).then(res => {
|
||||
ElMessage.success('删除成功')
|
||||
})
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -196,6 +194,7 @@ const tableStore = new TableStore({
|
||||
loadCallback: () => {
|
||||
tableStore.table.data = [
|
||||
{
|
||||
id: '123',
|
||||
name: '光伏电站用户1',
|
||||
type: '光伏电站',
|
||||
Area: '中国',
|
||||
@@ -209,29 +208,8 @@ const tableStore = new TableStore({
|
||||
]
|
||||
}
|
||||
})
|
||||
// "area": "",
|
||||
// "city": "",
|
||||
// "endTime": "",
|
||||
// "pageNum": {},
|
||||
// "pageSize": {},
|
||||
// "protocolCapacity": 0,
|
||||
// "province": "",
|
||||
// "region": "",
|
||||
// "startTime": "",
|
||||
// "userId": "",
|
||||
// "userName": "",
|
||||
// "userType": "",
|
||||
// "voltage": ""
|
||||
tableStore.table.params.searchValue = ''
|
||||
tableStore.table.params.area = ''
|
||||
tableStore.table.params.city = ''
|
||||
tableStore.table.params.protocolCapacity = 0
|
||||
tableStore.table.params.province = ''
|
||||
tableStore.table.params.region = ''
|
||||
tableStore.table.params.userId = ''
|
||||
tableStore.table.params.userName = ''
|
||||
tableStore.table.params.userType = ''
|
||||
tableStore.table.params.voltage = ''
|
||||
|
||||
// tableStore.table.params.searchValue = ''
|
||||
|
||||
provide('tableStore', tableStore)
|
||||
onMounted(() => {
|
||||
@@ -250,7 +228,13 @@ const onSubmit = () => {
|
||||
ruleFormRef.value.validate((valid: boolean) => {
|
||||
if (valid) {
|
||||
if (title.value == '新增承载能力预评估用户') {
|
||||
addUse(form.value).then(res => {
|
||||
tableStore.index()
|
||||
})
|
||||
} else if (title.value == '编辑承载能力预评估用户') {
|
||||
updateUse(form.value).then(res => {
|
||||
tableStore.index()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1430,7 +1430,7 @@ defineOptions({
|
||||
name: 'device-boot/deviceter'
|
||||
})
|
||||
import { LocationInformation } from '@element-plus/icons-vue'
|
||||
import Terminal from '@/components/tree/pms/Terminal.vue'
|
||||
import Terminal from '@/components/tree/pqs/Terminal.vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { areaTree } from '@/api/system-boot/dicData'
|
||||
import { queryTerminal, nodeAllList, delTerminal, updateTerminal, addTerminal } from '@/api/device-boot/Business.ts'
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
import { defineOptions, watch, onMounted, ref, nextTick } from 'vue'
|
||||
import 'splitpanes/dist/splitpanes.css'
|
||||
import { Splitpanes, Pane } from 'splitpanes'
|
||||
import PointTree from '@/components/tree/pms/pointTree.vue'
|
||||
import PointTree from '@/components/tree/pqs/pointTree.vue'
|
||||
import { useMonitoringPoint } from '@/stores/monitoringPoint'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import Wentaizonghepinggu from './wentaizonghepinggu/index.vue'
|
||||
|
||||
@@ -13,7 +13,14 @@
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- "area": "",
|
||||
"city": "",
|
||||
"protocolCapacity": 0,
|
||||
"province": "",
|
||||
"region": "",
|
||||
"userName": "",
|
||||
"userType": "",
|
||||
"voltage": "" -->
|
||||
<script setup lang="ts">
|
||||
import TableHeader from '@/components/table/header/index.vue'
|
||||
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
<template>
|
||||
<splitpanes style='height: 100%;' class='default-theme' id='navigation-splitpanes'>
|
||||
<pane :size='size'>
|
||||
<PointTree :default-expand-all='false'
|
||||
:default-expanded-keys='monitoringPoint.state.lineId?[monitoringPoint.state.lineId]:[]'
|
||||
:current-node-key='monitoringPoint.state.lineId'
|
||||
@node-click='handleNodeClick'
|
||||
@init='handleNodeClick'
|
||||
<splitpanes style="height: 100%" class="default-theme" id="navigation-splitpanes">
|
||||
<pane :size="size">
|
||||
<PointTree
|
||||
:default-expand-all="false"
|
||||
:default-expanded-keys="monitoringPoint.state.lineId ? [monitoringPoint.state.lineId] : []"
|
||||
:current-node-key="monitoringPoint.state.lineId"
|
||||
@node-click="handleNodeClick"
|
||||
@init="handleNodeClick"
|
||||
></PointTree>
|
||||
</pane>
|
||||
<pane>
|
||||
<Map v-bind='$attrs'></Map>
|
||||
<Map v-bind="$attrs"></Map>
|
||||
</pane>
|
||||
</splitpanes>
|
||||
</template>
|
||||
<script setup lang='ts'>
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
import 'splitpanes/dist/splitpanes.css'
|
||||
import { Splitpanes, Pane } from 'splitpanes'
|
||||
import PointTree from '@/components/tree/pms/pointTree.vue'
|
||||
import PointTree from '@/components/tree/pqs/pointTree.vue'
|
||||
import Map from './map.vue'
|
||||
import Tree from '@/components/tree/index.vue'
|
||||
import { useMonitoringPoint } from '@/stores/monitoringPoint'
|
||||
@@ -27,7 +28,7 @@ const size = ref(0)
|
||||
onMounted(() => {
|
||||
const dom = document.getElementById('navigation-splitpanes')
|
||||
if (dom) {
|
||||
size.value = Math.round(280 / dom.offsetHeight * 100)
|
||||
size.value = Math.round((280 / dom.offsetHeight) * 100)
|
||||
}
|
||||
})
|
||||
const handleNodeClick = (data: any, node: any) => {
|
||||
@@ -36,7 +37,7 @@ const handleNodeClick = (data: any, node: any) => {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
<style lang="scss">
|
||||
.splitpanes.default-theme .splitpanes__pane {
|
||||
background: #eaeef1;
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ import { onMounted, ref, provide } from 'vue'
|
||||
import 'splitpanes/dist/splitpanes.css'
|
||||
import { Splitpanes, Pane } from 'splitpanes'
|
||||
import TableStore from '@/utils/tableStore'
|
||||
import PointTree from '@/components/tree/pms/pointTree.vue'
|
||||
import PointTree from '@/components/tree/pqs/pointTree.vue'
|
||||
import TableHeader from '@/components/table/header/index.vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { getLineExport, getList, selectReleation } from '@/api/event-boot/report'
|
||||
@@ -146,12 +146,11 @@ const size = ref(0)
|
||||
const value = ref('')
|
||||
const TableHeaderRef = ref()
|
||||
const dotList: any = ref({
|
||||
name:monitoringPoint.state.lineName.split('>')[3],
|
||||
id:monitoringPoint.state.lineId,
|
||||
level:6
|
||||
name: monitoringPoint.state.lineName.split('>')[3],
|
||||
id: monitoringPoint.state.lineId,
|
||||
level: 6
|
||||
})
|
||||
|
||||
|
||||
const formd: any = ref({
|
||||
xq: false,
|
||||
lb: false,
|
||||
@@ -170,7 +169,6 @@ const formd: any = ref({
|
||||
type: 0
|
||||
})
|
||||
|
||||
|
||||
const templatePolicy: any = ref([])
|
||||
const tableStore = new TableStore({
|
||||
url: '',
|
||||
@@ -191,10 +189,10 @@ getList({
|
||||
}).then(res => {
|
||||
templatePolicy.value = res.data.records
|
||||
})
|
||||
const handleNodeClick = (data: any, node: any) => {
|
||||
const handleNodeClick = (data: any, node: any) => {
|
||||
dotList.value = data
|
||||
}
|
||||
const changeFn = (val:any) => {
|
||||
const changeFn = (val: any) => {
|
||||
formd.value = {
|
||||
xq: false,
|
||||
lb: false,
|
||||
@@ -217,7 +215,7 @@ const changeFn = (val:any) => {
|
||||
}
|
||||
|
||||
selectReleation(data).then(res => {
|
||||
res.data.forEach((item:any) => {
|
||||
res.data.forEach((item: any) => {
|
||||
for (let k in formd.value) {
|
||||
if (item.name == k) {
|
||||
formd.value[k] = true
|
||||
@@ -242,7 +240,7 @@ const exportEvent = () => {
|
||||
formd.value.searchEndTime = tableStore.table.params.searchEndTime
|
||||
formd.value.flag = TableHeaderRef.value.datePickerRef.interval
|
||||
ElMessage('生成报告中,请稍等!')
|
||||
getLineExport(formd.value).then((res:any) => {
|
||||
getLineExport(formd.value).then((res: any) => {
|
||||
let blob = new Blob([res], {
|
||||
type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document;charset=UTF-8'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user