Browse Source

项目初始化

seimin 3 years ago
commit
dc8c4db628

+ 5 - 0
.browserslistrc

@@ -0,0 +1,5 @@
1
+Chrome > 38,
2
+last 5 Safari version,
3
+last 5 Firefox version,
4
+last 5 Edge version,
5
+IE > 9

+ 17 - 0
.eslintrc.js

@@ -0,0 +1,17 @@
1
+module.exports = {
2
+  root: true,
3
+  env: {
4
+    node: true
5
+  },
6
+  'extends': [
7
+    'plugin:vue/essential',
8
+    'eslint:recommended'
9
+  ],
10
+  parserOptions: {
11
+    parser: 'babel-eslint'
12
+  },
13
+  rules: {
14
+    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
16
+  }
17
+}

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
1
+.DS_Store
2
+node_modules
3
+/dist
4
+
5
+
6
+# local env files
7
+.env.local
8
+.env.*.local
9
+
10
+# Log files
11
+npm-debug.log*
12
+yarn-debug.log*
13
+yarn-error.log*
14
+pnpm-debug.log*
15
+
16
+# Editor directories and files
17
+.idea
18
+.vscode
19
+*.suo
20
+*.ntvs*
21
+*.njsproj
22
+*.sln
23
+*.sw?

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
1
+# hsms-specimen-view
2
+
3
+## Project setup
4
+```
5
+npm install
6
+```
7
+
8
+### Compiles and hot-reloads for development
9
+```
10
+npm run serve
11
+```
12
+
13
+### Compiles and minifies for production
14
+```
15
+npm run build
16
+```
17
+
18
+### Lints and fixes files
19
+```
20
+npm run lint
21
+```
22
+
23
+### Customize configuration
24
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 5 - 0
babel.config.js

@@ -0,0 +1,5 @@
1
+module.exports = {
2
+  presets: [
3
+    '@vue/cli-plugin-babel/preset'
4
+  ]
5
+}

File diff suppressed because it is too large
+ 12125 - 0
package-lock.json


+ 29 - 0
package.json

@@ -0,0 +1,29 @@
1
+{
2
+  "name": "hsms-specimen-view",
3
+  "version": "0.1.0",
4
+  "private": true,
5
+  "scripts": {
6
+    "start": "vue-cli-service serve",
7
+    "build": "vue-cli-service build",
8
+    "lint": "vue-cli-service lint"
9
+  },
10
+  "dependencies": {
11
+    "axios": "^0.20.0",
12
+    "core-js": "^3.6.5",
13
+    "crypto-js": "^4.0.0",
14
+    "vue": "^2.6.11",
15
+    "vue-custom-scrollbar": "^1.3.0",
16
+    "vue-router": "^3.4.3"
17
+  },
18
+  "devDependencies": {
19
+    "@vue/cli-plugin-babel": "~4.5.0",
20
+    "@vue/cli-plugin-eslint": "~4.5.0",
21
+    "@vue/cli-service": "~4.5.0",
22
+    "babel-eslint": "^10.1.0",
23
+    "eslint": "^6.7.2",
24
+    "eslint-plugin-vue": "^6.2.2",
25
+    "less": "^3.0.4",
26
+    "less-loader": "^5.0.0",
27
+    "vue-template-compiler": "^2.6.11"
28
+  }
29
+}

BIN
public/favicon.ico


+ 18 - 0
public/index.html

@@ -0,0 +1,18 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+  <head>
4
+    <meta charset="utf-8">
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+    <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
9
+    <title>业务视图</title>
10
+  </head>
11
+  <body>
12
+    <noscript>
13
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14
+    </noscript>
15
+    <div id="app"></div>
16
+    <!-- built files will be auto injected -->
17
+  </body>
18
+</html>

+ 16 - 0
src/App.vue

@@ -0,0 +1,16 @@
1
+<template>
2
+  <div id="app">
3
+    <router-view />
4
+  </div>
5
+</template>
6
+
7
+<style lang="less">
8
+@import url(./assets/css/normalize.css);
9
+@import url(./assets/css/minireset.min.css);
10
+@import url(./assets/iconfont/iconfont.css);
11
+body {
12
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
13
+    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
14
+    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
15
+}
16
+</style>

File diff suppressed because it is too large
+ 1 - 0
src/assets/css/minireset.min.css


+ 349 - 0
src/assets/css/normalize.css

@@ -0,0 +1,349 @@
1
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+/* Document
4
+   ========================================================================== */
5
+
6
+/**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+html {
12
+  line-height: 1.15; /* 1 */
13
+  -webkit-text-size-adjust: 100%; /* 2 */
14
+}
15
+
16
+/* Sections
17
+   ========================================================================== */
18
+
19
+/**
20
+ * Remove the margin in all browsers.
21
+ */
22
+
23
+body {
24
+  margin: 0;
25
+}
26
+
27
+/**
28
+ * Render the `main` element consistently in IE.
29
+ */
30
+
31
+main {
32
+  display: block;
33
+}
34
+
35
+/**
36
+ * Correct the font size and margin on `h1` elements within `section` and
37
+ * `article` contexts in Chrome, Firefox, and Safari.
38
+ */
39
+
40
+h1 {
41
+  font-size: 2em;
42
+  margin: 0.67em 0;
43
+}
44
+
45
+/* Grouping content
46
+   ========================================================================== */
47
+
48
+/**
49
+ * 1. Add the correct box sizing in Firefox.
50
+ * 2. Show the overflow in Edge and IE.
51
+ */
52
+
53
+hr {
54
+  box-sizing: content-box; /* 1 */
55
+  height: 0; /* 1 */
56
+  overflow: visible; /* 2 */
57
+}
58
+
59
+/**
60
+ * 1. Correct the inheritance and scaling of font size in all browsers.
61
+ * 2. Correct the odd `em` font sizing in all browsers.
62
+ */
63
+
64
+pre {
65
+  font-family: monospace, monospace; /* 1 */
66
+  font-size: 1em; /* 2 */
67
+}
68
+
69
+/* Text-level semantics
70
+   ========================================================================== */
71
+
72
+/**
73
+ * Remove the gray background on active links in IE 10.
74
+ */
75
+
76
+a {
77
+  background-color: transparent;
78
+}
79
+
80
+/**
81
+ * 1. Remove the bottom border in Chrome 57-
82
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
+ */
84
+
85
+abbr[title] {
86
+  border-bottom: none; /* 1 */
87
+  text-decoration: underline; /* 2 */
88
+  text-decoration: underline dotted; /* 2 */
89
+}
90
+
91
+/**
92
+ * Add the correct font weight in Chrome, Edge, and Safari.
93
+ */
94
+
95
+b,
96
+strong {
97
+  font-weight: bolder;
98
+}
99
+
100
+/**
101
+ * 1. Correct the inheritance and scaling of font size in all browsers.
102
+ * 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+code,
106
+kbd,
107
+samp {
108
+  font-family: monospace, monospace; /* 1 */
109
+  font-size: 1em; /* 2 */
110
+}
111
+
112
+/**
113
+ * Add the correct font size in all browsers.
114
+ */
115
+
116
+small {
117
+  font-size: 80%;
118
+}
119
+
120
+/**
121
+ * Prevent `sub` and `sup` elements from affecting the line height in
122
+ * all browsers.
123
+ */
124
+
125
+sub,
126
+sup {
127
+  font-size: 75%;
128
+  line-height: 0;
129
+  position: relative;
130
+  vertical-align: baseline;
131
+}
132
+
133
+sub {
134
+  bottom: -0.25em;
135
+}
136
+
137
+sup {
138
+  top: -0.5em;
139
+}
140
+
141
+/* Embedded content
142
+   ========================================================================== */
143
+
144
+/**
145
+ * Remove the border on images inside links in IE 10.
146
+ */
147
+
148
+img {
149
+  border-style: none;
150
+}
151
+
152
+/* Forms
153
+   ========================================================================== */
154
+
155
+/**
156
+ * 1. Change the font styles in all browsers.
157
+ * 2. Remove the margin in Firefox and Safari.
158
+ */
159
+
160
+button,
161
+input,
162
+optgroup,
163
+select,
164
+textarea {
165
+  font-family: inherit; /* 1 */
166
+  font-size: 100%; /* 1 */
167
+  line-height: 1.15; /* 1 */
168
+  margin: 0; /* 2 */
169
+}
170
+
171
+/**
172
+ * Show the overflow in IE.
173
+ * 1. Show the overflow in Edge.
174
+ */
175
+
176
+button,
177
+input { /* 1 */
178
+  overflow: visible;
179
+}
180
+
181
+/**
182
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
+ * 1. Remove the inheritance of text transform in Firefox.
184
+ */
185
+
186
+button,
187
+select { /* 1 */
188
+  text-transform: none;
189
+}
190
+
191
+/**
192
+ * Correct the inability to style clickable types in iOS and Safari.
193
+ */
194
+
195
+button,
196
+[type="button"],
197
+[type="reset"],
198
+[type="submit"] {
199
+  -webkit-appearance: button;
200
+}
201
+
202
+/**
203
+ * Remove the inner border and padding in Firefox.
204
+ */
205
+
206
+button::-moz-focus-inner,
207
+[type="button"]::-moz-focus-inner,
208
+[type="reset"]::-moz-focus-inner,
209
+[type="submit"]::-moz-focus-inner {
210
+  border-style: none;
211
+  padding: 0;
212
+}
213
+
214
+/**
215
+ * Restore the focus styles unset by the previous rule.
216
+ */
217
+
218
+button:-moz-focusring,
219
+[type="button"]:-moz-focusring,
220
+[type="reset"]:-moz-focusring,
221
+[type="submit"]:-moz-focusring {
222
+  outline: 1px dotted ButtonText;
223
+}
224
+
225
+/**
226
+ * Correct the padding in Firefox.
227
+ */
228
+
229
+fieldset {
230
+  padding: 0.35em 0.75em 0.625em;
231
+}
232
+
233
+/**
234
+ * 1. Correct the text wrapping in Edge and IE.
235
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
236
+ * 3. Remove the padding so developers are not caught out when they zero out
237
+ *    `fieldset` elements in all browsers.
238
+ */
239
+
240
+legend {
241
+  box-sizing: border-box; /* 1 */
242
+  color: inherit; /* 2 */
243
+  display: table; /* 1 */
244
+  max-width: 100%; /* 1 */
245
+  padding: 0; /* 3 */
246
+  white-space: normal; /* 1 */
247
+}
248
+
249
+/**
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
+ */
252
+
253
+progress {
254
+  vertical-align: baseline;
255
+}
256
+
257
+/**
258
+ * Remove the default vertical scrollbar in IE 10+.
259
+ */
260
+
261
+textarea {
262
+  overflow: auto;
263
+}
264
+
265
+/**
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
268
+ */
269
+
270
+[type="checkbox"],
271
+[type="radio"] {
272
+  box-sizing: border-box; /* 1 */
273
+  padding: 0; /* 2 */
274
+}
275
+
276
+/**
277
+ * Correct the cursor style of increment and decrement buttons in Chrome.
278
+ */
279
+
280
+[type="number"]::-webkit-inner-spin-button,
281
+[type="number"]::-webkit-outer-spin-button {
282
+  height: auto;
283
+}
284
+
285
+/**
286
+ * 1. Correct the odd appearance in Chrome and Safari.
287
+ * 2. Correct the outline style in Safari.
288
+ */
289
+
290
+[type="search"] {
291
+  -webkit-appearance: textfield; /* 1 */
292
+  outline-offset: -2px; /* 2 */
293
+}
294
+
295
+/**
296
+ * Remove the inner padding in Chrome and Safari on macOS.
297
+ */
298
+
299
+[type="search"]::-webkit-search-decoration {
300
+  -webkit-appearance: none;
301
+}
302
+
303
+/**
304
+ * 1. Correct the inability to style clickable types in iOS and Safari.
305
+ * 2. Change font properties to `inherit` in Safari.
306
+ */
307
+
308
+::-webkit-file-upload-button {
309
+  -webkit-appearance: button; /* 1 */
310
+  font: inherit; /* 2 */
311
+}
312
+
313
+/* Interactive
314
+   ========================================================================== */
315
+
316
+/*
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
318
+ */
319
+
320
+details {
321
+  display: block;
322
+}
323
+
324
+/*
325
+ * Add the correct display in all browsers.
326
+ */
327
+
328
+summary {
329
+  display: list-item;
330
+}
331
+
332
+/* Misc
333
+   ========================================================================== */
334
+
335
+/**
336
+ * Add the correct display in IE 10+.
337
+ */
338
+
339
+template {
340
+  display: none;
341
+}
342
+
343
+/**
344
+ * Add the correct display in IE 10.
345
+ */
346
+
347
+[hidden] {
348
+  display: none;
349
+}

+ 539 - 0
src/assets/iconfont/demo.css

@@ -0,0 +1,539 @@
1
+/* Logo 字体 */
2
+@font-face {
3
+  font-family: "iconfont logo";
4
+  src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
5
+  src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
6
+    url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
7
+    url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
8
+    url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
9
+}
10
+
11
+.logo {
12
+  font-family: "iconfont logo";
13
+  font-size: 160px;
14
+  font-style: normal;
15
+  -webkit-font-smoothing: antialiased;
16
+  -moz-osx-font-smoothing: grayscale;
17
+}
18
+
19
+/* tabs */
20
+.nav-tabs {
21
+  position: relative;
22
+}
23
+
24
+.nav-tabs .nav-more {
25
+  position: absolute;
26
+  right: 0;
27
+  bottom: 0;
28
+  height: 42px;
29
+  line-height: 42px;
30
+  color: #666;
31
+}
32
+
33
+#tabs {
34
+  border-bottom: 1px solid #eee;
35
+}
36
+
37
+#tabs li {
38
+  cursor: pointer;
39
+  width: 100px;
40
+  height: 40px;
41
+  line-height: 40px;
42
+  text-align: center;
43
+  font-size: 16px;
44
+  border-bottom: 2px solid transparent;
45
+  position: relative;
46
+  z-index: 1;
47
+  margin-bottom: -1px;
48
+  color: #666;
49
+}
50
+
51
+
52
+#tabs .active {
53
+  border-bottom-color: #f00;
54
+  color: #222;
55
+}
56
+
57
+.tab-container .content {
58
+  display: none;
59
+}
60
+
61
+/* 页面布局 */
62
+.main {
63
+  padding: 30px 100px;
64
+  width: 960px;
65
+  margin: 0 auto;
66
+}
67
+
68
+.main .logo {
69
+  color: #333;
70
+  text-align: left;
71
+  margin-bottom: 30px;
72
+  line-height: 1;
73
+  height: 110px;
74
+  margin-top: -50px;
75
+  overflow: hidden;
76
+  *zoom: 1;
77
+}
78
+
79
+.main .logo a {
80
+  font-size: 160px;
81
+  color: #333;
82
+}
83
+
84
+.helps {
85
+  margin-top: 40px;
86
+}
87
+
88
+.helps pre {
89
+  padding: 20px;
90
+  margin: 10px 0;
91
+  border: solid 1px #e7e1cd;
92
+  background-color: #fffdef;
93
+  overflow: auto;
94
+}
95
+
96
+.icon_lists {
97
+  width: 100% !important;
98
+  overflow: hidden;
99
+  *zoom: 1;
100
+}
101
+
102
+.icon_lists li {
103
+  width: 100px;
104
+  margin-bottom: 10px;
105
+  margin-right: 20px;
106
+  text-align: center;
107
+  list-style: none !important;
108
+  cursor: default;
109
+}
110
+
111
+.icon_lists li .code-name {
112
+  line-height: 1.2;
113
+}
114
+
115
+.icon_lists .icon {
116
+  display: block;
117
+  height: 100px;
118
+  line-height: 100px;
119
+  font-size: 42px;
120
+  margin: 10px auto;
121
+  color: #333;
122
+  -webkit-transition: font-size 0.25s linear, width 0.25s linear;
123
+  -moz-transition: font-size 0.25s linear, width 0.25s linear;
124
+  transition: font-size 0.25s linear, width 0.25s linear;
125
+}
126
+
127
+.icon_lists .icon:hover {
128
+  font-size: 100px;
129
+}
130
+
131
+.icon_lists .svg-icon {
132
+  /* 通过设置 font-size 来改变图标大小 */
133
+  width: 1em;
134
+  /* 图标和文字相邻时,垂直对齐 */
135
+  vertical-align: -0.15em;
136
+  /* 通过设置 color 来改变 SVG 的颜色/fill */
137
+  fill: currentColor;
138
+  /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
139
+      normalize.css 中也包含这行 */
140
+  overflow: hidden;
141
+}
142
+
143
+.icon_lists li .name,
144
+.icon_lists li .code-name {
145
+  color: #666;
146
+}
147
+
148
+/* markdown 样式 */
149
+.markdown {
150
+  color: #666;
151
+  font-size: 14px;
152
+  line-height: 1.8;
153
+}
154
+
155
+.highlight {
156
+  line-height: 1.5;
157
+}
158
+
159
+.markdown img {
160
+  vertical-align: middle;
161
+  max-width: 100%;
162
+}
163
+
164
+.markdown h1 {
165
+  color: #404040;
166
+  font-weight: 500;
167
+  line-height: 40px;
168
+  margin-bottom: 24px;
169
+}
170
+
171
+.markdown h2,
172
+.markdown h3,
173
+.markdown h4,
174
+.markdown h5,
175
+.markdown h6 {
176
+  color: #404040;
177
+  margin: 1.6em 0 0.6em 0;
178
+  font-weight: 500;
179
+  clear: both;
180
+}
181
+
182
+.markdown h1 {
183
+  font-size: 28px;
184
+}
185
+
186
+.markdown h2 {
187
+  font-size: 22px;
188
+}
189
+
190
+.markdown h3 {
191
+  font-size: 16px;
192
+}
193
+
194
+.markdown h4 {
195
+  font-size: 14px;
196
+}
197
+
198
+.markdown h5 {
199
+  font-size: 12px;
200
+}
201
+
202
+.markdown h6 {
203
+  font-size: 12px;
204
+}
205
+
206
+.markdown hr {
207
+  height: 1px;
208
+  border: 0;
209
+  background: #e9e9e9;
210
+  margin: 16px 0;
211
+  clear: both;
212
+}
213
+
214
+.markdown p {
215
+  margin: 1em 0;
216
+}
217
+
218
+.markdown>p,
219
+.markdown>blockquote,
220
+.markdown>.highlight,
221
+.markdown>ol,
222
+.markdown>ul {
223
+  width: 80%;
224
+}
225
+
226
+.markdown ul>li {
227
+  list-style: circle;
228
+}
229
+
230
+.markdown>ul li,
231
+.markdown blockquote ul>li {
232
+  margin-left: 20px;
233
+  padding-left: 4px;
234
+}
235
+
236
+.markdown>ul li p,
237
+.markdown>ol li p {
238
+  margin: 0.6em 0;
239
+}
240
+
241
+.markdown ol>li {
242
+  list-style: decimal;
243
+}
244
+
245
+.markdown>ol li,
246
+.markdown blockquote ol>li {
247
+  margin-left: 20px;
248
+  padding-left: 4px;
249
+}
250
+
251
+.markdown code {
252
+  margin: 0 3px;
253
+  padding: 0 5px;
254
+  background: #eee;
255
+  border-radius: 3px;
256
+}
257
+
258
+.markdown strong,
259
+.markdown b {
260
+  font-weight: 600;
261
+}
262
+
263
+.markdown>table {
264
+  border-collapse: collapse;
265
+  border-spacing: 0px;
266
+  empty-cells: show;
267
+  border: 1px solid #e9e9e9;
268
+  width: 95%;
269
+  margin-bottom: 24px;
270
+}
271
+
272
+.markdown>table th {
273
+  white-space: nowrap;
274
+  color: #333;
275
+  font-weight: 600;
276
+}
277
+
278
+.markdown>table th,
279
+.markdown>table td {
280
+  border: 1px solid #e9e9e9;
281
+  padding: 8px 16px;
282
+  text-align: left;
283
+}
284
+
285
+.markdown>table th {
286
+  background: #F7F7F7;
287
+}
288
+
289
+.markdown blockquote {
290
+  font-size: 90%;
291
+  color: #999;
292
+  border-left: 4px solid #e9e9e9;
293
+  padding-left: 0.8em;
294
+  margin: 1em 0;
295
+}
296
+
297
+.markdown blockquote p {
298
+  margin: 0;
299
+}
300
+
301
+.markdown .anchor {
302
+  opacity: 0;
303
+  transition: opacity 0.3s ease;
304
+  margin-left: 8px;
305
+}
306
+
307
+.markdown .waiting {
308
+  color: #ccc;
309
+}
310
+
311
+.markdown h1:hover .anchor,
312
+.markdown h2:hover .anchor,
313
+.markdown h3:hover .anchor,
314
+.markdown h4:hover .anchor,
315
+.markdown h5:hover .anchor,
316
+.markdown h6:hover .anchor {
317
+  opacity: 1;
318
+  display: inline-block;
319
+}
320
+
321
+.markdown>br,
322
+.markdown>p>br {
323
+  clear: both;
324
+}
325
+
326
+
327
+.hljs {
328
+  display: block;
329
+  background: white;
330
+  padding: 0.5em;
331
+  color: #333333;
332
+  overflow-x: auto;
333
+}
334
+
335
+.hljs-comment,
336
+.hljs-meta {
337
+  color: #969896;
338
+}
339
+
340
+.hljs-string,
341
+.hljs-variable,
342
+.hljs-template-variable,
343
+.hljs-strong,
344
+.hljs-emphasis,
345
+.hljs-quote {
346
+  color: #df5000;
347
+}
348
+
349
+.hljs-keyword,
350
+.hljs-selector-tag,
351
+.hljs-type {
352
+  color: #a71d5d;
353
+}
354
+
355
+.hljs-literal,
356
+.hljs-symbol,
357
+.hljs-bullet,
358
+.hljs-attribute {
359
+  color: #0086b3;
360
+}
361
+
362
+.hljs-section,
363
+.hljs-name {
364
+  color: #63a35c;
365
+}
366
+
367
+.hljs-tag {
368
+  color: #333333;
369
+}
370
+
371
+.hljs-title,
372
+.hljs-attr,
373
+.hljs-selector-id,
374
+.hljs-selector-class,
375
+.hljs-selector-attr,
376
+.hljs-selector-pseudo {
377
+  color: #795da3;
378
+}
379
+
380
+.hljs-addition {
381
+  color: #55a532;
382
+  background-color: #eaffea;
383
+}
384
+
385
+.hljs-deletion {
386
+  color: #bd2c00;
387
+  background-color: #ffecec;
388
+}
389
+
390
+.hljs-link {
391
+  text-decoration: underline;
392
+}
393
+
394
+/* 代码高亮 */
395
+/* PrismJS 1.15.0
396
+https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
397
+/**
398
+ * prism.js default theme for JavaScript, CSS and HTML
399
+ * Based on dabblet (http://dabblet.com)
400
+ * @author Lea Verou
401
+ */
402
+code[class*="language-"],
403
+pre[class*="language-"] {
404
+  color: black;
405
+  background: none;
406
+  text-shadow: 0 1px white;
407
+  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
408
+  text-align: left;
409
+  white-space: pre;
410
+  word-spacing: normal;
411
+  word-break: normal;
412
+  word-wrap: normal;
413
+  line-height: 1.5;
414
+
415
+  -moz-tab-size: 4;
416
+  -o-tab-size: 4;
417
+  tab-size: 4;
418
+
419
+  -webkit-hyphens: none;
420
+  -moz-hyphens: none;
421
+  -ms-hyphens: none;
422
+  hyphens: none;
423
+}
424
+
425
+pre[class*="language-"]::-moz-selection,
426
+pre[class*="language-"] ::-moz-selection,
427
+code[class*="language-"]::-moz-selection,
428
+code[class*="language-"] ::-moz-selection {
429
+  text-shadow: none;
430
+  background: #b3d4fc;
431
+}
432
+
433
+pre[class*="language-"]::selection,
434
+pre[class*="language-"] ::selection,
435
+code[class*="language-"]::selection,
436
+code[class*="language-"] ::selection {
437
+  text-shadow: none;
438
+  background: #b3d4fc;
439
+}
440
+
441
+@media print {
442
+
443
+  code[class*="language-"],
444
+  pre[class*="language-"] {
445
+    text-shadow: none;
446
+  }
447
+}
448
+
449
+/* Code blocks */
450
+pre[class*="language-"] {
451
+  padding: 1em;
452
+  margin: .5em 0;
453
+  overflow: auto;
454
+}
455
+
456
+:not(pre)>code[class*="language-"],
457
+pre[class*="language-"] {
458
+  background: #f5f2f0;
459
+}
460
+
461
+/* Inline code */
462
+:not(pre)>code[class*="language-"] {
463
+  padding: .1em;
464
+  border-radius: .3em;
465
+  white-space: normal;
466
+}
467
+
468
+.token.comment,
469
+.token.prolog,
470
+.token.doctype,
471
+.token.cdata {
472
+  color: slategray;
473
+}
474
+
475
+.token.punctuation {
476
+  color: #999;
477
+}
478
+
479
+.namespace {
480
+  opacity: .7;
481
+}
482
+
483
+.token.property,
484
+.token.tag,
485
+.token.boolean,
486
+.token.number,
487
+.token.constant,
488
+.token.symbol,
489
+.token.deleted {
490
+  color: #905;
491
+}
492
+
493
+.token.selector,
494
+.token.attr-name,
495
+.token.string,
496
+.token.char,
497
+.token.builtin,
498
+.token.inserted {
499
+  color: #690;
500
+}
501
+
502
+.token.operator,
503
+.token.entity,
504
+.token.url,
505
+.language-css .token.string,
506
+.style .token.string {
507
+  color: #9a6e3a;
508
+  background: hsla(0, 0%, 100%, .5);
509
+}
510
+
511
+.token.atrule,
512
+.token.attr-value,
513
+.token.keyword {
514
+  color: #07a;
515
+}
516
+
517
+.token.function,
518
+.token.class-name {
519
+  color: #DD4A68;
520
+}
521
+
522
+.token.regex,
523
+.token.important,
524
+.token.variable {
525
+  color: #e90;
526
+}
527
+
528
+.token.important,
529
+.token.bold {
530
+  font-weight: bold;
531
+}
532
+
533
+.token.italic {
534
+  font-style: italic;
535
+}
536
+
537
+.token.entity {
538
+  cursor: help;
539
+}

File diff suppressed because it is too large
+ 2102 - 0
src/assets/iconfont/demo_index.html


File diff suppressed because it is too large
+ 353 - 0
src/assets/iconfont/iconfont.css


BIN
src/assets/iconfont/iconfont.eot


File diff suppressed because it is too large
+ 1 - 0
src/assets/iconfont/iconfont.js


+ 597 - 0
src/assets/iconfont/iconfont.json

@@ -0,0 +1,597 @@
1
+{
2
+  "id": "579983",
3
+  "name": "转运系统",
4
+  "font_family": "icon_transport",
5
+  "css_prefix_text": "transport-",
6
+  "description": "转运系统",
7
+  "glyphs": [
8
+    {
9
+      "icon_id": "8436465",
10
+      "name": "实时监控_轮巡",
11
+      "font_class": "shishijiankong_lunxun",
12
+      "unicode": "e641",
13
+      "unicode_decimal": 58945
14
+    },
15
+    {
16
+      "icon_id": "4880388",
17
+      "name": "对勾",
18
+      "font_class": "duigou1",
19
+      "unicode": "e618",
20
+      "unicode_decimal": 58904
21
+    },
22
+    {
23
+      "icon_id": "492723",
24
+      "name": "喇叭",
25
+      "font_class": "iconfontcrmtubiao68",
26
+      "unicode": "e61f",
27
+      "unicode_decimal": 58911
28
+    },
29
+    {
30
+      "icon_id": "3136914",
31
+      "name": "切换",
32
+      "font_class": "qiehuan",
33
+      "unicode": "e63c",
34
+      "unicode_decimal": 58940
35
+    },
36
+    {
37
+      "icon_id": "15486827",
38
+      "name": "喇叭 (1)",
39
+      "font_class": "laba1",
40
+      "unicode": "e681",
41
+      "unicode_decimal": 59009
42
+    },
43
+    {
44
+      "icon_id": "3086025",
45
+      "name": "二维码",
46
+      "font_class": "erweima",
47
+      "unicode": "e606",
48
+      "unicode_decimal": 58886
49
+    },
50
+    {
51
+      "icon_id": "7489416",
52
+      "name": "超时",
53
+      "font_class": "chaoshi",
54
+      "unicode": "e63b",
55
+      "unicode_decimal": 58939
56
+    },
57
+    {
58
+      "icon_id": "9016785",
59
+      "name": "关 闭",
60
+      "font_class": "guanbi1",
61
+      "unicode": "e658",
62
+      "unicode_decimal": 58968
63
+    },
64
+    {
65
+      "icon_id": "10836451",
66
+      "name": "铃铛",
67
+      "font_class": "lingdang",
68
+      "unicode": "e60d",
69
+      "unicode_decimal": 58893
70
+    },
71
+    {
72
+      "icon_id": "1473516",
73
+      "name": "陪检(轮椅)图标",
74
+      "font_class": "peijianlunyitubiao",
75
+      "unicode": "e655",
76
+      "unicode_decimal": 58965
77
+    },
78
+    {
79
+      "icon_id": "1973826",
80
+      "name": "转移",
81
+      "font_class": "ccgl-kuneizhuanyi-1",
82
+      "unicode": "e6e5",
83
+      "unicode_decimal": 59109
84
+    },
85
+    {
86
+      "icon_id": "7503408",
87
+      "name": "其他",
88
+      "font_class": "qita1",
89
+      "unicode": "e663",
90
+      "unicode_decimal": 58979
91
+    },
92
+    {
93
+      "icon_id": "9385203",
94
+      "name": "注射器",
95
+      "font_class": "-",
96
+      "unicode": "e60b",
97
+      "unicode_decimal": 58891
98
+    },
99
+    {
100
+      "icon_id": "9714964",
101
+      "name": "药品",
102
+      "font_class": "yaopin",
103
+      "unicode": "e604",
104
+      "unicode_decimal": 58884
105
+    },
106
+    {
107
+      "icon_id": "11830234",
108
+      "name": "标本采集",
109
+      "font_class": "biaobencaiji",
110
+      "unicode": "e6ea",
111
+      "unicode_decimal": 59114
112
+    },
113
+    {
114
+      "icon_id": "4852580",
115
+      "name": "icon_liucheng",
116
+      "font_class": "icon_liucheng",
117
+      "unicode": "e636",
118
+      "unicode_decimal": 58934
119
+    },
120
+    {
121
+      "icon_id": "5762790",
122
+      "name": "正常",
123
+      "font_class": "zhengchang",
124
+      "unicode": "e63e",
125
+      "unicode_decimal": 58942
126
+    },
127
+    {
128
+      "icon_id": "6853490",
129
+      "name": "异常",
130
+      "font_class": "yichang",
131
+      "unicode": "e63a",
132
+      "unicode_decimal": 58938
133
+    },
134
+    {
135
+      "icon_id": "4082004",
136
+      "name": "其他",
137
+      "font_class": "qita",
138
+      "unicode": "e60f",
139
+      "unicode_decimal": 58895
140
+    },
141
+    {
142
+      "icon_id": "9923151",
143
+      "name": "输液管理",
144
+      "font_class": "shuyeguanli",
145
+      "unicode": "e678",
146
+      "unicode_decimal": 59000
147
+    },
148
+    {
149
+      "icon_id": "10059601",
150
+      "name": "标本留取",
151
+      "font_class": "yidonghuliicon_biaobenliuqu",
152
+      "unicode": "e61b",
153
+      "unicode_decimal": 58907
154
+    },
155
+    {
156
+      "icon_id": "6757421",
157
+      "name": "扫一扫",
158
+      "font_class": "saoma",
159
+      "unicode": "e660",
160
+      "unicode_decimal": 58976
161
+    },
162
+    {
163
+      "icon_id": "453042",
164
+      "name": "设置",
165
+      "font_class": "shezhi",
166
+      "unicode": "e62f",
167
+      "unicode_decimal": 58927
168
+    },
169
+    {
170
+      "icon_id": "2817690",
171
+      "name": "星号",
172
+      "font_class": "required",
173
+      "unicode": "e603",
174
+      "unicode_decimal": 58883
175
+    },
176
+    {
177
+      "icon_id": "5260595",
178
+      "name": "空白页-暂无漏接诊单",
179
+      "font_class": "yunzhuanzhentongjiicon-",
180
+      "unicode": "e61a",
181
+      "unicode_decimal": 58906
182
+    },
183
+    {
184
+      "icon_id": "7035784",
185
+      "name": "增加",
186
+      "font_class": "tag27fuben",
187
+      "unicode": "e614",
188
+      "unicode_decimal": 58900
189
+    },
190
+    {
191
+      "icon_id": "8092249",
192
+      "name": "轨迹起点",
193
+      "font_class": "qidian",
194
+      "unicode": "e6e7",
195
+      "unicode_decimal": 59111
196
+    },
197
+    {
198
+      "icon_id": "10193579",
199
+      "name": "搜索",
200
+      "font_class": "search",
201
+      "unicode": "e651",
202
+      "unicode_decimal": 58961
203
+    },
204
+    {
205
+      "icon_id": "768745",
206
+      "name": "进行中",
207
+      "font_class": "shouye10",
208
+      "unicode": "e63f",
209
+      "unicode_decimal": 58943
210
+    },
211
+    {
212
+      "icon_id": "765558",
213
+      "name": "提醒",
214
+      "font_class": "shouye9",
215
+      "unicode": "e629",
216
+      "unicode_decimal": 58921
217
+    },
218
+    {
219
+      "icon_id": "4024735",
220
+      "name": "录音",
221
+      "font_class": "luyin",
222
+      "unicode": "e6c5",
223
+      "unicode_decimal": 59077
224
+    },
225
+    {
226
+      "icon_id": "6678312",
227
+      "name": "下  拉 (1)",
228
+      "font_class": "xiala2",
229
+      "unicode": "e669",
230
+      "unicode_decimal": 58985
231
+    },
232
+    {
233
+      "icon_id": "6771223",
234
+      "name": "问好",
235
+      "font_class": "wenhao",
236
+      "unicode": "e7d2",
237
+      "unicode_decimal": 59346
238
+    },
239
+    {
240
+      "icon_id": "5082433",
241
+      "name": "科室导诊#bl",
242
+      "font_class": "keshidaozhen",
243
+      "unicode": "ead2",
244
+      "unicode_decimal": 60114
245
+    },
246
+    {
247
+      "icon_id": "3095282",
248
+      "name": "已-配送 ",
249
+      "font_class": "yi-peisong",
250
+      "unicode": "e647",
251
+      "unicode_decimal": 58951
252
+    },
253
+    {
254
+      "icon_id": "3264610",
255
+      "name": "未-配送",
256
+      "font_class": "wei-peisong",
257
+      "unicode": "e662",
258
+      "unicode_decimal": 58978
259
+    },
260
+    {
261
+      "icon_id": "5094525",
262
+      "name": "数据源总数",
263
+      "font_class": "shujuyuanzongshu",
264
+      "unicode": "e650",
265
+      "unicode_decimal": 58960
266
+    },
267
+    {
268
+      "icon_id": "4195869",
269
+      "name": "统计",
270
+      "font_class": "tongji",
271
+      "unicode": "e6db",
272
+      "unicode_decimal": 59099
273
+    },
274
+    {
275
+      "icon_id": "765433",
276
+      "name": "历史记录",
277
+      "font_class": "shouye8",
278
+      "unicode": "e621",
279
+      "unicode_decimal": 58913
280
+    },
281
+    {
282
+      "icon_id": "782321",
283
+      "name": "说明",
284
+      "font_class": "icon3",
285
+      "unicode": "e654",
286
+      "unicode_decimal": 58964
287
+    },
288
+    {
289
+      "icon_id": "2938506",
290
+      "name": "统计报表",
291
+      "font_class": "tongjibaobiao",
292
+      "unicode": "e677",
293
+      "unicode_decimal": 58999
294
+    },
295
+    {
296
+      "icon_id": "3164198",
297
+      "name": "床位",
298
+      "font_class": "chuangwei",
299
+      "unicode": "e64a",
300
+      "unicode_decimal": 58954
301
+    },
302
+    {
303
+      "icon_id": "4965634",
304
+      "name": "排序-上",
305
+      "font_class": "paixu-shang",
306
+      "unicode": "eeeb",
307
+      "unicode_decimal": 61163
308
+    },
309
+    {
310
+      "icon_id": "4965639",
311
+      "name": "排序-下",
312
+      "font_class": "paixu-xia",
313
+      "unicode": "eeec",
314
+      "unicode_decimal": 61164
315
+    },
316
+    {
317
+      "icon_id": "689267",
318
+      "name": "排序箭头上",
319
+      "font_class": "paixujiantoushang",
320
+      "unicode": "e7fe",
321
+      "unicode_decimal": 59390
322
+    },
323
+    {
324
+      "icon_id": "689268",
325
+      "name": "排序箭头下",
326
+      "font_class": "paixujiantouxia",
327
+      "unicode": "e7ff",
328
+      "unicode_decimal": 59391
329
+    },
330
+    {
331
+      "icon_id": "1053844",
332
+      "name": "单选框-选中",
333
+      "font_class": "webicon19",
334
+      "unicode": "e67d",
335
+      "unicode_decimal": 59005
336
+    },
337
+    {
338
+      "icon_id": "1053854",
339
+      "name": "单选框-未选中",
340
+      "font_class": "webicon206",
341
+      "unicode": "e684",
342
+      "unicode_decimal": 59012
343
+    },
344
+    {
345
+      "icon_id": "479506",
346
+      "name": "向右",
347
+      "font_class": "xiangyou",
348
+      "unicode": "e637",
349
+      "unicode_decimal": 58935
350
+    },
351
+    {
352
+      "icon_id": "814447",
353
+      "name": "向左",
354
+      "font_class": "xiangzuo2",
355
+      "unicode": "e6b0",
356
+      "unicode_decimal": 59056
357
+    },
358
+    {
359
+      "icon_id": "383685",
360
+      "name": "实五角星",
361
+      "font_class": "shiwujiaoxing",
362
+      "unicode": "e635",
363
+      "unicode_decimal": 58933
364
+    },
365
+    {
366
+      "icon_id": "287187",
367
+      "name": "下拉箭头",
368
+      "font_class": "xialajiantou",
369
+      "unicode": "e638",
370
+      "unicode_decimal": 58936
371
+    },
372
+    {
373
+      "icon_id": "3055031",
374
+      "name": "复选框。",
375
+      "font_class": "fuxuankuang",
376
+      "unicode": "e639",
377
+      "unicode_decimal": 58937
378
+    },
379
+    {
380
+      "icon_id": "3422864",
381
+      "name": "复选框 (1)-01",
382
+      "font_class": "fuxuankuang-",
383
+      "unicode": "e646",
384
+      "unicode_decimal": 58950
385
+    },
386
+    {
387
+      "icon_id": "3292558",
388
+      "name": "向左",
389
+      "font_class": "xiangzuo1",
390
+      "unicode": "e673",
391
+      "unicode_decimal": 58995
392
+    },
393
+    {
394
+      "icon_id": "3315133",
395
+      "name": "消息",
396
+      "font_class": "xiaoxi",
397
+      "unicode": "e617",
398
+      "unicode_decimal": 58903
399
+    },
400
+    {
401
+      "icon_id": "4242826",
402
+      "name": "上拉2-01 (2)",
403
+      "font_class": "shangla-",
404
+      "unicode": "e628",
405
+      "unicode_decimal": 58920
406
+    },
407
+    {
408
+      "icon_id": "2015246",
409
+      "name": "双箭头(向右)-01",
410
+      "font_class": "shuangjiantouxiangyou-",
411
+      "unicode": "e71e",
412
+      "unicode_decimal": 59166
413
+    },
414
+    {
415
+      "icon_id": "100733",
416
+      "name": "失败",
417
+      "font_class": "shibai",
418
+      "unicode": "e626",
419
+      "unicode_decimal": 58918
420
+    },
421
+    {
422
+      "icon_id": "3668000",
423
+      "name": "对勾",
424
+      "font_class": "duigou",
425
+      "unicode": "e602",
426
+      "unicode_decimal": 58882
427
+    },
428
+    {
429
+      "icon_id": "765340",
430
+      "name": "定位",
431
+      "font_class": "shouye7",
432
+      "unicode": "e619",
433
+      "unicode_decimal": 58905
434
+    },
435
+    {
436
+      "icon_id": "1312798",
437
+      "name": "下拉2-01",
438
+      "font_class": "xiala2-01",
439
+      "unicode": "e62e",
440
+      "unicode_decimal": 58926
441
+    },
442
+    {
443
+      "icon_id": "704337",
444
+      "name": "下拉",
445
+      "font_class": "xiala",
446
+      "unicode": "e68f",
447
+      "unicode_decimal": 59023
448
+    },
449
+    {
450
+      "icon_id": "765262",
451
+      "name": "首页",
452
+      "font_class": "shouye2",
453
+      "unicode": "e613",
454
+      "unicode_decimal": 58899
455
+    },
456
+    {
457
+      "icon_id": "765290",
458
+      "name": "我的",
459
+      "font_class": "shouye3",
460
+      "unicode": "e615",
461
+      "unicode_decimal": 58901
462
+    },
463
+    {
464
+      "icon_id": "765318",
465
+      "name": "药丸",
466
+      "font_class": "shouye4",
467
+      "unicode": "e616",
468
+      "unicode_decimal": 58902
469
+    },
470
+    {
471
+      "icon_id": "765360",
472
+      "name": "设置",
473
+      "font_class": "shouye5",
474
+      "unicode": "e61c",
475
+      "unicode_decimal": 58908
476
+    },
477
+    {
478
+      "icon_id": "769223",
479
+      "name": "待就诊",
480
+      "font_class": "shouye6",
481
+      "unicode": "e642",
482
+      "unicode_decimal": 58946
483
+    },
484
+    {
485
+      "icon_id": "784528",
486
+      "name": "日历",
487
+      "font_class": "icon",
488
+      "unicode": "e65f",
489
+      "unicode_decimal": 58975
490
+    },
491
+    {
492
+      "icon_id": "988620",
493
+      "name": "热度",
494
+      "font_class": "icon1",
495
+      "unicode": "e68e",
496
+      "unicode_decimal": 59022
497
+    },
498
+    {
499
+      "icon_id": "1167542",
500
+      "name": "化学",
501
+      "font_class": "icon2",
502
+      "unicode": "e69e",
503
+      "unicode_decimal": 59038
504
+    },
505
+    {
506
+      "icon_id": "3861282",
507
+      "name": "倒计时",
508
+      "font_class": "daojishi",
509
+      "unicode": "e668",
510
+      "unicode_decimal": 58984
511
+    },
512
+    {
513
+      "icon_id": "1353",
514
+      "name": "向左",
515
+      "font_class": "xiangzuo",
516
+      "unicode": "e601",
517
+      "unicode_decimal": 58881
518
+    },
519
+    {
520
+      "icon_id": "398877",
521
+      "name": "好评",
522
+      "font_class": "haoping",
523
+      "unicode": "e612",
524
+      "unicode_decimal": 58898
525
+    },
526
+    {
527
+      "icon_id": "695135",
528
+      "name": "更多 大",
529
+      "font_class": "gengduoda",
530
+      "unicode": "e633",
531
+      "unicode_decimal": 58931
532
+    },
533
+    {
534
+      "icon_id": "765588",
535
+      "name": "药箱",
536
+      "font_class": "shouye1",
537
+      "unicode": "e62d",
538
+      "unicode_decimal": 58925
539
+    },
540
+    {
541
+      "icon_id": "1351206",
542
+      "name": "好评",
543
+      "font_class": "haoping1",
544
+      "unicode": "e640",
545
+      "unicode_decimal": 58944
546
+    },
547
+    {
548
+      "icon_id": "2604472",
549
+      "name": "关闭",
550
+      "font_class": "guanbi",
551
+      "unicode": "e60c",
552
+      "unicode_decimal": 58892
553
+    },
554
+    {
555
+      "icon_id": "2675116",
556
+      "name": "搜索",
557
+      "font_class": "sousuo",
558
+      "unicode": "e634",
559
+      "unicode_decimal": 58932
560
+    },
561
+    {
562
+      "icon_id": "982411",
563
+      "name": "下拉1",
564
+      "font_class": "xiala1",
565
+      "unicode": "e66b",
566
+      "unicode_decimal": 58987
567
+    },
568
+    {
569
+      "icon_id": "1838258",
570
+      "name": "首页",
571
+      "font_class": "shouye",
572
+      "unicode": "e605",
573
+      "unicode_decimal": 58885
574
+    },
575
+    {
576
+      "icon_id": "3391239",
577
+      "name": "列表",
578
+      "font_class": "liebiao",
579
+      "unicode": "e632",
580
+      "unicode_decimal": 58930
581
+    },
582
+    {
583
+      "icon_id": "3721152",
584
+      "name": "统计分析",
585
+      "font_class": "tongjifenxi",
586
+      "unicode": "e712",
587
+      "unicode_decimal": 59154
588
+    },
589
+    {
590
+      "icon_id": "3022726",
591
+      "name": "科室介绍",
592
+      "font_class": "keshijieshao",
593
+      "unicode": "e600",
594
+      "unicode_decimal": 58880
595
+    }
596
+  ]
597
+}

File diff suppressed because it is too large
+ 278 - 0
src/assets/iconfont/iconfont.svg


BIN
src/assets/iconfont/iconfont.ttf


BIN
src/assets/iconfont/iconfont.woff


BIN
src/assets/iconfont/iconfont.woff2


BIN
src/assets/images/favicon.ico


BIN
src/assets/images/icon_ji.png


BIN
src/assets/images/loading.gif


BIN
src/assets/images/login_logo.png


+ 262 - 0
src/components/showModel.vue

@@ -0,0 +1,262 @@
1
+<template>
2
+  <div
3
+    class="save display_flex align-items_center justify-content_flex-center"
4
+    v-if="model"
5
+  >
6
+    <div class="modalBody" v-if="!loading">
7
+      <div class="title">
8
+        提示<i class="icon_transport transport-guanbi" @click="cancel()"></i>
9
+      </div>
10
+      <div class="content">
11
+        <div class="icon">
12
+          <i
13
+            class="icon_transport showModel__icon"
14
+            :class="[
15
+              'showModel__icon--' + icon,
16
+              { 'transport-duigou': icon === 'success' },
17
+              { 'transport-shibai': icon === 'error' },
18
+              { 'transport-wenhao': icon === 'warn' },
19
+            ]"
20
+          ></i>
21
+        </div>
22
+        <div class="defeat">{{ content }}</div>
23
+      </div>
24
+      <div class="display_flex justify-content_flex-center">
25
+        <button @click="ok()" class="ok" v-if="operate.ok">
26
+          {{ operate.ok }}
27
+        </button>
28
+        <button class="btn cancel" @click="cancel()" v-if="operate.cancel">
29
+          {{ operate.cancel }}
30
+        </button>
31
+        <button class="btn cancel" @click="know()" v-if="operate.know">
32
+          {{ operate.know }}
33
+        </button>
34
+      </div>
35
+    </div>
36
+    <div class="loading" v-if="loading">
37
+        <img src="./../assets/images/loading.gif" alt="">
38
+    </div>
39
+  </div>
40
+</template>
41
+
42
+<script>
43
+export default {
44
+  name: "showModel",
45
+  data() {
46
+    return {};
47
+  },
48
+  props: {
49
+    model: {
50
+      //是否显示
51
+      type: Boolean,
52
+      default: false,
53
+    },
54
+    operate: {
55
+      type: Object,
56
+      default() {
57
+        return {
58
+          know: "知道了",
59
+        };
60
+      },
61
+    },
62
+    content: {
63
+      type: String,
64
+      default: "",
65
+    },
66
+    icon: {
67
+      type: String,
68
+      default: "success",
69
+    },
70
+    loading: {
71
+      type: Boolean,
72
+      default: false,
73
+    },
74
+  },
75
+  methods: {
76
+    cancel() {
77
+      this.$emit("cancel");
78
+    },
79
+    ok() {
80
+      this.$emit("ok");
81
+    },
82
+    know() {
83
+      this.$emit("know");
84
+    },
85
+  },
86
+};
87
+</script>
88
+
89
+<style lang="less" scoped>
90
+.ok,
91
+.cancel {
92
+  outline: none;
93
+  line-height: 1.5;
94
+  position: relative;
95
+  display: inline-block;
96
+  font-weight: 400;
97
+  white-space: nowrap;
98
+  text-align: center;
99
+  background-image: none;
100
+  border: 1px solid #d9d9d9;
101
+  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
102
+  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
103
+  user-select: none;
104
+  touch-action: manipulation;
105
+  height: 34px;
106
+  padding: 0 26px;
107
+  font-size: 14px;
108
+  border-radius: 4px;
109
+  cursor: pointer;
110
+  color: rgba(0, 0, 0, 0.65);
111
+  background-color: #fff;
112
+}
113
+.display_flex {
114
+  display: flex;
115
+}
116
+.align-items_center {
117
+  align-items: center;
118
+}
119
+.justify-content_flex-center {
120
+  justify-content: center;
121
+}
122
+// 模态框
123
+.save {
124
+  position: fixed;
125
+  left: 0;
126
+  top: 0;
127
+  width: 100%;
128
+  height: 100%;
129
+  background: rgba(0, 0, 0, 0.4);
130
+  z-index: 99;
131
+  .ok {
132
+    color: #fff;
133
+    background-color: #49b856;
134
+    border-color: #49b856;
135
+    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
136
+    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
137
+  }
138
+
139
+  .modalBody {
140
+    width: 350px;
141
+    background: #fff;
142
+    border-radius: 5px;
143
+    padding: 10px 20px;
144
+    color: #333;
145
+
146
+    .title {
147
+      width: 100%;
148
+      text-align: center;
149
+      font-size: 18px;
150
+      position: relative;
151
+
152
+      i {
153
+        position: absolute;
154
+        right: 0;
155
+        top: 0;
156
+        font-size: 20px;
157
+        color: #666;
158
+        cursor: pointer;
159
+        padding: 0 5px;
160
+      }
161
+    }
162
+
163
+    .content {
164
+      width: 100%;
165
+      height: 117px;
166
+      background: #f9fafb;
167
+      border: 1px solid #e5e9ed;
168
+      border-radius: 5px;
169
+      overflow: hidden;
170
+      margin-top: 12px;
171
+
172
+      div {
173
+        text-align: center;
174
+        margin: 0;
175
+
176
+        &.icon {
177
+          margin-top: 17px;
178
+          .showModel__icon {
179
+            font-size: 30px;
180
+            margin-bottom: 16px;
181
+
182
+            &.showModel__icon--success {
183
+              color: rgb(52, 179, 73);
184
+            }
185
+
186
+            &.showModel__icon--warn {
187
+              color: rgb(245, 165, 35);
188
+            }
189
+
190
+            &.showModel__icon--error {
191
+              color: rgb(255, 58, 82);
192
+            }
193
+          }
194
+        }
195
+
196
+        &.defeat {
197
+          color: #333;
198
+          font-size: 18px;
199
+          margin-top: 8px;
200
+        }
201
+
202
+        &:nth-child(3) {
203
+          font-size: 14px;
204
+          color: #666;
205
+        }
206
+      }
207
+    }
208
+
209
+    button {
210
+      margin-top: 10px;
211
+
212
+      &.btn {
213
+        margin-left: 8px;
214
+      }
215
+    }
216
+  }
217
+
218
+  // 新增
219
+  &.add {
220
+    .modalBody {
221
+      width: 480px;
222
+      height: auto;
223
+
224
+      .content {
225
+        width: 100%;
226
+        height: auto;
227
+        padding: 19px 14px 0 14px;
228
+        max-height: 500px;
229
+        overflow-y: auto;
230
+
231
+        .addForm {
232
+          .ant-form-item {
233
+            margin-bottom: 14px;
234
+
235
+            .ant-form-item-label {
236
+              line-height: 14px;
237
+              text-align: left;
238
+            }
239
+          }
240
+        }
241
+
242
+        .editForm {
243
+          .ant-form-item {
244
+            margin-bottom: 14px;
245
+
246
+            .ant-form-item-label {
247
+              line-height: 0;
248
+              text-align: left;
249
+            }
250
+          }
251
+        }
252
+      }
253
+
254
+      button {
255
+        &:nth-child(1) {
256
+          margin-right: 20px;
257
+        }
258
+      }
259
+    }
260
+  }
261
+}
262
+</style>

+ 41 - 0
src/http/http.js

@@ -0,0 +1,41 @@
1
+import axios from 'axios'
2
+const domainName = location.host// 域名+端口
3
+const protocolName = document.location.protocol// http协议
4
+const path = process.env.NODE_ENV === 'production' ? protocolName + '//' + domainName + '/service' : '/service'
5
+axios.defaults.baseURL = path
6
+axios.defaults.withCredentials = true;
7
+axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
8
+// post请求
9
+export function post(url, data = {}) {
10
+  url = path + url
11
+  return new Promise((resolve, reject) => {
12
+    axios({
13
+      method: 'post',
14
+      url,
15
+      data
16
+    })
17
+      .then(res => {
18
+        resolve(res.data)
19
+      })
20
+      .catch(err => {
21
+        reject(err)
22
+      })
23
+  })
24
+}
25
+// get请求
26
+export function get(url, data = {}) {
27
+  url = path + url
28
+  return new Promise((resolve, reject) => {
29
+    axios({
30
+      method: 'get',
31
+      url,
32
+      data
33
+    })
34
+      .then(res => {
35
+        resolve(res.data)
36
+      })
37
+      .catch(err => {
38
+        reject(err)
39
+      })
40
+  })
41
+}

+ 10 - 0
src/main.js

@@ -0,0 +1,10 @@
1
+import Vue from 'vue'
2
+import App from './App.vue'
3
+import router from './router'
4
+Vue.config.productionTip = false
5
+
6
+
7
+new Vue({
8
+  router,
9
+  render: h => h(App),
10
+}).$mount('#app')

+ 16 - 0
src/router/index.js

@@ -0,0 +1,16 @@
1
+import Vue from 'vue'
2
+import VueRouter from 'vue-router'
3
+
4
+Vue.use(VueRouter)
5
+
6
+const routes = [{
7
+  path: '/:hosIds/:username/:password',
8
+  name: 'index',
9
+  component: () => import('../views/AppIndex.vue')
10
+}]
11
+
12
+const router = new VueRouter({
13
+  routes
14
+})
15
+
16
+export default router

File diff suppressed because it is too large
+ 2006 - 0
src/views/AppIndex.vue


+ 22 - 0
vue.config.js

@@ -0,0 +1,22 @@
1
+module.exports = {
2
+  publicPath: process.env.NODE_ENV === 'production' ? '/specimenView/' : '/',
3
+  outputDir: 'dist/specimenView',
4
+  productionSourceMap: false,
5
+  devServer: {
6
+    open: false, // 是否自动弹出浏览器页面
7
+    host: 'localhost',
8
+    port: '8888',
9
+    https: false, // 是否使用https协议
10
+    hotOnly: true, // 是否开启热更新
11
+    proxy: {
12
+      '/service': {
13
+        target: 'http://zzzx.xyszxyy.com:8087', // API服务器的地址
14
+        ws: true, // 代理websockets
15
+        changeOrigin: true, // 虚拟的站点需要更管origin
16
+        pathRewrite: {
17
+          '^/service': ''
18
+        }
19
+      }
20
+    }
21
+  }
22
+}