cloud-web-corejs-haier 1.0.5 → 1.0.7
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/package.json +7 -4
- package/src/App.vue +30 -34
- package/src/api/user.js +8 -0
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +1 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +6 -2
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelExport/index.js +1 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/filterDialog.vue +45 -21
- package/src/components/fileLibrary/index.vue +579 -238
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +12 -12
- package/src/components/tempStorage/index.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/wf/content.vue +32 -36
- package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
- package/src/components/wf/setCandidateDialog2.vue +76 -66
- package/src/components/wf/wf.js +2176 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
- package/src/components/wf/wfStartDialog.vue +6 -10
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +132 -118
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
- package/src/components/xform/form-render/index.vue +8 -0
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3496 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/format.js +14 -4
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/index.js +215 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/Sidebar/default.vue +1423 -1266
- package/src/layout/components/TagsView/index.vue +37 -11
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/table/index.js +151 -0
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +3 -8
- package/src/store/getters.js +24 -23
- package/src/store/modules/user.js +1 -30
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/config_manage/list.vue +36 -19
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +29 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/edit.vue +13 -0
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +667 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
- package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/table_model/edit.vue +345 -304
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
- package/src/views/bd/setting/table_model/mixins/list.js +428 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -116
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/common_attribute/list.vue +4 -1
- package/src/views/user/extend_datasource/dialog.vue +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +6 -5
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +2 -6
- package/src/views/user/outLink/index.vue +57 -18
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +114 -4
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/list.vue +652 -582
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +137 -28
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
- package/src/views/user/wf/wf_obj_config/list.vue +84 -78
- package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
- package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
- package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
- package/src/views/user/login/index2.vue +0 -131
package/src/index.js
CHANGED
|
@@ -1,190 +1,215 @@
|
|
|
1
|
-
/**version-1.0*/
|
|
2
|
-
import Vue from 'vue';
|
|
3
|
-
import Cookies from 'js-cookie';
|
|
4
|
-
import 'normalize.css/normalize.css'; // a modern alternative to CSS resets
|
|
5
|
-
import Element from 'element-ui';
|
|
6
|
-
import '@/styles/element-variables.scss';
|
|
7
|
-
import '@/styles/index.scss'; // global css
|
|
8
|
-
|
|
9
|
-
import App from '@base/App';
|
|
10
|
-
import store from '@base/store';
|
|
11
|
-
import router from '@base/router';
|
|
12
|
-
|
|
13
|
-
import '@/icons'; // icon
|
|
14
|
-
import '@base/permission'; // permission control
|
|
15
|
-
|
|
16
|
-
import * as filters from '@base/filters'; // global filters
|
|
17
|
-
|
|
18
|
-
// main.js 文件添加以下代码
|
|
19
|
-
|
|
20
|
-
import BaseKeepAlive from '@base/utils/keepAlive.js'
|
|
21
|
-
|
|
22
|
-
Vue.component('BaseKeepAlive', BaseKeepAlive)
|
|
23
|
-
|
|
24
|
-
import VXETable from 'vxe-table';
|
|
25
|
-
import 'vxe-table/lib/style.css';
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
import
|
|
56
|
-
|
|
57
|
-
Vue.use(
|
|
58
|
-
|
|
59
|
-
import
|
|
60
|
-
|
|
61
|
-
Vue.use(
|
|
62
|
-
|
|
63
|
-
import
|
|
64
|
-
|
|
65
|
-
Vue.use(
|
|
66
|
-
|
|
67
|
-
import
|
|
68
|
-
|
|
69
|
-
Vue.use(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
import
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Vue.component(
|
|
135
|
-
|
|
136
|
-
Vue.component('
|
|
137
|
-
|
|
138
|
-
Vue.component('
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Vue.component(
|
|
143
|
-
|
|
144
|
-
import
|
|
145
|
-
|
|
146
|
-
Vue.
|
|
147
|
-
|
|
148
|
-
import
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Vue.use(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
1
|
+
/**version-1.0*/
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
import Cookies from 'js-cookie';
|
|
4
|
+
import 'normalize.css/normalize.css'; // a modern alternative to CSS resets
|
|
5
|
+
import Element from 'element-ui';
|
|
6
|
+
import '@/styles/element-variables.scss';
|
|
7
|
+
import '@/styles/index.scss'; // global css
|
|
8
|
+
|
|
9
|
+
import App from '@base/App';
|
|
10
|
+
import store from '@base/store';
|
|
11
|
+
import router from '@base/router';
|
|
12
|
+
|
|
13
|
+
import '@/icons'; // icon
|
|
14
|
+
import '@base/permission'; // permission control
|
|
15
|
+
|
|
16
|
+
import * as filters from '@base/filters'; // global filters
|
|
17
|
+
|
|
18
|
+
// main.js 文件添加以下代码
|
|
19
|
+
|
|
20
|
+
import BaseKeepAlive from '@base/utils/keepAlive.js'
|
|
21
|
+
|
|
22
|
+
Vue.component('BaseKeepAlive', BaseKeepAlive)
|
|
23
|
+
|
|
24
|
+
import VXETable from 'vxe-table';
|
|
25
|
+
import 'vxe-table/lib/style.css';
|
|
26
|
+
|
|
27
|
+
// 引入扩展插件
|
|
28
|
+
import '@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js'
|
|
29
|
+
import '@base/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css'
|
|
30
|
+
|
|
31
|
+
/* // 设置授权信息
|
|
32
|
+
VXETable.setup({
|
|
33
|
+
// showAuthLog: true, // 是否在控制台显示授权信息,专业版支持关闭
|
|
34
|
+
// authId: 'gbeumewkoyt2rhf9', // 获取授权后在官网登录后进入“用户中心”查看
|
|
35
|
+
authId: 'gbeumewkoyt2rhft', // 获取授权后在官网登录后进入“用户中心”查看
|
|
36
|
+
// onAuth (e) {
|
|
37
|
+
// // 打印授权状态
|
|
38
|
+
// console.log(e)
|
|
39
|
+
// }
|
|
40
|
+
}) */
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
import Vab from '@base/utils/vab';
|
|
45
|
+
|
|
46
|
+
Vue.use(Vab);
|
|
47
|
+
|
|
48
|
+
Vue.use(VXETable);
|
|
49
|
+
|
|
50
|
+
/* import tablePluns from "@/mixins/table/index.js"
|
|
51
|
+
VXETable.use(tablePluns) */
|
|
52
|
+
|
|
53
|
+
import '@base/components/table/index.js';
|
|
54
|
+
|
|
55
|
+
import drag from '@base/directive/el-drag-dialog/index.js';
|
|
56
|
+
|
|
57
|
+
Vue.use(drag.install);
|
|
58
|
+
|
|
59
|
+
import elDialogCenter from '@base/directive/el-dialog-center/index.js';
|
|
60
|
+
|
|
61
|
+
Vue.use(elDialogCenter.install);
|
|
62
|
+
|
|
63
|
+
import ErroreBox from '@base/components/errorMsg/index.js';
|
|
64
|
+
|
|
65
|
+
Vue.use(ErroreBox);
|
|
66
|
+
|
|
67
|
+
import ExcelExport from '@base/components/excelExport/index.js';
|
|
68
|
+
|
|
69
|
+
Vue.use(ExcelExport);
|
|
70
|
+
|
|
71
|
+
import ExcelImport from '@base/components/excelImport/index.js';
|
|
72
|
+
|
|
73
|
+
Vue.use(ExcelImport);
|
|
74
|
+
|
|
75
|
+
import ConfirmDialog from '@base/components/confirmDialog/index.js';
|
|
76
|
+
|
|
77
|
+
Vue.use(ConfirmDialog);
|
|
78
|
+
|
|
79
|
+
import baseAlert from '@base/components/baseAlert/index.js';
|
|
80
|
+
|
|
81
|
+
Vue.use(baseAlert);
|
|
82
|
+
|
|
83
|
+
import permission from '@base/directive/permission';
|
|
84
|
+
|
|
85
|
+
Vue.use(permission);
|
|
86
|
+
|
|
87
|
+
import VabUpload from '@base/components/VabUpload/index.js';
|
|
88
|
+
|
|
89
|
+
Vue.use(VabUpload);
|
|
90
|
+
|
|
91
|
+
Vue.component('baseUpload', () => import('@base/components/VabUpload/view.vue'));
|
|
92
|
+
|
|
93
|
+
import baseAttachment from '@base/components/baseAttachment/install';
|
|
94
|
+
|
|
95
|
+
Vue.use(baseAttachment);
|
|
96
|
+
Vue.component('attachmentShowList', () => import('@base/components/baseAttachment/showList'));
|
|
97
|
+
|
|
98
|
+
import '@base/resources/js/base/common.js';
|
|
99
|
+
|
|
100
|
+
import vxeFilter from '@base/components/table/vxeFilter/index.js';
|
|
101
|
+
|
|
102
|
+
Vue.use(vxeFilter);
|
|
103
|
+
|
|
104
|
+
import baseTableExport from "@base/components/excelExport/button.vue";
|
|
105
|
+
|
|
106
|
+
Vue.component(baseTableExport.name, baseTableExport);
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/* Vue.component('extendedProperties', () => import('@base/components/extendedProperties/view.vue')); */
|
|
110
|
+
|
|
111
|
+
import LimitNumber from '@base/directive/LimitNumber/index.js';
|
|
112
|
+
|
|
113
|
+
Vue.use(LimitNumber);
|
|
114
|
+
|
|
115
|
+
import baseInputNumber from '@base/components/baseInputNumber/index.vue'
|
|
116
|
+
|
|
117
|
+
Vue.component(baseInputNumber.name, baseInputNumber);
|
|
118
|
+
|
|
119
|
+
import elReadonly from '@base/directive/el-readonly/index.js';
|
|
120
|
+
|
|
121
|
+
Vue.use(elReadonly);
|
|
122
|
+
|
|
123
|
+
/*import cnPrint from "@base/components/cnPrint/index.js"
|
|
124
|
+
|
|
125
|
+
Vue.use(cnPrint);*/
|
|
126
|
+
|
|
127
|
+
/* Vue.component('oplogTable', () => import('@base/components/oplogTable/index.vue')); */
|
|
128
|
+
import oplogTable from '@base/components/oplogTable/index.vue'
|
|
129
|
+
|
|
130
|
+
Vue.component(oplogTable.name, oplogTable);
|
|
131
|
+
|
|
132
|
+
import baseInputBatch from '@base/components/baseInputBatch/index.vue'
|
|
133
|
+
|
|
134
|
+
Vue.component(baseInputBatch.name, baseInputBatch);
|
|
135
|
+
|
|
136
|
+
Vue.component('baseInputExport', () => import('@base/components/baseInputExport/index.vue'));
|
|
137
|
+
|
|
138
|
+
Vue.component('advancedSearchDialog', () => import('@base/components/advancedSearchDialog/index.vue'));
|
|
139
|
+
|
|
140
|
+
import baseTabs from '@base/components/baseTabs/index.vue'
|
|
141
|
+
|
|
142
|
+
Vue.component(baseTabs.name, baseTabs);
|
|
143
|
+
|
|
144
|
+
import baseTabPane from '@base/components/baseTabs/baseTabPane.vue'
|
|
145
|
+
|
|
146
|
+
Vue.component(baseTabPane.name, baseTabPane);
|
|
147
|
+
|
|
148
|
+
import vb_tabs from "@base/components/vb-tabs/index.vue";
|
|
149
|
+
import vb_tab_pane from "@base/components/vb-tabs/tab-pane.vue";
|
|
150
|
+
import xTabs from "@base/components/vb-tabs/x-tabs.vue";
|
|
151
|
+
|
|
152
|
+
Vue.component(vb_tabs.name, vb_tabs);
|
|
153
|
+
Vue.component(vb_tab_pane.name, vb_tab_pane);
|
|
154
|
+
Vue.component(xTabs.name, xTabs);
|
|
155
|
+
|
|
156
|
+
Vue.component('status-tag', () => import('@base/components/statusTag/index.vue'));
|
|
157
|
+
|
|
158
|
+
Vue.component('CodeEditor', () => import('@base/components/code-editor/index.vue'));
|
|
159
|
+
|
|
160
|
+
Vue.component('scriptDescriptionButton', () => import('@base/components/scriptDescription/button'));
|
|
161
|
+
|
|
162
|
+
Vue.component('scriptTestButton', () => import('@base/components/scriptTest/button'));
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
import baseTextarea from '@base/components/base-textarea/index.vue'
|
|
166
|
+
|
|
167
|
+
Vue.component(baseTextarea.name, baseTextarea);
|
|
168
|
+
|
|
169
|
+
import jsonImport from '@base/components/jsonImport/index.js';
|
|
170
|
+
|
|
171
|
+
Vue.use(jsonImport);
|
|
172
|
+
|
|
173
|
+
import langImport from '@base/components/langImport/index.js';
|
|
174
|
+
|
|
175
|
+
Vue.use(langImport);
|
|
176
|
+
|
|
177
|
+
//vform
|
|
178
|
+
// import '@base/components/xform/utils/directive'
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
import i18n from '@base/lang/index.js'
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* If you don't want to use mock-server
|
|
185
|
+
* you want to use MockJs for mock api
|
|
186
|
+
* you can execute: mockXHR()
|
|
187
|
+
*
|
|
188
|
+
* Currently MockJs will be used in the production environment,
|
|
189
|
+
* please remove it before going online ! ! !
|
|
190
|
+
*/
|
|
191
|
+
if (process.env.NODE_ENV === 'production') {
|
|
192
|
+
/* const { mockXHR } = require('../mock')
|
|
193
|
+
mockXHR() */
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
Vue.use(Element, {
|
|
197
|
+
size: Cookies.get('size') || 'medium' // set element-ui default size
|
|
198
|
+
// locale: enLang // 如果使用中文,无需设置,请删除
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
// register global utility filters
|
|
202
|
+
Object.keys(filters).forEach(key => {
|
|
203
|
+
Vue.filter(key, filters[key]);
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
Vue.config.productionTip = false;
|
|
207
|
+
|
|
208
|
+
let vue = new Vue({
|
|
209
|
+
el: '#app',
|
|
210
|
+
router,
|
|
211
|
+
store,
|
|
212
|
+
i18n,
|
|
213
|
+
render: h => h(App)
|
|
214
|
+
});
|
|
215
|
+
window.$vueRoot = vue;
|
package/src/lang/index.js
CHANGED
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import VueI18n from 'vue-i18n'
|
|
3
|
-
|
|
4
|
-
import enLocale from 'element-ui/lib/locale/lang/en'
|
|
5
|
-
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
|
|
6
|
-
import zhCN_vxe from 'vxe-table/lib/locale/lang/zh-CN'
|
|
7
|
-
import enUS_vxe from 'vxe-table/lib/locale/lang/en-US'
|
|
8
|
-
import VXETable from 'vxe-table'
|
|
9
|
-
import ElementLocale from 'element-ui/lib/locale'
|
|
10
|
-
import settingConfig from "@/settings";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
...
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import VueI18n from 'vue-i18n'
|
|
3
|
+
|
|
4
|
+
import enLocale from 'element-ui/lib/locale/lang/en'
|
|
5
|
+
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
|
|
6
|
+
import zhCN_vxe from 'vxe-table/lib/locale/lang/zh-CN'
|
|
7
|
+
import enUS_vxe from 'vxe-table/lib/locale/lang/en-US'
|
|
8
|
+
import VXETable from 'vxe-table'
|
|
9
|
+
import ElementLocale from 'element-ui/lib/locale'
|
|
10
|
+
import settingConfig from "@/settings";
|
|
11
|
+
|
|
12
|
+
import enLogin from "./locale/en/login.js"
|
|
13
|
+
import zhLogin from "./locale/zh/login.js"
|
|
14
|
+
|
|
15
|
+
Vue.use(VueI18n);
|
|
16
|
+
|
|
17
|
+
const messages = {
|
|
18
|
+
en: {
|
|
19
|
+
...enLocale,
|
|
20
|
+
...enUS_vxe,
|
|
21
|
+
...enLogin
|
|
22
|
+
},
|
|
23
|
+
zh: {
|
|
24
|
+
...zhLocale,
|
|
25
|
+
...zhCN_vxe,
|
|
26
|
+
...zhLogin
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/*const enLocaleMine = require.context('@/lang/locale/en', false, /\w+\.js/);
|
|
31
|
+
const zhLocaleMine = require.context('@/lang/locale/zh', false, /\w+\.js/);
|
|
32
|
+
|
|
33
|
+
zhLocaleMine.keys().map(fileName => {
|
|
34
|
+
let comp = zhLocaleMine(fileName).default;
|
|
35
|
+
Object.assign(messages["zh"], comp);
|
|
36
|
+
});
|
|
37
|
+
enLocaleMine.keys().map(fileName => {
|
|
38
|
+
let comp = enLocaleMine(fileName).default;
|
|
39
|
+
Object.assign(messages["en"], comp);
|
|
40
|
+
});*/
|
|
41
|
+
|
|
42
|
+
// Create VueI18n instance with options
|
|
43
|
+
let i18nLang = localStorage.getItem("i18n-lang");
|
|
44
|
+
const i18n = new VueI18n({
|
|
45
|
+
locale: i18nLang || settingConfig.languageCode || 'zh', // set locale
|
|
46
|
+
messages, // set locale messages
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
ElementLocale.i18n((key, value) => i18n.t(key, value));
|
|
50
|
+
|
|
51
|
+
VXETable.setup({
|
|
52
|
+
// 对组件内置的提示语进行国际化翻译
|
|
53
|
+
i18n: (key, args) => i18n.t(key, args)
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export default i18n;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"账号登录":"Account Login",
|
|
3
|
+
"请输入用户名":"Please enter a username",
|
|
4
|
+
"请输入密码":"Please enter a password",
|
|
5
|
+
"记住密码":"Remember password",
|
|
6
|
+
"登录":"Login",
|
|
7
|
+
"手机登录":"Phone Login",
|
|
8
|
+
"请输入手机号":"Please enter a phone number",
|
|
9
|
+
"请输入验证码":"Please enter a verification code",
|
|
10
|
+
"扫码登录":"Scan Login",
|
|
11
|
+
"扫一扫,登录系统":"Scan the QR code to log in to the system",
|
|
12
|
+
"二维码失效":"QR code expired",
|
|
13
|
+
"广州同望科技发展有限公司":"Guangzhou Tongwang Technology Development Co., Ltd.",
|
|
14
|
+
"获取验证码":"Get Verification Code",
|
|
15
|
+
"请输入手机号和验证码":"Please enter a phone number and verification code",
|
|
16
|
+
"请输入手机号":"Please enter a phone number",
|
|
17
|
+
"60秒后重新获取":"60 seconds after re-getting",
|
|
18
|
+
"{time}秒后重新获取":"{time} seconds after re-getting",
|
|
19
|
+
"登录成功":"Login Successful"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"账号登录":"账号登录",
|
|
3
|
+
"请输入用户名":"请输入用户名",
|
|
4
|
+
"请输入密码":"请输入密码",
|
|
5
|
+
"记住密码":"记住密码",
|
|
6
|
+
"登录":"登录",
|
|
7
|
+
"手机登录":"手机登录",
|
|
8
|
+
"请输入手机号":"请输入手机号",
|
|
9
|
+
"请输入验证码":"请输入验证码",
|
|
10
|
+
"扫码登录":"扫码登录",
|
|
11
|
+
"扫一扫,登录系统":"扫一扫,登录系统",
|
|
12
|
+
"二维码失效":"二维码失效",
|
|
13
|
+
"广州同望科技发展有限公司":"广州同望科技发展有限公司",
|
|
14
|
+
"获取验证码":"获取验证码",
|
|
15
|
+
"请输入手机号和验证码":"请输入手机号和验证码",
|
|
16
|
+
"请输入手机号":"请输入手机号",
|
|
17
|
+
"60秒后重新获取":"60秒后重新获取",
|
|
18
|
+
"{time}秒后重新获取":"{time}秒后重新获取",
|
|
19
|
+
"登录成功":"登录成功"
|
|
20
|
+
}
|