centaline-data-driven 1.4.12 → 1.4.13

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="appDetail" style="height:100%;">
3
- <ct-Detail :api="'PropertyOFI/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailOFI'"></ct-Detail>
3
+ <ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
4
4
  <ct-dialog-list></ct-dialog-list>
5
5
  </div>
6
6
  </template>
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1590537844491948032"} ,
13
+ apiParam: {actionType: 1,chanceID: "1511930510518128640"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div style="width:100%;height:100%;">
3
- <iframe :src="src" ref="iframe" style="width:100%;height:99%;" frameborder="0" @load="sendMessage()"></iframe>
3
+ <iframe :src="src" ref="iframe" style="width:100%;height:99%;border-width: 0px;" frameborder="0" @load="sendMessage()"></iframe>
4
4
  </div>
5
5
  </template>
6
6
  <script>
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <div style="width: 100%" v-if="model !== null" class="block ct-file" :class="[model.attrs.size ? 'ct-checkbox-' + model.attrs.size : '']">
2
+ <div style="width: 100%" ref="refupload" v-if="model !== null" class="block ct-file" :class="[model.attrs.size ? 'ct-checkbox-' + model.attrs.size : '']">
3
3
  <!--分片上传-->
4
4
  <template v-if="model.type==51">
5
5
  <el-upload :class="disableUpload ? 'ct-upload-display-none' : ''"
6
- :http-request="SliceUpload"
6
+ :http-request="SliceUpload"
7
7
  :disabled="model.lock"
8
8
  :accept="model.fileAccept"
9
9
  :on-change="handleChange"
@@ -64,8 +64,8 @@
64
64
  </div>
65
65
  <div>
66
66
  <el-progress type="circle" v-if="file.progressFlag" :show-text="false"
67
- :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
68
- :width="96" :height="96" class="file-cirle"></el-progress>
67
+ :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
68
+ :width="96" :height="96" class="file-cirle"></el-progress>
69
69
  <div class="circleCenter" v-if="file.progressFlag">
70
70
  <div style="font-size: 12px;color: #666;"> {{ file.loadProgress.toFixed(2) }}%</div>
71
71
  </div>
@@ -137,8 +137,8 @@
137
137
  </div>
138
138
  <div>
139
139
  <el-progress type="circle" v-if="file.progressFlag" :show-text="false"
140
- :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
141
- :width="96" :height="96" class="file-cirle"></el-progress>
140
+ :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
141
+ :width="96" :height="96" class="file-cirle"></el-progress>
142
142
  <div class="circleCenter" v-if="file.progressFlag">
143
143
  <div style="font-size: 12px;color: #666;"> {{ file.loadProgress.toFixed(2) }}%</div>
144
144
  </div>
@@ -455,32 +455,36 @@
455
455
  uploadguid() {
456
456
  return (this.S4() + this.S4() + '-' + this.S4() + '-' + this.S4() + '-' + this.S4() + '-' + this.S4() + this.S4() + this.S4());
457
457
  },
458
- uploadpro(uploadOptions, res, xhr) {
458
+ uploadpro(uploadOptions, res, xhr, flagError) {
459
459
  const { file, onProgress, onSuccess, onError } = uploadOptions;
460
- if (xhr.status >= 400) {
461
- this.$message.error(res);
462
- file.source = { "actionType": 2 };
463
- this.model.deleteFile(file, false);
464
- this.selfValidExcute("remove");
465
- }
466
- else if (xhr.status == 0) {
467
- this.$message.error(res);
468
- file.source= { "actionType": 2 } ;
469
- this.model.deleteFile(file, false);
470
- this.selfValidExcute("remove");
471
- }
472
- else if (xhr.status == 200) {
473
- if (res.rtnCode != 200 && res.rtnMsg != "") {
474
- this.$message.error(res.rtnMsg);
475
- return;
460
+
461
+ var refupload = this.$refs.refupload;
462
+ if (refupload) {
463
+ if (flagError) {
464
+ this.$message.error(res);
465
+ file.source = { "actionType": 2 };
466
+ this.model.deleteFile(file, false);
467
+ this.selfValidExcute("remove");
468
+ return false;
476
469
  }
477
- const Progress = Math.min(100, Math.floor(1E4 * parseInt(res.content.nextOffSet) / parseInt(file.size)) / 100);
478
- this.model.setByPieces(res, Progress, file);
470
+ else if (xhr.status == 200) {
471
+ if (res.rtnCode != 200 && res.rtnMsg != "") {
472
+ this.$message.error(res.rtnMsg);
473
+ return false;
474
+ }
475
+ const Progress = Math.min(100, Math.floor(1E4 * parseInt(res.content.nextOffSet) / parseInt(file.size)) / 100);
476
+ this.model.setByPieces(res, Progress, file);
479
477
 
480
- if (res.content.finished == 1) {
481
- this.handleChange();
478
+ if (res.content.finished == 1) {
479
+ this.handleChange();
480
+ }
481
+ return true;
482
482
  }
483
483
  }
484
+ else {
485
+ xhr = null;
486
+ return false;
487
+ }
484
488
  },
485
489
 
486
490
 
@@ -590,9 +594,10 @@
590
594
  .file-cirle .el-progress-circle {
591
595
  margin-left: 15px;
592
596
  }
597
+
593
598
  .circleCenter {
594
- position: absolute;
595
- top: 38px;
596
- left: 32px;
597
- }
599
+ position: absolute;
600
+ top: 38px;
601
+ left: 32px;
602
+ }
598
603
  </style>
@@ -162,8 +162,6 @@
162
162
  else {
163
163
  this.$refs.table.searchComplate(this.$refs.screen.model,this.$refs.screen.model.defaultSearch);
164
164
  }
165
-
166
- this.$refs.table.loadStats();
167
165
  },
168
166
  searchComplate(index) {
169
167
  this.pageDisabled=false;
@@ -169,7 +169,7 @@
169
169
  </el-button>
170
170
  </div>
171
171
  <div v-if="isLoading && searchLoading" v-loading="isLoading" style="top: 30px"></div>
172
- <iframe :src="downloadUrl" style="height:0px;width:0px">
172
+ <iframe :src="downloadUrl" style="height:0px;width:0px;border-width: 0px;">
173
173
  </iframe>
174
174
  </div>
175
175
  </template>
@@ -40,7 +40,7 @@
40
40
  <template v-if="itemFile.mediaTypeID == '1'">
41
41
  <iframe :src="resultObject"
42
42
  :height="displayAreaHeight - 80 + 'px'"
43
- :width="displayAreaWidth + 'px'">
43
+ :width="displayAreaWidth + 'px'" style="border-width: 0px;">
44
44
  </iframe>
45
45
  </template>
46
46
  <!--Photo-->
@@ -160,7 +160,7 @@
160
160
  </div>
161
161
  </el-main>
162
162
  </el-container>
163
- <iframe :src="downloadUrl" style="height:0px;width:0px">
163
+ <iframe :src="downloadUrl" style="height:0px;width:0px;border-width: 0px;">
164
164
  </iframe>
165
165
  </div>
166
166
  </template>
@@ -8,7 +8,7 @@
8
8
  :height="displayAreaHeight - 78 + 'px'"
9
9
  :width="displayAreaWidth + 'px'"
10
10
  @load="complete()"
11
- @contextmenu="handleMouse"
11
+ @contextmenu="handleMouse" style="border-width: 0px;"
12
12
  >
13
13
  </iframe>
14
14
  </div>
@@ -1,24 +1,24 @@
1
1
 
2
2
  async function postFile(api, data, callback) {
3
- var xhr = new XMLHttpRequest();
4
- xhr.open('POST', api)
3
+ var xhr = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP");
4
+ xhr.open('POST', api, !0)
5
5
  xhr.onreadystatechange = function () {
6
- if (xhr.readyState === 4 && xhr.status === 200) {
7
- var rtn = JSON.parse(xhr.responseText);
8
- callback(xhr, rtn);
6
+ if (xhr.readyState != 4 || xhr.status < 200) {
7
+ return false;
9
8
  }
10
- else if (xhr.readyState === 4 && (xhr.status === 0 || xhr.status >= 400)) {
11
- var rtn = xhr.responseText || xhr.statusText;
12
- if (rtn == "") {
13
- if (xhr.status === 0) {
14
- rtn = "网络请求失败:" + api;
15
- } else {
16
- rtn = "status:" + xhr.status;
17
- }
18
- }
19
- callback(xhr, rtn);
9
+ else if (xhr.status >= 400) {
10
+ var msg = "\u521B\u5EFA\u4E0A\u4F20\u4EFB\u52A1\u5931\u8D25,\u72B6\u6001\u7801:" + xhr.status + xhr.responseText + ",\u8BF7\u68C0\u6D4B\u7F51\u7EDC...";
11
+ callback(xhr, msg, true);
12
+ return false;
20
13
  }
14
+ var rtn = JSON.parse(xhr.responseText);
15
+ callback(xhr, rtn, false);
21
16
  }
17
+ window.XMLHttpRequest && (xhr.onerror = function () {
18
+ var msg = "\u521B\u5EFA\u4E0A\u4F20\u4EFB\u52A1\u5931\u8D25,\u72B6\u6001\u7801:" + xhr.status + xhr.responseText + ",\u8BF7\u68C0\u6D4B\u7F51\u7EDC...";
19
+ callback(xhr, msg, true);
20
+ xhr = null;
21
+ });
22
22
  xhr.send(data)
23
23
  }
24
24
 
@@ -34,20 +34,20 @@ const uploadByPieces = async (url, { file }, callback, uploadOptions) => {
34
34
  };
35
35
 
36
36
  // 分片上传接口
37
- const uploadChunk = async (xhr, data) => {
37
+ const uploadChunk = async (xhr, data, flagError) => {
38
38
  return new Promise((resolve, reject) => {
39
-
40
- callback(uploadOptions, data, xhr);
41
- if (xhr.status === 200) {
42
- if (data.rtnCode == 200) {
43
- if (data.content.finished != 1) {
44
- uploadData.nextOffSet = data.content.nextOffSet;
45
- uploadData.blockSize = data.content.blockSize;
46
- readChunk(uploadData);
39
+ if (callback(uploadOptions, data, xhr, flagError)) {
40
+ if (xhr.status === 200) {
41
+ xhr = null;
42
+ if (data.rtnCode == 200) {
43
+ if (data.content.finished != 1) {
44
+ uploadData.nextOffSet = data.content.nextOffSet;
45
+ uploadData.blockSize = data.content.blockSize;
46
+ readChunk(uploadData);
47
+ }
47
48
  }
48
49
  }
49
50
  }
50
-
51
51
  })
52
52
  }
53
53
  function readFile(filechunk) {
@@ -84,13 +84,11 @@ export default {
84
84
  }
85
85
  setTimeout(() => {
86
86
  self.$emit('finished', data);
87
- this.progressFlag = false;
88
87
  }, 800);
89
88
  }
90
89
  else {
91
90
  setTimeout(() => {
92
91
  self.getApiData();
93
- this.progressFlag = false;
94
92
  }, 1000);
95
93
  }
96
94
  }
@@ -106,6 +106,7 @@ export default {
106
106
  text-align: left;
107
107
  top: 6px;
108
108
  right: 22px;
109
+ z-index: 10;
109
110
  }
110
111
 
111
112
  .my-icon-more {
@@ -324,6 +324,7 @@ const valid = {
324
324
  rtnValidate.push(valid.requiredMultiCombo);
325
325
  break;
326
326
  case Enum.ControlType.File:
327
+ case Enum.ControlType.SliceUpload:
327
328
  rtnValidate.push(valid.requiredFile);
328
329
  break;
329
330
  case Enum.ControlType.PhotoSelect:
package/src/main.js CHANGED
@@ -12,12 +12,12 @@ 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.25.10.63:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.42:9999/v1/form/router",
18
18
  // baseUrl: "http://10.88.22.39:8080/api/",
19
- baseUrl: "http://tjcptest.centaline.com.cn/",
20
- flagRouterSelf: true,
19
+ // baseUrl: "http://tjcptest.centaline.com.cn/",
20
+ // flagRouterSelf: true,
21
21
  zindex: 999,
22
22
  showRequestSuccessMessage: true,
23
23
  showRequestErrorMessage: true,
@@ -43,7 +43,7 @@ Vue.use(centaline, {
43
43
  getRequestHeaders: function () {
44
44
  return {
45
45
  oldToken: '94083010-671d-465a-95a9-1a3318ceb239',
46
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiZh3NmZWTpdsPEjCI81wcoIJBrjv6sROnpPcYrT3PuEcW6hAF3ADa3UYQE3tFITcVCSCvdBI7KwQ6NoGFkiH8vKxUMJGaT7FQoSMbacvWUwNNMvuMD5N8xjup3S4x_nLtPwmWURpjwR-r5zyO1O0bg_I1mnjap47wxebwAAAP__.R7h4AMsjakN5ut14PThDIYQJ_vYnaNXHblU4OLG-VqQ',
46
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiZhmNnH0MmCjR9BdsOaYGUEEo3x39UIHb2nOMVp7n3CtCSowa3gjjZ6XcEdbfREoo5shwd1AcUKo6fgMYgNcmw7Dk0LBeT7FWqy1jsmQ1rAGOdfsGLoG5Yp30758Y9zl3n8zKaB1Q-lR61UUBxlTIYjVo6TlPHsDZfwegMAAP__.QfhMlAY_T_oYDtowkrq5sZ68l1iqJ4nvaxGUgo7fUS8',
47
47
 
48
48
  originalRequestURL: 'http://10.88.22.67:8080',
49
49
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',