centaline-data-driven 1.5.61 → 1.5.63
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/release-log.md +25 -0
- package/src/SearchList.vue +2 -6
- package/src/centaline/css/common.css +1 -0
- package/src/centaline/dynamicL/src/dynamicL.vue +7 -3
- package/src/centaline/dynamicT/src/dynamicT.vue +22 -11
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +8 -8
- package/src/centaline/loader/src/ctl/File.js +28 -0
- package/src/centaline/loader/src/ctl/Form.js +8 -3
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +65 -25
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
|
+
## v1.5.63
|
|
2
|
+
2023-09-05
|
|
3
|
+
|
|
4
|
+
优化
|
|
5
|
+
|
|
6
|
+
文本label超长溢出显示省略号,鼠标移上显示label
|
|
7
|
+
|
|
8
|
+
优化文本域提示信息换行问题
|
|
9
|
+
|
|
10
|
+
文件组件与分片上传组件 JS赋值
|
|
11
|
+
|
|
12
|
+
文件预览组件支持类型名称
|
|
13
|
+
|
|
14
|
+
多行文本最大最小值提示优化
|
|
15
|
+
|
|
16
|
+
## v1.5.62
|
|
17
|
+
2023-09-04
|
|
18
|
+
|
|
19
|
+
优化
|
|
20
|
+
|
|
21
|
+
违禁词提示优化
|
|
22
|
+
|
|
1
23
|
## v1.5.61
|
|
2
24
|
2023-09-04
|
|
3
25
|
|
|
4
26
|
优化
|
|
5
27
|
|
|
6
28
|
更多下拉框组件新增鼠标移上变蓝色,文本框左边距调整
|
|
29
|
+
|
|
30
|
+
违禁词修复
|
|
31
|
+
|
|
7
32
|
## v1.5.60
|
|
8
33
|
2023-08-31
|
|
9
34
|
|
package/src/SearchList.vue
CHANGED
|
@@ -50,11 +50,7 @@
|
|
|
50
50
|
:searchDataApi="'/RightValueList/getListOfSearchModel'">
|
|
51
51
|
</ct-searchlist> -->
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
:searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'"
|
|
55
|
-
:searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'" :searchStatsApi="'/PropertyPublishList/getListStatsForRET'"
|
|
56
|
-
:searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
|
|
57
|
-
</ct-searchlist> -->
|
|
53
|
+
<ct-searchlist :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'" :searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'" :searchStatsApi="'/PropertyPublishList/getListStatsForRET'" :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'"></ct-searchlist>
|
|
58
54
|
|
|
59
55
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
60
56
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
@@ -82,7 +78,7 @@
|
|
|
82
78
|
|
|
83
79
|
<!-- <ct-searchlist :searchConditionApi="'/RoleList/getLayoutOfSearch'" :searchStatsApi="'/RoleList/getListStats'" :searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist> -->
|
|
84
80
|
|
|
85
|
-
<ct-searchlist :searchConditionApi="'/TaskList/getLayoutOfSearch'" :searchStatsApi="'/TaskList/getListStats'" :searchDataApi="'/TaskList/getListOfSearchModel'"></ct-searchlist>
|
|
81
|
+
<!-- <ct-searchlist :searchConditionApi="'/TaskList/getLayoutOfSearch'" :searchStatsApi="'/TaskList/getListStats'" :searchDataApi="'/TaskList/getListOfSearchModel'"></ct-searchlist> -->
|
|
86
82
|
|
|
87
83
|
<ct-dialog-list></ct-dialog-list>
|
|
88
84
|
</div>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<span v-if="model.sufLabel" style="width:auto" class="spanMessage">{{model.sufLabel}}</span> -->
|
|
14
14
|
<div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify">
|
|
15
15
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend">
|
|
16
|
-
<div slot="prepend" class="" :class="[model.labelClass]">
|
|
16
|
+
<div slot="prepend" class="label-ellipsis" :class="[model.labelClass]" :title="model.label">
|
|
17
17
|
{{model.label}}
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<span class="el-select__tags-text">{{item}}</span>
|
|
23
23
|
</span>
|
|
24
24
|
</span>
|
|
25
|
-
<div v-else style="display:flex">
|
|
25
|
+
<div v-else style="display:inline-flex">
|
|
26
26
|
<!-- --计算占用宽度-- -->
|
|
27
27
|
<div style="position: relative" v-if="isShowComput">
|
|
28
28
|
<label class="ct-lable" style="position: absolute; left: -10000px">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</label>
|
|
31
31
|
</div>
|
|
32
32
|
<!-- 展示 -->
|
|
33
|
-
<label class="ct-lable" :style="{ display: (model.labelValue ? 'flex' : '') }">
|
|
33
|
+
<label class="ct-lable" :style="{ display: (model.labelValue ? 'inline-flex' : '') }">
|
|
34
34
|
<el-tooltip placement="top" effect="light" :disabled="isShowTooltip">
|
|
35
35
|
<div slot="content" :style="{ 'width': (model.labelValue.length > 66 ? '400px' : 'auto') }">{{
|
|
36
36
|
model.labelValue
|
|
@@ -106,4 +106,8 @@
|
|
|
106
106
|
display: flex;
|
|
107
107
|
align-items: center;
|
|
108
108
|
}
|
|
109
|
+
.label-ellipsis{
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
}
|
|
109
113
|
</style>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</el-input>
|
|
49
49
|
<span v-if="this.minText" class="textarea-tip">{{this.minText}}</span>
|
|
50
50
|
<span v-if="model.showWordLimit" class="textarea-count">{{model.value.length}}/{{ model.max }}</span>
|
|
51
|
-
<span
|
|
51
|
+
<span v-if="!model.forbiddenWords" class="textarea-icon"></span>
|
|
52
52
|
</div>
|
|
53
53
|
<!-- <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> -->
|
|
54
54
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
forbiddenWordsHeight:0,
|
|
98
98
|
forbiddenWordsLeft:0,
|
|
99
99
|
forbiddenWordsTop:0,
|
|
100
|
+
forbiddenWordsReg:'',
|
|
100
101
|
showDrop:false,
|
|
101
102
|
searchText:'',
|
|
102
103
|
}
|
|
@@ -111,21 +112,20 @@
|
|
|
111
112
|
this.model.self=this;
|
|
112
113
|
},
|
|
113
114
|
mounted() {
|
|
114
|
-
if(this.model.inputType === 'textarea'
|
|
115
|
-
if(this.model.max && this.model.max>0){
|
|
115
|
+
if(this.model.inputType === 'textarea'){
|
|
116
|
+
if(this.model.max && this.model.max>0 && this.model.min && this.model.min > 0){
|
|
116
117
|
this.minText='需要'+this.model.min+'-'+this.model.max+'个字';
|
|
117
118
|
}
|
|
118
|
-
else{
|
|
119
|
+
else if(this.model.max && this.model.max>0){
|
|
120
|
+
this.minText='至多'+this.model.max+'个字';
|
|
121
|
+
}
|
|
122
|
+
else if(this.model.min && this.model.min > 0){
|
|
119
123
|
this.minText='至少需要'+this.model.min+'个字';
|
|
120
124
|
}
|
|
121
125
|
// this.minTextLeft=this.$refs.inputText.$el.offsetLeft+10;
|
|
122
126
|
}
|
|
123
127
|
if(this.model.forbiddenWords){
|
|
124
|
-
|
|
125
|
-
if(this.model.moreActionRouter && !this.model.lock){
|
|
126
|
-
inputTextWidth=inputTextWidth-42;
|
|
127
|
-
}
|
|
128
|
-
this.forbiddenWordsWidth=inputTextWidth;
|
|
128
|
+
this.forbiddenWordsWidth=this.$refs.inputText.$el.offsetWidth;
|
|
129
129
|
this.forbiddenWordsHeight=this.$refs.inputText.$el.offsetHeight;
|
|
130
130
|
this.forbiddenWordsLeft=this.$refs.inputText.$el.offsetLeft;
|
|
131
131
|
this.forbiddenWordsTop=this.$refs.inputText.$el.offsetTop;
|
|
@@ -233,10 +233,21 @@
|
|
|
233
233
|
if(self.model.forbiddenWords){
|
|
234
234
|
self.forbiddenWordsValue=self.model.value;
|
|
235
235
|
let joinChar=self.model.joinChar || ',';
|
|
236
|
+
this.forbiddenWordsReg='';
|
|
236
237
|
self.model.forbiddenWords.split(joinChar).forEach(w => {
|
|
238
|
+
if(self.forbiddenWordsValue.indexOf(w)>-1){
|
|
239
|
+
if(this.forbiddenWordsReg==''){
|
|
240
|
+
this.forbiddenWordsReg+='(';
|
|
241
|
+
this.forbiddenWordsReg+=w;
|
|
242
|
+
}
|
|
243
|
+
else{
|
|
244
|
+
this.forbiddenWordsReg+=','+w;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
237
247
|
let reg1=new RegExp(w,'g');
|
|
238
248
|
self.forbiddenWordsValue=self.forbiddenWordsValue.replace(reg1,'<span style="background-color: #ffff00;color: transparent;">'+w+'</span>');
|
|
239
249
|
});
|
|
250
|
+
if(this.forbiddenWordsReg)this.forbiddenWordsReg+=')';
|
|
240
251
|
// let h=this.$refs.input.$el.children[0].offsetHeight;
|
|
241
252
|
// let hs=this.$refs.input.$el.children[0].scrollHeight;
|
|
242
253
|
// let ht=this.$refs.input.$el.children[0].scrollTop;
|
|
@@ -254,10 +265,10 @@
|
|
|
254
265
|
let flag=true;
|
|
255
266
|
if(this.model.forbiddenWords && this.model.value){
|
|
256
267
|
let reg1=new RegExp('#ffff00','g');
|
|
257
|
-
let res=this.forbiddenWordsValue.match(reg1)
|
|
268
|
+
let res=this.forbiddenWordsValue.match(reg1);
|
|
258
269
|
if(res && res.length>0){
|
|
259
270
|
flag=false;
|
|
260
|
-
this.validMessage = (this.validMessage?this.validMessage+" ":"") + "
|
|
271
|
+
this.validMessage = (this.validMessage?this.validMessage+" ":"") + "输入文字中"+res.length+"处包含违禁词"+this.forbiddenWordsReg;
|
|
261
272
|
}
|
|
262
273
|
this.valid = flag;
|
|
263
274
|
}
|
|
@@ -37,24 +37,24 @@
|
|
|
37
37
|
:style="{ height: displayAreaHeight - 78 + 'px' }"
|
|
38
38
|
v-if="resultObject">
|
|
39
39
|
<!--VR-->
|
|
40
|
-
<template v-if="itemFile.mediaTypeID == '1'">
|
|
40
|
+
<template v-if="itemFile.mediaTypeID == '1'||(itemFile.mediaTypeID+'').toLowerCase()=='vr'">
|
|
41
41
|
<iframe :src="resultObject"
|
|
42
42
|
:height="displayAreaHeight - 80 + 'px'"
|
|
43
43
|
:width="displayAreaWidth + 'px'" style="border-width: 0px;">
|
|
44
44
|
</iframe>
|
|
45
45
|
</template>
|
|
46
46
|
<!--Photo-->
|
|
47
|
-
<template v-else-if="itemFile.mediaTypeID == '2'">
|
|
47
|
+
<template v-else-if="itemFile.mediaTypeID == '2'||(itemFile.mediaTypeID+'').toLowerCase()=='photo'">
|
|
48
48
|
<ct-viewerImage ref="viewerImage"
|
|
49
49
|
:imgUrl="resultObject+((!itemFile.flagUrl)?'/'+displayAreaWidth+'/'+displayAreaHeight+'?FlagC=0':'')"
|
|
50
50
|
:rotate="rotate"></ct-viewerImage>
|
|
51
51
|
</template>
|
|
52
52
|
<!--ThreeDimensional-->
|
|
53
|
-
<template v-else-if="itemFile.mediaTypeID == '3'">
|
|
53
|
+
<template v-else-if="itemFile.mediaTypeID == '3'||(itemFile.mediaTypeID+'').toLowerCase()=='threedimensional'">
|
|
54
54
|
暂不支持ThreeDimensional
|
|
55
55
|
</template>
|
|
56
56
|
<!--Video-->
|
|
57
|
-
<template v-else-if="itemFile.mediaTypeID == '4'">
|
|
57
|
+
<template v-else-if="itemFile.mediaTypeID == '4'||(itemFile.mediaTypeID+'').toLowerCase()=='video'">
|
|
58
58
|
<div class="viewerContent">
|
|
59
59
|
<template v-if="itemFile.thumbnailUrl">
|
|
60
60
|
<video preload="none" :poster="itemFile.thumbnailUrl"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
</div>
|
|
82
82
|
</template>
|
|
83
83
|
<!--Audio-->
|
|
84
|
-
<template v-else-if="itemFile.mediaTypeID == '5'">
|
|
84
|
+
<template v-else-if="itemFile.mediaTypeID == '5'||(itemFile.mediaTypeID+'').toLowerCase()=='audio'">
|
|
85
85
|
<div class="viewerContent">
|
|
86
86
|
<audio preload="none"
|
|
87
87
|
:src="resultObject"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
</div>
|
|
95
95
|
</template>
|
|
96
96
|
<!--File-->
|
|
97
|
-
<template v-else-if="itemFile.mediaTypeID == '6'">
|
|
97
|
+
<template v-else-if="itemFile.mediaTypeID == '6'||(itemFile.mediaTypeID+'').toLowerCase()=='file'">
|
|
98
98
|
<template v-if="'pdf' .search(itemFile.fileExtension.toLowerCase())>-1 ">
|
|
99
99
|
<ct-viewerPDF :pdfUrl="resultObject"
|
|
100
100
|
:displayAreaHeight="displayAreaHeight"
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
class="magnify-btn el-icon-right"
|
|
139
139
|
title="下一个"
|
|
140
140
|
@click="jump(1)"></a>
|
|
141
|
-
<template v-if="itemFile.mediaTypeID == '2'">
|
|
141
|
+
<template v-if="itemFile.mediaTypeID == '2'||(itemFile.mediaTypeID+'').toLowerCase()=='photo'">
|
|
142
142
|
<a href="javascript:void(0)"
|
|
143
143
|
class="magnify-btn el-icon-refresh-left"
|
|
144
144
|
title="左旋转"
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
:download="(itemFile.mediaLabelName || itemFile.fileName)"
|
|
169
169
|
@click="handDownload(resultObject)"
|
|
170
170
|
></a>-->
|
|
171
|
-
<a href="javascript:void(0)" v-if="itemFile.rightDownload&&itemFile.mediaTypeID !='1'"
|
|
171
|
+
<a href="javascript:void(0)" v-if="itemFile.rightDownload&&(itemFile.mediaTypeID !='1'&&(itemFile.mediaTypeID+'').toLowerCase()=='vr')"
|
|
172
172
|
class="magnify-btn el-icon-download"
|
|
173
173
|
title="下载"
|
|
174
174
|
@click="handDownload(resultObject)"></a>
|
|
@@ -387,6 +387,34 @@ const box = function (source, fileSourceList, router, optionApi,videoPlayIconUrl
|
|
|
387
387
|
}
|
|
388
388
|
rtn.fileList.push(awaitfile);
|
|
389
389
|
},
|
|
390
|
+
jsSetFile(data)
|
|
391
|
+
{
|
|
392
|
+
var photos = JSON.parse(data);
|
|
393
|
+
photos.forEach((v) => {
|
|
394
|
+
if(rtn.fileList.length<parseInt(rtn.max || 999)){
|
|
395
|
+
v.videoCoverFileName=v.videoCoverFileName||null;
|
|
396
|
+
v.thumbnailUrl=v.thumbnailUrl||'';
|
|
397
|
+
v.mediaSourceTypeID=v.mediaSourceTypeID||null;
|
|
398
|
+
v.mediaSourceID=v.mediaSourceID||null;
|
|
399
|
+
v.mediaPrintDesc=v.mediaPrintDesc||null;
|
|
400
|
+
v.mediaID=v.mediaID||null;
|
|
401
|
+
v.mediaFormData=v.mediaFormData||null;
|
|
402
|
+
v.mediaDescEN=v.mediaDescEN||null;
|
|
403
|
+
v.mediaDescCN=v.mediaDescCN||null;
|
|
404
|
+
v.mediaDataBase64=v.mediaDataBase64||null;
|
|
405
|
+
v.mediaCode=v.mediaCode||null;
|
|
406
|
+
v.groupID=v.groupID||null;
|
|
407
|
+
rtn.AddSourceList(v);
|
|
408
|
+
var FileData = rtn.getFileData(v);
|
|
409
|
+
FileData.uid=rtn.self.uploadguid();
|
|
410
|
+
FileData.width=v.width;
|
|
411
|
+
FileData.height=v.height;
|
|
412
|
+
rtn.fileList.push(FileData);
|
|
413
|
+
rtn.self.handleChange();
|
|
414
|
+
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
},
|
|
390
418
|
setByPieces(res, Progress, file) {
|
|
391
419
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
392
420
|
//下面的方式绑定,会有一些问题 todo 不强与页面关联
|
|
@@ -230,12 +230,17 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
230
230
|
attrKey = this.common.initialsToLowerCase(attrKey);
|
|
231
231
|
var rtn1 = this.fieldsDic[id];
|
|
232
232
|
if (rtn1) {
|
|
233
|
-
if(attrKey=='code1' && rtn1.source.controlType===4
|
|
234
|
-
|
|
235
|
-
if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null && rtn1.source.decimals1
|
|
233
|
+
if (attrKey == 'code1' && rtn1.source.controlType === 4
|
|
234
|
+
&& attrValue != undefined && attrValue != null && attrValue != '') {
|
|
235
|
+
if (rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null && rtn1.source.decimals1 > -1) {
|
|
236
236
|
attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
+
else if (attrKey == 'code1' && (rtn1.source.controlType === 25 || rtn1.source.controlType === 51)
|
|
240
|
+
&& attrValue != undefined && attrValue != null && attrValue != '') {
|
|
241
|
+
rtn1.jsSetFile(attrValue);
|
|
242
|
+
}
|
|
243
|
+
|
|
239
244
|
rtn1.source[attrKey] = attrValue;
|
|
240
245
|
this.form.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
241
246
|
|
package/src/main.js
CHANGED
|
@@ -58,7 +58,7 @@ Vue.use(centaline, {
|
|
|
58
58
|
return {
|
|
59
59
|
oldToken: 'aed9a1f3-c668-4d9e-aa6d-47ebe2b4eedb',
|
|
60
60
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
61
|
-
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
61
|
+
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOiv5s95d08V20nCIKAFHChUiiQRC3J0goKNniimmee-u5nVQO5Wl1phaB6mxHjCzh7plgZhEdLTsMEoXPsAPfemMwcCGGqgDJ0BCB2KSQEJK2ObGpZhVpcr1rHaGggscNJtKTf3yDhIsvcI6l8u-3P5x7rRM22xvCbE_EBxpdIB2HGAom6xhPzrtPAuqxxMAAP__.9QkTeNDYCOc2zjLQBa4LxqAbS9a7S1_DhvFy7w3g-9U"}',
|
|
62
62
|
|
|
63
63
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
64
64
|
EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|
|
@@ -9296,6 +9296,32 @@ var box = function box(source, fileSourceList, router, optionApi, videoPlayIconU
|
|
|
9296
9296
|
};
|
|
9297
9297
|
rtn.fileList.push(awaitfile);
|
|
9298
9298
|
},
|
|
9299
|
+
jsSetFile: function jsSetFile(data) {
|
|
9300
|
+
var photos = JSON.parse(data);
|
|
9301
|
+
photos.forEach(function (v) {
|
|
9302
|
+
if (rtn.fileList.length < parseInt(rtn.max || 999)) {
|
|
9303
|
+
v.videoCoverFileName = v.videoCoverFileName || null;
|
|
9304
|
+
v.thumbnailUrl = v.thumbnailUrl || '';
|
|
9305
|
+
v.mediaSourceTypeID = v.mediaSourceTypeID || null;
|
|
9306
|
+
v.mediaSourceID = v.mediaSourceID || null;
|
|
9307
|
+
v.mediaPrintDesc = v.mediaPrintDesc || null;
|
|
9308
|
+
v.mediaID = v.mediaID || null;
|
|
9309
|
+
v.mediaFormData = v.mediaFormData || null;
|
|
9310
|
+
v.mediaDescEN = v.mediaDescEN || null;
|
|
9311
|
+
v.mediaDescCN = v.mediaDescCN || null;
|
|
9312
|
+
v.mediaDataBase64 = v.mediaDataBase64 || null;
|
|
9313
|
+
v.mediaCode = v.mediaCode || null;
|
|
9314
|
+
v.groupID = v.groupID || null;
|
|
9315
|
+
rtn.AddSourceList(v);
|
|
9316
|
+
var FileData = rtn.getFileData(v);
|
|
9317
|
+
FileData.uid = rtn.self.uploadguid();
|
|
9318
|
+
FileData.width = v.width;
|
|
9319
|
+
FileData.height = v.height;
|
|
9320
|
+
rtn.fileList.push(FileData);
|
|
9321
|
+
rtn.self.handleChange();
|
|
9322
|
+
}
|
|
9323
|
+
});
|
|
9324
|
+
},
|
|
9299
9325
|
setByPieces: function setByPieces(res, Progress, file) {
|
|
9300
9326
|
if (res.rtnCode === __WEBPACK_IMPORTED_MODULE_3__lib_Enum__["default"].ReturnCode.Successful) {
|
|
9301
9327
|
//下面的方式绑定,会有一些问题 todo 不强与页面关联
|
|
@@ -32670,6 +32696,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
32670
32696
|
forbiddenWordsHeight: 0,
|
|
32671
32697
|
forbiddenWordsLeft: 0,
|
|
32672
32698
|
forbiddenWordsTop: 0,
|
|
32699
|
+
forbiddenWordsReg: '',
|
|
32673
32700
|
showDrop: false,
|
|
32674
32701
|
searchText: ''
|
|
32675
32702
|
};
|
|
@@ -32683,20 +32710,18 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
32683
32710
|
this.model.self = this;
|
|
32684
32711
|
},
|
|
32685
32712
|
mounted: function mounted() {
|
|
32686
|
-
if (this.model.inputType === 'textarea'
|
|
32687
|
-
if (this.model.max && this.model.max > 0) {
|
|
32713
|
+
if (this.model.inputType === 'textarea') {
|
|
32714
|
+
if (this.model.max && this.model.max > 0 && this.model.min && this.model.min > 0) {
|
|
32688
32715
|
this.minText = '需要' + this.model.min + '-' + this.model.max + '个字';
|
|
32689
|
-
} else {
|
|
32716
|
+
} else if (this.model.max && this.model.max > 0) {
|
|
32717
|
+
this.minText = '至多' + this.model.max + '个字';
|
|
32718
|
+
} else if (this.model.min && this.model.min > 0) {
|
|
32690
32719
|
this.minText = '至少需要' + this.model.min + '个字';
|
|
32691
32720
|
}
|
|
32692
32721
|
// this.minTextLeft=this.$refs.inputText.$el.offsetLeft+10;
|
|
32693
32722
|
}
|
|
32694
32723
|
if (this.model.forbiddenWords) {
|
|
32695
|
-
|
|
32696
|
-
if (this.model.moreActionRouter && !this.model.lock) {
|
|
32697
|
-
inputTextWidth = inputTextWidth - 42;
|
|
32698
|
-
}
|
|
32699
|
-
this.forbiddenWordsWidth = inputTextWidth;
|
|
32724
|
+
this.forbiddenWordsWidth = this.$refs.inputText.$el.offsetWidth;
|
|
32700
32725
|
this.forbiddenWordsHeight = this.$refs.inputText.$el.offsetHeight;
|
|
32701
32726
|
this.forbiddenWordsLeft = this.$refs.inputText.$el.offsetLeft;
|
|
32702
32727
|
this.forbiddenWordsTop = this.$refs.inputText.$el.offsetTop;
|
|
@@ -32796,14 +32821,26 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
32796
32821
|
this.$refs.highlights.scrollTop = scrollTop;
|
|
32797
32822
|
},
|
|
32798
32823
|
applyHighlights: function applyHighlights() {
|
|
32824
|
+
var _this = this;
|
|
32825
|
+
|
|
32799
32826
|
var self = this;
|
|
32800
32827
|
if (self.model.forbiddenWords) {
|
|
32801
32828
|
self.forbiddenWordsValue = self.model.value;
|
|
32802
32829
|
var joinChar = self.model.joinChar || ',';
|
|
32830
|
+
this.forbiddenWordsReg = '';
|
|
32803
32831
|
self.model.forbiddenWords.split(joinChar).forEach(function (w) {
|
|
32832
|
+
if (self.forbiddenWordsValue.indexOf(w) > -1) {
|
|
32833
|
+
if (_this.forbiddenWordsReg == '') {
|
|
32834
|
+
_this.forbiddenWordsReg += '(';
|
|
32835
|
+
_this.forbiddenWordsReg += w;
|
|
32836
|
+
} else {
|
|
32837
|
+
_this.forbiddenWordsReg += ',' + w;
|
|
32838
|
+
}
|
|
32839
|
+
}
|
|
32804
32840
|
var reg1 = new RegExp(w, 'g');
|
|
32805
32841
|
self.forbiddenWordsValue = self.forbiddenWordsValue.replace(reg1, '<span style="background-color: #ffff00;color: transparent;">' + w + '</span>');
|
|
32806
32842
|
});
|
|
32843
|
+
if (this.forbiddenWordsReg) this.forbiddenWordsReg += ')';
|
|
32807
32844
|
// let h=this.$refs.input.$el.children[0].offsetHeight;
|
|
32808
32845
|
// let hs=this.$refs.input.$el.children[0].scrollHeight;
|
|
32809
32846
|
// let ht=this.$refs.input.$el.children[0].scrollTop;
|
|
@@ -32825,7 +32862,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
32825
32862
|
var res = this.forbiddenWordsValue.match(reg1);
|
|
32826
32863
|
if (res && res.length > 0) {
|
|
32827
32864
|
flag = false;
|
|
32828
|
-
this.validMessage = (this.validMessage ? this.validMessage + " " : "") + "
|
|
32865
|
+
this.validMessage = (this.validMessage ? this.validMessage + " " : "") + "输入文字中" + res.length + "处包含违禁词" + this.forbiddenWordsReg;
|
|
32829
32866
|
}
|
|
32830
32867
|
this.valid = flag;
|
|
32831
32868
|
}
|
|
@@ -36903,7 +36940,10 @@ var Form = function Form(source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
36903
36940
|
if (rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null && rtn1.source.decimals1 > -1) {
|
|
36904
36941
|
attrValue = Number(attrValue).toFixed(rtn1.source.decimals1);
|
|
36905
36942
|
}
|
|
36943
|
+
} else if (attrKey == 'code1' && (rtn1.source.controlType === 25 || rtn1.source.controlType === 51) && attrValue != undefined && attrValue != null && attrValue != '') {
|
|
36944
|
+
rtn1.jsSetFile(attrValue);
|
|
36906
36945
|
}
|
|
36946
|
+
|
|
36907
36947
|
rtn1.source[attrKey] = attrValue;
|
|
36908
36948
|
this.form.hatchHandle(id, attrKey, attrValue, rtn1);
|
|
36909
36949
|
|
|
@@ -56285,7 +56325,7 @@ var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
|
56285
56325
|
"use strict";
|
|
56286
56326
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicT_vue__ = __webpack_require__(215);
|
|
56287
56327
|
/* unused harmony namespace reexport */
|
|
56288
|
-
/* harmony import */ var
|
|
56328
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_299c44f5_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicT_vue__ = __webpack_require__(568);
|
|
56289
56329
|
function injectStyle (ssrContext) {
|
|
56290
56330
|
__webpack_require__(561)
|
|
56291
56331
|
}
|
|
@@ -56300,12 +56340,12 @@ var __vue_template_functional__ = false
|
|
|
56300
56340
|
/* styles */
|
|
56301
56341
|
var __vue_styles__ = injectStyle
|
|
56302
56342
|
/* scopeId */
|
|
56303
|
-
var __vue_scopeId__ = "data-v-
|
|
56343
|
+
var __vue_scopeId__ = "data-v-299c44f5"
|
|
56304
56344
|
/* moduleIdentifier (server only) */
|
|
56305
56345
|
var __vue_module_identifier__ = null
|
|
56306
56346
|
var Component = normalizeComponent(
|
|
56307
56347
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicT_vue__["a" /* default */],
|
|
56308
|
-
|
|
56348
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_299c44f5_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicT_vue__["a" /* default */],
|
|
56309
56349
|
__vue_template_functional__,
|
|
56310
56350
|
__vue_styles__,
|
|
56311
56351
|
__vue_scopeId__,
|
|
@@ -56326,7 +56366,7 @@ var content = __webpack_require__(562);
|
|
|
56326
56366
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
56327
56367
|
if(content.locals) module.exports = content.locals;
|
|
56328
56368
|
// add the styles to the DOM
|
|
56329
|
-
var update = __webpack_require__(2)("
|
|
56369
|
+
var update = __webpack_require__(2)("e81e9986", content, true, {});
|
|
56330
56370
|
|
|
56331
56371
|
/***/ }),
|
|
56332
56372
|
/* 562 */
|
|
@@ -56338,7 +56378,7 @@ exports = module.exports = __webpack_require__(1)(false);
|
|
|
56338
56378
|
|
|
56339
56379
|
|
|
56340
56380
|
// module
|
|
56341
|
-
exports.push([module.i, ".errorMessageMarginLeft[data-v-
|
|
56381
|
+
exports.push([module.i, ".errorMessageMarginLeft[data-v-299c44f5]{margin-left:108px}.hoverColor[data-v-299c44f5]:hover{border-color:var(--centalineBlue)}.is-show-Span[data-v-299c44f5]{display:none}.hoverColor:hover .is-show-Span[data-v-299c44f5]{display:inline-block}.backdrop[data-v-299c44f5]{position:absolute;z-index:1;border:none;background-color:#fff;pointer-events:none;overflow-y:auto;border-radius:4px;-webkit-transition:-webkit-transform 1s;transition:-webkit-transform 1s;transition:transform 1s;transition:transform 1s,-webkit-transform 1s}.highlights[data-v-299c44f5]{white-space:pre-wrap;word-wrap:break-word;color:transparent;padding:5px 15px 5px 5px;line-height:1.5;font-family:monospace}.autoFill[data-v-299c44f5]{width:100%}.textarea-box[data-v-299c44f5]{border:1px solid var(--bagGray);width:100%;position:relative;border-radius:4px}.textarea-box[data-v-299c44f5]:active,.textarea-box[data-v-299c44f5]:focus,.textarea-box[data-v-299c44f5]:hover{border-color:var(--centalineBlue)!important}.textarea-tip[data-v-299c44f5]{margin-left:5px;color:#606266}.textarea-count[data-v-299c44f5]{position:absolute;right:10px}.textarea-icon[data-v-299c44f5]{background:url(" + escape(__webpack_require__(563)) + ")no-repeat;background-size:100% 100%;width:12px;height:12px;display:inline-block;position:absolute;right:0;bottom:0}", ""]);
|
|
56342
56382
|
|
|
56343
56383
|
// exports
|
|
56344
56384
|
|
|
@@ -57075,7 +57115,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
57075
57115
|
"use strict";
|
|
57076
57116
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicL_vue__ = __webpack_require__(249);
|
|
57077
57117
|
/* unused harmony namespace reexport */
|
|
57078
|
-
/* harmony import */ var
|
|
57118
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_c84a5a4c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicL_vue__ = __webpack_require__(599);
|
|
57079
57119
|
function injectStyle (ssrContext) {
|
|
57080
57120
|
__webpack_require__(597)
|
|
57081
57121
|
}
|
|
@@ -57090,12 +57130,12 @@ var __vue_template_functional__ = false
|
|
|
57090
57130
|
/* styles */
|
|
57091
57131
|
var __vue_styles__ = injectStyle
|
|
57092
57132
|
/* scopeId */
|
|
57093
|
-
var __vue_scopeId__ = "data-v-
|
|
57133
|
+
var __vue_scopeId__ = "data-v-c84a5a4c"
|
|
57094
57134
|
/* moduleIdentifier (server only) */
|
|
57095
57135
|
var __vue_module_identifier__ = null
|
|
57096
57136
|
var Component = normalizeComponent(
|
|
57097
57137
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicL_vue__["a" /* default */],
|
|
57098
|
-
|
|
57138
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_c84a5a4c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicL_vue__["a" /* default */],
|
|
57099
57139
|
__vue_template_functional__,
|
|
57100
57140
|
__vue_styles__,
|
|
57101
57141
|
__vue_scopeId__,
|
|
@@ -57116,7 +57156,7 @@ var content = __webpack_require__(598);
|
|
|
57116
57156
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
57117
57157
|
if(content.locals) module.exports = content.locals;
|
|
57118
57158
|
// add the styles to the DOM
|
|
57119
|
-
var update = __webpack_require__(2)("
|
|
57159
|
+
var update = __webpack_require__(2)("271627b2", content, true, {});
|
|
57120
57160
|
|
|
57121
57161
|
/***/ }),
|
|
57122
57162
|
/* 598 */
|
|
@@ -57127,7 +57167,7 @@ exports = module.exports = __webpack_require__(1)(false);
|
|
|
57127
57167
|
|
|
57128
57168
|
|
|
57129
57169
|
// module
|
|
57130
|
-
exports.push([module.i, ".isWidth[data-v-
|
|
57170
|
+
exports.push([module.i, ".isWidth[data-v-c84a5a4c]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.isEllipsis[data-v-c84a5a4c]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;word-break:break-all}.text-justify[data-v-c84a5a4c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.label-ellipsis[data-v-c84a5a4c]{overflow:hidden;text-overflow:ellipsis}", ""]);
|
|
57131
57171
|
|
|
57132
57172
|
// exports
|
|
57133
57173
|
|
|
@@ -57137,7 +57177,7 @@ exports.push([module.i, ".isWidth[data-v-9968cfc6]{display:-webkit-inline-box;di
|
|
|
57137
57177
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
57138
57178
|
|
|
57139
57179
|
"use strict";
|
|
57140
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field-top"},[(_vm.model !== null)?_c('div',{staticClass:"ct-text",staticStyle:{"width":"100%","display":"flex"}},[_c('div',{staticClass:"el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify"},[(_vm.model.showLabel && _vm.model.label)?_c('div',{staticClass:"el-input-group__prepend"},[_c('div',{class:[_vm.model.labelClass],attrs:{"slot":"prepend"},slot:"prepend"},[_vm._v("\n "+_vm._s(_vm.model.label)+"\n ")])]):_vm._e(),_vm._v(" "),(_vm.model.flagJson)?_c('span',_vm._l((_vm.model.labelValue),function(item){return _c('span',{key:item,staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"box-sizing":"border-box","border-color":"transparent","margin":"2px 0 2px 6px"}},[_c('span',{staticClass:"el-select__tags-text"},[_vm._v(_vm._s(item))])])})):_c('div',{staticStyle:{"display":"flex"}},[(_vm.isShowComput)?_c('div',{staticStyle:{"position":"relative"}},[_c('label',{staticClass:"ct-lable",staticStyle:{"position":"absolute","left":"-10000px"}},[_c('span',{ref:'computLabel' + _vm.model.index},[_vm._v(" "+_vm._s(_vm.model.labelValue))])])]):_vm._e(),_vm._v(" "),_c('label',{staticClass:"ct-lable",style:({ display: (_vm.model.labelValue ? 'flex' : '') })},[_c('el-tooltip',{attrs:{"placement":"top","effect":"light","disabled":_vm.isShowTooltip}},[_c('div',{style:({ 'width': (_vm.model.labelValue.length > 66 ? '400px' : 'auto') }),attrs:{"slot":"content"},slot:"content"},[_vm._v(_vm._s(_vm.model.labelValue))]),_vm._v(" "),_c('div',{staticClass:"isEllipsis",style:({ display: (_vm.model.labelValue ? '-webkit-box' : 'none') }),on:{"mouseover":function($event){_vm.onMouseOver('refLabelValue' + _vm.model.index, _vm.model.index)}}},[_c('span',{ref:'refLabelValue' + _vm.model.index},[_vm._v(_vm._s(_vm.model.labelValue))])])])],1)]),_vm._v(" "),(_vm.model.unitName)?_c('span',{staticClass:"ct-unitnameLable",attrs:{"slot":"suffix"},slot:"suffix"},[_vm._v(_vm._s(_vm.model.unitName))]):_vm._e(),_vm._v(" "),(_vm.model.sufLabel)?_c('span',{staticClass:"spanMessage",staticStyle:{"width":"auto"}},[_vm._v(_vm._s(_vm.model.sufLabel))]):_vm._e()])]):_vm._e()])}
|
|
57180
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field-top"},[(_vm.model !== null)?_c('div',{staticClass:"ct-text",staticStyle:{"width":"100%","display":"flex"}},[_c('div',{staticClass:"el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify"},[(_vm.model.showLabel && _vm.model.label)?_c('div',{staticClass:"el-input-group__prepend"},[_c('div',{staticClass:"label-ellipsis",class:[_vm.model.labelClass],attrs:{"slot":"prepend","title":_vm.model.label},slot:"prepend"},[_vm._v("\n "+_vm._s(_vm.model.label)+"\n ")])]):_vm._e(),_vm._v(" "),(_vm.model.flagJson)?_c('span',_vm._l((_vm.model.labelValue),function(item){return _c('span',{key:item,staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"box-sizing":"border-box","border-color":"transparent","margin":"2px 0 2px 6px"}},[_c('span',{staticClass:"el-select__tags-text"},[_vm._v(_vm._s(item))])])})):_c('div',{staticStyle:{"display":"inline-flex"}},[(_vm.isShowComput)?_c('div',{staticStyle:{"position":"relative"}},[_c('label',{staticClass:"ct-lable",staticStyle:{"position":"absolute","left":"-10000px"}},[_c('span',{ref:'computLabel' + _vm.model.index},[_vm._v(" "+_vm._s(_vm.model.labelValue))])])]):_vm._e(),_vm._v(" "),_c('label',{staticClass:"ct-lable",style:({ display: (_vm.model.labelValue ? 'inline-flex' : '') })},[_c('el-tooltip',{attrs:{"placement":"top","effect":"light","disabled":_vm.isShowTooltip}},[_c('div',{style:({ 'width': (_vm.model.labelValue.length > 66 ? '400px' : 'auto') }),attrs:{"slot":"content"},slot:"content"},[_vm._v(_vm._s(_vm.model.labelValue))]),_vm._v(" "),_c('div',{staticClass:"isEllipsis",style:({ display: (_vm.model.labelValue ? '-webkit-box' : 'none') }),on:{"mouseover":function($event){_vm.onMouseOver('refLabelValue' + _vm.model.index, _vm.model.index)}}},[_c('span',{ref:'refLabelValue' + _vm.model.index},[_vm._v(_vm._s(_vm.model.labelValue))])])])],1)]),_vm._v(" "),(_vm.model.unitName)?_c('span',{staticClass:"ct-unitnameLable",attrs:{"slot":"suffix"},slot:"suffix"},[_vm._v(_vm._s(_vm.model.unitName))]):_vm._e(),_vm._v(" "),(_vm.model.sufLabel)?_c('span',{staticClass:"spanMessage",staticStyle:{"width":"auto"}},[_vm._v(_vm._s(_vm.model.sufLabel))]):_vm._e()])]):_vm._e()])}
|
|
57141
57181
|
var staticRenderFns = []
|
|
57142
57182
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
57143
57183
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
@@ -63429,7 +63469,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
63429
63469
|
"use strict";
|
|
63430
63470
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicViewerFile_vue__ = __webpack_require__(272);
|
|
63431
63471
|
/* unused harmony namespace reexport */
|
|
63432
|
-
/* harmony import */ var
|
|
63472
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_65705b68_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicViewerFile_vue__ = __webpack_require__(721);
|
|
63433
63473
|
function injectStyle (ssrContext) {
|
|
63434
63474
|
__webpack_require__(713)
|
|
63435
63475
|
}
|
|
@@ -63449,7 +63489,7 @@ var __vue_scopeId__ = null
|
|
|
63449
63489
|
var __vue_module_identifier__ = null
|
|
63450
63490
|
var Component = normalizeComponent(
|
|
63451
63491
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicViewerFile_vue__["a" /* default */],
|
|
63452
|
-
|
|
63492
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_65705b68_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicViewerFile_vue__["a" /* default */],
|
|
63453
63493
|
__vue_template_functional__,
|
|
63454
63494
|
__vue_styles__,
|
|
63455
63495
|
__vue_scopeId__,
|
|
@@ -63470,7 +63510,7 @@ var content = __webpack_require__(714);
|
|
|
63470
63510
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
63471
63511
|
if(content.locals) module.exports = content.locals;
|
|
63472
63512
|
// add the styles to the DOM
|
|
63473
|
-
var update = __webpack_require__(2)("
|
|
63513
|
+
var update = __webpack_require__(2)("4c7450da", content, true, {});
|
|
63474
63514
|
|
|
63475
63515
|
/***/ }),
|
|
63476
63516
|
/* 714 */
|
|
@@ -63616,10 +63656,10 @@ var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
|
63616
63656
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
63617
63657
|
|
|
63618
63658
|
"use strict";
|
|
63619
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"viewerfile",staticClass:"ccai",staticStyle:{"height":"100%"},attrs:{"id":"viewer-file"},on:{"contextmenu":_vm.handleMouse}},[_c('el-container',{staticStyle:{"height":"100%","border":"1px solid #eee"}},[_c('el-aside',{staticClass:"ccai-aside",staticStyle:{"background-color":"rgb(238, 241, 246)"}},[_c('div',{staticClass:"viewerMenu",staticStyle:{"height":"100%"}},[_c('el-menu',{staticStyle:{"height":"100%"},attrs:{"default-openeds":_vm.openeds,"default-active":_vm.activeitem}},_vm._l((_vm.MediaAlbum),function(group,groupIndex){return _c('el-submenu',{key:groupIndex,attrs:{"index":groupIndex.toString()}},[_c('template',{slot:"title"},[_c('i'),_vm._v(" "),_c('div',{staticStyle:{"padding":"0 10px !important","height":"30px !important","line-height":"30px !important"}},[_vm._v("\n "+_vm._s(group.albumName)+"\n ")])]),_vm._v(" "),_c('el-menu-item-group',_vm._l((group.medias),function(item,index){return _c('el-menu-item',{key:index,attrs:{"index":groupIndex.toString() + '-' + index.toString()},on:{"click":function($event){_vm.handleClick(item, groupIndex, index)}}},[_vm._v(_vm._s(item.mediaLabelName || item.fileName))])}))],2)}))],1)]),_vm._v(" "),_c('el-main',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.downloadLoading),expression:"downloadLoading"}],ref:"displayArea",attrs:{"element-loading-spinner":"el-icon-loading","element-loading-custom-class":'cloading'}},[(_vm.resultObject)?_c('div',{staticStyle:{"position":"relative","width":"100%"},style:({ height: _vm.displayAreaHeight - 78 + 'px' })},[(_vm.itemFile.mediaTypeID == '1')?[_c('iframe',{staticStyle:{"border-width":"0px"},attrs:{"src":_vm.resultObject,"height":_vm.displayAreaHeight - 80 + 'px',"width":_vm.displayAreaWidth + 'px'}})]:(_vm.itemFile.mediaTypeID == '2')?[_c('ct-viewerImage',{ref:"viewerImage",attrs:{"imgUrl":_vm.resultObject+((!_vm.itemFile.flagUrl)?'/'+_vm.displayAreaWidth+'/'+_vm.displayAreaHeight+'?FlagC=0':''),"rotate":_vm.rotate}})]:(_vm.itemFile.mediaTypeID == '3')?[_vm._v("\n 暂不支持ThreeDimensional\n ")]:(_vm.itemFile.mediaTypeID == '4')?[_c('div',{staticClass:"viewerContent"},[(_vm.itemFile.thumbnailUrl)?[_c('video',{staticClass:"viewerContent",attrs:{"preload":"none","poster":_vm.itemFile.thumbnailUrl,"src":_vm.resultObject,"controls":"controls","controlslist":"nodownload","height":500,"width":800}},[_vm._v("\n 您的浏览器不支持 video 标签。\n ")])]:[_c('video',{staticClass:"viewerContent",attrs:{"preload":"none","src":_vm.resultObject,"controls":"controls","controlslist":"nodownload","height":500,"width":800}},[_vm._v("\n 您的浏览器不支持 video 标签。\n ")])]],2)]:(_vm.itemFile.mediaTypeID == '5')?[_c('div',{staticClass:"viewerContent"},[_c('audio',{staticClass:"viewerContent",staticStyle:{"width":"50%"},attrs:{"preload":"none","src":_vm.resultObject,"controls":"controls","controlslist":"nodownload"}},[_vm._v("\n 您的浏览器不支持 audio 标签。\n ")])])]:(_vm.itemFile.mediaTypeID == '6')?[('pdf' .search(_vm.itemFile.fileExtension.toLowerCase())>-1 )?[_c('ct-viewerPDF',{attrs:{"pdfUrl":_vm.resultObject,"displayAreaHeight":_vm.displayAreaHeight,"displayAreaWidth":_vm.displayAreaWidth}})]:[_c('div',{staticClass:"viewerContent",staticStyle:{"max-height":"200px","text-align":"center"}},[_c('a',{attrs:{"href":_vm.resultObject,"target":"_blank"}},[_c('img',{attrs:{"src":_vm.itemFile.thumbnailUrl}}),_c('br'),_vm._v(_vm._s(_vm.itemFile.mediaLabelName || _vm.itemFile.fileName)+"\n ")])])]]:[_c('div',{staticClass:"viewerContent",staticStyle:{"max-height":"200px","text-align":"center"}},[_c('a',{attrs:{"href":_vm.resultObject,"target":"_blank"}},[_c('img',{attrs:{"src":_vm.itemFile.thumbnailUrl}}),_c('br'),_vm._v(_vm._s(_vm.itemFile.mediaLabelName || _vm.itemFile.fileName)+"\n ")])])],_vm._v(" "),(_vm.resultObject != '')?[_c('div',{staticClass:"magnify-footer",style:({
|
|
63659
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"viewerfile",staticClass:"ccai",staticStyle:{"height":"100%"},attrs:{"id":"viewer-file"},on:{"contextmenu":_vm.handleMouse}},[_c('el-container',{staticStyle:{"height":"100%","border":"1px solid #eee"}},[_c('el-aside',{staticClass:"ccai-aside",staticStyle:{"background-color":"rgb(238, 241, 246)"}},[_c('div',{staticClass:"viewerMenu",staticStyle:{"height":"100%"}},[_c('el-menu',{staticStyle:{"height":"100%"},attrs:{"default-openeds":_vm.openeds,"default-active":_vm.activeitem}},_vm._l((_vm.MediaAlbum),function(group,groupIndex){return _c('el-submenu',{key:groupIndex,attrs:{"index":groupIndex.toString()}},[_c('template',{slot:"title"},[_c('i'),_vm._v(" "),_c('div',{staticStyle:{"padding":"0 10px !important","height":"30px !important","line-height":"30px !important"}},[_vm._v("\n "+_vm._s(group.albumName)+"\n ")])]),_vm._v(" "),_c('el-menu-item-group',_vm._l((group.medias),function(item,index){return _c('el-menu-item',{key:index,attrs:{"index":groupIndex.toString() + '-' + index.toString()},on:{"click":function($event){_vm.handleClick(item, groupIndex, index)}}},[_vm._v(_vm._s(item.mediaLabelName || item.fileName))])}))],2)}))],1)]),_vm._v(" "),_c('el-main',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.downloadLoading),expression:"downloadLoading"}],ref:"displayArea",attrs:{"element-loading-spinner":"el-icon-loading","element-loading-custom-class":'cloading'}},[(_vm.resultObject)?_c('div',{staticStyle:{"position":"relative","width":"100%"},style:({ height: _vm.displayAreaHeight - 78 + 'px' })},[(_vm.itemFile.mediaTypeID == '1'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='vr')?[_c('iframe',{staticStyle:{"border-width":"0px"},attrs:{"src":_vm.resultObject,"height":_vm.displayAreaHeight - 80 + 'px',"width":_vm.displayAreaWidth + 'px'}})]:(_vm.itemFile.mediaTypeID == '2'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='photo')?[_c('ct-viewerImage',{ref:"viewerImage",attrs:{"imgUrl":_vm.resultObject+((!_vm.itemFile.flagUrl)?'/'+_vm.displayAreaWidth+'/'+_vm.displayAreaHeight+'?FlagC=0':''),"rotate":_vm.rotate}})]:(_vm.itemFile.mediaTypeID == '3'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='threedimensional')?[_vm._v("\n 暂不支持ThreeDimensional\n ")]:(_vm.itemFile.mediaTypeID == '4'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='video')?[_c('div',{staticClass:"viewerContent"},[(_vm.itemFile.thumbnailUrl)?[_c('video',{staticClass:"viewerContent",attrs:{"preload":"none","poster":_vm.itemFile.thumbnailUrl,"src":_vm.resultObject,"controls":"controls","controlslist":"nodownload","height":500,"width":800}},[_vm._v("\n 您的浏览器不支持 video 标签。\n ")])]:[_c('video',{staticClass:"viewerContent",attrs:{"preload":"none","src":_vm.resultObject,"controls":"controls","controlslist":"nodownload","height":500,"width":800}},[_vm._v("\n 您的浏览器不支持 video 标签。\n ")])]],2)]:(_vm.itemFile.mediaTypeID == '5'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='audio')?[_c('div',{staticClass:"viewerContent"},[_c('audio',{staticClass:"viewerContent",staticStyle:{"width":"50%"},attrs:{"preload":"none","src":_vm.resultObject,"controls":"controls","controlslist":"nodownload"}},[_vm._v("\n 您的浏览器不支持 audio 标签。\n ")])])]:(_vm.itemFile.mediaTypeID == '6'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='file')?[('pdf' .search(_vm.itemFile.fileExtension.toLowerCase())>-1 )?[_c('ct-viewerPDF',{attrs:{"pdfUrl":_vm.resultObject,"displayAreaHeight":_vm.displayAreaHeight,"displayAreaWidth":_vm.displayAreaWidth}})]:[_c('div',{staticClass:"viewerContent",staticStyle:{"max-height":"200px","text-align":"center"}},[_c('a',{attrs:{"href":_vm.resultObject,"target":"_blank"}},[_c('img',{attrs:{"src":_vm.itemFile.thumbnailUrl}}),_c('br'),_vm._v(_vm._s(_vm.itemFile.mediaLabelName || _vm.itemFile.fileName)+"\n ")])])]]:[_c('div',{staticClass:"viewerContent",staticStyle:{"max-height":"200px","text-align":"center"}},[_c('a',{attrs:{"href":_vm.resultObject,"target":"_blank"}},[_c('img',{attrs:{"src":_vm.itemFile.thumbnailUrl}}),_c('br'),_vm._v(_vm._s(_vm.itemFile.mediaLabelName || _vm.itemFile.fileName)+"\n ")])])],_vm._v(" "),(_vm.resultObject != '')?[_c('div',{staticClass:"magnify-footer",style:({
|
|
63620
63660
|
width: _vm.displayAreaWidth + 'px',
|
|
63621
63661
|
bottom: _vm.displayAreabtm + 10 + 'px',
|
|
63622
|
-
})},[_c('div',{staticClass:"magnify-toolbar",style:({ 'margin-left': _vm.displayArealeft + 'px' })},[_c('a',{staticClass:"magnify-btn el-icon-back",attrs:{"href":"javascript:void(0)","title":"上一个"},on:{"click":function($event){_vm.jump(-1)}}}),_c('a',{staticClass:"magnify-btn el-icon-right",attrs:{"href":"javascript:void(0)","title":"下一个"},on:{"click":function($event){_vm.jump(1)}}}),_vm._v(" "),(_vm.itemFile.mediaTypeID == '2')?[_c('a',{staticClass:"magnify-btn el-icon-refresh-left",attrs:{"href":"javascript:void(0)","title":"左旋转"},on:{"click":function($event){_vm.rotateImg('L')}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-refresh-right",attrs:{"href":"javascript:void(0)","title":"右旋转"},on:{"click":function($event){_vm.rotateImg('R')}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-zoom-in",attrs:{"href":"javascript:void(0)","title":"放大"},on:{"click":function($event){_vm.zoom(0.2)}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-refresh",attrs:{"href":"javascript:void(0)","title":"实际尺寸"},on:{"click":function($event){_vm.actualSize()}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-zoom-out",attrs:{"href":"javascript:void(0)","title":"缩小"},on:{"click":function($event){_vm.zoom(-0.2)}}})]:_vm._e(),_vm._v(" "),(_vm.itemFile.rightDownload&&_vm.itemFile.mediaTypeID !='1')?_c('a',{staticClass:"magnify-btn el-icon-download",attrs:{"href":"javascript:void(0)","title":"下载"},on:{"click":function($event){_vm.handDownload(_vm.resultObject)}}}):_vm._e()],2)])]:_vm._e()],2):_vm._e()])],1),_vm._v(" "),_c('iframe',{staticStyle:{"height":"0px","width":"0px","border-width":"0px","display":"none"},attrs:{"src":_vm.downloadUrl}})],1)}
|
|
63662
|
+
})},[_c('div',{staticClass:"magnify-toolbar",style:({ 'margin-left': _vm.displayArealeft + 'px' })},[_c('a',{staticClass:"magnify-btn el-icon-back",attrs:{"href":"javascript:void(0)","title":"上一个"},on:{"click":function($event){_vm.jump(-1)}}}),_c('a',{staticClass:"magnify-btn el-icon-right",attrs:{"href":"javascript:void(0)","title":"下一个"},on:{"click":function($event){_vm.jump(1)}}}),_vm._v(" "),(_vm.itemFile.mediaTypeID == '2'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='photo')?[_c('a',{staticClass:"magnify-btn el-icon-refresh-left",attrs:{"href":"javascript:void(0)","title":"左旋转"},on:{"click":function($event){_vm.rotateImg('L')}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-refresh-right",attrs:{"href":"javascript:void(0)","title":"右旋转"},on:{"click":function($event){_vm.rotateImg('R')}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-zoom-in",attrs:{"href":"javascript:void(0)","title":"放大"},on:{"click":function($event){_vm.zoom(0.2)}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-refresh",attrs:{"href":"javascript:void(0)","title":"实际尺寸"},on:{"click":function($event){_vm.actualSize()}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-zoom-out",attrs:{"href":"javascript:void(0)","title":"缩小"},on:{"click":function($event){_vm.zoom(-0.2)}}})]:_vm._e(),_vm._v(" "),(_vm.itemFile.rightDownload&&(_vm.itemFile.mediaTypeID !='1'&&(_vm.itemFile.mediaTypeID+'').toLowerCase()=='vr'))?_c('a',{staticClass:"magnify-btn el-icon-download",attrs:{"href":"javascript:void(0)","title":"下载"},on:{"click":function($event){_vm.handDownload(_vm.resultObject)}}}):_vm._e()],2)])]:_vm._e()],2):_vm._e()])],1),_vm._v(" "),_c('iframe',{staticStyle:{"height":"0px","width":"0px","border-width":"0px","display":"none"},attrs:{"src":_vm.downloadUrl}})],1)}
|
|
63623
63663
|
var staticRenderFns = []
|
|
63624
63664
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
63625
63665
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|