Commit ac8fe3a0 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 595fcec0
var CONFIG = {} var CONFIG = {}
// 页面 title 前缀 // 页面 title 前缀
CONFIG.TITLE = '轨道交通后台管理系统' CONFIG.TITLE = '产业园区智慧消防系统'
// 网络请求公用地址 // 网络请求公用地址
......
...@@ -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>
......
<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)">
......
...@@ -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>
<!-- 下面 主体 --> <!-- 下面 主体 -->
......
...@@ -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
<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>
<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>
<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>
...@@ -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>
<template lang="pug"> <template lang="pug">
div.infopage() div.infopage()
font(class='index-title') 欢迎访问城市轨道交通安防系统 font(class='index-title') 欢迎访问产业园区智慧消防系统
</template> </template>
<script> <script>
...@@ -14,9 +14,7 @@ export default { ...@@ -14,9 +14,7 @@ export default {
D2Badge D2Badge
}, },
data() { data() {
return { return {}
}
}, },
methods: { methods: {
doBtn() { doBtn() {
...@@ -28,11 +26,11 @@ export default { ...@@ -28,11 +26,11 @@ 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;
// height: 50px; // height: 50px;
font-size: 48px; font-size: 48px;
...@@ -42,5 +40,5 @@ export default { ...@@ -42,5 +40,5 @@ export default {
display: block; display: block;
margin: 20% auto; margin: 20% auto;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment