centaline-data-driven 1.5.54 → 1.5.55

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.5.54",
3
+ "version": "1.5.55",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v1.5.55
2
+ 2023-08-25
3
+
4
+ 优化
5
+
6
+ 扫码上传优化
7
+
1
8
  ## v1.5.54
2
9
  2023-08-24
3
10
 
@@ -33,7 +33,7 @@
33
33
  <div style="text-align: center;margin-bottom:10px;margin-top:5px;color:#666666;font-size: 14px;">扫码上传</div>
34
34
  <i class="jiao"></i>
35
35
  <div style="width:200px; height:200px;">
36
- <img :src="qrCodeImg" width="200" height="200" :style="isQrCode?'opacity: 0.1':''" />
36
+ <img v-if="qrCodeImg" :src="qrCodeImg" width="200" height="200" :style="isQrCode?'opacity: 0.1':''" />
37
37
  <div class="div-fail" v-if="isQrCode">
38
38
  <span class="ScanText" style="color:#666666;">{{scanStatusDesc}}</span>
39
39
  <div style="text-align: center;" v-if="FlagbtnScan">
@@ -138,7 +138,7 @@
138
138
  <div style="text-align: center;margin-bottom:10px;margin-top:5px;color:#666666;font-size: 14px;">扫码上传</div>
139
139
  <i class="jiao"></i>
140
140
  <div style="width:200px; height:200px;">
141
- <img :src="qrCodeImg" width="200" height="200" :style="isQrCode?'opacity: 0.1':''" />
141
+ <img v-if="qrCodeImg" :src="qrCodeImg" width="200" height="200" :style="isQrCode?'opacity: 0.1':''" />
142
142
  <div class="div-fail" v-if="isQrCode">
143
143
  <span class="ScanText" style="color:#666666;">{{scanStatusDesc}}</span>
144
144
  <div style="text-align: center;" v-if="FlagbtnScan">
@@ -633,13 +633,6 @@
633
633
  this.model.setByPieces(res, Progress, file);
634
634
 
635
635
  if (res.content.finished == 1) {
636
- var self = this;
637
- let img = new Image();
638
- img.src = self.model.fileList[self.model.fileList.length - 1].mediaUrl;
639
- img.onload = function () {
640
- self.model.fileList[self.model.fileList.length - 1].width = img.width;
641
- self.model.fileList[self.model.fileList.length - 1].height = img.height;
642
- };
643
636
  this.handleChange();
644
637
  this.QRCodeLocate();
645
638
  }
@@ -689,8 +682,8 @@
689
682
  self.model.AddSourceList(v);
690
683
  var FileData = self.model.getFileData(v);
691
684
  FileData.uid=self.uploadguid();
692
- FileData.width="";
693
- FileData.height="";
685
+ FileData.width=v.width;
686
+ FileData.height=v.height;
694
687
  self.model.fileList.push(FileData);
695
688
  self.handleChange();
696
689
  self.$nextTick(() => {
@@ -698,17 +691,6 @@
698
691
  });
699
692
  }
700
693
  });
701
- var ImgfileList = self.model.fileList.filter((v) => {
702
- return v.width === "";
703
- });
704
- ImgfileList.forEach((v) => {
705
- let img = new Image();
706
- img.src = v.mediaUrl;
707
- img.onload = function () {
708
- v.width=img.width;
709
- v.height=img.height
710
- };
711
- });
712
694
  }
713
695
  else {
714
696
  self.qrtimer = setTimeout(self.CheckQRCodeStatus, 1000);
@@ -400,8 +400,7 @@ const box = function (source, fileSourceList, router, optionApi,videoPlayIconUrl
400
400
  data = rtn.getFileData(res.content.media);
401
401
  data.progressFlag = false;
402
402
  data.loadProgress = 100;
403
- Vue.set(file, "width", w);
404
- Vue.set(file, "height", h);
403
+
405
404
  Vue.set(file, "url", data.url);
406
405
  Vue.set(file, "source", data.source);
407
406
  Vue.set(file, "mediaUrl", data.mediaUrl);
@@ -424,6 +423,21 @@ const box = function (source, fileSourceList, router, optionApi,videoPlayIconUrl
424
423
  Vue.set(file, "videoPlayIconUrl", data.videoPlayIconUrl);
425
424
  Vue.set(file, "progressFlag", data.progressFlag);
426
425
  Vue.set(file, "loadProgress", data.loadProgress);
426
+ let self=this;
427
+ if (file.type.indexOf("image") > -1) {
428
+ let img = new Image();
429
+ img.src = URL.createObjectURL(file);
430
+ img.onload = function () {
431
+ w = img.width;
432
+ h = img.height;
433
+ Vue.set(file, "width", w);
434
+ Vue.set(file, "height", h);
435
+ let index = self.fileList.findIndex(v => v.uid === file.uid);
436
+ if (index === -1) return;
437
+ rtn.fileList[index].width=w;
438
+ rtn.fileList[index].height=h;
439
+ };
440
+ }
427
441
  }
428
442
  else {
429
443
  data.progressFlag = true;
package/src/main.js CHANGED
@@ -55,7 +55,7 @@ Vue.use(centaline, {
55
55
  return {
56
56
  oldToken: '11c12506-253c-4995-83fb-84cf51cb23a0',
57
57
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
58
- authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOiv5s7HX6eJ10nCIyLYcKVSIJBIIcXdAQEfPFK-YZt5NrHsWnYjUS-TRAA-6BYyuhX50BIGJZNDOYKDJf4Af82VSCr1TdoDeOwa0aIAUEzBaxjEOhkMUjaiXk-iU9dprtGQasaTtLciQfol9redDvf7j3HFbnlnrJRWHBC5jBiwpQ07OA84oDc7Jl1rE_QEAAP__.B0E2bU2J3oMiyX0u9J3NxqQi3co8v2wS7zNtd5uaM-8"}',
58
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjs0KwjAQhN9lz13IzybZ9NZs24sPUdoSoZ7EtqCI724UvXl3DsPwwTBzh3WfoIaWG0XSW5TOOKQ2OGz6wJiEWSUTLCUe4kf4w74atKYYtO-wiUGQPFlkLYxCXqhvOyuphQry9Qy19tGqUvCugmXc3sBE49QL7Gu-HPLtH-dO21Jmj7PK5V_EaQwz0uhKsm5GZQqwZL3nAI8nAAAA__8.Bu3SAbUDbTbz4p3YSTQ9EtnsbAqrGXay6kOxYGKa9RA"}',
59
59
 
60
60
  originalRequestURL: 'http://10.88.22.67:8080',
61
61
  EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
@@ -9309,8 +9309,7 @@ var box = function box(source, fileSourceList, router, optionApi, videoPlayIconU
9309
9309
  data = rtn.getFileData(res.content.media);
9310
9310
  data.progressFlag = false;
9311
9311
  data.loadProgress = 100;
9312
- __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "width", w);
9313
- __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "height", h);
9312
+
9314
9313
  __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "url", data.url);
9315
9314
  __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "source", data.source);
9316
9315
  __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "mediaUrl", data.mediaUrl);
@@ -9333,6 +9332,23 @@ var box = function box(source, fileSourceList, router, optionApi, videoPlayIconU
9333
9332
  __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "videoPlayIconUrl", data.videoPlayIconUrl);
9334
9333
  __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "progressFlag", data.progressFlag);
9335
9334
  __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "loadProgress", data.loadProgress);
9335
+ var _self = this;
9336
+ if (file.type.indexOf("image") > -1) {
9337
+ var img = new Image();
9338
+ img.src = URL.createObjectURL(file);
9339
+ img.onload = function () {
9340
+ w = img.width;
9341
+ h = img.height;
9342
+ __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "width", w);
9343
+ __WEBPACK_IMPORTED_MODULE_4_vue___default.a.set(file, "height", h);
9344
+ var index = _self.fileList.findIndex(function (v) {
9345
+ return v.uid === file.uid;
9346
+ });
9347
+ if (index === -1) return;
9348
+ rtn.fileList[index].width = w;
9349
+ rtn.fileList[index].height = h;
9350
+ };
9351
+ }
9336
9352
  } else {
9337
9353
  data.progressFlag = true;
9338
9354
  data.loadProgress = Progress;
@@ -31330,13 +31346,6 @@ if (typeof window !== "undefined" && "Vue" in window) {
31330
31346
  this.model.setByPieces(res, Progress, file);
31331
31347
 
31332
31348
  if (res.content.finished == 1) {
31333
- var self = this;
31334
- var img = new Image();
31335
- img.src = self.model.fileList[self.model.fileList.length - 1].mediaUrl;
31336
- img.onload = function () {
31337
- self.model.fileList[self.model.fileList.length - 1].width = img.width;
31338
- self.model.fileList[self.model.fileList.length - 1].height = img.height;
31339
- };
31340
31349
  this.handleChange();
31341
31350
  this.QRCodeLocate();
31342
31351
  }
@@ -31384,8 +31393,8 @@ if (typeof window !== "undefined" && "Vue" in window) {
31384
31393
  self.model.AddSourceList(v);
31385
31394
  var FileData = self.model.getFileData(v);
31386
31395
  FileData.uid = self.uploadguid();
31387
- FileData.width = "";
31388
- FileData.height = "";
31396
+ FileData.width = v.width;
31397
+ FileData.height = v.height;
31389
31398
  self.model.fileList.push(FileData);
31390
31399
  self.handleChange();
31391
31400
  self.$nextTick(function () {
@@ -31393,17 +31402,6 @@ if (typeof window !== "undefined" && "Vue" in window) {
31393
31402
  });
31394
31403
  }
31395
31404
  });
31396
- var ImgfileList = self.model.fileList.filter(function (v) {
31397
- return v.width === "";
31398
- });
31399
- ImgfileList.forEach(function (v) {
31400
- var img = new Image();
31401
- img.src = v.mediaUrl;
31402
- img.onload = function () {
31403
- v.width = img.width;
31404
- v.height = img.height;
31405
- };
31406
- });
31407
31405
  } else {
31408
31406
  self.qrtimer = setTimeout(self.CheckQRCodeStatus, 1000);
31409
31407
  }
@@ -55687,7 +55685,7 @@ if (typeof window !== 'undefined' && window.Vue) {
55687
55685
  "use strict";
55688
55686
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFile_vue__ = __webpack_require__(198);
55689
55687
  /* unused harmony namespace reexport */
55690
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0b92cbcc_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__ = __webpack_require__(538);
55688
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_27ca991c_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__ = __webpack_require__(538);
55691
55689
  function injectStyle (ssrContext) {
55692
55690
  __webpack_require__(531)
55693
55691
  }
@@ -55707,7 +55705,7 @@ var __vue_scopeId__ = null
55707
55705
  var __vue_module_identifier__ = null
55708
55706
  var Component = normalizeComponent(
55709
55707
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFile_vue__["a" /* default */],
55710
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0b92cbcc_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__["a" /* default */],
55708
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_27ca991c_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__["a" /* default */],
55711
55709
  __vue_template_functional__,
55712
55710
  __vue_styles__,
55713
55711
  __vue_scopeId__,
@@ -55728,7 +55726,7 @@ var content = __webpack_require__(532);
55728
55726
  if(typeof content === 'string') content = [[module.i, content, '']];
55729
55727
  if(content.locals) module.exports = content.locals;
55730
55728
  // add the styles to the DOM
55731
- var update = __webpack_require__(2)("5d22a860", content, true, {});
55729
+ var update = __webpack_require__(2)("7825e6eb", content, true, {});
55732
55730
 
55733
55731
  /***/ }),
55734
55732
  /* 532 */
@@ -55832,9 +55830,9 @@ module.exports = function (object, index, value) {
55832
55830
  "use strict";
55833
55831
  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},scopedSlots:_vm._u([{key:"file",fn:function(ref){
55834
55832
  var file = ref.file;
55835
- return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url?file.url:file.mediaUrl?file.mediaUrl+'/100/100':__webpack_require__(200),"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(" "),(_vm.model.QRCodeAction)?_c('img',{ref:"QRCodeRef",staticClass:"qrcode-target",staticStyle:{"width":"35px","height":"35px"},attrs:{"src":__webpack_require__(201),"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"}),_vm._v(" "),_c('div',{staticStyle:{"width":"200px","height":"200px"}},[_c('img',{style:(_vm.isQrCode?'opacity: 0.1':''),attrs:{"src":_vm.qrCodeImg,"width":"200","height":"200"}}),_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()])]:[_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},scopedSlots:_vm._u([{key:"file",fn:function(ref){
55833
+ return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url?file.url:file.mediaUrl?file.mediaUrl+'/100/100':__webpack_require__(200),"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(" "),(_vm.model.QRCodeAction)?_c('img',{ref:"QRCodeRef",staticClass:"qrcode-target",staticStyle:{"width":"35px","height":"35px"},attrs:{"src":__webpack_require__(201),"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"}),_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()])]:[_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},scopedSlots:_vm._u([{key:"file",fn:function(ref){
55836
55834
  var file = ref.file;
55837
- return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url?file.url:file.mediaUrl?file.url:__webpack_require__(200),"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(" "),(_vm.model.QRCodeAction)?_c('img',{ref:"QRCodeRef",staticClass:"qrcode-target",staticStyle:{"width":"35px","height":"35px"},attrs:{"src":__webpack_require__(201),"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"}),_vm._v(" "),_c('div',{staticStyle:{"width":"200px","height":"200px"}},[_c('img',{style:(_vm.isQrCode?'opacity: 0.1':''),attrs:{"src":_vm.qrCodeImg,"width":"200","height":"200"}}),_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()])]],2):_vm._e()}
55835
+ return _c('div',{attrs:{"title":file.fileName}},[_c('div',{staticClass:"cover-list-item"},[_c('div',{on:{"click":function($event){_vm.viewerfile(file)}}},[_c('el-image',{staticStyle:{"width":"100px","height":"100px"},attrs:{"fit":"fill","src":file.url?file.url:file.mediaUrl?file.url:__webpack_require__(200),"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(" "),(_vm.model.QRCodeAction)?_c('img',{ref:"QRCodeRef",staticClass:"qrcode-target",staticStyle:{"width":"35px","height":"35px"},attrs:{"src":__webpack_require__(201),"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"}),_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()])]],2):_vm._e()}
55838
55836
  var staticRenderFns = []
55839
55837
  var esExports = { render: render, staticRenderFns: staticRenderFns }
55840
55838
  /* harmony default export */ __webpack_exports__["a"] = (esExports);