vue2-client 1.1.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +81 -81
- package/README.md +65 -63
- package/babel.config.js +15 -14
- package/docs/index.md +29 -29
- package/docs/notice.md +22 -0
- package/index.js +28 -0
- package/jest.config.js +3 -3
- package/package.json +1 -1
- package/public/index.html +27 -27
- package/src/App.vue +2 -2
- package/src/assets/img/SunClientDownload.png +0 -0
- package/src/assets/img/SunClientManual/1.png +0 -0
- package/src/assets/img/SunClientManual/2.png +0 -0
- package/src/assets/img/SunClientManual/3.png +0 -0
- package/src/assets/img/SunClientManual/4.png +0 -0
- package/src/assets/img/ToDeskDownload.png +0 -0
- package/src/assets/img/ToDeskManual/1.png +0 -0
- package/src/assets/img/ToDeskManual/2.png +0 -0
- package/src/assets/img/ToDeskManual/3.png +0 -0
- package/src/assets/img/ToDeskManual/4.png +0 -0
- package/src/assets/sound/newNote.mp3 +0 -0
- package/src/base-client/all.js +57 -57
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +1157 -1159
- package/src/base-client/components/common/CreateQuery/index.md +1 -1
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +540 -540
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +1 -1
- package/src/base-client/components/common/CustomColumnsDrawer/index.md +1 -1
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +150 -150
- package/src/base-client/components/common/FormGroupEdit/index.md +1 -1
- package/src/base-client/components/common/FormGroupQuery/index.md +1 -1
- package/src/base-client/components/common/XAddForm/XAddForm.vue +323 -323
- package/src/base-client/components/common/XAddForm/index.md +1 -1
- package/src/base-client/components/common/XBadge/index.md +1 -1
- package/src/base-client/components/common/XCard/index.md +1 -1
- package/src/base-client/components/common/XForm/XForm.vue +275 -275
- package/src/base-client/components/common/XForm/XFormItem.vue +217 -217
- package/src/base-client/components/common/XForm/index.md +196 -196
- package/src/base-client/components/common/XFormCol/index.md +1 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +407 -405
- package/src/base-client/components/common/XFormTable/index.md +3 -3
- package/src/base-client/components/common/XTable/XTable.vue +262 -262
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +1 -1
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +226 -226
- package/src/base-client/components/iot/CustomerDetailsView/index.md +2 -2
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +1 -1
- package/src/base-client/components/iot/DataAnalysisViewGD/DataAnalysisViewGD.vue +548 -548
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +453 -453
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +231 -231
- package/src/base-client/components/iot/DeviceDetailsView/index.md +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +330 -330
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +3 -3
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +122 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +3 -3
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +277 -277
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +472 -472
- package/src/base-client/components/iot/InstructDetailsView/index.md +1 -1
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +380 -380
- package/src/base-client/components/iot/LogDetailsView/index.md +1 -1
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +360 -360
- package/src/base-client/components/iot/MeterDetailsView/index.md +1 -1
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +335 -335
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +185 -185
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +292 -292
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +237 -237
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +257 -257
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +190 -190
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +723 -723
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +1 -1
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/components/system/DictionaryDetailsView/index.md +1 -1
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +248 -248
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +371 -406
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +838 -486
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +261 -184
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +528 -303
- package/src/base-client/plugins/AppData.js +69 -69
- package/src/base-client/plugins/GetLoginInfoService.js +221 -221
- package/src/base-client/plugins/index.js +21 -21
- package/src/bootstrap.js +27 -27
- package/src/components/Ellipsis/Ellipsis.vue +1 -1
- package/src/components/Ellipsis/index.md +2 -2
- package/src/components/NumberInfo/index.md +1 -1
- package/src/components/STable/README.md +3 -3
- package/src/components/Trend/index.md +1 -1
- package/src/components/cache/AKeepAlive.js +1 -1
- package/src/components/checkbox/index.js +2 -2
- package/src/components/index.js +15 -15
- package/src/components/menu/menu.js +1 -1
- package/src/components/setting/Setting.vue +4 -4
- package/src/components/table/advance/AdvanceTable.vue +3 -3
- package/src/components/transition/PageToggleTransition.vue +1 -1
- package/src/config/default/setting.config.js +33 -33
- package/src/layouts/CommonLayout.vue +1 -1
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +2 -2
- package/src/layouts/SinglePageView.vue +1 -1
- package/src/layouts/header/AdminHeader.vue +2 -2
- package/src/layouts/header/HeaderAvatar.vue +1 -1
- package/src/layouts/header/HeaderNotice.vue +97 -97
- package/src/layouts/tabs/TabsHead.vue +1 -1
- package/src/layouts/tabs/TabsView.vue +6 -6
- package/src/main.js +20 -20
- package/src/mock/common/reportData.js +20 -20
- package/src/mock/goods/index.js +2 -2
- package/src/mock/index.js +6 -6
- package/src/mock/project/index.js +1 -1
- package/src/mock/user/current.js +1 -1
- package/src/mock/user/login.js +1 -1
- package/src/mock/user/routes.js +61 -61
- package/src/mock/workplace/index.js +1 -1
- package/src/pages/exception/403.vue +25 -25
- package/src/pages/exception/404.vue +25 -25
- package/src/pages/exception/500.vue +25 -25
- package/src/pages/login/Login.vue +194 -194
- package/src/pages/report/ReportTable.js +125 -125
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/resourceManageMain.vue +55 -55
- package/src/pages/system/applyInstallView/Core.vue +1 -1
- package/src/pages/system/applyInstallView/index.vue +1 -1
- package/src/pages/system/dictionary/index.vue +1 -1
- package/src/pages/system/queryParams/index.vue +1 -1
- package/src/router/async/config.async.js +1 -1
- package/src/router/async/router.map.js +59 -59
- package/src/router/guards.js +3 -3
- package/src/router/index.js +27 -27
- package/src/services/api/EmployeeDetailsViewApi.js +3 -1
- package/src/services/api/TicketDetailsViewApi.js +9 -1
- package/src/services/api/common.js +37 -39
- package/src/services/api/restTools.js +23 -23
- package/src/services/dataSource.js +1 -1
- package/src/services/user.js +2 -2
- package/src/store/index.js +5 -5
- package/src/store/modules/setting.js +5 -5
- package/src/theme/index.less +5 -5
- package/src/theme/reportTable.less +58 -58
- package/src/utils/i18n.js +2 -2
- package/src/utils/indexedDB.js +146 -146
- package/src/utils/request.js +197 -197
- package/src/utils/routerUtil.js +18 -5
- package/tests/unit/ReportTable.spec.js +15 -15
- package/vue.config.js +153 -152
- package/webpack.config.js +12 -12
- package/src/index.js +0 -28
- package/src/router/config.js +0 -23
package/.eslintrc.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
node: true
|
|
5
|
-
},
|
|
6
|
-
'extends': [
|
|
7
|
-
'plugin:vue/essential',
|
|
8
|
-
'plugin:vue/strongly-recommended',
|
|
9
|
-
'@vue/standard'
|
|
10
|
-
],
|
|
11
|
-
rules: {
|
|
12
|
-
'no-console': 'off',
|
|
13
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
14
|
-
'generator-star-spacing': 'off',
|
|
15
|
-
'no-mixed-operators': 0,
|
|
16
|
-
'vue/max-attributes-per-line': [
|
|
17
|
-
2,
|
|
18
|
-
{
|
|
19
|
-
'singleline': 5,
|
|
20
|
-
'multiline': {
|
|
21
|
-
'max': 1,
|
|
22
|
-
'allowFirstLine': false
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
'vue/attribute-hyphenation': 0,
|
|
27
|
-
'vue/html-self-closing': 0,
|
|
28
|
-
'vue/component-name-in-template-casing': 0,
|
|
29
|
-
'vue/html-closing-bracket-spacing': 0,
|
|
30
|
-
'vue/singleline-html-element-content-newline': 0,
|
|
31
|
-
'vue/no-unused-components': 0,
|
|
32
|
-
'vue/multiline-html-element-content-newline': 0,
|
|
33
|
-
'vue/no-use-v-if-with-v-for': 0,
|
|
34
|
-
'vue/html-closing-bracket-newline': 0,
|
|
35
|
-
'vue/no-parsing-error': 0,
|
|
36
|
-
'vue/name-property-casing': 0,
|
|
37
|
-
'no-tabs': 0,
|
|
38
|
-
'quotes': [
|
|
39
|
-
2,
|
|
40
|
-
'single',
|
|
41
|
-
{
|
|
42
|
-
'avoidEscape': true,
|
|
43
|
-
'allowTemplateLiterals': true
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
'semi': [
|
|
47
|
-
2,
|
|
48
|
-
'never',
|
|
49
|
-
{
|
|
50
|
-
'beforeStatementContinuationChars': 'never'
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
'no-delete-var': 2,
|
|
54
|
-
'prefer-const': [
|
|
55
|
-
2,
|
|
56
|
-
{
|
|
57
|
-
'ignoreReadBeforeAssign': false
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
'template-curly-spacing': 'off',
|
|
61
|
-
'indent': 'off',
|
|
62
|
-
// 必须使用全等: false
|
|
63
|
-
'eqeqeq': 0,
|
|
64
|
-
// 可以使用!! 双重否定
|
|
65
|
-
'no-extra-boolean-cast': 'off'
|
|
66
|
-
},
|
|
67
|
-
parserOptions: {
|
|
68
|
-
parser: 'babel-eslint'
|
|
69
|
-
},
|
|
70
|
-
overrides: [
|
|
71
|
-
{
|
|
72
|
-
files: [
|
|
73
|
-
'**/__tests__/*.{j,t}s?(x)',
|
|
74
|
-
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
75
|
-
],
|
|
76
|
-
env: {
|
|
77
|
-
jest: true
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true
|
|
5
|
+
},
|
|
6
|
+
'extends': [
|
|
7
|
+
'plugin:vue/essential',
|
|
8
|
+
'plugin:vue/strongly-recommended',
|
|
9
|
+
'@vue/standard'
|
|
10
|
+
],
|
|
11
|
+
rules: {
|
|
12
|
+
'no-console': 'off',
|
|
13
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
14
|
+
'generator-star-spacing': 'off',
|
|
15
|
+
'no-mixed-operators': 0,
|
|
16
|
+
'vue/max-attributes-per-line': [
|
|
17
|
+
2,
|
|
18
|
+
{
|
|
19
|
+
'singleline': 5,
|
|
20
|
+
'multiline': {
|
|
21
|
+
'max': 1,
|
|
22
|
+
'allowFirstLine': false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
'vue/attribute-hyphenation': 0,
|
|
27
|
+
'vue/html-self-closing': 0,
|
|
28
|
+
'vue/component-name-in-template-casing': 0,
|
|
29
|
+
'vue/html-closing-bracket-spacing': 0,
|
|
30
|
+
'vue/singleline-html-element-content-newline': 0,
|
|
31
|
+
'vue/no-unused-components': 0,
|
|
32
|
+
'vue/multiline-html-element-content-newline': 0,
|
|
33
|
+
'vue/no-use-v-if-with-v-for': 0,
|
|
34
|
+
'vue/html-closing-bracket-newline': 0,
|
|
35
|
+
'vue/no-parsing-error': 0,
|
|
36
|
+
'vue/name-property-casing': 0,
|
|
37
|
+
'no-tabs': 0,
|
|
38
|
+
'quotes': [
|
|
39
|
+
2,
|
|
40
|
+
'single',
|
|
41
|
+
{
|
|
42
|
+
'avoidEscape': true,
|
|
43
|
+
'allowTemplateLiterals': true
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
'semi': [
|
|
47
|
+
2,
|
|
48
|
+
'never',
|
|
49
|
+
{
|
|
50
|
+
'beforeStatementContinuationChars': 'never'
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
'no-delete-var': 2,
|
|
54
|
+
'prefer-const': [
|
|
55
|
+
2,
|
|
56
|
+
{
|
|
57
|
+
'ignoreReadBeforeAssign': false
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
'template-curly-spacing': 'off',
|
|
61
|
+
'indent': 'off',
|
|
62
|
+
// 必须使用全等: false
|
|
63
|
+
'eqeqeq': 0,
|
|
64
|
+
// 可以使用!! 双重否定
|
|
65
|
+
'no-extra-boolean-cast': 'off'
|
|
66
|
+
},
|
|
67
|
+
parserOptions: {
|
|
68
|
+
parser: 'babel-eslint'
|
|
69
|
+
},
|
|
70
|
+
overrides: [
|
|
71
|
+
{
|
|
72
|
+
files: [
|
|
73
|
+
'**/__tests__/*.{j,t}s?(x)',
|
|
74
|
+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
75
|
+
],
|
|
76
|
+
env: {
|
|
77
|
+
jest: true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
package/README.md
CHANGED
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
# vue2-client
|
|
2
|
-
|
|
3
|
-
基于Vue Antd Admin封装的通用基础组件
|
|
4
|
-
|
|
5
|
-
## 完整引入
|
|
6
|
-
|
|
7
|
-
```javascript
|
|
8
|
-
import Vue from 'vue'
|
|
9
|
-
import App from './App.vue'
|
|
10
|
-
import Router from 'vue-router'
|
|
11
|
-
import Vuex from 'vuex'
|
|
12
|
-
import '
|
|
13
|
-
import { routerOptions, modules, i18n, message, bootstrap } from 'vue2-client
|
|
14
|
-
|
|
15
|
-
Vue.use(Router)
|
|
16
|
-
Vue.use(Vuex)
|
|
17
|
-
// 创建router store
|
|
18
|
-
const store = new Vuex.Store({ modules })
|
|
19
|
-
const router = new Router(routerOptions)
|
|
20
|
-
|
|
21
|
-
bootstrap({ router, store, i18n, message })
|
|
22
|
-
new Vue({
|
|
23
|
-
router,
|
|
24
|
-
store,
|
|
25
|
-
i18n,
|
|
26
|
-
render: h => h(App)
|
|
27
|
-
}).$mount('#app')
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
│
|
|
40
|
-
|
|
41
|
-
│ ├──
|
|
42
|
-
│ ├──
|
|
43
|
-
│ ├──
|
|
44
|
-
│ ├──
|
|
45
|
-
│ ├──
|
|
46
|
-
│ ├──
|
|
47
|
-
│ ├──
|
|
48
|
-
│ ├──
|
|
49
|
-
│ ├──
|
|
50
|
-
│ ├──
|
|
51
|
-
│ ├──
|
|
52
|
-
│ ├──
|
|
53
|
-
│ ├──
|
|
54
|
-
│
|
|
55
|
-
├──
|
|
56
|
-
|
|
57
|
-
├──
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
# vue2-client
|
|
2
|
+
|
|
3
|
+
基于Vue Antd Admin封装的通用基础组件
|
|
4
|
+
|
|
5
|
+
## 完整引入
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
import Vue from 'vue'
|
|
9
|
+
import App from './App.vue'
|
|
10
|
+
import Router from 'vue-router'
|
|
11
|
+
import Vuex from 'vuex'
|
|
12
|
+
import '@vue2-client/mock'
|
|
13
|
+
import { routerOptions, modules, i18n, message, bootstrap } from 'vue2-client'
|
|
14
|
+
|
|
15
|
+
Vue.use(Router)
|
|
16
|
+
Vue.use(Vuex)
|
|
17
|
+
// 创建router store
|
|
18
|
+
const store = new Vuex.Store({ modules })
|
|
19
|
+
const router = new Router(routerOptions)
|
|
20
|
+
|
|
21
|
+
bootstrap({ router, store, i18n, message })
|
|
22
|
+
new Vue({
|
|
23
|
+
router,
|
|
24
|
+
store,
|
|
25
|
+
i18n,
|
|
26
|
+
render: h => h(App)
|
|
27
|
+
}).$mount('#app')
|
|
28
|
+
|
|
29
|
+
注意引入项目请添加webpack别名配置
|
|
30
|
+
config.resolve.alias.set('@vue2-client', path.resolve(__dirname, 'node_modules/vue2-client/src'))
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 目录结构
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
├── docs # 文档
|
|
37
|
+
├── public
|
|
38
|
+
│ └── favicon.png # favicon
|
|
39
|
+
│ └── index.html # 入口 HTML
|
|
40
|
+
├── src
|
|
41
|
+
│ ├── assets # 本地静态资源
|
|
42
|
+
│ ├── base-client # 基础组件和基础vue插件(全局注册)
|
|
43
|
+
│ ├── components # 内置通用组件(按需引入)
|
|
44
|
+
│ ├── config # 系统配置
|
|
45
|
+
│ ├── layouts # 通用布局组件(按需引入)
|
|
46
|
+
│ ├── mock # 本地 mock 数据
|
|
47
|
+
│ ├── pages # 页面组件
|
|
48
|
+
│ ├── router # 路由配置
|
|
49
|
+
│ ├── services # 数据服务模块
|
|
50
|
+
│ ├── store # vuex 状态管理配置
|
|
51
|
+
│ ├── theme # 主题样式相关
|
|
52
|
+
│ ├── utils # js 工具
|
|
53
|
+
│ ├── App.vue # 应用入口组件
|
|
54
|
+
│ ├── bootstrap.js # 应用启动引导js
|
|
55
|
+
│ ├── index.js # 应用导出js
|
|
56
|
+
│ └── main.js # 应用入口js
|
|
57
|
+
├── tests # 单元测试
|
|
58
|
+
├── package.json # package.json
|
|
59
|
+
├── README.md # README.md
|
|
60
|
+
└── vue.config.js # vue 配置文件
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 文档入口
|
|
64
|
+
|
|
65
|
+
[入口](docs/index.md)
|
package/babel.config.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
|
|
2
|
-
|
|
3
|
-
const plugins = []
|
|
4
|
-
if (IS_PROD) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
|
|
2
|
+
|
|
3
|
+
const plugins = []
|
|
4
|
+
if (IS_PROD) {
|
|
5
|
+
// 在生产环境去掉console打印
|
|
6
|
+
plugins.push('transform-remove-console')
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
presets: [
|
|
11
|
+
'@vue/cli-plugin-babel/preset',
|
|
12
|
+
['@vue/babel-preset-jsx', { 'injectH': false }]
|
|
13
|
+
],
|
|
14
|
+
plugins
|
|
15
|
+
}
|
package/docs/index.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
## 文档列表
|
|
2
|
-
### common
|
|
3
|
-
* [CreateQuery 完整查询配置生成](../src/base-client/components/common/CreateQuery/index.md)
|
|
4
|
-
* [CreateSimpleFormQuery 基础表单配置生成](../src/base-client/components/common/CreateSimpleFormQuery/index.md)
|
|
5
|
-
* [CustomColumnsDrawer 自定义表格列](../src/base-client/components/common/CustomColumnsDrawer/index.md)
|
|
6
|
-
* [FormGroupEdit 表单参数组配置编辑](../src/base-client/components/common/FormGroupEdit/index.md)
|
|
7
|
-
* [FormGroupQuery 表单参数组配置生成](../src/base-client/components/common/FormGroupQuery/index.md)
|
|
8
|
-
* [XAddForm 动态新增/修改表单控件,根据JSON配置生成一个完整的可供新增/修改数据的动态表单](../src/base-client/components/common/XAddForm/index.md)
|
|
9
|
-
* [XBadge 重封装徽标](../src/base-client/components/common/XBadge/index.md)
|
|
10
|
-
* [XCard 通用数据加载状态管理容器](../src/base-client/components/common/XCard/index.md)
|
|
11
|
-
* [XForm 动态表单控件,根据JSON配置生成一个完整的动态表单](../src/base-client/components/common/XForm/index.md)
|
|
12
|
-
* [XFormCol 适用于表单的通用响应式栅格a-col封装](../src/base-client/components/common/XFormCol/index.md)
|
|
13
|
-
* [XFormTable 动态查询控件,进一步整合了XTable和XForm](../src/base-client/components/common/XFormTable/index.md)
|
|
14
|
-
* [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
|
|
15
|
-
|
|
16
|
-
### iot
|
|
17
|
-
* [CustomerDetailsView 客户详情页](../src/base-client/components/iot/CustomerDetailsView/index.md)
|
|
18
|
-
* [DeviceDetailsView 档案详情页](../src/base-client/components/iot/DeviceDetailsView/index.md)
|
|
19
|
-
* [InstructDetailsView 指令详情页](../src/base-client/components/iot/InstructDetailsView/index.md)
|
|
20
|
-
* [LogDetailsView 日志详情页](../src/base-client/components/iot/LogDetailsView/index.md)
|
|
21
|
-
* [MeterDetailsView 单个表具档案](../src/base-client/components/iot/MeterDetailsView/index.md)
|
|
22
|
-
|
|
23
|
-
### system
|
|
24
|
-
* [DictionaryDetailsView 字典详情页](../src/base-client/components/system/DictionaryDetailsView/index.md)
|
|
25
|
-
|
|
26
|
-
### ticket
|
|
27
|
-
* [EmployeeDetailsView 员工详情页](../src/base-client/components/ticket/EmployeeDetailsView/index.md)
|
|
28
|
-
* [TicketDetailsView 工单详情页](../src/base-client/components/ticket/TicketDetailsView/index.md)
|
|
29
|
-
* [TicketSubmitSuccessView 单个工单详情页](../src/base-client/components/ticket/TicketSubmitSuccessView/index.md)
|
|
1
|
+
## 文档列表
|
|
2
|
+
### common
|
|
3
|
+
* [CreateQuery 完整查询配置生成](../src/base-client/components/common/CreateQuery/index.md)
|
|
4
|
+
* [CreateSimpleFormQuery 基础表单配置生成](../src/base-client/components/common/CreateSimpleFormQuery/index.md)
|
|
5
|
+
* [CustomColumnsDrawer 自定义表格列](../src/base-client/components/common/CustomColumnsDrawer/index.md)
|
|
6
|
+
* [FormGroupEdit 表单参数组配置编辑](../src/base-client/components/common/FormGroupEdit/index.md)
|
|
7
|
+
* [FormGroupQuery 表单参数组配置生成](../src/base-client/components/common/FormGroupQuery/index.md)
|
|
8
|
+
* [XAddForm 动态新增/修改表单控件,根据JSON配置生成一个完整的可供新增/修改数据的动态表单](../src/base-client/components/common/XAddForm/index.md)
|
|
9
|
+
* [XBadge 重封装徽标](../src/base-client/components/common/XBadge/index.md)
|
|
10
|
+
* [XCard 通用数据加载状态管理容器](../src/base-client/components/common/XCard/index.md)
|
|
11
|
+
* [XForm 动态表单控件,根据JSON配置生成一个完整的动态表单](../src/base-client/components/common/XForm/index.md)
|
|
12
|
+
* [XFormCol 适用于表单的通用响应式栅格a-col封装](../src/base-client/components/common/XFormCol/index.md)
|
|
13
|
+
* [XFormTable 动态查询控件,进一步整合了XTable和XForm](../src/base-client/components/common/XFormTable/index.md)
|
|
14
|
+
* [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
|
|
15
|
+
|
|
16
|
+
### iot
|
|
17
|
+
* [CustomerDetailsView 客户详情页](../src/base-client/components/iot/CustomerDetailsView/index.md)
|
|
18
|
+
* [DeviceDetailsView 档案详情页](../src/base-client/components/iot/DeviceDetailsView/index.md)
|
|
19
|
+
* [InstructDetailsView 指令详情页](../src/base-client/components/iot/InstructDetailsView/index.md)
|
|
20
|
+
* [LogDetailsView 日志详情页](../src/base-client/components/iot/LogDetailsView/index.md)
|
|
21
|
+
* [MeterDetailsView 单个表具档案](../src/base-client/components/iot/MeterDetailsView/index.md)
|
|
22
|
+
|
|
23
|
+
### system
|
|
24
|
+
* [DictionaryDetailsView 字典详情页](../src/base-client/components/system/DictionaryDetailsView/index.md)
|
|
25
|
+
|
|
26
|
+
### ticket
|
|
27
|
+
* [EmployeeDetailsView 员工详情页](../src/base-client/components/ticket/EmployeeDetailsView/index.md)
|
|
28
|
+
* [TicketDetailsView 工单详情页](../src/base-client/components/ticket/TicketDetailsView/index.md)
|
|
29
|
+
* [TicketSubmitSuccessView 单个工单详情页](../src/base-client/components/ticket/TicketSubmitSuccessView/index.md)
|
package/docs/notice.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# 开发规范(持续跟新)
|
|
2
|
+
## 引入各种文件时,必须写绝对路径, 不允许写相对路径
|
|
3
|
+
```js
|
|
4
|
+
// 引自己项目时文件时, @ 表示自己项目的src目录
|
|
5
|
+
import('@vue2-client/pages/system/queryParams')
|
|
6
|
+
```
|
|
7
|
+
## 编写vue文件的样式时, 必须使用less, 样式必须在最外层添加当前页面html的id, id与vue文件名相同
|
|
8
|
+
```vue
|
|
9
|
+
helloWorld.vue
|
|
10
|
+
<template>
|
|
11
|
+
<div id="helloWorld">
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style lang="less">
|
|
17
|
+
#helloWorld{
|
|
18
|
+
/*写自己的样式*/
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
```
|
|
22
|
+
|
package/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import { initRouter } from '@vue2-client/router'
|
|
3
|
+
import { initI18n } from '@vue2-client/utils/i18n'
|
|
4
|
+
import bootstrap from '@vue2-client/bootstrap'
|
|
5
|
+
import { modules } from '@vue2-client/store'
|
|
6
|
+
import '@vue2-client/theme/index.less'
|
|
7
|
+
import '@vue2-client/base-client/all'
|
|
8
|
+
import '@vue2-client/utils/filter'
|
|
9
|
+
import 'animate.css/source/animate.css'
|
|
10
|
+
import 'moment/locale/zh-cn'
|
|
11
|
+
import Antd from 'ant-design-vue'
|
|
12
|
+
import Viser from 'viser-vue'
|
|
13
|
+
|
|
14
|
+
const routerOptions = initRouter()
|
|
15
|
+
const i18n = initI18n('CN', 'US')
|
|
16
|
+
|
|
17
|
+
Vue.use(Antd)
|
|
18
|
+
Vue.use(Viser)
|
|
19
|
+
Vue.config.productionTip = false
|
|
20
|
+
const message = Vue.prototype.$message
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
routerOptions,
|
|
24
|
+
modules,
|
|
25
|
+
i18n,
|
|
26
|
+
message,
|
|
27
|
+
bootstrap
|
|
28
|
+
}
|
package/jest.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
preset: '@vue/cli-plugin-unit-jest'
|
|
3
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
preset: '@vue/cli-plugin-unit-jest'
|
|
3
|
+
}
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="beauty-scroll">
|
|
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><%= process.env.VUE_APP_NAME %></title>
|
|
9
|
-
<!-- require cdn assets css -->
|
|
10
|
-
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
|
|
11
|
-
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" />
|
|
12
|
-
<% } %>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<noscript>
|
|
16
|
-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
17
|
-
</noscript>
|
|
18
|
-
<div id="popContainer" class="beauty-scroll" style="height: 100vh; overflow-y: scroll">
|
|
19
|
-
<div id="app"></div>
|
|
20
|
-
</div>
|
|
21
|
-
<!-- require cdn assets js -->
|
|
22
|
-
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
|
|
23
|
-
<script type="text/javascript" src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
|
|
24
|
-
<% } %>
|
|
25
|
-
<!-- built files will be auto injected -->
|
|
26
|
-
</body>
|
|
27
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="beauty-scroll">
|
|
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><%= process.env.VUE_APP_NAME %></title>
|
|
9
|
+
<!-- require cdn assets css -->
|
|
10
|
+
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
|
|
11
|
+
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" />
|
|
12
|
+
<% } %>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<noscript>
|
|
16
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
17
|
+
</noscript>
|
|
18
|
+
<div id="popContainer" class="beauty-scroll" style="height: 100vh; overflow-y: scroll">
|
|
19
|
+
<div id="app"></div>
|
|
20
|
+
</div>
|
|
21
|
+
<!-- require cdn assets js -->
|
|
22
|
+
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
|
|
23
|
+
<script type="text/javascript" src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
|
|
24
|
+
<% } %>
|
|
25
|
+
<!-- built files will be auto injected -->
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
package/src/App.vue
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<script>
|
|
8
8
|
import { enquireScreen } from './utils/util'
|
|
9
9
|
import { mapState, mapMutations } from 'vuex'
|
|
10
|
-
import themeUtil from '
|
|
11
|
-
import { getI18nKey } from '
|
|
10
|
+
import themeUtil from '@vue2-client/utils/themeUtil'
|
|
11
|
+
import { getI18nKey } from '@vue2-client/utils/routerUtil'
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
name: 'App',
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|