centaline-data-driven-v3 0.0.44 → 0.0.45
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 +81 -81
- package/package.json +1 -1
- package/src/components/app/FormList.vue +1 -2
- package/src/components/app/searchScreen.vue +8 -5
- package/src/components/web/File.vue +92 -14
- package/src/components/web/SearchList/SearchStats.vue +18 -4
- package/src/components/web/SearchList/SearchTable.vue +5 -1
- package/src/components/web/SearchList.vue +10 -9
- package/src/components/web/photo.vue +101 -17
- package/src/loader/src/Form.js +0 -1
- package/src/main.js +1 -1
- package/src/utils/mixins.js +22 -0
- package/src/views/SearchList.vue +3 -2
package/src/utils/mixins.js
CHANGED
|
@@ -2,6 +2,7 @@ import { ref } from 'vue'
|
|
|
2
2
|
import Field from '@/loader/src/Field';
|
|
3
3
|
import common from './common';
|
|
4
4
|
import Enum from './Enum';
|
|
5
|
+
import { showLoadingToast,closeToast} from "vant";
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
//初始化数据
|
|
@@ -144,6 +145,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
144
145
|
if (verified) {
|
|
145
146
|
//action有值,提交到后台
|
|
146
147
|
if (field.action) {
|
|
148
|
+
if(common.flagApp()){
|
|
149
|
+
showLoadingToast({ message: '正在处理',forbidClick: true, duration: 100000 });
|
|
150
|
+
}
|
|
147
151
|
field.disabled = true;//提交按钮禁用
|
|
148
152
|
model.pageDisabled = true;
|
|
149
153
|
|
|
@@ -162,6 +166,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
162
166
|
progressKey: res.content.key,
|
|
163
167
|
progressType: field.isExport ? 'export' : 'import',
|
|
164
168
|
onFinished(data) {
|
|
169
|
+
if(common.flagApp()){
|
|
170
|
+
closeToast()
|
|
171
|
+
}
|
|
165
172
|
field.disabled = false;
|
|
166
173
|
model.pageDisabled = false;
|
|
167
174
|
common.closeDialog(dialogOption);
|
|
@@ -192,6 +199,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
192
199
|
model.$vue.emit('submit', { formData: model, responseData: data });
|
|
193
200
|
},
|
|
194
201
|
onError(data) {
|
|
202
|
+
if(common.flagApp()){
|
|
203
|
+
closeToast()
|
|
204
|
+
}
|
|
195
205
|
field.disabled = false;
|
|
196
206
|
model.pageDisabled = false;
|
|
197
207
|
common.closeDialog(dialogOption);
|
|
@@ -223,6 +233,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
223
233
|
progressKey: res202.content.key,
|
|
224
234
|
progressType: field.isExport ? 'export' : 'import',
|
|
225
235
|
onFinished(data) {
|
|
236
|
+
if(common.flagApp()){
|
|
237
|
+
closeToast()
|
|
238
|
+
}
|
|
226
239
|
field.disabled = false;
|
|
227
240
|
model.pageDisabled = false;
|
|
228
241
|
common.closeDialog(dialogOption);
|
|
@@ -253,6 +266,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
253
266
|
model.$vue.emit('submit', { formData: model, responseData: data });
|
|
254
267
|
},
|
|
255
268
|
onError(data) {
|
|
269
|
+
if(common.flagApp()){
|
|
270
|
+
closeToast()
|
|
271
|
+
}
|
|
256
272
|
field.disabled = false;
|
|
257
273
|
model.pageDisabled = false;
|
|
258
274
|
common.closeDialog(dialogOption);
|
|
@@ -266,6 +282,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
266
282
|
}
|
|
267
283
|
});
|
|
268
284
|
}).catch(() => {
|
|
285
|
+
if(common.flagApp()){
|
|
286
|
+
closeToast()
|
|
287
|
+
}
|
|
269
288
|
field.disabled = false;
|
|
270
289
|
model.pageDisabled = false;
|
|
271
290
|
});
|
|
@@ -274,6 +293,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
274
293
|
}
|
|
275
294
|
else {
|
|
276
295
|
field.doAction(model.$vue.getFormObj(), (data) => {
|
|
296
|
+
if(common.flagApp()){
|
|
297
|
+
closeToast()
|
|
298
|
+
}
|
|
277
299
|
field.disabled = false;
|
|
278
300
|
model.pageDisabled = false;
|
|
279
301
|
if (data.rtnCode === Enum.ReturnCode.Successful) {
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
4
|
-
:searchDataApi="'/
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
5
6
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
6
7
|
|
|
7
8
|
</div>
|