Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
1a1ee394
Commit
1a1ee394
authored
Jun 07, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改站点树形展示
parent
84747426
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
59 deletions
+48
-59
base-manager-ui/admin/src/assets/css/common.less
base-manager-ui/admin/src/assets/css/common.less
+6
-1
base-manager-ui/admin/src/components/sitetree/index.vue
base-manager-ui/admin/src/components/sitetree/index.vue
+9
-0
base-manager-ui/admin/src/layouts/header/HeaderSite.vue
base-manager-ui/admin/src/layouts/header/HeaderSite.vue
+4
-6
base-manager-ui/admin/src/pages/basicset/site/components/addsite.vue
...r-ui/admin/src/pages/basicset/site/components/addsite.vue
+1
-14
base-manager-ui/admin/src/pages/basicset/site/website.vue
base-manager-ui/admin/src/pages/basicset/site/website.vue
+28
-38
No files found.
base-manager-ui/admin/src/assets/css/common.less
View file @
1a1ee394
...
...
@@ -65,12 +65,17 @@
position: absolute;
top: 1px;
left: -16px;
background-color:
rgba(5, 149, 253, 1)
;
background-color:
#1890ff
;
}
}
.ant-input{
resize: none;
}
.ant-btn-primary{
background: linear-gradient(90deg,#5ab6ff,#2e9aff)!important;
border:none !important;
border-color: transparent !important;
}
.ant-form-explain{
position:absolute
...
...
base-manager-ui/admin/src/components/sitetree/index.vue
View file @
1a1ee394
...
...
@@ -5,6 +5,7 @@
<a-tree
:load-data=
"onLoadData"
:tree-data=
"treeData"
:expandedKeys.sync=
"expandedKeys"
:replaceFields=
"
{ title: 'label', key: 'id' }"
@select="onSelect"
>
...
...
@@ -26,6 +27,7 @@ export default {
return
{
treeData
:
[],
//树结构
id
:
""
,
expandedKeys
:
[],
};
},
...
...
@@ -40,6 +42,13 @@ export default {
const
{
data
,
code
}
=
res
.
data
;
if
(
code
===
1
)
{
this
.
treeData
=
data
.
data
;
// let obj = {
// dataRef: {
// id: data.data[0].id,
// },
// };
// this.onLoadData(obj);
this
.
expandedKeys
=
[
data
.
data
[
0
].
id
];
}
},
...
...
base-manager-ui/admin/src/layouts/header/HeaderSite.vue
View file @
1a1ee394
...
...
@@ -29,14 +29,12 @@
>
</div>
<div
class=
"site-btn"
>
<a-button
type=
"primary"
style=
"margin-right: 10px"
@
click=
"onSucessSite"
:disabled=
"isSite"
<a-button
style=
"margin-right: 10px"
@
click=
"visible = false"
>
取消
</a-button
>
<a-button
type=
"primary"
@
click=
"onSucessSite"
:disabled=
"isSite"
>
确定
</a-button
>
<a-button
@
click=
"visible = false"
>
取消
</a-button>
</div>
</div>
</
template
>
...
...
base-manager-ui/admin/src/pages/basicset/site/components/addsite.vue
View file @
1a1ee394
...
...
@@ -786,20 +786,7 @@ export default {
height: 100px;
object-fit: cover;
}
.color_title {
margin-left: 15px;
position: relative;
margin-bottom: 15px;
&::before {
content: "";
width: 4px;
height: 20px;
position: absolute;
top: 1px;
left: -16px;
background-color: rgba(5, 149, 253, 1);
}
}
.building,
.level {
position: relative;
...
...
base-manager-ui/admin/src/pages/basicset/site/website.vue
View file @
1a1ee394
...
...
@@ -18,18 +18,20 @@
<div
class=
"site_box"
>
<div
class=
"site_message"
>
站点信息
</div>
<div
class=
"btn-box"
>
<a-button
v-permission=
"[1]"
type=
"primary"
@
click=
"handleSync(item.id)"
>
同步数据
</a-button
>
<a-button
type=
"primary"
@
click=
"editSiteInfo(item)"
>
编辑
</a-button
>
<a-button
type=
"danger"
@
click=
"deleteSite(item.id, index)"
>
删除
</a-button
>
<a-space
size=
"middle"
>
<a-button
v-permission=
"[1]"
type=
"primary"
@
click=
"handleSync(item.id)"
>
同步数据
</a-button
>
<a-button
type=
"primary"
@
click=
"editSiteInfo(item)"
>
编辑
</a-button
>
<a-button
type=
"danger"
@
click=
"deleteSite(item.id, index)"
>
删除
</a-button
>
</a-space>
</div>
</div>
...
...
@@ -468,17 +470,17 @@ export default {
.
site_message
{
font
-
weight
:
600
;
}
.
ant
-
btn
-
primary
{
background
-
color
:
rgba
(
4
,
202
,
143
,
1
);
border
-
color
:
rgba
(
4
,
202
,
143
,
1
);
padding
-
left
:
20
px
;
padding
-
right
:
20
px
;
margin
-
right
:
30
px
;
}
.
ant
-
btn
-
danger
{
padding
-
left
:
20
px
;
padding
-
right
:
20
px
;
}
//
.ant-btn-primary
{
//
background-color: rgba(4, 202, 143, 1);
//
border-color: rgba(4, 202, 143, 1);
//
padding-left: 20px;
//
padding-right: 20px;
//
margin-right: 30px;
//
}
//
.ant-btn-danger
{
//
padding-left: 20px;
//
padding-right: 20px;
//
}
.
btn
-
box
{
margin
-
right
:
20
px
;
}
...
...
@@ -531,11 +533,13 @@ export default {
display
:
flex
;
flex
-
wrap
:
wrap
;
.
item
{
width
:
120
px
;
background
-
color
:
rgba
(
30
,
159
,
255
,
0.2
);
margin
-
right
:
10
px
;
margin
-
bottom
:
10
px
;
padding
:
6
px
16
px
;
padding
:
6
px
;
border
-
radius
:
5
px
;
text
-
align
:
center
;
}
}
}
...
...
@@ -547,20 +551,6 @@ export default {
}
}
}
.
color_title
{
margin
-
left
:
15
px
;
position
:
relative
;
margin
-
bottom
:
15
px
;
&
::
before
{
content
:
""
;
width
:
4
px
;
height
:
20
px
;
position
:
absolute
;
top
:
1
px
;
left
:
-
16
px
;
background
-
color
:
rgba
(
5
,
149
,
253
,
1
);
}
}
.
model_base
{
/
deep
/
.
ant
-
col
-
3
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment