chuwu пре 6 година
родитељ
комит
965059f2bc
9 измењених фајлова са 6821 додато и 2 уклоњено
  1. 5 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 6 0
      .gitignore
  4. 8 0
      .postcssrc.js
  5. 29 2
      README.md
  6. BIN
      favicon.ico
  7. 52 0
      index.html
  8. 6635 0
      package-lock.json
  9. 77 0
      package.json

+ 5 - 0
.babelrc

@@ -0,0 +1,5 @@
+{
+  "presets": ["es2015", "stage-2"],
+  "plugins": ["transform-runtime"],
+  "comments": false
+}

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 6 - 0
.gitignore

@@ -0,0 +1,6 @@
+.DS_Store
+node_modules/
+dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*

+ 8 - 0
.postcssrc.js

@@ -0,0 +1,8 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+  "plugins": {
+    // to edit target browsers: use "browserlist" field in package.json
+    "autoprefixer": {}
+  }
+}

+ 29 - 2
README.md

@@ -1,3 +1,30 @@
-# web-details
+# dodo-repair-web
 
-共用详情页
+> jamesgame
+
+## Build Setup
+
+``` bash
+# install dependencies
+npm install
+
+# serve with hot reload at localhost:8080
+npm run dev
+
+# build for production with minification
+npm run build
+
+# build for production and view the bundle analyzer report
+npm run build --report
+```
+
+For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
+
+#该页面为资产详情页,需要通过拼接url传参。
+##该链接地址为:http地址/details?后拼接参数
+##目前参数有: \perjectId  项目ID
+###           \secret  
+###           \FmId   需要查询的ID
+###           \code   code码
+###           \type    1为资产0为岗位、系统
+#地址示例:http://172.16.1.21:8080/details?perjectId=Pj1101080001&secret=123&FmId=Sy1101080001001ACCC001&type=0&code=CC


+ 52 - 0
index.html

@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <meta charset="utf-8">
+    <title>信息</title>
+    <meta name="renderer" content="webkit|ie-comp|ie-stand">
+    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+    <meta name="x5-orientation" content="portrait" />
+    <!--QQ(x5内核)浏览器强制竖屏显示-->
+    <meta name="x5-fullscreen" content="true" />
+    <!--QQ(x5内核)浏览器设置全屏,即无浏览器自带的顶部网址输入框,和底部浏览器工具栏-->
+    <meta name="screen-orientation" content="portrait" />
+    <!--设置UC浏览器的竖屏显示-->
+    <meta name="full-screen" content="yes" />
+    <meta name="format-detection" content="telephone=no,email=no" />
+    <!-- <script src="//cdn.bootcss.com/eruda/1.3.0/eruda.min.js"></script>
+    <script>
+        eruda.init();
+    </script> -->
+    <style>
+        html {
+            font-size: 40px;
+        }
+        
+        @media screen and (min-width: 960px) and (max-width: 1199px) {
+            html {
+                font-size: 40px;
+            }
+        }
+        /* ipad尺寸 */
+        
+        @media screen and (max-width:960px) {
+            html {
+                font-size: 60px;
+            }
+        }
+        /* 手机尺寸 */
+    </style>
+</head>
+
+<body>
+    <div id="app"></div>
+    <script type="text/javascript">
+        // (function(window, html) {
+        //     var fontNum = html.clientWidth / 25;
+        //     html.style.fontSize = fontNum + 'px';
+        // })(window, document.documentElement)
+    </script>
+</body>
+
+</html>

Разлика између датотеке није приказан због своје велике величине
+ 6635 - 0
package-lock.json


+ 77 - 0
package.json

@@ -0,0 +1,77 @@
+{
+  "name": "dodo-repair-web",
+  "version": "1.0.0",
+  "description": "A Vue.js admin",
+  "author": "chuwu",
+  "private": true,
+  "scripts": {
+    "dev": "node build/dev-server.js",
+    "build": "cross-env NODE_ENV=production node build/build.js"
+  },
+  "dependencies": {
+    "axios": "^0.15.3",
+    "babel-polyfill": "^6.26.0",
+    "better-scroll": "^0.2.4",
+    "coordtransform": "^2.1.2",
+    "echarts": "^4.0.4",
+    "element-ui": "^2.3.6",
+    "js-cookie": "^2.1.4",
+    "less": "^2.7.2",
+    "less-loader": "^4.0.4",
+    "numbro": "^2.0.6",
+    "uuid": "^3.1.0",
+    "vue": "^2.3.3",
+    "vue-axios": "^2.0.2",
+    "vue-handsontable-official": "^1.1.0",
+    "vue-router": "^2.3.1",
+    "vue-xlsx-table": "^1.2.8",
+    "vuex": "^2.3.1"
+  },
+  "devDependencies": {
+    "autoprefixer": "^6.7.2",
+    "babel-core": "^6.22.1",
+    "babel-loader": "^6.2.10",
+    "babel-plugin-transform-runtime": "^6.22.0",
+    "babel-preset-es2015": "^6.22.0",
+    "babel-preset-stage-2": "^6.22.0",
+    "babel-register": "^6.22.0",
+    "chalk": "^1.1.3",
+    "connect-history-api-fallback": "^1.3.0",
+    "copy-webpack-plugin": "^4.0.1",
+    "cross-env": "^5.0.1",
+    "css-loader": "^0.28.0",
+    "eventsource-polyfill": "^0.9.6",
+    "express": "^4.14.1",
+    "extract-text-webpack-plugin": "^2.0.0",
+    "file-loader": "^0.11.1",
+    "friendly-errors-webpack-plugin": "^1.1.3",
+    "html-webpack-plugin": "^2.28.0",
+    "http-proxy-middleware": "^0.17.3",
+    "webpack-bundle-analyzer": "^2.2.1",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "opn": "^4.0.2",
+    "jquery": "^2.2.3",
+    "optimize-css-assets-webpack-plugin": "^1.3.0",
+    "ora": "^1.2.0",
+    "pushstate-server": "^2.1.0",
+    "rimraf": "^2.6.0",
+    "url-loader": "^0.5.8",
+    "vue-loader": "^12.1.0",
+    "vue-style-loader": "^3.0.1",
+    "vue-template-compiler": "^2.3.3",
+    "webpack": "^2.6.1",
+    "webpack-dev-middleware": "^1.10.0",
+    "webpack-hot-middleware": "^2.18.0",
+    "webpack-merge": "^4.1.0"
+  },
+  "engines": {
+    "node": ">= 4.0.0",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not ie <= 8"
+  ]
+}