centaline-data-driven 1.4.12 → 1.4.14
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/Detail.vue +2 -2
- package/src/SearchList.vue +4 -4
- package/src/centaline/browseIframe/src/browseIframe.vue +1 -1
- package/src/centaline/css/max.css +3 -0
- 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/dynamicT/src/dynamicT.vue +61 -4
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +2 -2
- package/src/centaline/dynamicViewerFile/src/dynamicViewerPDF.vue +1 -1
- package/src/centaline/loader/src/ctl/Base.js +9 -0
- package/src/centaline/loader/src/ctl/SliceUpload.js +25 -25
- package/src/centaline/loader/src/ctl/Sos.js +0 -6
- package/src/centaline/loader/src/ctl/T.js +24 -0
- 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
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() {
|
package/src/SearchList.vue
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
:searchStatsApi="'/ProfileWorklistList/getListStats'">
|
|
12
12
|
</ct-searchlist> -->
|
|
13
13
|
|
|
14
|
-
<ct-searchlist
|
|
14
|
+
<!-- <ct-searchlist
|
|
15
15
|
:searchConditionApi="'/api/distribution/distributionList/getLayoutOfSearch'"
|
|
16
16
|
:searchDataApi="'/api/distribution/distributionList'">
|
|
17
|
-
</ct-searchlist>
|
|
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
|
-
|
|
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'"
|
|
@@ -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>
|
|
@@ -202,6 +202,9 @@
|
|
|
202
202
|
.cover-list-item .el-checkbox__input.is-checked + .el-checkbox__label,.cover-list-item .el-checkbox__input.is-checked .el-checkbox__inner{
|
|
203
203
|
color: #409eff;
|
|
204
204
|
}
|
|
205
|
+
.ct-inputNumber input.el-range-input {
|
|
206
|
+
color: #409eff!important;
|
|
207
|
+
}
|
|
205
208
|
.cover-list-item .el-checkbox__input.is-checked .el-checkbox__inner{
|
|
206
209
|
background-color:#409eff;
|
|
207
210
|
border-color: #409eff;
|
|
@@ -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>
|
|
@@ -7,10 +7,32 @@
|
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div max-input-group" :class="[model.labelClass]">
|
|
8
8
|
<span>{{model.label}}</span>
|
|
9
9
|
</div>
|
|
10
|
+
|
|
10
11
|
<div ref="highlights" v-if="model.forbiddenWords" class="backdrop" :style="{width:forbiddenWordsWidth+'px',height:forbiddenWordsHeight+'px',left:forbiddenWordsLeft+'px',top:forbiddenWordsTop+'px'}">
|
|
11
12
|
<div class="highlights" v-html="forbiddenWordsValue"></div>
|
|
12
13
|
</div>
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
<el-popover v-if="model.autoFill && model.paramName" placement="bottom-start" v-model="showDrop" :trigger="'manual'" class="autoFill">
|
|
16
|
+
<div>
|
|
17
|
+
<ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
|
|
18
|
+
</div>
|
|
19
|
+
<el-input slot="reference" ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs"
|
|
20
|
+
@input="inputHandler($event);showDropHandle();isShowClear();applyHighlights()" @change="changeHandler($event)"
|
|
21
|
+
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.forbiddenWords?'inputHighlights':'']"
|
|
22
|
+
:disabled="model.lock" :rows="model.rows" :resize="model.forbiddenWords?'none':'vertical'"
|
|
23
|
+
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
|
|
24
|
+
@keyup.enter.native="search()" style="z-index: 3;background-color: transparent;">
|
|
25
|
+
<span slot="suffix" v-if="model.unitName" class="ct-unitname" :class="showClear?'unitName-20':'unitName-0'">{{model.unitName}}</span>
|
|
26
|
+
|
|
27
|
+
<span slot="suffix" class="el-input__suffix el-input--mini is-show-Span" v-if="!model.isPassword&&showClear" :class="model.unitName?'ct-right-10':'ct-right-0'">
|
|
28
|
+
<span class="el-input__suffix-inner ct-close">
|
|
29
|
+
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
30
|
+
</span>
|
|
31
|
+
</span>
|
|
32
|
+
</el-input>
|
|
33
|
+
</el-popover>
|
|
34
|
+
|
|
35
|
+
<el-input v-else ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
|
|
14
36
|
class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.forbiddenWords?'inputHighlights':'']"
|
|
15
37
|
:disabled="model.lock" :rows="model.rows" :resize="model.forbiddenWords?'none':'vertical'"
|
|
16
38
|
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
|
|
@@ -22,10 +44,10 @@
|
|
|
22
44
|
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
23
45
|
</span>
|
|
24
46
|
</span>
|
|
25
|
-
</el-input>
|
|
47
|
+
</el-input>
|
|
26
48
|
<span v-if="this.minText" :style="{left: minTextLeft+'px'}" style="color: #909399;background: #FFF;position: absolute;font-size: 12px;bottom: 5px;z-index: 3;">{{this.minText}}</span>
|
|
27
49
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
28
|
-
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" @click="quickSelect"></ctQuickInputSos>
|
|
50
|
+
<ctQuickInputSos v-if="!model.lock && model.paramName && !model.autoFill" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" @click="quickSelect"></ctQuickInputSos>
|
|
29
51
|
|
|
30
52
|
<div v-if="model.moreActionRouter && !model.lock">
|
|
31
53
|
<img v-if="model.moreActionRouter.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem"
|
|
@@ -46,14 +68,17 @@
|
|
|
46
68
|
<script>
|
|
47
69
|
import dynamicElement from '../../mixins/dynamicElement';
|
|
48
70
|
import ctQuickInputSos from '../../quickInputSos/src/quickInput'
|
|
71
|
+
import ctSelectOptionVertical from '../../selectOption/src/selectOptionVertical'
|
|
49
72
|
export default {
|
|
50
73
|
name: 'ct-text',
|
|
51
74
|
mixins: [dynamicElement],
|
|
52
75
|
components: {
|
|
53
76
|
'ctQuickInputSos': ctQuickInputSos,
|
|
77
|
+
'ctSelectOptionVertical': ctSelectOptionVertical
|
|
54
78
|
},
|
|
55
79
|
props: {
|
|
56
|
-
vmodel: Object
|
|
80
|
+
vmodel: Object,
|
|
81
|
+
api: String,
|
|
57
82
|
},
|
|
58
83
|
data() {
|
|
59
84
|
return {
|
|
@@ -65,6 +90,8 @@
|
|
|
65
90
|
forbiddenWordsHeight:0,
|
|
66
91
|
forbiddenWordsLeft:0,
|
|
67
92
|
forbiddenWordsTop:0,
|
|
93
|
+
showDrop:false,
|
|
94
|
+
searchText:'',
|
|
68
95
|
}
|
|
69
96
|
},
|
|
70
97
|
created() {
|
|
@@ -103,11 +130,38 @@
|
|
|
103
130
|
mouseOutHandle: function () {
|
|
104
131
|
this.$set(this, 'showClear', false);
|
|
105
132
|
},
|
|
133
|
+
showDropHandle:function(){
|
|
134
|
+
var self = this;
|
|
135
|
+
if (this.model.value === undefined || this.model.value === null || this.model.value === '') {
|
|
136
|
+
this.showDrop=false;
|
|
137
|
+
}
|
|
138
|
+
else{
|
|
139
|
+
if (this.model.value !== this.searchText) {
|
|
140
|
+
setTimeout(function () {
|
|
141
|
+
self.searchText=self.model.value;
|
|
142
|
+
self.model.getOptions(self.api, self.model.value,function(){
|
|
143
|
+
if(self.model.options && self.model.options.length>0){
|
|
144
|
+
self.showDrop=true;
|
|
145
|
+
}
|
|
146
|
+
else{
|
|
147
|
+
self.showDrop=false;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}, self.model.searchTick);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
selectOption(value) {
|
|
155
|
+
this.showDrop=false;
|
|
156
|
+
this.model.value = value;
|
|
157
|
+
this.search();
|
|
158
|
+
},
|
|
106
159
|
clearClickHandle: function (event) {
|
|
107
160
|
this.model.value = '';
|
|
108
161
|
this.inputHandler(this.model.value);
|
|
109
162
|
this.changeHandler(this.model.value);
|
|
110
163
|
this.isShowClear();
|
|
164
|
+
this.showDropHandle();
|
|
111
165
|
event.stopPropagation();
|
|
112
166
|
},
|
|
113
167
|
isShowClear() {
|
|
@@ -228,4 +282,7 @@
|
|
|
228
282
|
padding: 5px 15px 5px 15px;
|
|
229
283
|
line-height: 1.5;
|
|
230
284
|
}
|
|
285
|
+
.autoFill{
|
|
286
|
+
width: 100%;
|
|
287
|
+
}
|
|
231
288
|
</style>
|
|
@@ -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>
|
|
@@ -307,6 +307,15 @@ const Base = function (source) {
|
|
|
307
307
|
get joinChar() {
|
|
308
308
|
return source.joinChar;
|
|
309
309
|
},
|
|
310
|
+
get autoFill() {
|
|
311
|
+
return source.autoFill;
|
|
312
|
+
},
|
|
313
|
+
get searchTick() {
|
|
314
|
+
return parseInt(source.searchTick) || 250;
|
|
315
|
+
},
|
|
316
|
+
set searchTick(v) {
|
|
317
|
+
source.searchTick = v;
|
|
318
|
+
},
|
|
310
319
|
};
|
|
311
320
|
|
|
312
321
|
return rtn;
|
|
@@ -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) {
|
|
@@ -79,12 +79,6 @@ const Sos = function (source, moreActionRouter) {
|
|
|
79
79
|
set clearable(v) {
|
|
80
80
|
source.clear = v;
|
|
81
81
|
},
|
|
82
|
-
get searchTick() {
|
|
83
|
-
return parseInt(source.searchTick) || 250;
|
|
84
|
-
},
|
|
85
|
-
set searchTick(v) {
|
|
86
|
-
source.searchTick = v;
|
|
87
|
-
},
|
|
88
82
|
getOptions(paramsAction,key) {
|
|
89
83
|
var self = this;
|
|
90
84
|
var apiAddrs = paramsAction || this.api;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import base from '../../index';
|
|
2
2
|
import Base from './Base';
|
|
3
3
|
import valid from '../../../validate/index';
|
|
4
|
+
import common from '../../../common';
|
|
5
|
+
import Vue from 'vue';
|
|
4
6
|
const T = function (source, inputType, readonly, isPassword,moreActionRouter) {
|
|
5
7
|
var rtn = {
|
|
6
8
|
optionAttrs: {
|
|
@@ -62,6 +64,28 @@ const T = function (source, inputType, readonly, isPassword,moreActionRouter) {
|
|
|
62
64
|
return false;
|
|
63
65
|
},
|
|
64
66
|
moreActionRouter: moreActionRouter,//更多高级查询
|
|
67
|
+
options: [{ code: source.code1, name: source.code1 }],
|
|
68
|
+
getOptions(paramsAction,key,back) {
|
|
69
|
+
var self = this;
|
|
70
|
+
var apiAddrs = paramsAction || this.api;
|
|
71
|
+
var params = {
|
|
72
|
+
action: apiAddrs,
|
|
73
|
+
para: {
|
|
74
|
+
paramName: self.paramName,
|
|
75
|
+
parentValue: rtn.getFormParentFieldPara(),
|
|
76
|
+
key: key,
|
|
77
|
+
extraData: rtn.getFormRefFieldPara()
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
|
|
81
|
+
if (response.rtnCode === 200) {
|
|
82
|
+
self.options = response.content;
|
|
83
|
+
if(back){
|
|
84
|
+
back();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
},
|
|
65
89
|
};
|
|
66
90
|
rtn = base.copy(Base(source), rtn);
|
|
67
91
|
rtn = base.copy(rtn, valid.Init(rtn));
|
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"}',
|