centaline-data-driven 1.3.2 → 1.3.5
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 +1 -1
- package/src/Form.vue +1 -1
- package/src/centaline/browseIframe/src/browseIframe.vue +2 -25
- package/src/centaline/dialogList/src/dialogList.vue +23 -1
- package/src/centaline/dynamicDetail/src/dynamicAlbums.vue +22 -9
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1282 -1030
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +8 -1
- package/src/centaline/dynamicFile/src/dynamicFile.vue +9 -9
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +12 -14
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +8 -8
- package/src/centaline/dynamicViewerFile/src/dynamicViewerImage.vue +7 -0
- package/src/centaline/dynamicViewerFile/src/dynamicViewerPDF.vue +3 -2
- package/src/centaline/loader/src/ctl/Detail.js +409 -385
- package/src/centaline/loader/src/ctl/Router.js +6 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -4,423 +4,447 @@ import Enum from './lib/Enum';
|
|
|
4
4
|
import common from '../../../common';
|
|
5
5
|
import Router from './Router';
|
|
6
6
|
import Vue from 'vue';
|
|
7
|
-
const Detail = function (source,para
|
|
7
|
+
const Detail = function (source, para, callBack) {
|
|
8
8
|
var init = function (data) {
|
|
9
9
|
var rtn = {
|
|
10
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
get label() {
|
|
59
|
-
return f.controlLabel + this.labelDelimiter || '';
|
|
60
|
-
},
|
|
61
|
-
get labelDelimiter() {
|
|
62
|
-
return f.labelDelimiter || '';
|
|
63
|
-
},
|
|
64
|
-
get value() {
|
|
65
|
-
return f.code1;
|
|
66
|
-
},
|
|
67
|
-
get unitName() {
|
|
68
|
-
if(this.value===undefined || this.value===''){
|
|
69
|
-
return '';
|
|
70
|
-
}
|
|
71
|
-
return f.unitName1;
|
|
72
|
-
},
|
|
73
|
-
}
|
|
74
|
-
rtn._fields1Dic[f.fieldName1] = base.copy(Base(f), col);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return rtn._fields1Dic;
|
|
78
|
-
},
|
|
79
|
-
get fields2Dic() {
|
|
80
|
-
if (rtn._fields2Dic !== null) {
|
|
81
|
-
return rtn._fields2Dic;
|
|
82
|
-
}
|
|
83
|
-
if (rtn.fields2) {
|
|
84
|
-
rtn._fields2Dic = [];
|
|
85
|
-
rtn.fields2.forEach((f) => {
|
|
86
|
-
let col = {
|
|
87
|
-
get label() {
|
|
88
|
-
return f.controlLabel + this.labelDelimiter || '';
|
|
89
|
-
},
|
|
90
|
-
get labelDelimiter() {
|
|
91
|
-
return f.labelDelimiter || '';
|
|
92
|
-
},
|
|
93
|
-
get value() {
|
|
94
|
-
let v=f.code1;
|
|
95
|
-
if(f.name1){
|
|
96
|
-
v=f.name1;
|
|
97
|
-
}
|
|
98
|
-
if(f.unitName1 && v){
|
|
99
|
-
v=v+f.unitName1;
|
|
100
|
-
}
|
|
101
|
-
return v;
|
|
102
|
-
},
|
|
103
|
-
get unitName() {
|
|
104
|
-
if(this.value===undefined || this.value===''){
|
|
105
|
-
return '';
|
|
106
|
-
}
|
|
107
|
-
return f.unitName1;
|
|
108
|
-
},
|
|
109
|
-
}
|
|
110
|
-
rtn._fields2Dic.push(base.copy(Base(f), col));
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
return rtn._fields2Dic;
|
|
114
|
-
},
|
|
115
|
-
get actionRouterLabel() {
|
|
116
|
-
if (rtn._actionRouterLabel !== null) {
|
|
117
|
-
return rtn._actionRouterLabel;
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
rtn._actionRouterLabel = [];
|
|
121
|
-
if (this.labels) {
|
|
122
|
-
this.labels.forEach((v) => {
|
|
123
|
-
var router = Router(v);
|
|
124
|
-
//router.is = "ct-btn";
|
|
125
|
-
//router.attrs = { size: "mini" }
|
|
126
|
-
rtn._actionRouterLabel.push(router);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
return rtn._actionRouterLabel;
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
get otherTradeActionRouter() {
|
|
133
|
-
if (rtn._otherTradeActionRouter !== null) {
|
|
134
|
-
return rtn._otherTradeActionRouter;
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
if (data.otherTradeActionRouter) {
|
|
138
|
-
var router = Router(data.otherTradeActionRouter);
|
|
139
|
-
router.is = "ct-btn";
|
|
140
|
-
router.attrs = { size: "mini" }
|
|
141
|
-
rtn._otherTradeActionRouter=router;
|
|
142
|
-
}
|
|
143
|
-
return rtn._otherTradeActionRouter;
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
get contactApiRouter() {
|
|
147
|
-
if (rtn._contactApiRouter !== null) {
|
|
148
|
-
return rtn._contactApiRouter;
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
if (data.contactApiRouter) {
|
|
152
|
-
var router = Router(data.contactApiRouter);
|
|
153
|
-
router.is = "ct-btn";
|
|
154
|
-
router.attrs = { size: "mini" }
|
|
155
|
-
rtn._contactApiRouter=router;
|
|
156
|
-
}
|
|
157
|
-
return rtn._contactApiRouter;
|
|
10
|
+
$vue: null,
|
|
11
|
+
_fields1Dic: null,//字典,方便取值,属性集合(用户固定部分)
|
|
12
|
+
_fields2Dic: null,//数组,方便遍历
|
|
13
|
+
_actionRouterLabel: null,//标签
|
|
14
|
+
_otherTradeActionRouter: null,//对应另外种交易的 router 如:本盘出售 则可能对应的出租的交易,没有则为空
|
|
15
|
+
_actionRouters: null,//页面上的动作行为
|
|
16
|
+
_actionRoutersMoreList: null,//页面上的更多动作行为
|
|
17
|
+
_actionRoutersSimple: null,//页面上的动作行为
|
|
18
|
+
_contactApiRouter: null,//查看联系人
|
|
19
|
+
_commissionApiRouter: null,//查看角色
|
|
20
|
+
detailHeight: 750,
|
|
21
|
+
midlWidth: 1200,
|
|
22
|
+
activeIndex1: '0',
|
|
23
|
+
activeIndex2: '0',
|
|
24
|
+
tags2Key: 0,
|
|
25
|
+
operationKey: 0,
|
|
26
|
+
_searchConditionApiTags1: null,
|
|
27
|
+
_searchDataApiTags1: null,
|
|
28
|
+
_paramDataTags1: null,
|
|
29
|
+
_operationApiRouter: null,
|
|
30
|
+
_operationList: null,
|
|
31
|
+
_operationRouters: [],
|
|
32
|
+
_commissionList: null,
|
|
33
|
+
_routerForNoMedia: null,//标签
|
|
34
|
+
get mediaAlbums() {
|
|
35
|
+
var Albums = [];
|
|
36
|
+
if (data.propertyAlbum && data.propertyAlbum.mediaAlbums.length > 0) {
|
|
37
|
+
Albums = data.propertyAlbum.mediaAlbums;
|
|
38
|
+
}
|
|
39
|
+
return Albums || [];
|
|
40
|
+
},
|
|
41
|
+
get noMediaUrl() {
|
|
42
|
+
var noCoverUrl = "";
|
|
43
|
+
if (data.propertyAlbum) {
|
|
44
|
+
noCoverUrl = data.propertyAlbum.noMediaUrl;
|
|
45
|
+
}
|
|
46
|
+
return noCoverUrl || "";
|
|
47
|
+
},
|
|
48
|
+
get routerForNoMedia() {
|
|
49
|
+
if (rtn._routerForNoMedia !== null) {
|
|
50
|
+
return rtn._routerForNoMedia;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
if (data.propertyAlbum && data.propertyAlbum.routerForNoMedia) {
|
|
54
|
+
var router = Router(data.propertyAlbum.routerForNoMedia);
|
|
55
|
+
router.is = "ct-btn";
|
|
56
|
+
router.attrs = { size: "mini" }
|
|
57
|
+
rtn._routerForNoMedia = router;
|
|
158
58
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
59
|
+
return rtn._routerForNoMedia;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
get title() {
|
|
63
|
+
return data.title;
|
|
64
|
+
},
|
|
65
|
+
get fields1() {
|
|
66
|
+
return data.fields1;
|
|
67
|
+
},
|
|
68
|
+
get fields2() {
|
|
69
|
+
return data.fields2;
|
|
70
|
+
},
|
|
71
|
+
get labels() {
|
|
72
|
+
return data.labels;
|
|
73
|
+
},
|
|
74
|
+
get fields1Dic() {
|
|
75
|
+
if (rtn._fields1Dic !== null) {
|
|
76
|
+
return rtn._fields1Dic;
|
|
77
|
+
}
|
|
78
|
+
rtn._fields1Dic = {};
|
|
79
|
+
if (rtn.fields1) {
|
|
80
|
+
rtn.fields1.forEach((f) => {
|
|
81
|
+
let col = {
|
|
82
|
+
get label() {
|
|
83
|
+
return f.controlLabel + this.labelDelimiter || '';
|
|
84
|
+
},
|
|
85
|
+
get labelDelimiter() {
|
|
86
|
+
return f.labelDelimiter || '';
|
|
87
|
+
},
|
|
88
|
+
get value() {
|
|
89
|
+
return f.code1;
|
|
90
|
+
},
|
|
91
|
+
get unitName() {
|
|
92
|
+
if (this.value === undefined || this.value === '') {
|
|
93
|
+
return '';
|
|
179
94
|
}
|
|
180
|
-
return
|
|
95
|
+
return f.unitName1;
|
|
96
|
+
},
|
|
181
97
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
98
|
+
rtn._fields1Dic[f.fieldName1] = base.copy(Base(f), col);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return rtn._fields1Dic;
|
|
102
|
+
},
|
|
103
|
+
get fields2Dic() {
|
|
104
|
+
if (rtn._fields2Dic !== null) {
|
|
105
|
+
return rtn._fields2Dic;
|
|
106
|
+
}
|
|
107
|
+
if (rtn.fields2) {
|
|
108
|
+
rtn._fields2Dic = [];
|
|
109
|
+
rtn.fields2.forEach((f) => {
|
|
110
|
+
let col = {
|
|
111
|
+
get label() {
|
|
112
|
+
return f.controlLabel + this.labelDelimiter || '';
|
|
113
|
+
},
|
|
114
|
+
get labelDelimiter() {
|
|
115
|
+
return f.labelDelimiter || '';
|
|
116
|
+
},
|
|
117
|
+
get value() {
|
|
118
|
+
let v = f.code1;
|
|
119
|
+
if (f.name1) {
|
|
120
|
+
v = f.name1;
|
|
198
121
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
var router = Router(v);
|
|
211
|
-
router.is = "ct-btn";
|
|
212
|
-
router.attrs = { size: "mini" }
|
|
213
|
-
if(router.show){
|
|
214
|
-
rtn._actionRoutersSimple.push(router);
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
return rtn._actionRoutersSimple;
|
|
122
|
+
if (f.unitName1 && v) {
|
|
123
|
+
v = v + f.unitName1;
|
|
124
|
+
}
|
|
125
|
+
return v;
|
|
126
|
+
},
|
|
127
|
+
get unitName() {
|
|
128
|
+
if (this.value === undefined || this.value === '') {
|
|
129
|
+
return '';
|
|
130
|
+
}
|
|
131
|
+
return f.unitName1;
|
|
132
|
+
},
|
|
219
133
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return rtn._searchDataApiTags1;
|
|
239
|
-
}
|
|
240
|
-
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
241
|
-
rtn._searchDataApiTags1= rtn.tags1[0].searchDataApiUrl;
|
|
242
|
-
return rtn._searchDataApiTags1;
|
|
134
|
+
rtn._fields2Dic.push(base.copy(Base(f), col));
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return rtn._fields2Dic;
|
|
138
|
+
},
|
|
139
|
+
get actionRouterLabel() {
|
|
140
|
+
if (rtn._actionRouterLabel !== null) {
|
|
141
|
+
return rtn._actionRouterLabel;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
rtn._actionRouterLabel = [];
|
|
145
|
+
if (this.labels) {
|
|
146
|
+
this.labels.forEach((v) => {
|
|
147
|
+
var router = Router(v);
|
|
148
|
+
//router.is = "ct-btn";
|
|
149
|
+
//router.attrs = { size: "mini" }
|
|
150
|
+
rtn._actionRouterLabel.push(router);
|
|
151
|
+
});
|
|
243
152
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
153
|
+
return rtn._actionRouterLabel;
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
get otherTradeActionRouter() {
|
|
157
|
+
if (rtn._otherTradeActionRouter !== null) {
|
|
158
|
+
return rtn._otherTradeActionRouter;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
if (data.otherTradeActionRouter) {
|
|
162
|
+
var router = Router(data.otherTradeActionRouter);
|
|
163
|
+
router.is = "ct-btn";
|
|
164
|
+
router.attrs = { size: "mini" }
|
|
165
|
+
rtn._otherTradeActionRouter = router;
|
|
251
166
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
167
|
+
return rtn._otherTradeActionRouter;
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
get contactApiRouter() {
|
|
171
|
+
if (rtn._contactApiRouter !== null) {
|
|
172
|
+
return rtn._contactApiRouter;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
if (data.contactApiRouter) {
|
|
176
|
+
var router = Router(data.contactApiRouter);
|
|
177
|
+
router.is = "ct-btn";
|
|
178
|
+
router.attrs = { size: "mini" }
|
|
179
|
+
rtn._contactApiRouter = router;
|
|
255
180
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
let action =rtn.tags2[i].searchDataApiUrl;
|
|
270
|
-
let para={};
|
|
271
|
-
if(rtn.tags2[i].paramData)para = JSON.parse(rtn.tags2[i].paramData);
|
|
272
|
-
Vue.prototype.$api.postHandler(common.globalUri(), { action: action,para:para}).then(
|
|
273
|
-
function (response) {
|
|
274
|
-
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
275
|
-
rtn.tags2[i].list=response.content;
|
|
276
|
-
rtn.tags2Key= rtn.tags2Key+1;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
);
|
|
181
|
+
return rtn._contactApiRouter;
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
get actionRouters() {
|
|
185
|
+
if (rtn._actionRouters !== null) {
|
|
186
|
+
return rtn._actionRouters;
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
if (data.actionRouters) {
|
|
190
|
+
rtn._actionRouters = [];
|
|
191
|
+
let indexMore = 1;
|
|
192
|
+
if (data.actionRouters.length <= 3) {
|
|
193
|
+
indexMore = 2;
|
|
280
194
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return rtn._operationApiRouter;
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
if (data.operationApiRouter) {
|
|
288
|
-
var router = Router(data.operationApiRouter);
|
|
195
|
+
data.actionRouters.forEach((v, i) => {
|
|
196
|
+
if (i <= indexMore) {
|
|
197
|
+
var router = Router(v);
|
|
289
198
|
router.is = "ct-btn";
|
|
290
199
|
router.attrs = { size: "mini" }
|
|
291
|
-
rtn.
|
|
292
|
-
|
|
293
|
-
return rtn._operationApiRouter;
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
get operationList() {
|
|
297
|
-
return rtn._operationList;
|
|
298
|
-
},
|
|
299
|
-
get operationRouters() {
|
|
300
|
-
return rtn._operationRouters;
|
|
301
|
-
},
|
|
302
|
-
getOperationList(){
|
|
303
|
-
if (rtn._operationList !==null){
|
|
304
|
-
return rtn._operationList;
|
|
305
|
-
}
|
|
306
|
-
else if(rtn.operationApiRouter){
|
|
307
|
-
let action =rtn.operationApiRouter.action;
|
|
308
|
-
let para={};
|
|
309
|
-
rtn.operationApiRouter.submitFormField.forEach((v) => {
|
|
310
|
-
para[v] = rtn.fields1Dic[v].value;
|
|
200
|
+
rtn._actionRouters.push(router);
|
|
201
|
+
}
|
|
311
202
|
});
|
|
312
|
-
Vue.prototype.$api.postHandler(common.globalUri(), { action: action,para:para}).then(
|
|
313
|
-
function (response) {
|
|
314
|
-
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
315
|
-
rtn._operationList=response.content;
|
|
316
|
-
if(rtn._operationList && rtn._operationList.length>0){
|
|
317
|
-
rtn._operationList.forEach((v,i) => {
|
|
318
|
-
rtn._operationList[i].routers=[];
|
|
319
|
-
if (v.modelRouters) {
|
|
320
|
-
v.modelRouters.forEach((f,i2) => {
|
|
321
|
-
var router = Router(f);
|
|
322
|
-
router.is = "ct-btn";
|
|
323
|
-
router.attrs = { size: "mini" }
|
|
324
|
-
if(router.rightField){
|
|
325
|
-
router.show=v[router.rightField];
|
|
326
|
-
}
|
|
327
|
-
if(router.show){
|
|
328
|
-
// rtn._operationList[i].router=router;
|
|
329
|
-
rtn._operationList[i].routers.push(router);
|
|
330
|
-
}
|
|
331
|
-
rtn._operationRouters.push(router);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
);
|
|
339
203
|
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
204
|
+
return rtn._actionRouters;
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
get actionRoutersMoreList() {
|
|
208
|
+
if (rtn._actionRoutersMoreList !== null) {
|
|
209
|
+
return rtn._actionRoutersMoreList;
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
if (data.actionRouters && data.actionRouters.length > 3) {
|
|
213
|
+
rtn._actionRoutersMoreList = [];
|
|
214
|
+
data.actionRouters.forEach((v, i) => {
|
|
215
|
+
if (i >= 2) {
|
|
216
|
+
var router = Router(v);
|
|
348
217
|
router.is = "ct-btn";
|
|
349
218
|
router.attrs = { size: "mini" }
|
|
350
|
-
rtn.
|
|
351
|
-
}
|
|
352
|
-
return rtn._commissionApiRouter;
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
getCommissionList(){
|
|
356
|
-
if (rtn._commissionList !==null){
|
|
357
|
-
return rtn._commissionList;
|
|
358
|
-
}
|
|
359
|
-
else if(rtn.commissionApiRouter){
|
|
360
|
-
var router=rtn.commissionApiRouter;
|
|
361
|
-
var submitData={
|
|
362
|
-
action: router.action,
|
|
363
|
-
para: {
|
|
364
|
-
searchFields: null,
|
|
365
|
-
pageAttribute: { pageIndex: 1 },
|
|
366
|
-
flagSearch: true
|
|
219
|
+
rtn._actionRoutersMoreList.push(router);
|
|
367
220
|
}
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
return rtn._actionRoutersMoreList;
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
get actionRoutersSimple() {
|
|
227
|
+
if (rtn._actionRoutersSimple !== null) {
|
|
228
|
+
return rtn._actionRoutersSimple;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
rtn._actionRoutersSimple = [];
|
|
232
|
+
if (data.actionRouters) {
|
|
233
|
+
data.actionRouters.forEach((v, i) => {
|
|
234
|
+
var router = Router(v);
|
|
235
|
+
router.is = "ct-btn";
|
|
236
|
+
router.attrs = { size: "mini" }
|
|
237
|
+
if (router.show) {
|
|
238
|
+
rtn._actionRoutersSimple.push(router);
|
|
373
239
|
}
|
|
374
240
|
});
|
|
375
241
|
}
|
|
376
|
-
return rtn.
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
242
|
+
return rtn._actionRoutersSimple;
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
get tags1() {
|
|
246
|
+
return data.tags1;
|
|
247
|
+
},
|
|
248
|
+
get searchConditionApiTags1() {
|
|
249
|
+
if (rtn._searchConditionApiTags1 !== null) {
|
|
250
|
+
return rtn._searchConditionApiTags1;
|
|
251
|
+
}
|
|
252
|
+
else if (rtn.tags1 && rtn.tags1.length > 0) {
|
|
253
|
+
rtn._searchConditionApiTags1 = rtn.tags1[0].searchConditionApiUrl;
|
|
254
|
+
return rtn._searchConditionApiTags1;
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
set searchConditionApiTags1(v) {
|
|
258
|
+
rtn._searchConditionApiTags1 = v;
|
|
259
|
+
},
|
|
260
|
+
get searchDataApiTags1() {
|
|
261
|
+
if (rtn._searchDataApiTags1 !== null) {
|
|
262
|
+
return rtn._searchDataApiTags1;
|
|
263
|
+
}
|
|
264
|
+
else if (rtn.tags1 && rtn.tags1.length > 0) {
|
|
265
|
+
rtn._searchDataApiTags1 = rtn.tags1[0].searchDataApiUrl;
|
|
266
|
+
return rtn._searchDataApiTags1;
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
set searchDataApiTags1(v) {
|
|
270
|
+
rtn._searchDataApiTags1 = v;
|
|
271
|
+
},
|
|
272
|
+
get paramDataTags1() {
|
|
273
|
+
if (rtn._paramDataTags1) {
|
|
274
|
+
return rtn._paramDataTags1;
|
|
275
|
+
}
|
|
276
|
+
else if (rtn.tags1 && rtn.tags1.length > 0) {
|
|
277
|
+
rtn._paramDataTags1 = JSON.parse(rtn.tags1[0].paramData);
|
|
278
|
+
return rtn._paramDataTags1;
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
set paramDataTags1(v) {
|
|
282
|
+
rtn._paramDataTags1 = {};
|
|
283
|
+
if (v) rtn._paramDataTags1 = JSON.parse(v);
|
|
284
|
+
},
|
|
285
|
+
get tags2() {
|
|
286
|
+
return data.tags2;
|
|
287
|
+
},
|
|
288
|
+
set tags2(v) {
|
|
289
|
+
data.tags2 = v;
|
|
290
|
+
},
|
|
291
|
+
getTags2List(i) {
|
|
292
|
+
if (rtn.tags2 && rtn.tags2[i] && !rtn.tags2[i].list && rtn.tags2[i].searchDataApiUrl) {
|
|
293
|
+
let action = rtn.tags2[i].searchDataApiUrl;
|
|
294
|
+
let para = {};
|
|
295
|
+
if (rtn.tags2[i].paramData) para = JSON.parse(rtn.tags2[i].paramData);
|
|
296
|
+
Vue.prototype.$api.postHandler(common.globalUri(), { action: action, para: para }).then(
|
|
297
|
+
function (response) {
|
|
298
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
299
|
+
rtn.tags2[i].list = response.content;
|
|
300
|
+
rtn.tags2Key = rtn.tags2Key + 1;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
get operationApiRouter() {
|
|
307
|
+
if (rtn._operationApiRouter !== null) {
|
|
308
|
+
return rtn._operationApiRouter;
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
if (data.operationApiRouter) {
|
|
312
|
+
var router = Router(data.operationApiRouter);
|
|
313
|
+
router.is = "ct-btn";
|
|
314
|
+
router.attrs = { size: "mini" }
|
|
315
|
+
rtn._operationApiRouter = router;
|
|
384
316
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
317
|
+
return rtn._operationApiRouter;
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
get operationList() {
|
|
321
|
+
return rtn._operationList;
|
|
322
|
+
},
|
|
323
|
+
get operationRouters() {
|
|
324
|
+
return rtn._operationRouters;
|
|
325
|
+
},
|
|
326
|
+
getOperationList() {
|
|
327
|
+
if (rtn._operationList !== null) {
|
|
328
|
+
return rtn._operationList;
|
|
329
|
+
}
|
|
330
|
+
else if (rtn.operationApiRouter) {
|
|
331
|
+
let action = rtn.operationApiRouter.action;
|
|
332
|
+
let para = {};
|
|
333
|
+
rtn.operationApiRouter.submitFormField.forEach((v) => {
|
|
334
|
+
para[v] = rtn.fields1Dic[v].value;
|
|
335
|
+
});
|
|
336
|
+
Vue.prototype.$api.postHandler(common.globalUri(), { action: action, para: para }).then(
|
|
337
|
+
function (response) {
|
|
338
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
339
|
+
rtn._operationList = response.content;
|
|
340
|
+
if (rtn._operationList && rtn._operationList.length > 0) {
|
|
341
|
+
rtn._operationList.forEach((v, i) => {
|
|
342
|
+
rtn._operationList[i].routers = [];
|
|
343
|
+
if (v.modelRouters) {
|
|
344
|
+
v.modelRouters.forEach((f, i2) => {
|
|
345
|
+
var router = Router(f);
|
|
346
|
+
router.is = "ct-btn";
|
|
347
|
+
router.attrs = { size: "mini" }
|
|
348
|
+
if (router.rightField) {
|
|
349
|
+
router.show = v[router.rightField];
|
|
350
|
+
}
|
|
351
|
+
if (router.show) {
|
|
352
|
+
// rtn._operationList[i].router=router;
|
|
353
|
+
rtn._operationList[i].routers.push(router);
|
|
354
|
+
}
|
|
355
|
+
rtn._operationRouters.push(router);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
}
|
|
394
361
|
}
|
|
395
|
-
|
|
396
|
-
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
get commissionApiRouter() {
|
|
366
|
+
if (rtn._commissionApiRouter !== null) {
|
|
367
|
+
return rtn._commissionApiRouter;
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
if (data.commissionApiRouter) {
|
|
371
|
+
var router = Router(data.commissionApiRouter);
|
|
372
|
+
router.is = "ct-btn";
|
|
373
|
+
router.attrs = { size: "mini" }
|
|
374
|
+
rtn._commissionApiRouter = router;
|
|
375
|
+
}
|
|
376
|
+
return rtn._commissionApiRouter;
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
getCommissionList() {
|
|
380
|
+
if (rtn._commissionList !== null) {
|
|
381
|
+
return rtn._commissionList;
|
|
382
|
+
}
|
|
383
|
+
else if (rtn.commissionApiRouter) {
|
|
384
|
+
var router = rtn.commissionApiRouter;
|
|
385
|
+
var submitData = {
|
|
386
|
+
action: router.action,
|
|
387
|
+
para: {
|
|
388
|
+
searchFields: null,
|
|
389
|
+
pageAttribute: { pageIndex: 1 },
|
|
390
|
+
flagSearch: true
|
|
397
391
|
}
|
|
398
|
-
|
|
399
|
-
|
|
392
|
+
};
|
|
393
|
+
submitData.para.searchFields = router.getSearchPara();
|
|
394
|
+
router.doSearch(submitData, (res) => {
|
|
395
|
+
if (res.rtnCode === 200) {
|
|
396
|
+
rtn._commissionList = res.content.rows;
|
|
400
397
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
return rtn._commissionList;
|
|
401
|
+
},
|
|
402
|
+
get shortcutFollowForm() {
|
|
403
|
+
return data.shortcutFollowForm;
|
|
404
|
+
},
|
|
405
|
+
doAction(response, field) {
|
|
406
|
+
if (response.responseData) {
|
|
407
|
+
response = response.responseData;
|
|
408
|
+
}
|
|
409
|
+
if (field.id == 'Follow'
|
|
410
|
+
|| field.id == 'Trust' || field.id == 'TrustZJJ' || field.id == 'TrustDJ' || field.id == 'TrustPT'
|
|
411
|
+
|| field.id == 'RealLook' || field.id == 'RealLookVR'
|
|
412
|
+
|| field.id == 'StatusAdjust'
|
|
413
|
+
|| field.id == 'OperationKey' || field.id == 'OperationKeyCommon' || field.id == 'OperationKeyPassword'
|
|
414
|
+
|| field.id == 'Key') {
|
|
415
|
+
let id = field.id;
|
|
416
|
+
if (field.id == 'OperationKey' || field.id == 'OperationKeyCommon' || field.id == 'OperationKeyPassword') {
|
|
417
|
+
id = 'Key';
|
|
405
418
|
}
|
|
406
|
-
else{
|
|
419
|
+
else if (field.id == 'TrustZJJ' || field.id == 'TrustDJ' || field.id == 'TrustPT') {
|
|
420
|
+
id = 'Trust';
|
|
407
421
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
checkCloseTabThen(notification) {
|
|
411
|
-
var rtn = false;
|
|
412
|
-
if (notification == Enum.ActionType.CloseTabThenDelete
|
|
413
|
-
|| notification == Enum.ActionType.CloseTabThenNew
|
|
414
|
-
|| notification == Enum.ActionType.CloseTabThenUpdate) {
|
|
415
|
-
rtn = true;
|
|
422
|
+
else if (field.id == 'RealLookVR') {
|
|
423
|
+
id = 'RealLook';
|
|
416
424
|
}
|
|
417
|
-
|
|
418
|
-
|
|
425
|
+
var advIndex = rtn.tags1.findIndex((v) => {
|
|
426
|
+
return v.appID === id;
|
|
427
|
+
});
|
|
428
|
+
rtn.$vue.handleSelect({ index: advIndex.toString() });
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
//检查是否关闭tab后触发来源页面操作
|
|
434
|
+
checkCloseTabThen(notification) {
|
|
435
|
+
var rtn = false;
|
|
436
|
+
if (notification == Enum.ActionType.CloseTabThenDelete
|
|
437
|
+
|| notification == Enum.ActionType.CloseTabThenNew
|
|
438
|
+
|| notification == Enum.ActionType.CloseTabThenUpdate) {
|
|
439
|
+
rtn = true;
|
|
440
|
+
}
|
|
441
|
+
return rtn;
|
|
442
|
+
},
|
|
419
443
|
};
|
|
420
444
|
return rtn;
|
|
421
445
|
}
|
|
422
446
|
if (typeof source === 'string') {
|
|
423
|
-
Vue.prototype.$api.postHandler(common.globalUri(), { action: source,para:para}).then(
|
|
447
|
+
Vue.prototype.$api.postHandler(common.globalUri(), { action: source, para: para }).then(
|
|
424
448
|
function (response) {
|
|
425
449
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
426
450
|
var rtn = init(response.content);
|