centaline-data-driven-v3 0.0.89 → 0.0.91
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/dist/centaline-data-driven-v3.umd.js +135 -135
- package/package.json +1 -1
- package/src/assets/commonApp.css +1 -0
- package/src/components/Layout/LayoutMore.vue +2 -1
- package/src/components/app/ComboBox.vue +3 -3
- package/src/components/app/Form.vue +16 -19
- package/src/components/app/FormList.vue +20 -0
- package/src/components/app/PhotoSelectList.vue +17 -6
- package/src/components/app/SearchList/SearchTable.vue +36 -20
- package/src/components/app/Span.vue +2 -2
- package/src/components/app/TextBox.vue +1 -1
- package/src/components/app/dialog.vue +1 -1
- package/src/components/app/searchScreen.vue +53 -28
- package/src/components/common/iframe.vue +4 -1
- package/src/components/web/AIChat.vue +2 -2
- package/src/components/web/ComboBox.vue +15 -6
- package/src/components/web/File.vue +16 -4
- package/src/components/web/Form.vue +27 -7
- package/src/components/web/FormList.vue +55 -28
- package/src/components/web/MapBaidu.vue +10 -2
- package/src/components/web/PhotoSelect.vue +10 -2
- package/src/components/web/Progress.vue +17 -3
- package/src/components/web/SearchList/SearchTable.vue +15 -5
- package/src/components/web/SearchList.vue +5 -4
- package/src/components/web/SearchScreen.vue +16 -6
- package/src/components/web/Span.vue +2 -2
- package/src/components/web/Tree/Tree.vue +11 -4
- package/src/components/web/Tree.vue +11 -2
- package/src/components/web/ViewerFile.vue +7 -2
- package/src/components/web/appContainer.vue +4 -1
- package/src/components/web/dialog.vue +5 -2
- package/src/components/web/other/PopupSearchListTable.vue +6 -1
- package/src/components/web/photo.vue +16 -3
- package/src/loader/src/CheckBoxList.js +18 -7
- package/src/loader/src/Field.js +5 -0
- package/src/loader/src/Form.js +24 -14
- package/src/loader/src/SearchScreen.js +447 -1
- package/src/main.js +3 -3
- package/src/utils/common.js +4 -1
- package/src/utils/mixins.js +13 -21
- package/src/utils/request.js +10 -5
- package/src/views/SearchList.vue +6 -6
package/src/main.js
CHANGED
|
@@ -30,10 +30,10 @@ app.use(centaline, {
|
|
|
30
30
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
31
31
|
|
|
32
32
|
flagRouterSelf: true,
|
|
33
|
-
flagApp:
|
|
33
|
+
flagApp: true,//是否app端
|
|
34
34
|
zindex: 999,
|
|
35
35
|
showRequestSuccessMessage: true,
|
|
36
|
-
showRequestErrorMessage:
|
|
36
|
+
showRequestErrorMessage: false,
|
|
37
37
|
language: 'HK',
|
|
38
38
|
handler: {
|
|
39
39
|
// 打开tab页
|
|
@@ -68,7 +68,7 @@ app.use(centaline, {
|
|
|
68
68
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
70
|
//authObject: '{token:"1-bce18a8d-21f0-4022-a6ca-450de105cafc"}',
|
|
71
|
-
authObject: '{EmpID:"
|
|
71
|
+
authObject: '{EmpID:"Token_19b970bd-bd37-4ded-853c-c0c001270a60",MachineCode:"7c4b2ffd-920a-462c-a586-37bbfb45c4fe",SSO_Token:"SSOToken_19b970bd-bd37-4ded-853c-c0c001270a60",Platform:"IOS"}',
|
|
72
72
|
};
|
|
73
73
|
},
|
|
74
74
|
getToken() {
|
package/src/utils/common.js
CHANGED
|
@@ -285,7 +285,10 @@ const common = {
|
|
|
285
285
|
showDialog({ title: '提示', message: message, closeOnClickOverlay: true, confirmButtonText: this.LocalizedString('确定', '確認'), className: 'showDialogMessage' });
|
|
286
286
|
}
|
|
287
287
|
else {
|
|
288
|
-
showToast(
|
|
288
|
+
showToast({
|
|
289
|
+
message: message,
|
|
290
|
+
duration: 3000,
|
|
291
|
+
});
|
|
289
292
|
}
|
|
290
293
|
|
|
291
294
|
}
|
package/src/utils/mixins.js
CHANGED
|
@@ -144,7 +144,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
144
144
|
//action有值,提交到后台
|
|
145
145
|
if (field.action) {
|
|
146
146
|
if (common.flagApp()) {
|
|
147
|
-
showLoadingToast({ message:
|
|
147
|
+
showLoadingToast({ message:common.LocalizedString('正在处理', '正在處理') , forbidClick: true, duration: 100000 });
|
|
148
148
|
}
|
|
149
149
|
field.disabled = true;//提交按钮禁用
|
|
150
150
|
model.pageDisabled = true;
|
|
@@ -164,9 +164,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
164
164
|
progressKey: res.content.key,
|
|
165
165
|
progressType: field.isExport ? 'export' : 'import',
|
|
166
166
|
onFinished(data) {
|
|
167
|
-
if (common.flagApp()) {
|
|
168
|
-
closeToast()
|
|
169
|
-
}
|
|
170
167
|
field.disabled = false;
|
|
171
168
|
model.pageDisabled = false;
|
|
172
169
|
common.closeDialog(dialogOption);
|
|
@@ -197,9 +194,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
197
194
|
model.$vue.emit('submit', { formData: model, responseData: data });
|
|
198
195
|
},
|
|
199
196
|
onError(data) {
|
|
200
|
-
if (common.flagApp()) {
|
|
201
|
-
closeToast()
|
|
202
|
-
}
|
|
203
197
|
field.disabled = false;
|
|
204
198
|
model.pageDisabled = false;
|
|
205
199
|
common.closeDialog(dialogOption);
|
|
@@ -231,9 +225,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
231
225
|
progressKey: res202.content.key,
|
|
232
226
|
progressType: field.isExport ? 'export' : 'import',
|
|
233
227
|
onFinished(data) {
|
|
234
|
-
if (common.flagApp()) {
|
|
235
|
-
closeToast()
|
|
236
|
-
}
|
|
237
228
|
field.disabled = false;
|
|
238
229
|
model.pageDisabled = false;
|
|
239
230
|
common.closeDialog(dialogOption);
|
|
@@ -264,9 +255,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
264
255
|
model.$vue.emit('submit', { formData: model, responseData: data });
|
|
265
256
|
},
|
|
266
257
|
onError(data) {
|
|
267
|
-
if (common.flagApp()) {
|
|
268
|
-
closeToast()
|
|
269
|
-
}
|
|
270
258
|
field.disabled = false;
|
|
271
259
|
model.pageDisabled = false;
|
|
272
260
|
common.closeDialog(dialogOption);
|
|
@@ -280,9 +268,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
280
268
|
}
|
|
281
269
|
});
|
|
282
270
|
}).catch(() => {
|
|
283
|
-
if (common.flagApp()) {
|
|
284
|
-
closeToast()
|
|
285
|
-
}
|
|
286
271
|
field.disabled = false;
|
|
287
272
|
model.pageDisabled = false;
|
|
288
273
|
});
|
|
@@ -291,9 +276,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
291
276
|
}
|
|
292
277
|
else {
|
|
293
278
|
field.doAction(model.$vue.getFormObj(), (data) => {
|
|
294
|
-
if (common.flagApp()) {
|
|
295
|
-
closeToast()
|
|
296
|
-
}
|
|
297
279
|
field.disabled = false;
|
|
298
280
|
model.pageDisabled = false;
|
|
299
281
|
if (data.rtnCode === Enum.ReturnCode.Successful) {
|
|
@@ -442,12 +424,22 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
442
424
|
common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
|
|
443
425
|
}
|
|
444
426
|
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
445
|
-
|
|
427
|
+
if(common.getDataDrivenOpts().handler.openUrlInBrowse){
|
|
428
|
+
common.getDataDrivenOpts().handler.openUrlInBrowse(submitData[field.submitFormField]);
|
|
429
|
+
}
|
|
430
|
+
else{
|
|
431
|
+
window.open(submitData[field.submitFormField], "_blank");
|
|
432
|
+
}
|
|
446
433
|
}
|
|
447
434
|
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
448
435
|
submitData = field.getActionPara(submitData).para;
|
|
449
436
|
let query = common.objectToQueryStr(submitData);
|
|
450
|
-
|
|
437
|
+
if(common.getDataDrivenOpts().handler.openUrlInBrowse){
|
|
438
|
+
common.getDataDrivenOpts().handler.openUrlInBrowse(action + query);
|
|
439
|
+
}
|
|
440
|
+
else{
|
|
441
|
+
window.open(action + query, "_blank");
|
|
442
|
+
}
|
|
451
443
|
}
|
|
452
444
|
else if (field.isUrlInSystemTab) {//外部框架tab页打开URl
|
|
453
445
|
submitData = field.getActionPara(submitData).para;
|
package/src/utils/request.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Axios from 'axios';
|
|
2
2
|
import Enum from './Enum';
|
|
3
3
|
import common from './common';
|
|
4
|
+
import { closeToast } from "vant";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
Axios.defaults.headers.post['Content-Type'] = 'application/json';
|
|
@@ -15,7 +16,7 @@ const request = {
|
|
|
15
16
|
params = params.para;
|
|
16
17
|
}
|
|
17
18
|
else if (common.flagRouterSelf()) {
|
|
18
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') +
|
|
19
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
|
|
19
20
|
params = params.para;
|
|
20
21
|
}
|
|
21
22
|
return Axios.get(url, params, {
|
|
@@ -34,7 +35,7 @@ const request = {
|
|
|
34
35
|
params = params.para;
|
|
35
36
|
}
|
|
36
37
|
else if (common.flagRouterSelf()) {
|
|
37
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') +
|
|
38
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
|
|
38
39
|
params = params.para;
|
|
39
40
|
}
|
|
40
41
|
return Axios.post(url, params, {
|
|
@@ -48,6 +49,10 @@ const request = {
|
|
|
48
49
|
);
|
|
49
50
|
},
|
|
50
51
|
postThenHandler: function (response, scripts) {
|
|
52
|
+
//移动端请求完 关闭正在处理弹层
|
|
53
|
+
if (common.flagApp()) {
|
|
54
|
+
closeToast()
|
|
55
|
+
}
|
|
51
56
|
var data = response.data;
|
|
52
57
|
if (typeof common.getDataDrivenOpts().handler.requestComplete === 'function') {
|
|
53
58
|
common.getDataDrivenOpts().handler.requestComplete(response);
|
|
@@ -127,7 +132,7 @@ const request = {
|
|
|
127
132
|
params = params.para;
|
|
128
133
|
}
|
|
129
134
|
else if (common.flagRouterSelf()) {
|
|
130
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action.charAt(0)=='/'? params.action.substr(1):params.action);
|
|
135
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
|
|
131
136
|
params = params.para;
|
|
132
137
|
}
|
|
133
138
|
return Axios.post(url, params, {
|
|
@@ -150,7 +155,7 @@ const request = {
|
|
|
150
155
|
params = params.para;
|
|
151
156
|
}
|
|
152
157
|
else if (common.flagRouterSelf()) {
|
|
153
|
-
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0)=='/'? params.action.substr(1):params.action);
|
|
158
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
|
|
154
159
|
params = params.para;
|
|
155
160
|
}
|
|
156
161
|
return Axios.post(url, params, {
|
|
@@ -175,7 +180,7 @@ const request = {
|
|
|
175
180
|
params = params.para;
|
|
176
181
|
}
|
|
177
182
|
else if (common.flagRouterSelf()) {
|
|
178
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') +
|
|
183
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
|
|
179
184
|
params = params.para;
|
|
180
185
|
}
|
|
181
186
|
return Axios.post(url, params, {
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
4
4
|
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
|
-
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
5
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
6
6
|
|
|
7
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
|
-
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
|
|
7
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist> -->
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
12
|
-
:searchDataApi="'/
|
|
11
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/AttendanceClassList/getLayoutOfSearch'"
|
|
12
|
+
:searchDataApi="'/AttendanceClassList/getListOfSearchModel'"></ct-searchlist> -->
|
|
13
13
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
14
14
|
|
|
15
15
|
</div>
|