centaline-data-driven 1.6.35 → 1.6.36
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/.vscode/settings.json +3 -0
- package/package.json +1 -1
- package/release-log.md +7 -0
- package/src/SearchList.vue +4 -0
- package/src/centaline/dynamicFile/src/dynamicFile.vue +41 -29
- package/src/centaline/dynamicTree/src/dynamicTree.vue +70 -65
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +29 -16
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -79,6 +79,10 @@
|
|
|
79
79
|
|
|
80
80
|
<!-- <ct-searchlist :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'" :searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'" :searchStatsApi="'/PropertyPublishList/getListStatsForRET'" :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'"></ct-searchlist> -->
|
|
81
81
|
|
|
82
|
+
<!-- <ct-searchlist :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
83
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"
|
|
84
|
+
></ct-searchlist> -->
|
|
85
|
+
|
|
82
86
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
83
87
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
84
88
|
:searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:file-list="model.fileList" :multiple="true" :auto-upload="true" :action="model.action" :data="model.uploadData"
|
|
9
9
|
:headers="headers" :before-upload="beforeUploadProcess" :on-success="handleAvatarSuccess"
|
|
10
10
|
:on-error="handleAvatarError" :on-progress="uploadProcess" :limit="parseInt(model.max || 999)"
|
|
11
|
-
:on-exceed="handleExceed" :uploadStatus="!disableUpload
|
|
11
|
+
:on-exceed="handleExceed" :uploadStatus="!disableUpload && !model.lock ? 'upload' : 'lock'">
|
|
12
12
|
<template slot="default">
|
|
13
13
|
<i class="el-icon-plus"></i>
|
|
14
14
|
</template>
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
<div slot="tip" v-show="model.description" v-html="model.description">
|
|
20
20
|
</div>
|
|
21
|
-
<div class="qrcode-target"
|
|
22
|
-
<img @click.stop="qrcodeFn" ref="QRCodeRef"
|
|
23
|
-
|
|
24
|
-
title="扫码上传">
|
|
21
|
+
<div class="qrcode-target" v-if="model.QRCodeAction">
|
|
22
|
+
<img @click.stop="qrcodeFn" ref="QRCodeRef" :src="require('../../../assets/serw1.png')"
|
|
23
|
+
style="width: 35px;height: 35px;float: right;" alt="扫码上传" title="扫码上传">
|
|
25
24
|
</div>
|
|
26
25
|
<div class="ScanUploadPhoto" v-if="qrcodeVisible" @click.stop="qrcodeVisible = true"
|
|
27
26
|
:style="{ top: QRCodeRefTop + 'px', left: QRCodeRefLeft + 'px' }">
|
|
@@ -75,7 +74,7 @@
|
|
|
75
74
|
</el-dropdown-item>
|
|
76
75
|
</el-dropdown-menu>
|
|
77
76
|
</el-dropdown>
|
|
78
|
-
</span>
|
|
77
|
+
</span>
|
|
79
78
|
<div slot="file" slot-scope="{ file }" :title="file.fileName">
|
|
80
79
|
<div class="cover-list-item">
|
|
81
80
|
<div @click="viewerfile(file)">
|
|
@@ -156,8 +155,7 @@
|
|
|
156
155
|
:multiple="true" :auto-upload="true" :action="model.action" :data="model.uploadData" :headers="headers"
|
|
157
156
|
:before-upload="beforeUploadProcess" :on-success="handleAvatarSuccess" :on-error="handleAvatarError"
|
|
158
157
|
:on-progress="uploadProcess" :limit="parseInt(model.max || 999)" :on-exceed="handleExceed"
|
|
159
|
-
:uploadStatus="!disableUpload
|
|
160
|
-
>
|
|
158
|
+
:uploadStatus="!disableUpload && !model.lock ? 'upload' : 'lock'">
|
|
161
159
|
<i slot="default" class="el-icon-plus"></i>
|
|
162
160
|
<div slot="tip" class="el-upload__tip errorMessage" style="white-space:pre-wrap;" v-show="!valid"
|
|
163
161
|
v-html="validMessage">
|
|
@@ -330,16 +328,16 @@ export default {
|
|
|
330
328
|
return this.$common.getDataDrivenOpts().zindex + 100;
|
|
331
329
|
},
|
|
332
330
|
},
|
|
333
|
-
deactivated() {
|
|
334
|
-
document.addEventListener('paste', this.ListenerPaste);
|
|
331
|
+
deactivated() {
|
|
332
|
+
document.addEventListener('paste', this.ListenerPaste);
|
|
335
333
|
|
|
336
|
-
|
|
337
|
-
mounted() {
|
|
338
|
-
document.addEventListener('paste', this.ListenerPaste);
|
|
334
|
+
},
|
|
335
|
+
mounted() {
|
|
336
|
+
document.addEventListener('paste', this.ListenerPaste);
|
|
339
337
|
|
|
340
338
|
},
|
|
341
339
|
created() {
|
|
342
|
-
var self = this;
|
|
340
|
+
var self = this;
|
|
343
341
|
this.$nextTick(function () {
|
|
344
342
|
if (self.vmodel) {
|
|
345
343
|
self.load(self.vmodel);
|
|
@@ -351,8 +349,8 @@ export default {
|
|
|
351
349
|
});
|
|
352
350
|
}
|
|
353
351
|
this.disableUpload = this.model.lock;
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
|
|
353
|
+
|
|
356
354
|
});
|
|
357
355
|
},
|
|
358
356
|
methods: {
|
|
@@ -722,7 +720,7 @@ export default {
|
|
|
722
720
|
|
|
723
721
|
var refupload = this.$refs.refupload;
|
|
724
722
|
if (refupload) {
|
|
725
|
-
if (flagError) {
|
|
723
|
+
if (flagError) {
|
|
726
724
|
this.$message({
|
|
727
725
|
message: res,
|
|
728
726
|
type: 'error',
|
|
@@ -860,30 +858,44 @@ export default {
|
|
|
860
858
|
}
|
|
861
859
|
self.QRCodeRefLeft = QRCodeRef.getBoundingClientRect().left + QRCodeRefWith + 20;
|
|
862
860
|
}
|
|
863
|
-
},
|
|
861
|
+
},
|
|
864
862
|
PasteUpload(event) {
|
|
865
863
|
let self = this;
|
|
866
864
|
if (!self.model.locked && !self.disableUpload) {
|
|
867
865
|
// 获取粘贴板中的图片
|
|
868
866
|
const clipboardDatas = (event.clipboardData || event.originalEvent.clipboardData);
|
|
869
867
|
const items = clipboardDatas.items;
|
|
868
|
+
|
|
869
|
+
//检测是否全是文件才上传
|
|
870
|
+
let fileSum = 0;
|
|
871
|
+
|
|
870
872
|
for (let index in items) {
|
|
871
|
-
const item = items[index];
|
|
873
|
+
const item = items[index];
|
|
872
874
|
if (item.kind === 'file') {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
875
|
+
++fileSum;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
if (fileSum == items.length) {
|
|
880
|
+
|
|
881
|
+
for (let index in items) {
|
|
882
|
+
const item = items[index];
|
|
883
|
+
if (item.kind === 'file') {
|
|
884
|
+
const file = item.getAsFile();
|
|
885
|
+
let uid = self.uploadguid();
|
|
886
|
+
file.uid = file.uid || uid;
|
|
887
|
+
self.$refs.upload.handleStart(file);
|
|
888
|
+
// 提交上传队列
|
|
889
|
+
self.$refs.upload.submit();
|
|
890
|
+
}
|
|
879
891
|
}
|
|
880
892
|
}
|
|
881
893
|
}
|
|
882
894
|
|
|
883
895
|
},
|
|
884
|
-
ListenerPaste(event) {
|
|
896
|
+
ListenerPaste(event) {
|
|
885
897
|
let self = this;
|
|
886
|
-
if (!self.model.locked
|
|
898
|
+
if (!self.model.locked && !self.disableUpload) {
|
|
887
899
|
var target = event.target;
|
|
888
900
|
const uploads = document.querySelectorAll('[uploadStatus="upload"]');
|
|
889
901
|
|
|
@@ -896,7 +908,7 @@ export default {
|
|
|
896
908
|
|
|
897
909
|
if (window.uploads.count == window.uploads.length) {
|
|
898
910
|
window.uploads = null;
|
|
899
|
-
|
|
911
|
+
|
|
900
912
|
self.$message({
|
|
901
913
|
message: "存在多个上传组件,请点击上传!",
|
|
902
914
|
type: 'info',
|
|
@@ -909,7 +921,7 @@ export default {
|
|
|
909
921
|
window.uploads = null;
|
|
910
922
|
self.PasteUpload(event);
|
|
911
923
|
}
|
|
912
|
-
}
|
|
924
|
+
}
|
|
913
925
|
}
|
|
914
926
|
},
|
|
915
927
|
beforeDestroy() {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class='mytree' id="mytree" style="overflow:auto" v-loading="loading">
|
|
3
3
|
<el-tree class="tree-line" :props="defaultProps" :load="loadNode" :indent="0" :expand-on-click-node="false"
|
|
4
|
-
@node-click="handleNodeClick" lazy ref="Tree" @node-contextmenu="rightClick" node-key="code"
|
|
4
|
+
@node-click="handleNodeClick" lazy ref="Tree" @node-contextmenu="rightClick" node-key="code"
|
|
5
|
+
current-node-key="currentNodeKey">
|
|
5
6
|
</el-tree>
|
|
6
7
|
<div class="box-menu" v-if="menuVisible && model.actionRouter"
|
|
7
8
|
:style="{ left: menu_left + 'px', top: menu_top + 'px' }">
|
|
@@ -51,7 +52,7 @@ export default {
|
|
|
51
52
|
};
|
|
52
53
|
},
|
|
53
54
|
mounted() {
|
|
54
|
-
|
|
55
|
+
|
|
55
56
|
},
|
|
56
57
|
methods: {
|
|
57
58
|
search(m) {
|
|
@@ -62,8 +63,8 @@ export default {
|
|
|
62
63
|
clearTimeout(timer);
|
|
63
64
|
self.searchStatus.push(1);
|
|
64
65
|
self.treeNode.childNodes = [];
|
|
65
|
-
self.searchComplate(m, undefined, self.treeResolve,true);
|
|
66
|
-
|
|
66
|
+
self.searchComplate(m, undefined, self.treeResolve, true);
|
|
67
|
+
|
|
67
68
|
}
|
|
68
69
|
else {
|
|
69
70
|
timer = setTimeout(() => {
|
|
@@ -91,14 +92,14 @@ export default {
|
|
|
91
92
|
if (node.level === 0) {
|
|
92
93
|
self.treeNode = node;
|
|
93
94
|
self.treeResolve = resolve;
|
|
94
|
-
return self.loadtreeData(resolve,true);
|
|
95
|
+
return self.loadtreeData(resolve, true);
|
|
95
96
|
}
|
|
96
97
|
if (node.level >= 1) {
|
|
97
98
|
return self.getChildByList(node.data.code, resolve, node.data);
|
|
98
99
|
}
|
|
99
100
|
},
|
|
100
|
-
loadtreeData(resolve,firstLoad) { // 获取loadtreeData 就是父节点数据,getChildByList就是异步获取子节点数据
|
|
101
|
-
this.searchComplate(undefined, undefined, resolve,firstLoad);
|
|
101
|
+
loadtreeData(resolve, firstLoad) { // 获取loadtreeData 就是父节点数据,getChildByList就是异步获取子节点数据
|
|
102
|
+
this.searchComplate(undefined, undefined, resolve, firstLoad);
|
|
102
103
|
},
|
|
103
104
|
getChildByList(_parentID, resolve,) { // 获取子节点请求
|
|
104
105
|
var fields = this.model.searchData("code", _parentID, 9, 3);
|
|
@@ -107,7 +108,7 @@ export default {
|
|
|
107
108
|
};
|
|
108
109
|
this.searchComplate(model, undefined, resolve);
|
|
109
110
|
},
|
|
110
|
-
async load(data, resolve,firstLoad) {
|
|
111
|
+
async load(data, resolve, firstLoad) {
|
|
111
112
|
var self = this;
|
|
112
113
|
self.model = data;
|
|
113
114
|
self.model.$vue = self;
|
|
@@ -119,33 +120,32 @@ export default {
|
|
|
119
120
|
self.loading = false;
|
|
120
121
|
self.LastResolve = treeResolve;
|
|
121
122
|
self.menuVisible = false;
|
|
122
|
-
if(firstLoad)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
if (firstLoad) {
|
|
124
|
+
self.$nextTick(() => {
|
|
125
|
+
if (self.model.modeltree && self.model.modeltree[0] && self.model.modeltree[0].code) {
|
|
126
|
+
self.$refs.Tree.setCurrentKey(self.model.modeltree[0].code)
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
if (self.model.modeltree && self.model.modeltree[0]) {
|
|
130
|
+
self.handleNodeClick(self.model.modeltree[0], true);
|
|
127
131
|
}
|
|
128
|
-
});
|
|
129
|
-
if (self.model.modeltree&&self.model.modeltree[0]) {
|
|
130
|
-
self.handleNodeClick(self.model.modeltree[0],true);
|
|
131
|
-
}
|
|
132
132
|
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
|
|
135
135
|
},
|
|
136
|
-
searchComplate(m, defaultSearch, resolve,firstLoad) {
|
|
136
|
+
searchComplate(m, defaultSearch, resolve, firstLoad) {
|
|
137
137
|
var self = this;
|
|
138
138
|
this.$nextTick(function () {
|
|
139
139
|
if (typeof self.api !== 'undefined') {
|
|
140
|
-
self.loaderObj.Tree(self.api, self.load, m, defaultSearch, resolve,firstLoad);
|
|
140
|
+
self.loaderObj.Tree(self.api, self.load, m, defaultSearch, resolve, firstLoad);
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
handleNodeClick(data,formType) {
|
|
144
|
+
handleNodeClick(data, formType) {
|
|
145
145
|
this.foo();
|
|
146
|
-
var self = this;
|
|
147
|
-
if(data&&formType){
|
|
148
|
-
|
|
146
|
+
var self = this;
|
|
147
|
+
if (data && formType) {
|
|
148
|
+
self.$refs.Tree.setCurrentKey(data.code)
|
|
149
149
|
}
|
|
150
150
|
if (self.LastClickNode != data) {
|
|
151
151
|
self.LastClickNode = data;
|
|
@@ -186,30 +186,30 @@ export default {
|
|
|
186
186
|
this.model.actionRouter.forEach(v => {
|
|
187
187
|
if (this.currentData[v.rightField] == '1') {
|
|
188
188
|
this.menuVisible = true //显示增删改的div
|
|
189
|
-
actionIndex +=1;
|
|
189
|
+
actionIndex += 1;
|
|
190
190
|
}
|
|
191
191
|
})
|
|
192
192
|
}
|
|
193
193
|
document.addEventListener('click', this.foo) // 监听事件鼠标点击事件,若点击则隐藏菜单
|
|
194
|
-
|
|
194
|
+
// 获取树状图的高度
|
|
195
195
|
let treeHeight = document.getElementById("mytree").offsetHeight;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
196
|
+
// 获取文本内容的宽高
|
|
197
|
+
let mainHeight = document.getElementById("app-Tree").offsetHeight;
|
|
198
|
+
let mainWidth = document.getElementById("app-Tree").offsetWidth;
|
|
199
|
+
// 10是padding 获取查询条件高度
|
|
200
|
+
let screenHeight = document.getElementById("mytree").parentElement.offsetHeight - treeHeight - 10;
|
|
201
|
+
let windowWidth = window.innerWidth;
|
|
202
|
+
let windowHeight = window.innerHeight;
|
|
203
|
+
// 将菜单显示在鼠标点击旁边定位
|
|
204
|
+
this.menu_left = event.clientX - (windowWidth - mainWidth);
|
|
205
|
+
// 18是节点文本的高度
|
|
206
|
+
this.menu_top = event.clientY - (windowHeight - mainHeight) - screenHeight + actionIndex * 30 + 18;
|
|
207
207
|
// 微调
|
|
208
|
-
|
|
209
|
-
this.menu_top = this.menu_top -8;
|
|
210
|
-
|
|
211
|
-
this.menu_top = this.menu_top +10;
|
|
212
|
-
|
|
208
|
+
if (document.getElementById("uplink")) {
|
|
209
|
+
this.menu_top = this.menu_top - 8;
|
|
210
|
+
} else if (document.getElementById("onecard")) {
|
|
211
|
+
this.menu_top = this.menu_top + 10;
|
|
212
|
+
}
|
|
213
213
|
},
|
|
214
214
|
foo() {
|
|
215
215
|
this.menuVisible = false
|
|
@@ -297,7 +297,7 @@ export default {
|
|
|
297
297
|
add(newData) {
|
|
298
298
|
let self = this;
|
|
299
299
|
this.$refs.Tree.append(newData, self.currentNode)
|
|
300
|
-
this.handleNodeClick(newData,true)
|
|
300
|
+
this.handleNodeClick(newData, true)
|
|
301
301
|
},
|
|
302
302
|
//修改树节点
|
|
303
303
|
update(newData) {
|
|
@@ -309,20 +309,20 @@ export default {
|
|
|
309
309
|
self.$set(self.currentData, key, newData[key]);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
this.handleNodeClick(newData,true)
|
|
312
|
+
this.handleNodeClick(newData, true)
|
|
313
313
|
},
|
|
314
314
|
getNextClickNode() {
|
|
315
|
-
const tree= this.$refs.Tree;
|
|
316
|
-
const node = tree.getNode(this.currentData.code);
|
|
317
|
-
let data={};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
this.handleNodeClick(data,true)
|
|
315
|
+
const tree = this.$refs.Tree;
|
|
316
|
+
const node = tree.getNode(this.currentData.code);
|
|
317
|
+
let data = {};
|
|
318
|
+
if (node.nextSibling) {
|
|
319
|
+
data = node.nextSibling.data;
|
|
320
|
+
} else if (node.previousSibling) {
|
|
321
|
+
data = node.previousSibling.data;
|
|
322
|
+
} else if (node.parent) {
|
|
323
|
+
data = node.parent.data;
|
|
324
|
+
}
|
|
325
|
+
this.handleNodeClick(data, true)
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
328
|
created() {
|
|
@@ -334,26 +334,33 @@ export default {
|
|
|
334
334
|
.mytree {
|
|
335
335
|
height: 100%;
|
|
336
336
|
}
|
|
337
|
+
|
|
337
338
|
.mytree .el-tree {
|
|
338
339
|
min-width: 100%;
|
|
339
340
|
display: inline-block;
|
|
340
341
|
}
|
|
342
|
+
|
|
341
343
|
.mytree::-webkit-scrollbar-thumb {
|
|
342
|
-
background-color: #bebebe
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
background-color: #bebebe;
|
|
345
|
+
/* 设置滚动条滑块颜色 */
|
|
346
|
+
height: 5px;
|
|
347
|
+
border-radius: 4px;
|
|
348
|
+
display: block;
|
|
346
349
|
}
|
|
350
|
+
|
|
347
351
|
.mytree::-webkit-scrollbar {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
+
width: 6px;
|
|
353
|
+
height: 6px;
|
|
354
|
+
/* 设置滚动条高度 */
|
|
355
|
+
background-color: #f1f1f1;
|
|
356
|
+
display: block;
|
|
352
357
|
}
|
|
358
|
+
|
|
353
359
|
.mytree .el-tree-node.is-current>.el-tree-node__content {
|
|
354
360
|
color: var(--centalineBlue) !important;
|
|
355
361
|
background-color: #f5f7fa;
|
|
356
362
|
}
|
|
363
|
+
|
|
357
364
|
.tree-line:first-child div {
|
|
358
365
|
overflow: hidden;
|
|
359
366
|
}
|
|
@@ -504,6 +511,4 @@ export default {
|
|
|
504
511
|
.box-menu .opertion:hover {
|
|
505
512
|
color: var(--btnHoverRed);
|
|
506
513
|
}
|
|
507
|
-
|
|
508
514
|
</style>
|
|
509
|
-
|
package/src/main.js
CHANGED
|
@@ -76,7 +76,7 @@ Vue.use(centaline, {
|
|
|
76
76
|
estateId: '',
|
|
77
77
|
|
|
78
78
|
authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"588NJK","time":1733886962541,"sign":"7cb413ac60ed50fe406c9b91c8d4a836","systemSource":"CCESU","empNo":"hqxtgl","empId":"2411121446336B97FBEB7FD54905A903"}',
|
|
79
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
79
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImVjMmUyY2Q1LWYzNmItNDc1YS04N2FjLWRjM2VkMjE1MzJjZSJ9.Uu8mB1VxYvTcDzkCXH0WrUOd9YdlJLGvW3Ae1i67fcnWrU8HhLKoXHgvFPDuzo8rp5QDM0LdQMLgXkER5zrWaw',
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
|
@@ -53879,8 +53879,6 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
53879
53879
|
//
|
|
53880
53880
|
//
|
|
53881
53881
|
//
|
|
53882
|
-
//
|
|
53883
|
-
//
|
|
53884
53882
|
|
|
53885
53883
|
|
|
53886
53884
|
|
|
@@ -54464,15 +54462,29 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
54464
54462
|
// 获取粘贴板中的图片
|
|
54465
54463
|
var clipboardDatas = event.clipboardData || event.originalEvent.clipboardData;
|
|
54466
54464
|
var items = clipboardDatas.items;
|
|
54465
|
+
|
|
54466
|
+
//检测是否全是文件才上传
|
|
54467
|
+
var fileSum = 0;
|
|
54468
|
+
|
|
54467
54469
|
for (var index in items) {
|
|
54468
54470
|
var item = items[index];
|
|
54469
54471
|
if (item.kind === 'file') {
|
|
54470
|
-
|
|
54471
|
-
|
|
54472
|
-
|
|
54473
|
-
|
|
54474
|
-
|
|
54475
|
-
|
|
54472
|
+
++fileSum;
|
|
54473
|
+
}
|
|
54474
|
+
}
|
|
54475
|
+
|
|
54476
|
+
if (fileSum == items.length) {
|
|
54477
|
+
|
|
54478
|
+
for (var _index in items) {
|
|
54479
|
+
var _item = items[_index];
|
|
54480
|
+
if (_item.kind === 'file') {
|
|
54481
|
+
var file = _item.getAsFile();
|
|
54482
|
+
var uid = self.uploadguid();
|
|
54483
|
+
file.uid = file.uid || uid;
|
|
54484
|
+
self.$refs.upload.handleStart(file);
|
|
54485
|
+
// 提交上传队列
|
|
54486
|
+
self.$refs.upload.submit();
|
|
54487
|
+
}
|
|
54476
54488
|
}
|
|
54477
54489
|
}
|
|
54478
54490
|
}
|
|
@@ -69129,6 +69141,7 @@ var ctSpan = {
|
|
|
69129
69141
|
//
|
|
69130
69142
|
//
|
|
69131
69143
|
//
|
|
69144
|
+
//
|
|
69132
69145
|
|
|
69133
69146
|
|
|
69134
69147
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
@@ -81449,7 +81462,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
81449
81462
|
"use strict";
|
|
81450
81463
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFile_vue__ = __webpack_require__(342);
|
|
81451
81464
|
/* unused harmony namespace reexport */
|
|
81452
|
-
/* harmony import */ var
|
|
81465
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_34eea490_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__ = __webpack_require__(708);
|
|
81453
81466
|
function injectStyle (ssrContext) {
|
|
81454
81467
|
__webpack_require__(701)
|
|
81455
81468
|
}
|
|
@@ -81469,7 +81482,7 @@ var __vue_scopeId__ = null
|
|
|
81469
81482
|
var __vue_module_identifier__ = null
|
|
81470
81483
|
var Component = normalizeComponent(
|
|
81471
81484
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFile_vue__["a" /* default */],
|
|
81472
|
-
|
|
81485
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_34eea490_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__["a" /* default */],
|
|
81473
81486
|
__vue_template_functional__,
|
|
81474
81487
|
__vue_styles__,
|
|
81475
81488
|
__vue_scopeId__,
|
|
@@ -81490,7 +81503,7 @@ var content = __webpack_require__(702);
|
|
|
81490
81503
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
81491
81504
|
if(content.locals) module.exports = content.locals;
|
|
81492
81505
|
// add the styles to the DOM
|
|
81493
|
-
var update = __webpack_require__(3)("
|
|
81506
|
+
var update = __webpack_require__(3)("2eb28921", content, true, {});
|
|
81494
81507
|
|
|
81495
81508
|
/***/ }),
|
|
81496
81509
|
/* 702 */
|
|
@@ -81592,9 +81605,9 @@ module.exports = function (object, index, value) {
|
|
|
81592
81605
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81593
81606
|
|
|
81594
81607
|
"use strict";
|
|
81595
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.model !== null)?_c('div',{ref:"refupload",staticClass:"block ct-file",class:[_vm.model.attrs.size ? 'ct-checkbox-' + _vm.model.attrs.size : ''],staticStyle:{"width":"100%"}},[(_vm.model.type == 51)?[_c('el-upload',{ref:"upload",class:_vm.disableUpload ? 'ct-upload-display-none' : '',attrs:{"http-request":_vm.SliceUpload,"disabled":_vm.model.lock,"accept":_vm.model.fileAccept,"on-change":_vm.handleChange,"list-type":"picture-card","file-list":_vm.model.fileList,"multiple":true,"auto-upload":true,"action":_vm.model.action,"data":_vm.model.uploadData,"headers":_vm.headers,"before-upload":_vm.beforeUploadProcess,"on-success":_vm.handleAvatarSuccess,"on-error":_vm.handleAvatarError,"on-progress":_vm.uploadProcess,"limit":parseInt(_vm.model.max || 999),"on-exceed":_vm.handleExceed,"uploadStatus":!_vm.disableUpload
|
|
81608
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.model !== null)?_c('div',{ref:"refupload",staticClass:"block ct-file",class:[_vm.model.attrs.size ? 'ct-checkbox-' + _vm.model.attrs.size : ''],staticStyle:{"width":"100%"}},[(_vm.model.type == 51)?[_c('el-upload',{ref:"upload",class:_vm.disableUpload ? 'ct-upload-display-none' : '',attrs:{"http-request":_vm.SliceUpload,"disabled":_vm.model.lock,"accept":_vm.model.fileAccept,"on-change":_vm.handleChange,"list-type":"picture-card","file-list":_vm.model.fileList,"multiple":true,"auto-upload":true,"action":_vm.model.action,"data":_vm.model.uploadData,"headers":_vm.headers,"before-upload":_vm.beforeUploadProcess,"on-success":_vm.handleAvatarSuccess,"on-error":_vm.handleAvatarError,"on-progress":_vm.uploadProcess,"limit":parseInt(_vm.model.max || 999),"on-exceed":_vm.handleExceed,"uploadStatus":!_vm.disableUpload && !_vm.model.lock ? 'upload' : 'lock'},scopedSlots:_vm._u([{key:"file",fn:function(ref){
|
|
81596
81609
|
var file = ref.file;
|
|
81597
|
-
return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[(file.progressFlag)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(file.progressFlag),expression:"file.progressFlag"}],staticStyle:{"width":"100px","height":"100px"},attrs:{"element-loading-spinner":"el-icon-loading"}}):_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url ? file.url : file.mediaUrl ? file.mediaUrl + '/100/100' : __webpack_require__(344),"z-index":_vm.previewZIndex}})],1),_vm._v(" "),((_vm.model.lock && file.flagDefault) || (_vm.model.rightDefault && _vm.model.rightDefault == 1 && file.mediaTypeID == 2))?_c('span',{staticClass:"cover-list-item-span-Default"},[_c('i',[_c('el-radio',{class:{ 'browseDefault': _vm.model.lock },attrs:{"label":true,"disabled":_vm.model.lock,"title":"设为封面"},on:{"change":function($event){_vm.handleDefault($event, file)}},model:{value:(file.flagDefault),callback:function ($$v) {_vm.$set(file, "flagDefault", $$v)},expression:"file.flagDefault"}},[_vm._v(" ")])],1)]):_vm._e(),_vm._v(" "),(!_vm.model.lock && file.rightCrop && file.mediaTypeID == 2)?_c('span',{staticClass:"cover-list-item-span-edit"},[_c('i',{staticClass:"el-icon-edit-outline",on:{"click":function($event){_vm.handleEdit(file)}}})]):_vm._e(),_vm._v(" "),(!_vm.model.lock && file.rightDel)?_c('span',{staticClass:"cover-list-item-span-delete"},[_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){_vm.handleRemove(file)}}})]):_vm._e(),_vm._v(" "),(file.videoPlayIconUrl)?_c('span',{staticClass:"cover-list-item-play"},[_c('div',{staticClass:"swiper-i",on:{"click":function($event){_vm.viewerfile(file)}}},[_c('img',{staticClass:"hous-icon",attrs:{"src":file.videoPlayIconUrl}})])]):(file.mediaTypeID == 4 && (file.videoPlayIconUrl || _vm.model.videoPlayIconUrl))?_c('span',{staticClass:"cover-list-item-play"},[_c('div',{staticClass:"swiper-i",on:{"click":function($event){_vm.viewerfile(file)}}},[_c('img',{staticClass:"hous-icon",attrs:{"src":(file.videoPlayIconUrl || _vm.model.videoPlayIconUrl)}})])]):_vm._e(),_vm._v(" "),((_vm.model.lock && file.mediaLabelName) || _vm.model.paramName)?_c('span',{staticClass:"cover-list-item-span"},[(_vm.model.lock || !file.rightEdit)?_c('span',{staticClass:"el-dropdown-link"},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))])]):(_vm.model.isComplexClassify)?_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){_vm.classifyFormClickHandle(file)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]):_c('el-dropdown',{staticClass:"el-upload-list__item-preview",attrs:{"trigger":"click","placement":"top"},on:{"command":_vm.classifySelectedClickHandle}},[_c('span',{staticClass:"el-dropdown-link",on:{"click":_vm.classifyClickHandle}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_vm._v(" "),_c('el-dropdown-menu',{staticClass:"el-upload-list__item-preview",attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.model.optionModel.options),function(option,index){return _c('el-dropdown-item',{key:index,attrs:{"command":{ option: option, file: file }}},[_vm._v("\n "+_vm._s(option[_vm.model.optionModel.optionAttrs.label])+"\n ")])}))],1)],1):_vm._e()]),_vm._v(" "),_c('div',[(file.progressFlag)?_c('el-progress',{staticClass:"file-cirle file-cirle-mrLeft",attrs:{"type":"circle","show-text":false,"percentage":typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00,"width":96,"height":96}}):_vm._e(),_vm._v(" "),(file.progressFlag)?_c('div',{staticClass:"circleCenter"},[_c('div',{staticStyle:{"font-size":"12px","color":"#666"}},[_vm._v(" "+_vm._s(file.loadProgress.toFixed(2))+"%")])]):_vm._e()],1)])}}])},[_c('template',{slot:"default"},[_c('i',{staticClass:"el-icon-plus"})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.valid),expression:"!valid"}],staticClass:"el-upload__tip errorMessage",staticStyle:{"white-space":"pre-wrap"},attrs:{"slot":"tip"},domProps:{"innerHTML":_vm._s(_vm.validMessage)},slot:"tip"}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.model.description),expression:"model.description"}],attrs:{"slot":"tip"},domProps:{"innerHTML":_vm._s(_vm.model.description)},slot:"tip"}),_vm._v(" "),(_vm.model.QRCodeAction)?_c('div',{staticClass:"qrcode-target"},[_c('img',{ref:"QRCodeRef",staticStyle:{"width":"35px","height":"35px","float":"right"},attrs:{"src":__webpack_require__(345),"alt":"扫码上传","title":"扫码上传"},on:{"click":function($event){$event.stopPropagation();return _vm.qrcodeFn($event)}}})]):_vm._e(),_vm._v(" "),(_vm.qrcodeVisible)?_c('div',{staticClass:"ScanUploadPhoto",style:({ top: _vm.QRCodeRefTop + 'px', left: _vm.QRCodeRefLeft + 'px' }),on:{"click":function($event){$event.stopPropagation();_vm.qrcodeVisible = true}}},[_c('div',{staticStyle:{"border-bottom":"none"}},[_c('div',{staticStyle:{"text-align":"center","margin-bottom":"10px","margin-top":"5px","color":"#666666","font-size":"14px"}},[_vm._v("扫码上传")]),_vm._v(" "),_c('i',{staticClass:"jiao",style:({ top: _vm.QRCodeRefJiaoTop + 'px' })}),_vm._v(" "),_c('div',{staticStyle:{"width":"200px","height":"200px"}},[(_vm.qrCodeImg)?_c('img',{style:(_vm.isQrCode ? 'opacity: 0.1' : ''),attrs:{"src":_vm.qrCodeImg,"width":"200","height":"200"}}):_vm._e(),_vm._v(" "),(_vm.isQrCode)?_c('div',{staticClass:"div-fail"},[_c('span',{staticClass:"ScanText",staticStyle:{"color":"#666666"}},[_vm._v(_vm._s(_vm.scanStatusDesc))]),_vm._v(" "),(_vm.FlagbtnScan)?_c('div',{staticStyle:{"text-align":"center"}},[_c('el-button',{staticClass:" max-btn-add",attrs:{"type":"success","size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.ShowQRcode($event)}}},[_vm._v("扫码上传")])],1):_vm._e()]):_vm._e()])])]):_vm._e(),_vm._v(" "),((_vm.model.lock) || _vm.model.paramName)?_c('span',{staticClass:"Public-classification",staticStyle:{"color":"#fff","border-radius":"0px 0px 4px 4px","text-align":"left","line-height":"26px","display":"inline-flex","overflow":"hidden"}},[(_vm.model.lock)?_c('span',{staticClass:"el-dropdown-link"},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))])]):(_vm.model.isComplexClassify)?_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){$event.stopPropagation();_vm.classifyFormClickHandle(_vm.model.mediaLabe)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]):_c('el-dropdown',{staticClass:"el-upload-list__item-preview",attrs:{"trigger":"click","placement":"top"},on:{"command":_vm.PublicClassifySelectedClickHandle}},[_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){$event.stopPropagation();return _vm.classifyClickHandle($event)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right",staticStyle:{"color":"#fff"}})]),_vm._v(" "),_c('el-dropdown-menu',{staticClass:"el-upload-list__item-preview",attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.model.optionModel.options),function(option,index){return _c('el-dropdown-item',{key:index,attrs:{"command":{ option: option, mediaLabe: _vm.model.mediaLabe }}},[_vm._v("\n "+_vm._s(option[_vm.model.optionModel.optionAttrs.label])+"\n ")])}))],1)],1):_vm._e()],2)]:[_c('el-upload',{ref:"upload",class:_vm.disableUpload ? 'ct-upload-display-none' : '',attrs:{"disabled":_vm.model.lock,"accept":_vm.model.fileAccept,"on-change":_vm.handleChange,"list-type":"picture-card","file-list":_vm.model.fileList,"multiple":true,"auto-upload":true,"action":_vm.model.action,"data":_vm.model.uploadData,"headers":_vm.headers,"before-upload":_vm.beforeUploadProcess,"on-success":_vm.handleAvatarSuccess,"on-error":_vm.handleAvatarError,"on-progress":_vm.uploadProcess,"limit":parseInt(_vm.model.max || 999),"on-exceed":_vm.handleExceed,"uploadStatus":!_vm.disableUpload
|
|
81610
|
+
return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[(file.progressFlag)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(file.progressFlag),expression:"file.progressFlag"}],staticStyle:{"width":"100px","height":"100px"},attrs:{"element-loading-spinner":"el-icon-loading"}}):_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url ? file.url : file.mediaUrl ? file.mediaUrl + '/100/100' : __webpack_require__(344),"z-index":_vm.previewZIndex}})],1),_vm._v(" "),((_vm.model.lock && file.flagDefault) || (_vm.model.rightDefault && _vm.model.rightDefault == 1 && file.mediaTypeID == 2))?_c('span',{staticClass:"cover-list-item-span-Default"},[_c('i',[_c('el-radio',{class:{ 'browseDefault': _vm.model.lock },attrs:{"label":true,"disabled":_vm.model.lock,"title":"设为封面"},on:{"change":function($event){_vm.handleDefault($event, file)}},model:{value:(file.flagDefault),callback:function ($$v) {_vm.$set(file, "flagDefault", $$v)},expression:"file.flagDefault"}},[_vm._v(" ")])],1)]):_vm._e(),_vm._v(" "),(!_vm.model.lock && file.rightCrop && file.mediaTypeID == 2)?_c('span',{staticClass:"cover-list-item-span-edit"},[_c('i',{staticClass:"el-icon-edit-outline",on:{"click":function($event){_vm.handleEdit(file)}}})]):_vm._e(),_vm._v(" "),(!_vm.model.lock && file.rightDel)?_c('span',{staticClass:"cover-list-item-span-delete"},[_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){_vm.handleRemove(file)}}})]):_vm._e(),_vm._v(" "),(file.videoPlayIconUrl)?_c('span',{staticClass:"cover-list-item-play"},[_c('div',{staticClass:"swiper-i",on:{"click":function($event){_vm.viewerfile(file)}}},[_c('img',{staticClass:"hous-icon",attrs:{"src":file.videoPlayIconUrl}})])]):(file.mediaTypeID == 4 && (file.videoPlayIconUrl || _vm.model.videoPlayIconUrl))?_c('span',{staticClass:"cover-list-item-play"},[_c('div',{staticClass:"swiper-i",on:{"click":function($event){_vm.viewerfile(file)}}},[_c('img',{staticClass:"hous-icon",attrs:{"src":(file.videoPlayIconUrl || _vm.model.videoPlayIconUrl)}})])]):_vm._e(),_vm._v(" "),((_vm.model.lock && file.mediaLabelName) || _vm.model.paramName)?_c('span',{staticClass:"cover-list-item-span"},[(_vm.model.lock || !file.rightEdit)?_c('span',{staticClass:"el-dropdown-link"},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))])]):(_vm.model.isComplexClassify)?_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){_vm.classifyFormClickHandle(file)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]):_c('el-dropdown',{staticClass:"el-upload-list__item-preview",attrs:{"trigger":"click","placement":"top"},on:{"command":_vm.classifySelectedClickHandle}},[_c('span',{staticClass:"el-dropdown-link",on:{"click":_vm.classifyClickHandle}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_vm._v(" "),_c('el-dropdown-menu',{staticClass:"el-upload-list__item-preview",attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.model.optionModel.options),function(option,index){return _c('el-dropdown-item',{key:index,attrs:{"command":{ option: option, file: file }}},[_vm._v("\n "+_vm._s(option[_vm.model.optionModel.optionAttrs.label])+"\n ")])}))],1)],1):_vm._e()]),_vm._v(" "),_c('div',[(file.progressFlag)?_c('el-progress',{staticClass:"file-cirle file-cirle-mrLeft",attrs:{"type":"circle","show-text":false,"percentage":typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00,"width":96,"height":96}}):_vm._e(),_vm._v(" "),(file.progressFlag)?_c('div',{staticClass:"circleCenter"},[_c('div',{staticStyle:{"font-size":"12px","color":"#666"}},[_vm._v(" "+_vm._s(file.loadProgress.toFixed(2))+"%")])]):_vm._e()],1)])}}])},[_c('template',{slot:"default"},[_c('i',{staticClass:"el-icon-plus"})]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.valid),expression:"!valid"}],staticClass:"el-upload__tip errorMessage",staticStyle:{"white-space":"pre-wrap"},attrs:{"slot":"tip"},domProps:{"innerHTML":_vm._s(_vm.validMessage)},slot:"tip"}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.model.description),expression:"model.description"}],attrs:{"slot":"tip"},domProps:{"innerHTML":_vm._s(_vm.model.description)},slot:"tip"}),_vm._v(" "),(_vm.model.QRCodeAction)?_c('div',{staticClass:"qrcode-target"},[_c('img',{ref:"QRCodeRef",staticStyle:{"width":"35px","height":"35px","float":"right"},attrs:{"src":__webpack_require__(345),"alt":"扫码上传","title":"扫码上传"},on:{"click":function($event){$event.stopPropagation();return _vm.qrcodeFn($event)}}})]):_vm._e(),_vm._v(" "),(_vm.qrcodeVisible)?_c('div',{staticClass:"ScanUploadPhoto",style:({ top: _vm.QRCodeRefTop + 'px', left: _vm.QRCodeRefLeft + 'px' }),on:{"click":function($event){$event.stopPropagation();_vm.qrcodeVisible = true}}},[_c('div',{staticStyle:{"border-bottom":"none"}},[_c('div',{staticStyle:{"text-align":"center","margin-bottom":"10px","margin-top":"5px","color":"#666666","font-size":"14px"}},[_vm._v("扫码上传")]),_vm._v(" "),_c('i',{staticClass:"jiao",style:({ top: _vm.QRCodeRefJiaoTop + 'px' })}),_vm._v(" "),_c('div',{staticStyle:{"width":"200px","height":"200px"}},[(_vm.qrCodeImg)?_c('img',{style:(_vm.isQrCode ? 'opacity: 0.1' : ''),attrs:{"src":_vm.qrCodeImg,"width":"200","height":"200"}}):_vm._e(),_vm._v(" "),(_vm.isQrCode)?_c('div',{staticClass:"div-fail"},[_c('span',{staticClass:"ScanText",staticStyle:{"color":"#666666"}},[_vm._v(_vm._s(_vm.scanStatusDesc))]),_vm._v(" "),(_vm.FlagbtnScan)?_c('div',{staticStyle:{"text-align":"center"}},[_c('el-button',{staticClass:" max-btn-add",attrs:{"type":"success","size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.ShowQRcode($event)}}},[_vm._v("扫码上传")])],1):_vm._e()]):_vm._e()])])]):_vm._e(),_vm._v(" "),((_vm.model.lock) || _vm.model.paramName)?_c('span',{staticClass:"Public-classification",staticStyle:{"color":"#fff","border-radius":"0px 0px 4px 4px","text-align":"left","line-height":"26px","display":"inline-flex","overflow":"hidden"}},[(_vm.model.lock)?_c('span',{staticClass:"el-dropdown-link"},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))])]):(_vm.model.isComplexClassify)?_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){$event.stopPropagation();_vm.classifyFormClickHandle(_vm.model.mediaLabe)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]):_c('el-dropdown',{staticClass:"el-upload-list__item-preview",attrs:{"trigger":"click","placement":"top"},on:{"command":_vm.PublicClassifySelectedClickHandle}},[_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){$event.stopPropagation();return _vm.classifyClickHandle($event)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right",staticStyle:{"color":"#fff"}})]),_vm._v(" "),_c('el-dropdown-menu',{staticClass:"el-upload-list__item-preview",attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.model.optionModel.options),function(option,index){return _c('el-dropdown-item',{key:index,attrs:{"command":{ option: option, mediaLabe: _vm.model.mediaLabe }}},[_vm._v("\n "+_vm._s(option[_vm.model.optionModel.optionAttrs.label])+"\n ")])}))],1)],1):_vm._e()],2)]:[_c('el-upload',{ref:"upload",class:_vm.disableUpload ? 'ct-upload-display-none' : '',attrs:{"disabled":_vm.model.lock,"accept":_vm.model.fileAccept,"on-change":_vm.handleChange,"list-type":"picture-card","file-list":_vm.model.fileList,"multiple":true,"auto-upload":true,"action":_vm.model.action,"data":_vm.model.uploadData,"headers":_vm.headers,"before-upload":_vm.beforeUploadProcess,"on-success":_vm.handleAvatarSuccess,"on-error":_vm.handleAvatarError,"on-progress":_vm.uploadProcess,"limit":parseInt(_vm.model.max || 999),"on-exceed":_vm.handleExceed,"uploadStatus":!_vm.disableUpload && !_vm.model.lock ? 'upload' : 'lock'},scopedSlots:_vm._u([{key:"file",fn:function(ref){
|
|
81598
81611
|
var file = ref.file;
|
|
81599
81612
|
return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[(file.progressFlag)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(file.progressFlag),expression:"file.progressFlag"}],staticStyle:{"width":"100px","height":"100px"},attrs:{"element-loading-spinner":"el-icon-loading"}}):_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url ? file.url : file.mediaUrl ? file.url : __webpack_require__(344),"z-index":_vm.previewZIndex}})],1),_vm._v(" "),((_vm.model.lock && file.flagDefault) || (_vm.model.rightDefault && _vm.model.rightDefault == 1 && file.mediaTypeID == 2))?_c('span',{staticClass:"cover-list-item-span-Default"},[_c('i',[_c('el-radio',{class:{ 'browseDefault': _vm.model.lock },attrs:{"label":true,"disabled":_vm.model.lock,"title":"设为封面"},on:{"change":function($event){_vm.handleDefault($event, file)}},model:{value:(file.flagDefault),callback:function ($$v) {_vm.$set(file, "flagDefault", $$v)},expression:"file.flagDefault"}},[_vm._v(" ")])],1)]):_vm._e(),_vm._v(" "),(!_vm.model.lock && file.rightCrop && file.mediaTypeID == 2)?_c('span',{staticClass:"cover-list-item-span-edit"},[_c('i',{staticClass:"el-icon-edit-outline",on:{"click":function($event){_vm.handleEdit(file)}}})]):_vm._e(),_vm._v(" "),(!_vm.model.lock && file.rightDel)?_c('span',{staticClass:"cover-list-item-span-delete"},[_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){_vm.handleRemove(file)}}})]):_vm._e(),_vm._v(" "),(file.videoPlayIconUrl)?_c('span',{staticClass:"cover-list-item-play"},[_c('div',{staticClass:"swiper-i",on:{"click":function($event){_vm.viewerfile(file)}}},[_c('img',{staticClass:"hous-icon",attrs:{"src":file.videoPlayIconUrl}})])]):(file.mediaTypeID == 4 && (file.videoPlayIconUrl || _vm.model.videoPlayIconUrl))?_c('span',{staticClass:"cover-list-item-play"},[_c('div',{staticClass:"swiper-i",on:{"click":function($event){_vm.viewerfile(file)}}},[_c('img',{staticClass:"hous-icon",attrs:{"src":(file.videoPlayIconUrl || _vm.model.videoPlayIconUrl)}})])]):_vm._e(),_vm._v(" "),((_vm.model.lock && file.mediaLabelName) || _vm.model.paramName)?_c('span',{staticClass:"cover-list-item-span"},[(_vm.model.lock || !file.rightEdit)?_c('span',{staticClass:"el-dropdown-link"},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))])]):(_vm.model.isComplexClassify)?_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){_vm.classifyFormClickHandle(file)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]):_c('el-dropdown',{staticClass:"el-upload-list__item-preview",attrs:{"trigger":"click","placement":"top"},on:{"command":_vm.classifySelectedClickHandle}},[_c('span',{staticClass:"el-dropdown-link",on:{"click":_vm.classifyClickHandle}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex"}},[_vm._v(" "+_vm._s(file.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_vm._v(" "),_c('el-dropdown-menu',{staticClass:"el-upload-list__item-preview",attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.model.optionModel.options),function(option,index){return _c('el-dropdown-item',{key:index,attrs:{"command":{ option: option, file: file }}},[_vm._v("\n "+_vm._s(option[_vm.model.optionModel.optionAttrs.label])+"\n ")])}))],1)],1):_vm._e()]),_vm._v(" "),_c('div',[(file.progressFlag)?_c('el-progress',{staticClass:"file-cirle file-cirle-mrLeft",attrs:{"type":"circle","show-text":false,"percentage":typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00,"width":96,"height":96}}):_vm._e(),_vm._v(" "),(file.progressFlag)?_c('div',{staticClass:"circleCenter"},[_c('div',{staticStyle:{"font-size":"12px","color":"#666"}},[_vm._v(" "+_vm._s(file.loadProgress.toFixed(2))+"%")])]):_vm._e()],1)])}}])},[_c('i',{staticClass:"el-icon-plus",attrs:{"slot":"default"},slot:"default"}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.valid),expression:"!valid"}],staticClass:"el-upload__tip errorMessage",staticStyle:{"white-space":"pre-wrap"},attrs:{"slot":"tip"},domProps:{"innerHTML":_vm._s(_vm.validMessage)},slot:"tip"}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.model.description),expression:"model.description"}],attrs:{"slot":"tip"},domProps:{"innerHTML":_vm._s(_vm.model.description)},slot:"tip"}),_vm._v(" "),_c('div',{staticClass:"qrcode-target"},[(_vm.model.QRCodeAction)?_c('img',{ref:"QRCodeRef",staticStyle:{"width":"35px","height":"35px","float":"right"},attrs:{"src":__webpack_require__(345),"alt":"扫码上传","title":"扫码上传"},on:{"click":function($event){$event.stopPropagation();return _vm.qrcodeFn($event)}}}):_vm._e()]),_vm._v(" "),(_vm.qrcodeVisible)?_c('div',{staticClass:"ScanUploadPhoto",style:({ top: _vm.QRCodeRefTop + 'px', left: _vm.QRCodeRefLeft + 'px' }),on:{"click":function($event){$event.stopPropagation();_vm.qrcodeVisible = true}}},[_c('div',{staticStyle:{"border-bottom":"none"}},[_c('div',{staticStyle:{"text-align":"center","margin-bottom":"10px","margin-top":"5px","color":"#666666","font-size":"14px"}},[_vm._v("扫码上传")]),_vm._v(" "),_c('i',{staticClass:"jiao",style:({ top: _vm.QRCodeRefJiaoTop + 'px' })}),_vm._v(" "),_c('div',{staticStyle:{"width":"200px","height":"200px"}},[(_vm.qrCodeImg)?_c('img',{style:(_vm.isQrCode ? 'opacity: 0.1' : ''),attrs:{"src":_vm.qrCodeImg,"width":"200","height":"200"}}):_vm._e(),_vm._v(" "),(_vm.isQrCode)?_c('div',{staticClass:"div-fail"},[_c('span',{staticClass:"ScanText",staticStyle:{"color":"#666666"}},[_vm._v(_vm._s(_vm.scanStatusDesc))]),_vm._v(" "),(_vm.FlagbtnScan)?_c('div',{staticStyle:{"text-align":"center"}},[_c('el-button',{staticClass:" max-btn-add",attrs:{"type":"success","size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.ShowQRcode($event)}}},[_vm._v("扫码上传")])],1):_vm._e()]):_vm._e()])])]):_vm._e(),_vm._v(" "),((_vm.model.lock) || _vm.model.paramName)?_c('span',{staticClass:"Public-classification",staticStyle:{"color":"#fff","border-radius":"0px 0px 4px 4px","text-align":"left","line-height":"26px","display":"inline-flex","overflow":"hidden"}},[(_vm.model.lock)?_c('span',{staticClass:"el-dropdown-link"},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))])]):(_vm.model.isComplexClassify)?_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){$event.stopPropagation();_vm.classifyFormClickHandle(_vm.model.mediaLabe)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]):_c('el-dropdown',{staticClass:"el-upload-list__item-preview",attrs:{"trigger":"click","placement":"top"},on:{"command":_vm.PublicClassifySelectedClickHandle}},[_c('span',{staticClass:"el-dropdown-link",on:{"click":function($event){$event.stopPropagation();return _vm.classifyClickHandle($event)}}},[_c('span',{staticStyle:{"width":"80px","height":"26px","display":"inline-flex","overflow":"hidden"}},[_vm._v(" "+_vm._s(_vm.model.mediaLabe.mediaLabelName))]),_vm._v(" "),_c('i',{staticClass:"el-icon-arrow-down el-icon--right",staticStyle:{"color":"#fff"}})]),_vm._v(" "),_c('el-dropdown-menu',{staticClass:"el-upload-list__item-preview",attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.model.optionModel.options),function(option,index){return _c('el-dropdown-item',{key:index,attrs:{"command":{ option: option, mediaLabe: _vm.model.mediaLabe }}},[_vm._v("\n "+_vm._s(option[_vm.model.optionModel.optionAttrs.label])+"\n ")])}))],1)],1):_vm._e()])]],2):_vm._e()}
|
|
81600
81613
|
var staticRenderFns = []
|
|
@@ -85096,7 +85109,7 @@ var Component = normalizeComponent(
|
|
|
85096
85109
|
"use strict";
|
|
85097
85110
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicTree_vue__ = __webpack_require__(422);
|
|
85098
85111
|
/* unused harmony namespace reexport */
|
|
85099
|
-
/* harmony import */ var
|
|
85112
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_283986eb_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicTree_vue__ = __webpack_require__(896);
|
|
85100
85113
|
function injectStyle (ssrContext) {
|
|
85101
85114
|
__webpack_require__(892)
|
|
85102
85115
|
}
|
|
@@ -85116,7 +85129,7 @@ var __vue_scopeId__ = null
|
|
|
85116
85129
|
var __vue_module_identifier__ = null
|
|
85117
85130
|
var Component = normalizeComponent(
|
|
85118
85131
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicTree_vue__["a" /* default */],
|
|
85119
|
-
|
|
85132
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_283986eb_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicTree_vue__["a" /* default */],
|
|
85120
85133
|
__vue_template_functional__,
|
|
85121
85134
|
__vue_styles__,
|
|
85122
85135
|
__vue_scopeId__,
|
|
@@ -85137,7 +85150,7 @@ var content = __webpack_require__(893);
|
|
|
85137
85150
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
85138
85151
|
if(content.locals) module.exports = content.locals;
|
|
85139
85152
|
// add the styles to the DOM
|
|
85140
|
-
var update = __webpack_require__(3)("
|
|
85153
|
+
var update = __webpack_require__(3)("95fa25b8", content, true, {});
|
|
85141
85154
|
|
|
85142
85155
|
/***/ }),
|
|
85143
85156
|
/* 893 */
|