centaline-data-driven-v3 0.0.63 → 0.0.65
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 +80 -80
- package/package.json +1 -1
- package/src/components/app/PhotoSelectList.vue +3 -1
- package/src/components/app/ViewerFile.vue +8 -7
- package/src/components/web/Button.vue +8 -7
- package/src/components/web/Form.vue +150 -11
- package/src/components/web/FormList.vue +33 -2
- package/src/components/web/SearchList/SearchTable.vue +12 -3
- package/src/components/web/SearchScreen.vue +6 -1
- package/src/loader/src/Field.js +1 -1
- package/src/loader/src/File.js +1 -1
- package/src/loader/src/Form.js +4 -1
- package/src/loader/src/FormList.js +7 -1
- package/src/main.js +5 -5
- package/src/utils/common.js +0 -1
- package/src/utils/mixins.js +11 -13
- package/src/views/SearchList.vue +3 -3
package/src/utils/mixins.js
CHANGED
|
@@ -140,8 +140,6 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
140
140
|
verified = model.$vue.validExcute();
|
|
141
141
|
}
|
|
142
142
|
if (verified) {
|
|
143
|
-
|
|
144
|
-
|
|
145
143
|
if (verified) {
|
|
146
144
|
//action有值,提交到后台
|
|
147
145
|
if (field.action) {
|
|
@@ -189,7 +187,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
189
187
|
common.message(data.rtnMsg, 'success')
|
|
190
188
|
}
|
|
191
189
|
if (data.notification === Enum.ActionType.Router) {
|
|
192
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
190
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
193
191
|
&& (data.content.pageStyle === Enum.PageStyle.FormPageInLayer || data.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
194
192
|
}
|
|
195
193
|
else {
|
|
@@ -256,7 +254,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
256
254
|
common.message(data.rtnMsg, 'success')
|
|
257
255
|
}
|
|
258
256
|
if (data.notification === Enum.ActionType.Router) {
|
|
259
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
257
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
260
258
|
&& (data.content.pageStyle === Enum.PageStyle.FormPageInLayer || data.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
261
259
|
}
|
|
262
260
|
else {
|
|
@@ -300,21 +298,21 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
300
298
|
model.pageDisabled = false;
|
|
301
299
|
if (data.rtnCode === Enum.ReturnCode.Successful) {
|
|
302
300
|
if (data.notification === Enum.ActionType.Router) {
|
|
303
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
301
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
304
302
|
&& (data.content.pageStyle === Enum.PageStyle.FormPageInLayer || data.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
305
303
|
}
|
|
306
304
|
else {
|
|
307
305
|
model.$vue.clickHandler(model.getRtnRouter(data.content), null)
|
|
308
306
|
}
|
|
309
307
|
}
|
|
310
|
-
if (model.
|
|
308
|
+
if (model.flagAlertCloseWindowAfterSave) {
|
|
311
309
|
common.confirm('操作成功,是否关闭本页面?', '提示', {
|
|
312
310
|
confirmButtonText: '确定',
|
|
313
311
|
cancelButtonText: '取消',
|
|
314
312
|
type: 'warning'
|
|
315
313
|
}).then(() => {
|
|
316
314
|
//如果没有弹框 则关闭tab页
|
|
317
|
-
if (common.dialogList && common.dialogList.List.length === 0) {
|
|
315
|
+
if (common.dialogList && common.dialogList.List.value.length === 0) {
|
|
318
316
|
if (typeof common.getDataDrivenOpts().handler.closeTab === 'function') {
|
|
319
317
|
common.getDataDrivenOpts().handler.closeTab(data);
|
|
320
318
|
}
|
|
@@ -347,7 +345,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
347
345
|
field.doAction(model.$vue.getFormObj({ flagHaveAlert: '1' }), (res) => {
|
|
348
346
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
349
347
|
if (res.notification === Enum.ActionType.Router) {
|
|
350
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
348
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
351
349
|
&& (res.content.pageStyle === Enum.PageStyle.FormPageInLayer || res.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
352
350
|
}
|
|
353
351
|
else {
|
|
@@ -1008,7 +1006,7 @@ export function RouterMouseenterHandler(field, submitData, action, model, source
|
|
|
1008
1006
|
common.message(data.rtnMsg, 'success')
|
|
1009
1007
|
}
|
|
1010
1008
|
if (data.notification === Enum.ActionType.Router) {
|
|
1011
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
1009
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
1012
1010
|
&& (data.content.pageStyle === Enum.PageStyle.FormPageInLayer || data.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
1013
1011
|
}
|
|
1014
1012
|
else {
|
|
@@ -1069,7 +1067,7 @@ export function RouterMouseenterHandler(field, submitData, action, model, source
|
|
|
1069
1067
|
common.message(data.rtnMsg, 'success')
|
|
1070
1068
|
}
|
|
1071
1069
|
if (data.notification === Enum.ActionType.Router) {
|
|
1072
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
1070
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
1073
1071
|
&& (data.content.pageStyle === Enum.PageStyle.FormPageInLayer || data.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
1074
1072
|
}
|
|
1075
1073
|
else {
|
|
@@ -1111,14 +1109,14 @@ export function RouterMouseenterHandler(field, submitData, action, model, source
|
|
|
1111
1109
|
model.$vue.clickHandler(model.getRtnRouter(data.content), null)
|
|
1112
1110
|
}
|
|
1113
1111
|
}
|
|
1114
|
-
if (model.
|
|
1112
|
+
if (model.flagAlertCloseWindowAfterSave) {
|
|
1115
1113
|
common.confirm('操作成功,是否关闭本页面?', '提示', {
|
|
1116
1114
|
confirmButtonText: '确定',
|
|
1117
1115
|
cancelButtonText: '取消',
|
|
1118
1116
|
type: 'warning'
|
|
1119
1117
|
}).then(() => {
|
|
1120
1118
|
//如果没有弹框 则关闭tab页
|
|
1121
|
-
if (common.dialogList && common.dialogList.List.length === 0) {
|
|
1119
|
+
if (common.dialogList && common.dialogList.List.value.length === 0) {
|
|
1122
1120
|
if (typeof common.getDataDrivenOpts().handler.closeTab === 'function') {
|
|
1123
1121
|
common.getDataDrivenOpts().handler.closeTab(data);
|
|
1124
1122
|
}
|
|
@@ -1151,7 +1149,7 @@ export function RouterMouseenterHandler(field, submitData, action, model, source
|
|
|
1151
1149
|
field.doAction(model.$vue.getFormObj({ flagHaveAlert: '1' }), (res) => {
|
|
1152
1150
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
1153
1151
|
if (res.notification === Enum.ActionType.Router) {
|
|
1154
|
-
if (common.dialogList && common.dialogList.List.length > 0
|
|
1152
|
+
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
1155
1153
|
&& (res.content.pageStyle === Enum.PageStyle.FormPageInLayer || res.content.pageStyle === Enum.PageStyle.SearchPageInLayer)) {
|
|
1156
1154
|
}
|
|
1157
1155
|
else {
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,8 +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="'/
|
|
5
|
-
:searchStatsApi="'/
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
|
+
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
6
6
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
7
7
|
|
|
8
8
|
</div>
|