vue2-client 1.4.10 → 1.4.12
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/.env +15 -15
- package/.eslintrc.js +82 -82
- package/CHANGELOG.md +7 -0
- package/index.js +30 -30
- package/package.json +1 -1
- package/src/App.vue +4 -2
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +113 -113
- package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +591 -591
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +210 -210
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +274 -274
- package/src/base-client/components/common/XForm/XFormItem.vue +389 -389
- package/src/base-client/components/common/XFormTable/XFormTable.vue +548 -548
- package/src/base-client/components/common/XFormTable/index.md +96 -96
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +69 -69
- package/src/base-client/plugins/GetLoginInfoService.js +179 -179
- package/src/base-client/plugins/PagedList.js +177 -177
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/base-client/plugins/i18n-extend.js +32 -32
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/STable/index.js +318 -318
- package/src/components/Trend/index.md +45 -45
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +163 -163
- package/src/components/exception/ExceptionPage.vue +2 -2
- package/src/components/form/FormRow.vue +52 -52
- package/src/components/index.js +36 -36
- package/src/components/menu/SideMenu.vue +62 -62
- package/src/components/menu/menu.js +273 -273
- package/src/components/setting/Setting.vue +235 -235
- package/src/components/table/StandardTable.vue +141 -141
- package/src/components/table/advance/ActionColumns.vue +158 -158
- package/src/components/table/advance/SearchArea.vue +355 -355
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/components/tool/AvatarList.vue +68 -68
- package/src/components/tool/Drawer.vue +142 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/CreateQueryConfig.js +307 -307
- package/src/config/default/setting.config.js +1 -1
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/AdminLayout.vue +174 -174
- package/src/layouts/header/AdminHeader.vue +104 -104
- package/src/layouts/header/HeaderNotice.vue +167 -167
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +379 -379
- package/src/mock/goods/index.js +108 -108
- package/src/pages/CreateQueryPage.vue +65 -65
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -0
- package/src/pages/dashboard/workplace/i18n.js +40 -0
- package/src/pages/dashboard/workplace/index.js +2 -0
- package/src/pages/dashboard/workplace/index.less +59 -0
- package/src/pages/login/Login.vue +27 -41
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/dictionary/index.vue +43 -43
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/queryParams/index.vue +43 -43
- package/src/pages/system/ticket/index.vue +2 -2
- package/src/router/async/config.async.js +27 -27
- package/src/router/async/router.map.js +61 -58
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +34 -34
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/manage.js +8 -8
- package/src/services/api/restTools.js +24 -24
- package/src/services/apiService.js +1 -0
- package/src/services/user.js +13 -5
- package/src/store/modules/index.js +4 -4
- package/src/store/mutation-types.js +1 -0
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +47 -47
- package/src/utils/colors.js +103 -103
- package/src/utils/excel/Blob.js +180 -180
- package/src/utils/excel/Export2Excel.js +141 -141
- package/src/utils/formatter.js +68 -68
- package/src/utils/i18n.js +80 -80
- package/src/utils/request.js +109 -33
- package/src/utils/routerUtil.js +364 -364
- package/src/utils/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- package/src/utils/util.js +230 -230
- package/vue.config.js +106 -99
package/.env
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
VUE_APP_PUBLIC_PATH=/
|
|
2
|
-
VUE_APP_NAME=Admin
|
|
3
|
-
VUE_APP_ROUTES_KEY=admin.routes
|
|
4
|
-
VUE_APP_PERMISSIONS_KEY=admin.permissions
|
|
5
|
-
VUE_APP_ROLES_KEY=admin.roles
|
|
6
|
-
VUE_APP_USER_KEY=admin.user
|
|
7
|
-
VUE_APP_LOGIN_KEY=admin.login
|
|
8
|
-
VUE_APP_SETTING_KEY=admin.setting
|
|
9
|
-
VUE_APP_TBAS_KEY=admin.tabs
|
|
10
|
-
VUE_APP_TBAS_TITLES_KEY=admin.tabs.titles
|
|
11
|
-
VUE_APP_DICTIONARY_KEY=admin.dictionary
|
|
12
|
-
VUE_APP_BADGE_KEY=admin.badge
|
|
13
|
-
VUE_APP_SINGLEVALUE_KEY=admin.singlevalue
|
|
14
|
-
VUE_APP_DIVISIONSOHCHINA=admin.divisionsohchina
|
|
15
|
-
VUE_APP_API_BASE_URL=http://123.60.214.109:8405
|
|
1
|
+
VUE_APP_PUBLIC_PATH=/
|
|
2
|
+
VUE_APP_NAME=Admin
|
|
3
|
+
VUE_APP_ROUTES_KEY=admin.routes
|
|
4
|
+
VUE_APP_PERMISSIONS_KEY=admin.permissions
|
|
5
|
+
VUE_APP_ROLES_KEY=admin.roles
|
|
6
|
+
VUE_APP_USER_KEY=admin.user
|
|
7
|
+
VUE_APP_LOGIN_KEY=admin.login
|
|
8
|
+
VUE_APP_SETTING_KEY=admin.setting
|
|
9
|
+
VUE_APP_TBAS_KEY=admin.tabs
|
|
10
|
+
VUE_APP_TBAS_TITLES_KEY=admin.tabs.titles
|
|
11
|
+
VUE_APP_DICTIONARY_KEY=admin.dictionary
|
|
12
|
+
VUE_APP_BADGE_KEY=admin.badge
|
|
13
|
+
VUE_APP_SINGLEVALUE_KEY=admin.singlevalue
|
|
14
|
+
VUE_APP_DIVISIONSOHCHINA=admin.divisionsohchina
|
|
15
|
+
VUE_APP_API_BASE_URL=http://123.60.214.109:8405
|
package/.eslintrc.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
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
|
-
'comma-dangle': 'off',
|
|
13
|
-
'no-console': 'off',
|
|
14
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
15
|
-
'generator-star-spacing': 'off',
|
|
16
|
-
'no-mixed-operators': 0,
|
|
17
|
-
'vue/max-attributes-per-line': [
|
|
18
|
-
2,
|
|
19
|
-
{
|
|
20
|
-
'singleline': 5,
|
|
21
|
-
'multiline': {
|
|
22
|
-
'max': 1,
|
|
23
|
-
'allowFirstLine': false
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
'vue/attribute-hyphenation': 0,
|
|
28
|
-
'vue/html-self-closing': 0,
|
|
29
|
-
'vue/component-name-in-template-casing': 0,
|
|
30
|
-
'vue/html-closing-bracket-spacing': 0,
|
|
31
|
-
'vue/singleline-html-element-content-newline': 0,
|
|
32
|
-
'vue/no-unused-components': 0,
|
|
33
|
-
'vue/multiline-html-element-content-newline': 0,
|
|
34
|
-
'vue/no-use-v-if-with-v-for': 0,
|
|
35
|
-
'vue/html-closing-bracket-newline': 0,
|
|
36
|
-
'vue/no-parsing-error': 0,
|
|
37
|
-
'vue/name-property-casing': 0,
|
|
38
|
-
'no-tabs': 0,
|
|
39
|
-
'quotes': [
|
|
40
|
-
2,
|
|
41
|
-
'single',
|
|
42
|
-
{
|
|
43
|
-
'avoidEscape': true,
|
|
44
|
-
'allowTemplateLiterals': true
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
'semi': [
|
|
48
|
-
2,
|
|
49
|
-
'never',
|
|
50
|
-
{
|
|
51
|
-
'beforeStatementContinuationChars': 'never'
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
'no-delete-var': 2,
|
|
55
|
-
'prefer-const': [
|
|
56
|
-
2,
|
|
57
|
-
{
|
|
58
|
-
'ignoreReadBeforeAssign': false
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
'template-curly-spacing': 'off',
|
|
62
|
-
'indent': 'off',
|
|
63
|
-
// 必须使用全等: false
|
|
64
|
-
'eqeqeq': 0,
|
|
65
|
-
// 可以使用!! 双重否定
|
|
66
|
-
'no-extra-boolean-cast': 'off'
|
|
67
|
-
},
|
|
68
|
-
parserOptions: {
|
|
69
|
-
parser: 'babel-eslint'
|
|
70
|
-
},
|
|
71
|
-
overrides: [
|
|
72
|
-
{
|
|
73
|
-
files: [
|
|
74
|
-
'**/__tests__/*.{j,t}s?(x)',
|
|
75
|
-
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
76
|
-
],
|
|
77
|
-
env: {
|
|
78
|
-
jest: true
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
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
|
+
'comma-dangle': 'off',
|
|
13
|
+
'no-console': 'off',
|
|
14
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
15
|
+
'generator-star-spacing': 'off',
|
|
16
|
+
'no-mixed-operators': 0,
|
|
17
|
+
'vue/max-attributes-per-line': [
|
|
18
|
+
2,
|
|
19
|
+
{
|
|
20
|
+
'singleline': 5,
|
|
21
|
+
'multiline': {
|
|
22
|
+
'max': 1,
|
|
23
|
+
'allowFirstLine': false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
'vue/attribute-hyphenation': 0,
|
|
28
|
+
'vue/html-self-closing': 0,
|
|
29
|
+
'vue/component-name-in-template-casing': 0,
|
|
30
|
+
'vue/html-closing-bracket-spacing': 0,
|
|
31
|
+
'vue/singleline-html-element-content-newline': 0,
|
|
32
|
+
'vue/no-unused-components': 0,
|
|
33
|
+
'vue/multiline-html-element-content-newline': 0,
|
|
34
|
+
'vue/no-use-v-if-with-v-for': 0,
|
|
35
|
+
'vue/html-closing-bracket-newline': 0,
|
|
36
|
+
'vue/no-parsing-error': 0,
|
|
37
|
+
'vue/name-property-casing': 0,
|
|
38
|
+
'no-tabs': 0,
|
|
39
|
+
'quotes': [
|
|
40
|
+
2,
|
|
41
|
+
'single',
|
|
42
|
+
{
|
|
43
|
+
'avoidEscape': true,
|
|
44
|
+
'allowTemplateLiterals': true
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
'semi': [
|
|
48
|
+
2,
|
|
49
|
+
'never',
|
|
50
|
+
{
|
|
51
|
+
'beforeStatementContinuationChars': 'never'
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
'no-delete-var': 2,
|
|
55
|
+
'prefer-const': [
|
|
56
|
+
2,
|
|
57
|
+
{
|
|
58
|
+
'ignoreReadBeforeAssign': false
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
'template-curly-spacing': 'off',
|
|
62
|
+
'indent': 'off',
|
|
63
|
+
// 必须使用全等: false
|
|
64
|
+
'eqeqeq': 0,
|
|
65
|
+
// 可以使用!! 双重否定
|
|
66
|
+
'no-extra-boolean-cast': 'off'
|
|
67
|
+
},
|
|
68
|
+
parserOptions: {
|
|
69
|
+
parser: 'babel-eslint'
|
|
70
|
+
},
|
|
71
|
+
overrides: [
|
|
72
|
+
{
|
|
73
|
+
files: [
|
|
74
|
+
'**/__tests__/*.{j,t}s?(x)',
|
|
75
|
+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
76
|
+
],
|
|
77
|
+
env: {
|
|
78
|
+
jest: true
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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/utils/filter'
|
|
8
|
-
import 'animate.css/source/animate.css'
|
|
9
|
-
import 'moment/locale/zh-cn'
|
|
10
|
-
import Antd from 'ant-design-vue'
|
|
11
|
-
import Viser from 'viser-vue'
|
|
12
|
-
// 插件
|
|
13
|
-
import Plugins from '@vue2-client/base-client/plugins'
|
|
14
|
-
|
|
15
|
-
const routerOptions = initRouter()
|
|
16
|
-
const i18n = initI18n('CN', 'US')
|
|
17
|
-
|
|
18
|
-
Vue.use(Antd)
|
|
19
|
-
Vue.use(Viser)
|
|
20
|
-
Vue.use(Plugins)
|
|
21
|
-
Vue.config.productionTip = false
|
|
22
|
-
const message = Vue.prototype.$message
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
routerOptions,
|
|
26
|
-
modules,
|
|
27
|
-
i18n,
|
|
28
|
-
message,
|
|
29
|
-
bootstrap
|
|
30
|
-
}
|
|
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/utils/filter'
|
|
8
|
+
import 'animate.css/source/animate.css'
|
|
9
|
+
import 'moment/locale/zh-cn'
|
|
10
|
+
import Antd from 'ant-design-vue'
|
|
11
|
+
import Viser from 'viser-vue'
|
|
12
|
+
// 插件
|
|
13
|
+
import Plugins from '@vue2-client/base-client/plugins'
|
|
14
|
+
|
|
15
|
+
const routerOptions = initRouter()
|
|
16
|
+
const i18n = initI18n('CN', 'US')
|
|
17
|
+
|
|
18
|
+
Vue.use(Antd)
|
|
19
|
+
Vue.use(Viser)
|
|
20
|
+
Vue.use(Plugins)
|
|
21
|
+
Vue.config.productionTip = false
|
|
22
|
+
const message = Vue.prototype.$message
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
routerOptions,
|
|
26
|
+
modules,
|
|
27
|
+
i18n,
|
|
28
|
+
message,
|
|
29
|
+
bootstrap
|
|
30
|
+
}
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -9,6 +9,7 @@ import { enquireScreen } from '@vue2-client/utils/util'
|
|
|
9
9
|
import { mapState, mapMutations } from 'vuex'
|
|
10
10
|
import themeUtil from '@vue2-client/utils/themeUtil'
|
|
11
11
|
import { getI18nKey } from '@vue2-client/utils/routerUtil'
|
|
12
|
+
import { setSystemVersion } from '@vue2-client/utils/request'
|
|
12
13
|
|
|
13
14
|
export default {
|
|
14
15
|
name: 'App',
|
|
@@ -23,8 +24,9 @@ export default {
|
|
|
23
24
|
enquireScreen(isMobile => this.setDevice(isMobile))
|
|
24
25
|
},
|
|
25
26
|
mounted () {
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
this.setWeekModeTheme(this.weekMode)
|
|
28
|
+
// 设置系统版本
|
|
29
|
+
setSystemVersion(this.compatible)
|
|
28
30
|
},
|
|
29
31
|
watch: {
|
|
30
32
|
weekMode (val) {
|