修改冀北问题

This commit is contained in:
GGJ
2024-09-24 16:23:55 +08:00
parent b1a88a7cda
commit f95dc42b3f
7 changed files with 63 additions and 56 deletions

View File

@@ -3,15 +3,10 @@
<!-- 算法库 -->
<splitpanes style="height: 100%" class="default-theme" id="navigation-splitpanes">
<pane :size="size">
<algorithmTree
ref="treeRef"
:default-expand-all="false"
<algorithmTree ref="treeRef" :default-expand-all="false"
:default-expanded-keys="monitoringPoint.state.lineId ? [monitoringPoint.state.lineId] : []"
:current-node-key="monitoringPoint.state.lineId"
@node-click="handleNodeClick"
@init="handleNodeClick"
@onAddTree="onAddTree"
></algorithmTree>
:current-node-key="monitoringPoint.state.lineId" @node-click="handleNodeClick"
@init="handleNodeClick" @onAddTree="onAddTree"></algorithmTree>
</pane>
<pane style="background: #fff" :style="height">
<div class="boxTop">
@@ -21,12 +16,7 @@
</el-radio-group>
</div>
<div v-if="information">
<el-button
icon="el-icon-Plus"
type="primary"
@click="addUser"
v-if="dotList?.childrens?.length > 0"
>
<el-button icon="el-icon-Plus" type="primary" @click="addUser">
新增
</el-button>
<el-button icon="el-icon-Edit" type="primary" @click="revise">修改</el-button>
@@ -45,24 +35,20 @@
row.period == 0
? '日'
: row.period == 1
? '月'
: row.period == 2
? '季'
: row.period == 3
? '年'
: ''
? '月'
: row.period == 2
? '季'
: row.period == 3
? '年'
: ''
}}
</template>
</vxe-column>
<vxe-column field="source" title="数据来源"></vxe-column>
<vxe-column field="useFLag" title="是否启用">
<template #default="{ row }">
<el-tag
:type="row.useFLag === 1 ? 'success' : 'info'"
effect="dark"
style="cursor: pointer"
@click="change(row)"
>
<el-tag :type="row.useFLag === 1 ? 'success' : 'info'" effect="dark"
style="cursor: pointer" @click="change(row)">
{{ row.useFLag === 1 ? '' : '' }}
</el-tag>
</template>
@@ -85,23 +71,13 @@
<!-- 树弹框 -->
<addTree ref="addTreeRef" @getTree="treeRef.loadData(dotList.id)" />
<!-- 弹框 -->
<PopupEdit
ref="popupEditRef"
v-if="popupEditFlag"
@getTree="treeRef.loadData(dotList.id), (popupEditFlag = false)"
/>
<PopupEdit ref="popupEditRef" v-if="popupEditFlag"
@getTree="treeRef.loadData(dotList.id), (popupEditFlag = false)" />
<!-- 删除 -->
<el-dialog v-model="dialogVisible" title="请选择需要删除的数据" width="400">
<el-tree-select
v-model="TreeValue"
:data="TreeData"
filterable
check-strictly
:props="defaultProps"
default-expand-all
:render-after-expand="false"
/>
<template #footer>
<el-tree-select v-model="TreeValue" :data="TreeData" filterable check-strictly :props="defaultProps"
default-expand-all :render-after-expand="false" />
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogVisible = false">取消</el-button>
<el-button type="primary" @click="del">删除</el-button>
@@ -140,7 +116,7 @@ const treeRef = ref()
const popupEditRef = ref()
const TreeData = ref([])
const TreeValue = ref([])
const information =adminInfo.roleCode.includes('information_info')
const information = adminInfo.roleCode.includes('information_info')
const defaultProps = {
label: 'name',
@@ -274,6 +250,7 @@ const change = (row: any) => {
.splitpanes.default-theme .splitpanes__pane {
background: #eaeef1;
}
.grid-content {
text-align: center;
}
@@ -281,10 +258,12 @@ const change = (row: any) => {
.el-divider--horizontal {
margin: 10px 0;
}
.mTop {
margin-top: 5px;
margin-bottom: 5px;
}
.boxTop {
height: 52px;
padding: 10px 10px 10px 0;