Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
Z
zhxf_vue
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
葛齐林
zhxf_vue
Commits
ac8fe3a0
Commit
ac8fe3a0
authored
May 11, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
595fcec0
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
59 deletions
+51
-59
config.js
public/config.js
+1
-1
index.html
public/index.html
+2
-2
d2-admin.svg
src/assets/svg-icons/icons/d2-admin.svg
+1
-1
layout.vue
src/layout/header-aside/layout.vue
+0
-9
util.js
src/libs/util.js
+20
-27
index.vue
src/pages/demo/element/data-badge/index.vue
+5
-2
index.vue
src/pages/demo/element/data-pagination/index.vue
+5
-2
index.vue
src/pages/demo/element/data-tag/index.vue
+5
-2
index.vue
src/pages/demo/playground/index/index.vue
+3
-2
page.vue
src/pages/index/page.vue
+9
-11
No files found.
public/config.js
View file @
ac8fe3a0
var
CONFIG
=
{}
var
CONFIG
=
{}
// 页面 title 前缀
// 页面 title 前缀
CONFIG
.
TITLE
=
'
轨道交通后台管理
系统'
CONFIG
.
TITLE
=
'
产业园区智慧消防
系统'
// 网络请求公用地址
// 网络请求公用地址
...
...
public/index.html
View file @
ac8fe3a0
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<link
href=
"icon.jpg"
rel=
"icon"
type=
"image/x-icon"
/>
<link
href=
"icon.jpg"
rel=
"icon"
type=
"image/x-icon"
/>
<!-- <script src = "https://cdn.jsdelivr.net/npm/proxy-polyfill@0.3.0/proxy.min.js"></script> -->
<!-- <script src = "https://cdn.jsdelivr.net/npm/proxy-polyfill@0.3.0/proxy.min.js"></script> -->
<title>
城市轨道交通安
防系统
</title>
<title>
产业园区智慧消
防系统
</title>
<script>
<script>
//禁用所有控制台输出
//禁用所有控制台输出
// var console={};
// var console={};
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
<div
class=
"d2-app-loading d2-app-loading9"
></div>
<div
class=
"d2-app-loading d2-app-loading9"
></div>
</div>
</div>
<div
class=
"d2-app-loading-title"
>
加载中
</div>
<div
class=
"d2-app-loading-title"
>
加载中
</div>
<div
class=
"d2-app-loading-sub-title"
>
欢迎使用
城市轨道交通安
防系统。初次加载较慢,请耐心等待
</div>
<div
class=
"d2-app-loading-sub-title"
>
欢迎使用
产业园区智慧消
防系统。初次加载较慢,请耐心等待
</div>
<div
class=
"d2-app-loading-sub-info"
>
如果很久很久都没有加载成功,请清空缓存重新加载页面
</div>
<div
class=
"d2-app-loading-sub-info"
>
如果很久很久都没有加载成功,请清空缓存重新加载页面
</div>
</div>
</div>
</div>
</div>
...
...
src/assets/svg-icons/icons/d2-admin.svg
View file @
ac8fe3a0
<svg
viewBox=
"0 0 60 54"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<svg
viewBox=
"0 0 60 54"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<desc>
城市轨道交通安
防系统
</desc>
<desc>
产业园区智慧消
防系统
</desc>
<defs></defs>
<defs></defs>
<g
id=
"Symbols"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"Symbols"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"logo-no-shadow"
transform=
"translate(-3.000000, -3.000000)"
>
<g
id=
"logo-no-shadow"
transform=
"translate(-3.000000, -3.000000)"
>
...
...
src/layout/header-aside/layout.vue
View file @
ac8fe3a0
...
@@ -62,15 +62,6 @@
...
@@ -62,15 +62,6 @@
</div>
</div>
</div>
-->
</div>
-->
</div>
</div>
<!--
<div
width=
"95%"
style=
"float:right;margin-right:6%"
>
<font
color=
"#C5CBD2"
size=
"2"
>
{{
station
?
"欢迎访问"
+
station
+
"轨道交通综合安防平台!"
:
"请先登录"
}}
</font>
</div>
-->
</div>
</div>
</div>
</div>
<!-- 下面 主体 -->
<!-- 下面 主体 -->
...
...
src/libs/util.js
View file @
ac8fe3a0
...
@@ -11,7 +11,7 @@ let util = {
...
@@ -11,7 +11,7 @@ let util = {
* @param {String} title 标题
* @param {String} title 标题
*/
*/
util
.
title
=
function
(
titleText
)
{
util
.
title
=
function
(
titleText
)
{
const
processTitle
=
'
城市轨道交通安
防系统'
const
processTitle
=
'
产业园区智慧消
防系统'
window
.
document
.
title
=
`
${
processTitle
}${
titleText
?
` |
${
titleText
}
`
:
''
}
`
window
.
document
.
title
=
`
${
processTitle
}${
titleText
?
` |
${
titleText
}
`
:
''
}
`
}
}
...
@@ -29,7 +29,6 @@ util.open = function (url) {
...
@@ -29,7 +29,6 @@ util.open = function (url) {
document
.
body
.
removeChild
(
document
.
getElementById
(
'd2admin-menu-link'
))
document
.
body
.
removeChild
(
document
.
getElementById
(
'd2admin-menu-link'
))
}
}
/**
/**
* @about Tree 数据格式转化
* @about Tree 数据格式转化
* @param rows:json数据对象
* @param rows:json数据对象
...
@@ -43,62 +42,56 @@ util.open = function (url) {
...
@@ -43,62 +42,56 @@ util.open = function (url) {
util
.
ConvertToTreeJson
=
function
(
rows
,
idFieldName
,
pidFieldName
,
fileds
)
{
util
.
ConvertToTreeJson
=
function
(
rows
,
idFieldName
,
pidFieldName
,
fileds
)
{
function
exists
(
rows
,
ParentId
)
{
function
exists
(
rows
,
ParentId
)
{
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
if
(
rows
[
i
][
idFieldName
]
==
ParentId
)
if
(
rows
[
i
][
idFieldName
]
==
ParentId
)
{
return
true
}
return
true
;
}
}
return
false
;
return
false
}
}
var
nodes
=
[]
;
var
nodes
=
[]
// get the top level nodes
// get the top level nodes
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
var
row
=
rows
[
i
]
;
var
row
=
rows
[
i
]
if
(
!
exists
(
rows
,
row
[
pidFieldName
]))
{
if
(
!
exists
(
rows
,
row
[
pidFieldName
]))
{
var
data
=
{
var
data
=
{
id
:
row
[
idFieldName
]
id
:
row
[
idFieldName
]
}
}
var
arrFiled
=
fileds
.
split
(
","
);
var
arrFiled
=
fileds
.
split
(
','
)
for
(
var
j
=
0
;
j
<
arrFiled
.
length
;
j
++
)
for
(
var
j
=
0
;
j
<
arrFiled
.
length
;
j
++
)
{
{
if
(
arrFiled
[
j
]
!=
idFieldName
)
{
data
[
arrFiled
[
j
]]
=
row
[
arrFiled
[
j
]]
}
if
(
arrFiled
[
j
]
!=
idFieldName
)
data
[
arrFiled
[
j
]]
=
row
[
arrFiled
[
j
]];
}
}
nodes
.
push
(
data
)
;
nodes
.
push
(
data
)
}
}
}
}
var
toDo
=
[]
var
toDo
=
[];
for
(
var
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
toDo
.
push
(
nodes
[
i
])
;
toDo
.
push
(
nodes
[
i
])
}
}
while
(
toDo
.
length
)
{
while
(
toDo
.
length
)
{
var
node
=
toDo
.
shift
()
;
// the parent node
var
node
=
toDo
.
shift
()
// the parent node
// get the children nodes
// get the children nodes
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
var
row
=
rows
[
i
]
;
var
row
=
rows
[
i
]
if
(
row
[
pidFieldName
]
==
node
.
id
)
{
if
(
row
[
pidFieldName
]
==
node
.
id
)
{
var
child
=
{
var
child
=
{
id
:
row
[
idFieldName
]
id
:
row
[
idFieldName
]
}
;
}
var
arrFiled
=
fileds
.
split
(
","
);
var
arrFiled
=
fileds
.
split
(
','
)
for
(
var
j
=
0
;
j
<
arrFiled
.
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
arrFiled
.
length
;
j
++
)
{
if
(
arrFiled
[
j
]
!=
idFieldName
)
{
if
(
arrFiled
[
j
]
!=
idFieldName
)
{
child
[
arrFiled
[
j
]]
=
row
[
arrFiled
[
j
]]
;
child
[
arrFiled
[
j
]]
=
row
[
arrFiled
[
j
]]
}
}
}
}
if
(
node
.
children
)
{
if
(
node
.
children
)
{
node
.
children
.
push
(
child
)
;
node
.
children
.
push
(
child
)
}
else
{
}
else
{
node
.
children
=
[
child
]
;
node
.
children
=
[
child
]
}
}
toDo
.
push
(
child
)
;
toDo
.
push
(
child
)
}
}
}
}
}
}
return
nodes
;
return
nodes
}
}
export
default
util
export
default
util
src/pages/demo/element/data-badge/index.vue
View file @
ac8fe3a0
<
template
>
<
template
>
<d2-container>
<d2-container>
<h1
class=
"d2-mt-0"
>
该页面尚未完成组件示例搬运
</h1>
<h1
class=
"d2-mt-0"
>
该页面尚未完成组件示例搬运
</h1>
<p>
城市轨道交通安防系统 的构建依托于由饿了么出品的 ElementUI,欲了解更多该组件的信息请查阅以下链接
</p>
<p>
<d2-link-btn
title=
"Element"
link=
"http://element.eleme.io/#/zh-CN"
/>
产业园区智慧消防系统 的构建依托于由饿了么出品的
ElementUI,欲了解更多该组件的信息请查阅以下链接
</p>
<d2-link-btn
title=
"Element"
link=
"http://element.eleme.io/#/zh-CN"
/>
</d2-container>
</d2-container>
</
template
>
</
template
>
src/pages/demo/element/data-pagination/index.vue
View file @
ac8fe3a0
<
template
>
<
template
>
<d2-container>
<d2-container>
<h1
class=
"d2-mt-0"
>
该页面尚未完成组件示例搬运
</h1>
<h1
class=
"d2-mt-0"
>
该页面尚未完成组件示例搬运
</h1>
<p>
城市轨道交通安防系统 的构建依托于由饿了么出品的 ElementUI,欲了解更多该组件的信息请查阅以下链接
</p>
<p>
<d2-link-btn
title=
"Element"
link=
"http://element.eleme.io/#/zh-CN"
/>
产业园区智慧消防系统 的构建依托于由饿了么出品的
ElementUI,欲了解更多该组件的信息请查阅以下链接
</p>
<d2-link-btn
title=
"Element"
link=
"http://element.eleme.io/#/zh-CN"
/>
</d2-container>
</d2-container>
</
template
>
</
template
>
src/pages/demo/element/data-tag/index.vue
View file @
ac8fe3a0
<
template
>
<
template
>
<d2-container>
<d2-container>
<h1
class=
"d2-mt-0"
>
该页面尚未完成组件示例搬运
</h1>
<h1
class=
"d2-mt-0"
>
该页面尚未完成组件示例搬运
</h1>
<p>
城市轨道交通安防系统 的构建依托于由饿了么出品的 ElementUI,欲了解更多该组件的信息请查阅以下链接
</p>
<p>
<d2-link-btn
title=
"Element"
link=
"http://element.eleme.io/#/zh-CN"
/>
产业园区智慧消防系统 的构建依托于由饿了么出品的
ElementUI,欲了解更多该组件的信息请查阅以下链接
</p>
<d2-link-btn
title=
"Element"
link=
"http://element.eleme.io/#/zh-CN"
/>
</d2-container>
</d2-container>
</
template
>
</
template
>
src/pages/demo/playground/index/index.vue
View file @
ac8fe3a0
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
<d2-container>
<d2-container>
<d2-page-cover
<d2-page-cover
title=
"功能"
title=
"功能"
sub-title=
"在这里可以测试一些 城市轨道交通安防系统 的系统功能"
>
sub-title=
"在这里可以测试一些 产业园区智慧消防系统 的系统功能"
<img
src=
"./image/icon.png"
>
>
<img
src=
"./image/icon.png"
/>
</d2-page-cover>
</d2-page-cover>
</d2-container>
</d2-container>
</
template
>
</
template
>
src/pages/index/page.vue
View file @
ac8fe3a0
<
template
lang=
"pug"
>
<
template
lang=
"pug"
>
div.infopage()
div.infopage()
font(class='index-title') 欢迎访问
城市轨道交通安
防系统
font(class='index-title') 欢迎访问
产业园区智慧消
防系统
</
template
>
</
template
>
...
@@ -14,9 +14,7 @@ export default {
...
@@ -14,9 +14,7 @@ export default {
D2Badge
D2Badge
},
},
data
()
{
data
()
{
return
{
return
{}
}
},
},
methods
:
{
methods
:
{
doBtn
()
{
doBtn
()
{
...
@@ -28,9 +26,9 @@ export default {
...
@@ -28,9 +26,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
"~@/assets/style/public.scss"
;
@import
'~@/assets/style/public.scss'
;
.infopage
{
.infopage
{
margin
:
0
20px
0
24px
;
margin
:
0
20px
0
24px
;
height
:
700px
;
height
:
700px
;
.index-title
{
.index-title
{
width
:
720px
;
width
:
720px
;
...
@@ -42,5 +40,5 @@ export default {
...
@@ -42,5 +40,5 @@ export default {
display
:
block
;
display
:
block
;
margin
:
20%
auto
;
margin
:
20%
auto
;
}
}
}
}
</
style
>
</
style
>
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