centaline-data-driven 1.4.16 → 1.4.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -11,10 +11,10 @@
11
11
  :searchStatsApi="'/ProfileWorklistList/getListStats'">
12
12
  </ct-searchlist> -->
13
13
 
14
- <!-- <ct-searchlist
15
- :searchConditionApi="'/api/distribution/distributionList/getLayoutOfSearch'"
16
- :searchDataApi="'/api/distribution/distributionList'">
17
- </ct-searchlist> -->
14
+ <ct-searchlist :apiParam="para"
15
+ :searchConditionApi="'/PropertyRETList/getLayoutOfSearchForCustomerReqMatch'"
16
+ :searchDataApi="'/PropertyRETList/getListOfSearchModel'">
17
+ </ct-searchlist>
18
18
 
19
19
  <!-- <ct-searchlist
20
20
  :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'"
@@ -22,11 +22,11 @@
22
22
  :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
23
23
  </ct-searchlist> -->
24
24
 
25
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
25
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
26
26
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
27
27
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
28
28
  :searchStatsApi="'/PropertyRETList/getListStats'">
29
- </ct-searchlist>
29
+ </ct-searchlist> -->
30
30
 
31
31
  <!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
32
32
  :searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
@@ -45,6 +45,7 @@
45
45
  data() {
46
46
  return {
47
47
  para:{
48
+ customerReqID:'D113B951-0BF0-428E-BE73-584BAC0D0044'
48
49
  },
49
50
  // para: {searchFields: {fields: []}, pageAttribute: {pageIndex: 1}, flagSearch: true}
50
51
  // para: {publishID: "1503900718229229568"}
@@ -288,13 +288,13 @@ const common = {
288
288
  this.openDialog(dialogOption);
289
289
  })
290
290
  },
291
- viewerfile(router, MediaAlbum, groupIndex, index) {
291
+ viewerfile(pageTitle, MediaAlbum, groupIndex, index) {
292
292
  var self = this;
293
293
  var width = parseInt(window.document.body.clientWidth * 0.8);
294
294
  width = width > 1160 ? 1160 : width;
295
295
  return new Promise((resolve, reject) => {
296
296
  var dialogOption = {
297
- title: router.pageTitle,
297
+ title: pageTitle,
298
298
  name: 'ct-viewerfile',
299
299
  content: [{
300
300
  component: 'ct-viewerfile',
@@ -119,36 +119,9 @@ export default {
119
119
  }
120
120
  },
121
121
  viewerfile(index) {
122
- var self = this;
123
-
124
- var width = parseInt(window.document.body.clientWidth * 0.8);
125
- width = width > 1160 ? 1160 : width;
126
- var dialogOption = {
127
- title: this.title || "预览媒体",
128
- pane: self.$common.getParentPane(self),
129
- content: [
130
- {
131
- component: "ct-viewerfile",
132
- attrs: {
133
- showTitle: false,
134
- MediaAlbum: this.newMediaAlbums,
135
- groupIndex: this.activeAlbumsIndex,
136
- index: index || 0,
137
- // width: self.modelPhotoselect.router.pageWidth + 'px',
138
- // height: self.modelPhotoselect.router.pageHeight+'px',
139
- width: width + "px",
140
- height:
141
- parseInt(window.document.body.clientHeight * 0.8).toString() +
142
- "px",
143
- },
144
- on: {
145
- handlePhoto(photoList) {},
146
- },
147
- },
148
- ],
149
- };
150
- self.$common.openDialog(dialogOption);
151
- },
122
+ var self = this;
123
+ self.$common.viewerfile((this.title || "预览媒体"), this.newMediaAlbums, this.activeAlbumsIndex, (index || 0));
124
+ }
152
125
  },
153
126
  watch: {
154
127
  mediaAlbums(newValue, oldValue) {
@@ -816,7 +816,7 @@ export default {
816
816
  if (field.action) {
817
817
  var callback = function (data) {
818
818
  MediaAlbum[0].medias = data;
819
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
819
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
820
820
  }
821
821
  var vsubmitData = {
822
822
  ...field.getActionPara(submitData).para,
@@ -828,7 +828,7 @@ export default {
828
828
  submitData.mediaData.forEach((v) => {
829
829
  MediaAlbum[0].medias.push(v);
830
830
  });
831
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
831
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
832
832
  }
833
833
  }
834
834
  else if (field.isOpenForm) {
@@ -806,7 +806,7 @@ export default {
806
806
  if (field.action) {
807
807
  var callback = function (data) {
808
808
  MediaAlbum[0].medias = data;
809
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
809
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
810
810
  }
811
811
  var vsubmitData = {
812
812
  ...field.getActionPara(submitData).para,
@@ -818,7 +818,7 @@ export default {
818
818
  submitData.mediaData.forEach((v) => {
819
819
  MediaAlbum[0].medias.push(v);
820
820
  });
821
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
821
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
822
822
  }
823
823
  }
824
824
  else if (field.isOpenForm) {
@@ -235,34 +235,8 @@
235
235
  });
236
236
  var index = MediaAlbum[0].medias.findIndex(
237
237
  (v) => (v === file.source)
238
- );
239
-
240
- var width = parseInt(window.document.body.clientWidth * 0.8);
241
- var height = parseInt(window.document.body.clientHeight * 0.8);
242
- width = width > 1160 ? 1160 : width;
243
- var dialogOption = {
244
- title: this.model.label || "预览媒体",
245
- //pane: self.$common.getParentPane(self),
246
- content: [
247
- {
248
- component: "ct-viewerfile",
249
- attrs: {
250
- showTitle: false,
251
- MediaAlbum: MediaAlbum,
252
- groupIndex: 0,
253
- index: index,
254
- // width: self.modelPhotoselect.router.pageWidth + 'px',
255
- // height: self.modelPhotoselect.router.pageHeight+'px',
256
- width: width + "px",
257
- height: height + "px",
258
- },
259
- on: {
260
- handlePhoto(photoList) { },
261
- },
262
- },
263
- ],
264
- };
265
- self.$common.openDialog(dialogOption);
238
+ );
239
+ self.$common.viewerfile(( this.model.label || "预览媒体"), MediaAlbum,0, index);
266
240
  },
267
241
  getPreviewSrcList(file) {
268
242
  if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
@@ -17,7 +17,7 @@
17
17
  :src="item.thumbnailUrl"
18
18
  style="width: 100px; height: 100px"
19
19
  :z-index="previewZIndex"
20
- @click="viewerOpen(photoList, index)"
20
+ @click="viewerfile(photoList, index)"
21
21
  >
22
22
  </el-image>
23
23
  <span
@@ -126,6 +126,7 @@ export default {
126
126
  this.photoList.splice(index, 1);
127
127
  },
128
128
  handleOpen() {
129
+
129
130
  var self = this;
130
131
  var chooseList = new Array();
131
132
  if (self.modelPhotoselect.action == "") {
@@ -184,6 +185,7 @@ export default {
184
185
  self.$common.openDialog(dialogOption);
185
186
  },
186
187
  viewerOpen(list, index) {
188
+ debugger
187
189
  var showList = [];
188
190
  var viewerList = [];
189
191
  list.forEach((v) => {
@@ -191,7 +193,24 @@ export default {
191
193
  viewerList.push({ url: v.mediaUrl, title: v.mediaLabelName });
192
194
  });
193
195
  this.$refs.photoSelectViewer.open(showList, index, viewerList);
196
+
197
+ self.$common.viewerfile((this.title || "预览媒体"), this.newMediaAlbums, this.activeAlbumsIndex, (index || 0));
198
+
199
+
194
200
  },
201
+ viewerfile(list,index) {
202
+ var self = this;
203
+ var MediaAlbum = [{ albumName: this.model.label || "媒体", medias: [] }];
204
+
205
+ let fileList =list.filter((item) => {
206
+ return item.flagDeleted !== true;
207
+ });
208
+ fileList.forEach((v) => {
209
+ MediaAlbum[0].medias.push(v);
210
+ });
211
+ self.$common.viewerfile(( this.model.label || "预览媒体"), MediaAlbum,0, index);
212
+ },
213
+
195
214
  onEnd(a, b) {
196
215
  var self = this;
197
216
  self.$nextTick(function () {
@@ -887,7 +887,7 @@ export default {
887
887
  if (field.action) {
888
888
  var callback = function (data) {
889
889
  MediaAlbum[0].medias = data;
890
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
890
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
891
891
  }
892
892
  self.model.getAction(field.action, submitData, callback);
893
893
  }
@@ -895,7 +895,7 @@ export default {
895
895
  submitData.mediaData.forEach((v) => {
896
896
  MediaAlbum[0].medias.push(v);
897
897
  });
898
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
898
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
899
899
  }
900
900
  }
901
901
  else if (field.isUrlInLayer) {//URL页面(弹层iframe)
@@ -95,7 +95,7 @@ export default {
95
95
  if (field.action) {
96
96
  var callback = function (data) {
97
97
  MediaAlbum[0].medias = data;
98
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
98
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
99
99
  }
100
100
  self.model.getAction(field.action, submitData, callback);
101
101
  }
@@ -103,7 +103,7 @@ export default {
103
103
  submitData.mediaData.forEach((v) => {
104
104
  MediaAlbum[0].medias.push(v);
105
105
  });
106
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
106
+ self.$common.viewerfile(field.pageTitle, MediaAlbum, 0, 0);
107
107
  }
108
108
  }
109
109
  else if (field.isUrlInLayer) {//URL页面(弹层)
@@ -736,10 +736,9 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
736
736
  }
737
737
  }
738
738
  },
739
- getFieldValue(field)
740
- {
741
- if(field.type==Enum.ControlType.Switch)
742
- {
739
+ getFieldValue(field){
740
+ if(field.type==Enum.ControlType.Switch
741
+ || field.type==Enum.ControlType.CheckBox){
743
742
  return field.value?'1':'0';
744
743
  }
745
744
  return field.value;
@@ -35,7 +35,6 @@ const Iti = function (source) {
35
35
  else
36
36
  return '';
37
37
  },
38
- defaultValue1: source.code2,
39
38
  get id1() {
40
39
  return source.fieldName2;
41
40
  },
@@ -9,7 +9,6 @@ const Ttts = function (source) {
9
9
  set value1(v) {
10
10
  source.code2 = v;
11
11
  },
12
- defaultValue1: source.defaultCode2,
13
12
  get id1() {
14
13
  return source.fieldName2;
15
14
  },
@@ -253,6 +253,10 @@ const LibFunction = {
253
253
  item = L(field);
254
254
  item.is = 'ct-labelText';
255
255
  break;
256
+ case Enum.ControlType.CheckBox: //复选框
257
+ item = Cb(field);
258
+ item.is = 'ct-cb';
259
+ break;
256
260
  case Enum.ControlType.CheckBoxList: //复选列表
257
261
  item = Checkbox(field);
258
262
  item.is = 'ct-checkbox';
@@ -372,10 +376,6 @@ const LibFunction = {
372
376
  item = SensitiveEye(field);
373
377
  item.is = 'ct-sensitiveeye';
374
378
  break;
375
- case Enum.ControlType.CheckBox: //复选框
376
- item = Cb(field);
377
- item.is = 'ct-cb';
378
- break;
379
379
  case Enum.ControlType.CustomizeColumns: //拖拽排序
380
380
  item = DragSort(field);
381
381
  item.is = 'ct-dragSort';
package/src/main.js CHANGED
@@ -43,7 +43,7 @@ Vue.use(centaline, {
43
43
  getRequestHeaders: function () {
44
44
  return {
45
45
  oldToken: '3f518e5b-85c3-4a3e-9aa2-d476c6e43b75',
46
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiZx3GFnh04XbPwIsg9IsDICicb472qEjt5TnOI09z5hnCNUIAu4oZVWF3BDKy0Rq5Bt8KDikS0bdOQderaeT3Vj_LGGArr7FSqyVo01qlTAEKZf2IuU3zCP3e3cPf5x7jINn9nsovSZMnIfBDn1CWOiEnmnmiNLDNHB6w0AAP__.S8GpMp0QsAvU3rUclegNyD0VCgVWxpMFKmKQNFPcn-4',
46
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzrEOwjAMBNB_8VxLdWKcpBtNy8JHVIkSpDIh2kogxL-TId2684Ybbrn7wLJF6MBUeBC7yVV4ELuJiJ0hGfHsjEcW1mjJW_Qsni_DqH0_QAP59YCORJxY4ZYbmMNai7Yoxbbk5zW__3Huvs5lNqSgFN0UBiuCnAKhO8WI0eUcI6uUk4bvDwAA__8.7hkTnbfWX2X-x8TQqtnB1Va0K3FyZSL7ajbd0TdZds8',
47
47
 
48
48
  originalRequestURL: 'http://10.88.22.67:8080',
49
49
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',