diff --git a/yingyeting/.gitignore b/.gitignore similarity index 100% rename from yingyeting/.gitignore rename to .gitignore diff --git a/yingyeting/README.md b/README.md similarity index 100% rename from yingyeting/README.md rename to README.md diff --git a/yingyeting/babel.config.js b/babel.config.js similarity index 100% rename from yingyeting/babel.config.js rename to babel.config.js diff --git a/yingyeting/jsconfig.json b/jsconfig.json similarity index 100% rename from yingyeting/jsconfig.json rename to jsconfig.json diff --git a/yingyeting/package-lock.json b/package-lock.json similarity index 100% rename from yingyeting/package-lock.json rename to package-lock.json diff --git a/yingyeting/package.json b/package.json similarity index 100% rename from yingyeting/package.json rename to package.json diff --git a/yingyeting/public/favicon.ico b/public/favicon.ico similarity index 100% rename from yingyeting/public/favicon.ico rename to public/favicon.ico diff --git a/yingyeting/public/index.html b/public/index.html similarity index 79% rename from yingyeting/public/index.html rename to public/index.html index dae6298..5f0bb77 100644 --- a/yingyeting/public/index.html +++ b/public/index.html @@ -4,8 +4,6 @@ - - 国网南京雨花供电营业厅 diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..f1905bc --- /dev/null +++ b/src/App.vue @@ -0,0 +1,81 @@ + + + + + + diff --git a/src/assets/images/topBg.png b/src/assets/images/topBg.png new file mode 100644 index 0000000..fb6a5d3 Binary files /dev/null and b/src/assets/images/topBg.png differ diff --git a/src/assets/index.css b/src/assets/index.css new file mode 100644 index 0000000..cee9e3d --- /dev/null +++ b/src/assets/index.css @@ -0,0 +1,159 @@ +html, +body, +#app { + width: 100%; + height: 100%; + margin: 0px; + font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +* { + font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif; + user-select: none; +} + +html, +body, +ul, +li, +ol, +dl, +dd, +dt, +p, +h1, +h2, +h3, +h4, +h5, +h6, +form, +fieldset, +legend, +img { + margin: 0; + padding: 0; +} + +fieldset, +img, +input, +button, +textarea { + border: none; + padding: 0; + margin: 0; + outline-style: none; +} + +ul, +ol { + list-style: none; +} + +input { + padding-top: 0; + padding-bottom: 0; +} + +select, +input { + vertical-align: middle; +} + +select, +input, +textarea { + font-size: 12px; + margin: 0; +} + +textarea { + resize: none; +} + +/*防止拖动*/ + +img { + border: 0; + vertical-align: middle; + max-width: 100%; +} + +/* 去掉图片低测默认的3像素空白缝隙*/ +table { + border-collapse: collapse; +} + +.clearfix:before, +.clearfix:after { + content: ""; + display: table; +} + +.clearfix:after { + clear: both; +} + +.clearfix { + *zoom: 1; + /*IE/7/6*/ +} + +a { + color: #666; + text-decoration: none; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + text-decoration: none; + font-weight: normal; + font-size: 100%; +} + +s, +i, +em { + font-style: normal; + text-decoration: none; +} + +/* IE 浏览器 */ +.scrollbar-body { + /*三角箭头的颜色*/ + scrollbar-arrow-color: #0581ab; + /*滚动条滑块按钮的颜色*/ + scrollbar-face-color: #0581ab; + /*滚动条整体颜色*/ + scrollbar-highlight-color: #0a393f; + /*滚动条阴影*/ + scrollbar-shadow-color: #0099dd; + /*滚动条轨道颜色*/ + scrollbar-track-color: #0a393f; + /*滚动条3d亮色阴影边框的外观颜色——左边和上边的阴影色*/ + scrollbar-3dlight-color: #0099dd; + /*滚动条3d暗色阴影边框的外观颜色——右边和下边的阴影色*/ + scrollbar-darkshadow-color: #0099dd; + /*滚动条基准颜色*/ + scrollbar-base-color: #0581ab; +} + +.scrollbar-body { + overflow: hidden; + overflow-y: auto; +} + +.scrollbar-body::-webkit-scrollbar { + width: 0.36vw; + background-color: rgba(51, 238, 255, 0.2); +} + +.scrollbar-body::-webkit-scrollbar-thumb { + background-color: rgba(0, 192, 255, 0.51); + border-radius: 0.18vw; +} diff --git a/yingyeting/src/main.js b/src/main.js similarity index 54% rename from yingyeting/src/main.js rename to src/main.js index 563043f..368fde3 100644 --- a/yingyeting/src/main.js +++ b/src/main.js @@ -9,7 +9,15 @@ Vue.use(ElementUI) // Vue.use(Plugin); import * as echarts from 'echarts' Vue.prototype.$echarts = echarts -import * as Three from 'three' + +import moment from 'moment' +//定义一个全局过滤器实现日期格式化 +Vue.filter('datefmt',function (input,fmtstring) {//当input为时间戳时,需转为Number类型 + // 使用momentjs这个日期格式化类库实现日期的格式化功能 + return moment(input).format(fmtstring); +}); +Vue.prototype.$moment = moment + Vue.config.productionTip = false new Vue({ router, diff --git a/yingyeting/src/router.js b/src/router.js similarity index 100% rename from yingyeting/src/router.js rename to src/router.js diff --git a/yingyeting/src/view/index.vue b/src/view/index.vue similarity index 100% rename from yingyeting/src/view/index.vue rename to src/view/index.vue diff --git a/yingyeting/vue.config.js b/vue.config.js similarity index 100% rename from yingyeting/vue.config.js rename to vue.config.js diff --git a/yingyeting/src/App.vue b/yingyeting/src/App.vue deleted file mode 100644 index 9fa185d..0000000 --- a/yingyeting/src/App.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - - -