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.
- package/centaline-data-driven-1.4.12.tgz +0 -0
- package/package.json +1 -1
- package/src/Detail.vue +2 -2
- package/src/centaline/browseIframe/src/browseIframe.vue +1 -1
- package/src/centaline/dynamicFile/src/dynamicFile.vue +36 -31
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +0 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1 -1
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +2 -2
- package/src/centaline/dynamicViewerFile/src/dynamicViewerPDF.vue +1 -1
- package/src/centaline/loader/src/ctl/SliceUpload.js +25 -25
- package/src/centaline/progress/src/progress.vue +0 -2
- package/src/centaline/quickInputSos/src/quickInput.vue +1 -0
- package/src/centaline/validate/index.js +1 -0
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/centaline-data-driven-1.4.10.tgz +0 -0
- package/centaline-data-driven-1.4.11.tgz +0 -0
- package/centaline-data-driven-1.4.7.tgz +0 -0
- package/centaline-data-driven-1.4.8.tgz +0 -0
- package/centaline-data-driven-1.4.9.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
package/src/Detail.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="appDetail" style="height:100%;">
|
|
3
|
-
<ct-Detail :api="'
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
|
|
141
|
-
|
|
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
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
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
|
-
|
|
478
|
-
|
|
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
|
-
|
|
481
|
-
|
|
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
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}
|
|
599
|
+
position: absolute;
|
|
600
|
+
top: 38px;
|
|
601
|
+
left: 32px;
|
|
602
|
+
}
|
|
598
603
|
</style>
|
|
@@ -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>
|
|
@@ -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
|
|
7
|
-
|
|
8
|
-
callback(xhr, rtn);
|
|
6
|
+
if (xhr.readyState != 4 || xhr.status < 200) {
|
|
7
|
+
return false;
|
|
9
8
|
}
|
|
10
|
-
else if (xhr.
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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) {
|
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
|
-
|
|
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.
|
|
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"}',
|