vue2-client 1.6.63-single → 1.7.1
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/CHANGELOG.md +6 -0
- package/Components.md +60 -0
- package/index.js +39 -30
- package/package.json +4 -2
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +1 -1
- package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +735 -735
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +466 -460
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +510 -510
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +144 -138
- 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/Upload/Upload.vue +3 -3
- package/src/base-client/components/common/XAddForm/XAddForm.vue +72 -72
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +365 -365
- package/src/base-client/components/common/XAddNativeForm/index.md +96 -56
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -0
- package/src/base-client/components/common/XDataDrawer/index.js +3 -0
- package/src/base-client/components/common/XDataDrawer/index.md +41 -0
- package/src/base-client/components/common/XForm/XForm.vue +178 -178
- package/src/base-client/components/common/XForm/XFormItem.vue +521 -521
- package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -184
- package/src/base-client/components/common/XFormCol/XFormCol.vue +38 -38
- package/src/base-client/components/common/XFormTable/XFormTable.vue +356 -348
- package/src/base-client/components/common/XFormTable/index.md +97 -97
- package/src/base-client/components/common/XImportExcel/XImportExcel.vue +1 -1
- package/src/base-client/components/common/XTable/XTable.vue +519 -519
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +1 -1
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +1 -1
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +1 -1
- 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 +1 -1
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +76 -76
- 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/Ellipsis.vue +65 -65
- 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 +70 -70
- 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/page/header/index.less +40 -40
- 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/admin.config.js +18 -18
- package/src/config/default/setting.config.js +48 -48
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +116 -116
- package/src/layouts/footer/PageFooter.vue +49 -49
- package/src/layouts/header/AdminHeader.vue +134 -134
- package/src/layouts/header/HeaderAvatar.vue +64 -64
- package/src/layouts/header/HeaderNotice.vue +1 -1
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +2 -2
- package/src/layouts/header/index.less +92 -92
- 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 +2 -2
- package/src/pages/login/Login.vue +369 -369
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +1 -1
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/dictionary/index.vue +1 -1
- package/src/pages/system/file/index.vue +3 -3
- package/src/pages/system/monitor/loginInfor/index.vue +1 -1
- package/src/pages/system/monitor/operLog/index.vue +1 -1
- package/src/pages/system/settings/index.vue +126 -126
- package/src/pages/system/settings/modifyPassword.vue +109 -109
- package/src/router/async/config.async.js +28 -28
- package/src/router/async/router.map.js +66 -74
- package/src/router/guards.js +153 -153
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +1 -1
- package/src/services/api/LogDetailsViewApi.js +3 -3
- package/src/services/api/QueryParamsDetailsViewApi.js +1 -1
- package/src/services/api/TicketDetailsViewApi.js +15 -15
- package/src/services/api/cas.js +79 -79
- package/src/services/api/common.js +18 -13
- package/src/services/api/commonTempTable.js +3 -3
- package/src/services/api/index.js +17 -17
- package/src/services/api/logininfor/index.js +1 -1
- package/src/services/api/manage.js +2 -2
- package/src/services/apiService.js +14 -14
- package/src/services/user.js +67 -67
- package/src/store/modules/index.js +4 -4
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +58 -58
- package/src/utils/EncryptUtil.js +53 -53
- package/src/utils/colors.js +107 -107
- 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/login.js +138 -138
- package/src/utils/map-utils.js +37 -37
- 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 -106
- package/src/pages/system/queryParams/index.vue +0 -43
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/CHANGELOG.md
CHANGED
package/Components.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# vue2基础组件库组件介绍
|
|
2
|
+
|
|
3
|
+
## XAddForm
|
|
4
|
+
|
|
5
|
+
基于XAddNativeForm二次封装的动态表单的Modal形式
|
|
6
|
+
|
|
7
|
+
[使用文档](src/base-client/components/common/XAddForm/index.md)
|
|
8
|
+
|
|
9
|
+
## XAddNativeForm
|
|
10
|
+
|
|
11
|
+
通过JSON配置动态生成的数据保存表单
|
|
12
|
+
|
|
13
|
+
[使用文档](src/base-client/components/common/XAddNativeForm/index.md)
|
|
14
|
+
|
|
15
|
+
## XBadge
|
|
16
|
+
|
|
17
|
+
对antdv的badge组件进行重封装
|
|
18
|
+
|
|
19
|
+
[使用文档](src/base-client/components/common/XBadge/index.md)
|
|
20
|
+
|
|
21
|
+
## XCard
|
|
22
|
+
|
|
23
|
+
通用数据加载状态管理容器
|
|
24
|
+
|
|
25
|
+
提供一个可以根据数据加载状态显示不同内容的通用容器
|
|
26
|
+
当loadState为loading时,显示骨架屏(加载界面)
|
|
27
|
+
当loadState为success时,显示容器内容
|
|
28
|
+
当loadState为error时,显示点击重新加载数据的提示界面
|
|
29
|
+
|
|
30
|
+
[使用文档](src/base-client/components/common/XCard/index.md)
|
|
31
|
+
|
|
32
|
+
## XForm
|
|
33
|
+
|
|
34
|
+
通过JSON配置动态生成的数据筛选查询表单
|
|
35
|
+
|
|
36
|
+
[使用文档](src/base-client/components/common/XForm/index.md)
|
|
37
|
+
|
|
38
|
+
## XTable
|
|
39
|
+
|
|
40
|
+
通过JSON配置动态生成的数据表格
|
|
41
|
+
|
|
42
|
+
[使用文档](src/base-client/components/common/XTable/index.md)
|
|
43
|
+
|
|
44
|
+
## XFormCol
|
|
45
|
+
|
|
46
|
+
适用于动态表单的可以自适应各种分辨率设备的栅格组件封装
|
|
47
|
+
|
|
48
|
+
[使用文档](src/base-client/components/common/XFormCol/index.md)
|
|
49
|
+
|
|
50
|
+
## XFormTable
|
|
51
|
+
|
|
52
|
+
对XAddForm,XForm和XTable组件的二次封装,实现通过JSON配置动态生成一个完整的实体操作页面
|
|
53
|
+
|
|
54
|
+
[使用文档](src/base-client/components/common/XFormTable/index.md)
|
|
55
|
+
|
|
56
|
+
## XImportExcel
|
|
57
|
+
|
|
58
|
+
通用的导入excel组件
|
|
59
|
+
|
|
60
|
+
[使用文档](src/base-client/components/common/XImportExcel/index.md)
|
package/index.js
CHANGED
|
@@ -1,30 +1,39 @@
|
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
import VueCustomElement from 'vue-custom-element'
|
|
15
|
+
|
|
16
|
+
// 引入组件
|
|
17
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm'
|
|
18
|
+
|
|
19
|
+
const routerOptions = initRouter()
|
|
20
|
+
const i18n = initI18n('CN', 'US')
|
|
21
|
+
|
|
22
|
+
Vue.use(Antd)
|
|
23
|
+
Vue.use(Viser)
|
|
24
|
+
Vue.use(Plugins)
|
|
25
|
+
Vue.use(VueCustomElement)
|
|
26
|
+
|
|
27
|
+
// 把组件注册成web-component
|
|
28
|
+
Vue.customElement('x-add-native-form', XAddNativeForm)
|
|
29
|
+
|
|
30
|
+
Vue.config.productionTip = false
|
|
31
|
+
const message = Vue.prototype.$message
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
routerOptions,
|
|
35
|
+
modules,
|
|
36
|
+
i18n,
|
|
37
|
+
message,
|
|
38
|
+
bootstrap
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
|
7
|
-
"build": "
|
|
7
|
+
"build": "vue-cli-service build",
|
|
8
8
|
"test:unit": "vue-cli-service test:unit",
|
|
9
9
|
"lint": "vue-cli-service lint",
|
|
10
10
|
"build:preview": "vue-cli-service build --mode preview",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"babel-polyfill": "^6.26.0",
|
|
57
57
|
"compression-webpack-plugin": "^4.0.1",
|
|
58
58
|
"deepmerge": "^4.3.1",
|
|
59
|
+
"document-register-element": "^1.14.10",
|
|
59
60
|
"eslint": "^6.8.0",
|
|
60
61
|
"eslint-plugin-import": "^2.26.0",
|
|
61
62
|
"eslint-plugin-node": "^11.1.0",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"script-loader": "^0.7.2",
|
|
68
69
|
"style-resources-loader": "^1.5.0",
|
|
69
70
|
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
71
|
+
"vue-custom-element": "^3.3.0",
|
|
70
72
|
"vue-template-compiler": "2.6.14",
|
|
71
73
|
"vuepress": "^1.9.9",
|
|
72
74
|
"webpack": "^4.46.0",
|
|
@@ -196,7 +196,7 @@ export default {
|
|
|
196
196
|
if (value !== '') {
|
|
197
197
|
const logicName = this.attr.keyName
|
|
198
198
|
const logic = logicName.substring(6)
|
|
199
|
-
post('/api/
|
|
199
|
+
post('/api/system/logic/' + logic, value).then(res => {
|
|
200
200
|
callback(res)
|
|
201
201
|
})
|
|
202
202
|
}
|