centaline-data-driven 1.3.31 → 1.3.32

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.3.31",
3
+ "version": "1.3.32",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -14,11 +14,7 @@
14
14
  data() {
15
15
  return {
16
16
  apiParam:{
17
- actionType: 3,
18
- originalTraId: "1547488795469586434",
19
- pageOnly: true,
20
- pageStyle: 2,
21
- pageTitle: "成交报告"
17
+ originalTraId:"1541678215431274497",actionType:3,pageStyle:2,pageTitle:"成交报告",pageOnly:true
22
18
  }
23
19
  }
24
20
  },
@@ -8,15 +8,15 @@
8
8
  :searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
9
9
  :searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
10
10
 
11
- <!-- <ct-searchlist :searchConditionApi="'/PropertyContactImportList/getLayoutOfSearch'"
11
+ <ct-searchlist :searchConditionApi="'/PropertyContactImportList/getLayoutOfSearch'"
12
12
  :searchDataApi="'/PropertyContactImportList/getListOfSearchModel'">
13
- </ct-searchlist> -->
13
+ </ct-searchlist>
14
14
 
15
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
15
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
16
16
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
17
17
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
18
18
  :searchStatsApi="'/exampleList/getListStats'">
19
- </ct-searchlist>
19
+ </ct-searchlist> -->
20
20
 
21
21
  <ct-dialog-list></ct-dialog-list>
22
22
  </div>
@@ -842,12 +842,24 @@ export default {
842
842
  else if (field.isSeeVoice) {//看视频
843
843
  self.$common.browseVideo(field, submitData);
844
844
  }
845
- else if (field.isBrowseAttachment) {//浏览附件
846
- var MediaAlbum = [{ albumName: self.model.title || "媒体", medias: [] },];
847
- submitData.mediaData.forEach((v) => {
848
- MediaAlbum[0].medias.push(v);
849
- });
850
- self.$common.viewerfile(field, MediaAlbum, 0, 0);
845
+ else if (field.isBrowseAttachment) {
846
+ //浏览附件
847
+ var MediaAlbum = [
848
+ { albumName: self.model.title || "媒体", medias: [] },
849
+ ];
850
+ if (field.action) {
851
+ var callback = function (data) {
852
+ MediaAlbum[0].medias = data;
853
+ self.$common.viewerfile(field, MediaAlbum, 0, 0);
854
+ }
855
+ self.model.getAction(field.action, submitData, callback);
856
+ }
857
+ else {
858
+ submitData.mediaData.forEach((v) => {
859
+ MediaAlbum[0].medias.push(v);
860
+ });
861
+ self.$common.viewerfile(field, MediaAlbum, 0, 0);
862
+ }
851
863
  }
852
864
  else if (field.isUrlInLayer) {//URL页面(弹层)
853
865
  var dialogOption = {
@@ -902,11 +914,20 @@ export default {
902
914
  self.model.export(field, submitData);
903
915
  }
904
916
  else{
905
- field.doAction(submitData, (data) => {
906
- if(data.content){
907
- window.open(data.content, "_blank");
908
- }
909
- });
917
+ if(field.action.indexOf("http://")===0 || field.action.indexOf("https://")===0){
918
+ window.open(field.action, "_blank");
919
+ }
920
+ else{
921
+ field.doAction(submitData, (data) => {
922
+ if(data.content){
923
+ if(data.content.indexOf("http://")===0 || data.content.indexOf("https://")===0){
924
+ window.open(data.content, "_blank");
925
+ }
926
+ else{
927
+ }
928
+ }
929
+ });
930
+ }
910
931
  }
911
932
  }
912
933
  else {
@@ -526,7 +526,11 @@ const FormList = function (source, master) {
526
526
  rowData.delete = iRow.delete;
527
527
  source.rows.splice(i, 1,row);
528
528
  rtn._rows.splice(i, 1,iRow);
529
- rtn._tableData.splice(i-1, 1,rowData);
529
+ rtn.tableData.forEach((d,index) => {
530
+ if(d.$sourceIndex===r.$sourceIndex){
531
+ rtn.tableData.splice(index, 1,rowData);
532
+ }
533
+ });
530
534
  }
531
535
  }
532
536
  }
@@ -40,7 +40,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
40
40
  get columns() {
41
41
  var self = this;
42
42
  if (typeof source.content.columns !== 'undefined') {
43
- if (self._columns.length > 0 ) {
43
+ if (self._columns.length > 0) {
44
44
  return self._columns;
45
45
  } else {
46
46
  var lockLeft = true;
@@ -732,6 +732,25 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
732
732
  }
733
733
  }
734
734
  },
735
+ getAction(api, submitData, callback) {
736
+ Vue.prototype.$api.postHandler(common.globalUri(), {
737
+ action: api,
738
+ para: submitData
739
+ })
740
+ .then(function (response) {
741
+ if (response.rtnCode === Enum.ReturnCode.Successful) {
742
+ if (typeof callback !== 'undefined') {
743
+ callback(response.content);
744
+ }
745
+ }
746
+ })
747
+ .catch((error) => {
748
+ console.error(error);
749
+ if (typeof callback !== 'undefined') {
750
+ callback();
751
+ }
752
+ });
753
+ },
735
754
  doAction(response) {
736
755
  if (response.responseData) {
737
756
  response = response.responseData;
@@ -816,11 +835,10 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
816
835
  }
817
836
  });
818
837
  },
819
- export(btn, submitData) {
820
- Vue.prototype.$api.postHandler(common.globalUri(),
821
- {
822
- action: btn.action,
823
- para: submitData
838
+ export (btn, submitData) {
839
+ Vue.prototype.$api.postHandler(common.globalUri(), {
840
+ action: btn.action,
841
+ para: submitData
824
842
  });
825
843
  },
826
844
  _scripts: null,
package/src/main.js CHANGED
@@ -12,11 +12,11 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.46:7070/v1/form/router",
15
+ // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
16
  // baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
17
  // baseUrl: "http://tjcptest.centaline.com.cn/",
18
- // baseUrl: "http://10.88.22.69:8080/",
19
- // flagRouterSelf: true,
18
+ baseUrl: "http://10.88.22.69:8080/",
19
+ flagRouterSelf: true,
20
20
  zindex: 999,
21
21
  showRequestSuccessMessage: true,
22
22
  showRequestErrorMessage: true,
@@ -41,7 +41,7 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: '0e5e2554-abe0-4538-8520-e024f82389b3',
44
+ oldToken: '6c09a5a6-8bb2-46af-beed-9efd51a28263',
45
45
  originalRequestURL: 'http://10.88.22.67:8080',
46
46
  EstateInfo: ' {"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
47
47
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjYzMzZiMDJiLTZjOGEtNDIzNC05MGQ5LTliYWI2MTIyNTQzNyJ9.hOxMvGLm03QMPu9C4lgRzkEHC7ECqxJ_L6mfqQRqv39xJ42I8gzSRO-E68vWp-A99ewnxnqvTZ6H_6fOQ9DljQ',