cnhis-design-vue 3.2.14-beta.24 → 3.2.14-beta.29
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/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/NoData.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/big-table/src/hooks/useNestTable.js +1 -1
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue2.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/Preview.vue2.js +1 -1
- package/es/components/button-print/src/utils/dialog.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/calendar/index.d.ts +4 -4
- package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/default-page/src/constants/index.js +1 -1
- package/es/components/default-page/src/index.vue2.js +1 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +1 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/expand-field/src/utils/constant.js +1 -1
- package/es/components/fabric-chart/index.d.ts +6 -4
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +6 -4
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/src/constants/filter.js +1 -1
- package/es/components/field-set/src/constants/index.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-config/src/hooks/useLocale.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/iho-chat/index.d.ts +23 -2
- package/es/components/iho-chat/src/Index.vue.d.ts +23 -2
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +40 -19
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/constants/index.d.ts +1 -2
- package/es/components/iho-chat/src/constants/index.js +1 -1
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
- package/es/components/iho-chat/src/utils/chatSock.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
- package/es/components/map/src/Map.vue2.js +1 -1
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/recommend-search/src/components/BaseSearch.js +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/NoData.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/SelectPersonType.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +1 -1
- package/es/components/select-person/src/index.vue2.js +1 -1
- package/es/components/slider-tree/src/index.vue2.js +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/components/table-export-field/src/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +76 -76
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,reactive as o,computed as l,onMounted as i,openBlock as s,createElementBlock as a,withDirectives as t,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,toDisplayString as p,vShow as m,createCommentVNode as c,createVNode as v,withCtx as f,normalizeStyle as g,createTextVNode as h,withModifiers as y,createBlock as k}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as w,NButton as D}from"naive-ui";import{PlayCircleSharp as x,PlayCircleOutline as O,RemoveCircleSharp as S}from"@vicons/ionicons5";import _ from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import z from"../../../../shared/assets/img/success.png.js";import F from"../../../../shared/components/VueDraggable/src/vuedraggable.js";const N={class:"c-upload"},M={class:"chunk-btn-content"},A={class:"c-uploader-btn"},B=["src"],J={class:"uploader-text"},E=d("p",null,"点击上传",-1),P={class:"guage-text"},T=["src"],R=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),G={class:"vod-wrap c-uploader-preview-wrap"},H={key:0,class:"vod-def-bg vod-uploading"},K={class:"vod-def-bg vod-done"},$=["src"],q=["src"],I={class:"c-icon-wrap"},Q={class:"vod-def-bg vod-error"},W=["src"],X={class:"tooltip-wrap error-wrap"},Y=["onClick"];var Z=e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:Z}){const ee=e,{VodState:oe}=C(),le=o(oe),ie={},{isShowBtn:se,maskHeight:ae,showPercent:te,allow_format:re,defaultValue:ne,isDisabled:de,max_size:ue,maxlength:pe}=U(ee,le,{mainForm:ie});console.log(se.value,"----isShowBtn---",ee.formData.title),l((()=>ve()));const me=l((()=>"guage"==ee.source)),ce=l((()=>{var e,o;return(null==(o=null==(e=ee.formData)?void 0:e.setting)?void 0:o.maxSize)||50})),ve=()=>{const{formData:e}=ee;let o=[];if(o=me.value?ee.defFileList:null==ie?void 0:ie.handleSysParams(ie.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),b.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),le.fileList=l,console.log(le.fileList,"----list---list"),fe(l),l):[]},fe=e=>{if(!Array.isArray(e))return"";const{formData:o}=ee;let l=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let i=e.vodCoverUrl||o.vodCoverUrl;l.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:i,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(l,"---resList---",ee.formData.title);let i=JSON.stringify(l);me.value?Z("vodFileList",i,ee.formData):ie.baseForm.setFieldsValue({[o.val_key]:i})},ge=(e,o)=>{let l,i;if(e.type&&(i=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!i){let e=l.split(".");i=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);le.playerOptions={sources:[{type:i,src:l}]},le.videoVisible=!0},he=()=>{le.videoVisible=!1},ye=()=>{de.value||(le.chunkUploadVisible=!0)},ke=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),le.fileList.push(...o),fe(le.fileList)},be=()=>{fe(le.fileList)};return i((()=>{ve()})),(o,l)=>(s(),a("div",N,[e.isDetail||ee.isLock?c("v-if",!0):t((s(),a("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(de),"c-chunk-uploader-btn-guage":n(me)}]),onClick:ye},[d("div",M,[d("div",A,[n(me)?(s(),a(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,B),d("div",J,[E,d("span",P,"上传视频(不超过"+p(n(ce))+"M)",1)])],64)):(s(),a(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,T),R],64))])])],2)),[[m,n(se)]]),v(n(F),{modelValue:le.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>le.fileList=e),animation:"150",itemKey:"uid",disabled:n(de).value,options:le.draggableOptions,onUpdate:be,class:"drag-content"},{item:f((({element:o,index:l})=>{return[d("div",G,[c(" 上传中 "),"uploading"===o.status?(s(),a("div",H,[c(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:g({height:n(ae)(o)})},[d("span",null,p(n(te)(o.percent))+"%",1)],4)])):"done"===o.status?(s(),a(u,{key:1},[c(" 上传完成 "),d("div",K,[d("img",{src:(i=o,i.thumbUrl?i.thumbUrl:_),class:"vod-cover-img"},null,8,$),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(z),class:"upload-img"},null,8,q),h(" 上传成功 ")],2),c(" 播放图标 "),d("div",I,[v(n(w),{component:n(x),class:"icon-play theme_filled",onClick:y((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"]),v(n(w),{component:n(O),class:"icon-play theme_outlined",onClick:y((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(s(),a(u,{key:2},[c(" 上传失败 "),d("div",Q,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,W),d("div",X,[d("span",null,p(o.message?o.message:"上传失败,继续上传?"),1),v(n(D),{size:"small",onClick:y((e=>{}),["prevent","stop"])},{default:f((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.
|
1
|
+
import{defineComponent as e,reactive as o,computed as l,onMounted as i,openBlock as s,createElementBlock as a,withDirectives as t,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,toDisplayString as p,vShow as m,createCommentVNode as c,createVNode as v,withCtx as f,normalizeStyle as g,createTextVNode as h,withModifiers as y,createBlock as k}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as w,NButton as D}from"naive-ui";import{PlayCircleSharp as x,PlayCircleOutline as O,RemoveCircleSharp as S}from"@vicons/ionicons5";import _ from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import z from"../../../../shared/assets/img/success.png.js";import F from"../../../../shared/components/VueDraggable/src/vuedraggable.js";const N={class:"c-upload"},M={class:"chunk-btn-content"},A={class:"c-uploader-btn"},B=["src"],J={class:"uploader-text"},E=d("p",null,"点击上传",-1),P={class:"guage-text"},T=["src"],R=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),G={class:"vod-wrap c-uploader-preview-wrap"},H={key:0,class:"vod-def-bg vod-uploading"},K={class:"vod-def-bg vod-done"},$=["src"],q=["src"],I={class:"c-icon-wrap"},Q={class:"vod-def-bg vod-error"},W=["src"],X={class:"tooltip-wrap error-wrap"},Y=["onClick"];var Z=e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:Z}){const ee=e,{VodState:oe}=C(),le=o(oe),ie={},{isShowBtn:se,maskHeight:ae,showPercent:te,allow_format:re,defaultValue:ne,isDisabled:de,max_size:ue,maxlength:pe}=U(ee,le,{mainForm:ie});console.log(se.value,"----isShowBtn---",ee.formData.title),l((()=>ve()));const me=l((()=>"guage"==ee.source)),ce=l((()=>{var e,o;return(null==(o=null==(e=ee.formData)?void 0:e.setting)?void 0:o.maxSize)||50})),ve=()=>{const{formData:e}=ee;let o=[];if(o=me.value?ee.defFileList:null==ie?void 0:ie.handleSysParams(ie.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),b.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),le.fileList=l,console.log(le.fileList,"----list---list"),fe(l),l):[]},fe=e=>{if(!Array.isArray(e))return"";const{formData:o}=ee;let l=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let i=e.vodCoverUrl||o.vodCoverUrl;l.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:i,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(l,"---resList---",ee.formData.title);let i=JSON.stringify(l);me.value?Z("vodFileList",i,ee.formData):ie.baseForm.setFieldsValue({[o.val_key]:i})},ge=(e,o)=>{let l,i;if(e.type&&(i=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!i){let e=l.split(".");i=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);le.playerOptions={sources:[{type:i,src:l}]},le.videoVisible=!0},he=()=>{le.videoVisible=!1},ye=()=>{de.value||(le.chunkUploadVisible=!0)},ke=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),le.fileList.push(...o),fe(le.fileList)},be=()=>{fe(le.fileList)};return i((()=>{ve()})),(o,l)=>(s(),a("div",N,[e.isDetail||ee.isLock?c("v-if",!0):t((s(),a("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(de),"c-chunk-uploader-btn-guage":n(me)}]),onClick:ye},[d("div",M,[d("div",A,[n(me)?(s(),a(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,B),d("div",J,[E,d("span",P,"上传视频(不超过"+p(n(ce))+"M)",1)])],64)):(s(),a(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,T),R],64))])])],2)),[[m,n(se)]]),v(n(F),{modelValue:le.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>le.fileList=e),animation:"150",itemKey:"uid",disabled:n(de).value,options:le.draggableOptions,onUpdate:be,class:"drag-content"},{item:f((({element:o,index:l})=>{return[d("div",G,[c(" 上传中 "),"uploading"===o.status?(s(),a("div",H,[c(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:g({height:n(ae)(o)})},[d("span",null,p(n(te)(o.percent))+"%",1)],4)])):"done"===o.status?(s(),a(u,{key:1},[c(" 上传完成 "),d("div",K,[d("img",{src:(i=o,i.thumbUrl?i.thumbUrl:_),class:"vod-cover-img"},null,8,$),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(z),class:"upload-img"},null,8,q),h(" 上传成功 ")],2),c(" 播放图标 "),d("div",I,[v(n(w),{component:n(x),class:"icon-play theme_filled",onClick:y((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"]),v(n(w),{component:n(O),class:"icon-play theme_outlined",onClick:y((e=>ge(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(s(),a(u,{key:2},[c(" 上传失败 "),d("div",Q,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,W),d("div",X,[d("span",null,p(o.message?o.message:"上传失败,继续上传?"),1),v(n(D),{size:"small",onClick:y((e=>{}),["prevent","stop"])},{default:f((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.33"))||"确定")]})),_:2},1032,["onClick"])])])],2112)):c("v-if",!0),!["done","error"].includes(o.status)||n(de)||e.isDetail?c("v-if",!0):(s(),a("div",{key:3,onClick:y((e=>{return o=l,le.fileList.splice(o,1),void fe(le.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[v(n(w),{class:"pre-delete",component:n(S)},null,8,["component"])],8,Y))])];var i})),_:1},8,["modelValue","disabled","options"]),le.videoVisible?(s(),k(n(L),{key:1,visible:le.videoVisible,formData:ee.formData,playerOptions:le.playerOptions,onCloseVideoModal:he},null,8,["visible","formData","playerOptions"])):c("v-if",!0),v(n(V),{modelValue:le.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>le.chunkUploadVisible=e),modalTitle:ee.formData.name,max_size:n(ue),maxLength:n(pe),propsCategoryMap:n(re),defaultList:le.fileList,getChunkUploadConfig:e.getChunkUploadConfig,source:ee.source,onGetSumbitList:ke},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig","source"])]))}});export{Z as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as o,createVNode as l,resolveComponent as t,mergeProps as a,createTextVNode as d}from"vue";import{NModal as n,NCard as u,NButton as r}from"naive-ui";import i from"./chunk-upload-new.vue.js";var p=e({name:"vodUploadModal",components:{NModal:n,NCard:u,NButton:r,chunkUploadCom:i},props:{modalTitle:{type:String,default:"上传"},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{attrs:n,emit:u}){const r=o(null),p=()=>{var e;console.log(r.value),null==(e=r.value)||e.cancel()},m=()=>{u("update:modelValue",!1)},s=()=>{var e;null==(e=r.value)||e.confirm()};console.log(n);const g=()=>l(t("n-modal"),{show:e.modelValue,"onUpdate:show":o=>e.modelValue=o,style:{width:"860px",height:"auto"}},{default:()=>[l(t("n-card"),{style:{width:"860px",height:"770px"},title:e.modalTitle,size:"huge",role:"dialog","aria-modal":"true","header-style":"padding: 14px 16px;border-bottom:1px solid #e8e8e8;font-size:16px;","footer-style":"padding: 10px 16px;border-top:1px solid #e8e8e8;text-align:right;","content-style":"padding: 24px 24px 12px;"},{default:()=>l(i,a(n,{ref:r,uploaderType:"video",onCloseUpload:m}),null),footer:()=>l("div",null,[l(t("n-button"),{"on-click":p,style:{"margin-right":"8px"}},{default:()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.
|
1
|
+
import{defineComponent as e,ref as o,createVNode as l,resolveComponent as t,mergeProps as a,createTextVNode as d}from"vue";import{NModal as n,NCard as u,NButton as r}from"naive-ui";import i from"./chunk-upload-new.vue.js";var p=e({name:"vodUploadModal",components:{NModal:n,NCard:u,NButton:r,chunkUploadCom:i},props:{modalTitle:{type:String,default:"上传"},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{attrs:n,emit:u}){const r=o(null),p=()=>{var e;console.log(r.value),null==(e=r.value)||e.cancel()},m=()=>{u("update:modelValue",!1)},s=()=>{var e;null==(e=r.value)||e.confirm()};console.log(n);const g=()=>l(t("n-modal"),{show:e.modelValue,"onUpdate:show":o=>e.modelValue=o,style:{width:"860px",height:"auto"}},{default:()=>[l(t("n-card"),{style:{width:"860px",height:"770px"},title:e.modalTitle,size:"huge",role:"dialog","aria-modal":"true","header-style":"padding: 14px 16px;border-bottom:1px solid #e8e8e8;font-size:16px;","footer-style":"padding: 10px 16px;border-top:1px solid #e8e8e8;text-align:right;","content-style":"padding: 24px 24px 12px;"},{default:()=>l(i,a(n,{ref:r,uploaderType:"video",onCloseUpload:m}),null),footer:()=>l("div",null,[l(t("n-button"),{"on-click":p,style:{"margin-right":"8px"}},{default:()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]}}),l(t("n-button"),{type:"primary",onClick:s},{default:()=>{var e;return[d((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.33"))||"确定")]}})])})]});return()=>g()}});export{p as default};
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.2.14-beta.
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.14-beta.29",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.14-beta.29",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
@@ -1,76 +1,76 @@
|
|
1
|
-
{
|
2
|
-
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.2.14-beta.
|
4
|
-
"license": "ISC",
|
5
|
-
"module": "./es/components/index.js",
|
6
|
-
"main": "./es/components/index.js",
|
7
|
-
"types": "./es/components/index.d.ts",
|
8
|
-
"sideEffects": [
|
9
|
-
"es/components/**/style/*",
|
10
|
-
"es/components/*(.css,.less)"
|
11
|
-
],
|
12
|
-
"files": [
|
13
|
-
"es",
|
14
|
-
"README.md"
|
15
|
-
],
|
16
|
-
"peerDependencies": {
|
17
|
-
"@fullcalendar/core": "^6.1.10",
|
18
|
-
"@fullcalendar/interaction": "^6.1.10",
|
19
|
-
"@fullcalendar/resource": "^6.1.10",
|
20
|
-
"@fullcalendar/resource-timegrid": "^6.1.10",
|
21
|
-
"@fullcalendar/scrollgrid": "^6.1.10",
|
22
|
-
"@fullcalendar/vue3": "^6.1.10",
|
23
|
-
"naive-ui": "^2.34.0",
|
24
|
-
"vue": "^3.2.0",
|
25
|
-
"vxe-table": "^4.2.5"
|
26
|
-
},
|
27
|
-
"dependencies": {
|
28
|
-
"@formily/core": "2.1.9",
|
29
|
-
"@formily/path": "2.1.9",
|
30
|
-
"@formily/reactive": "2.1.9",
|
31
|
-
"@formily/vue": "2.1.9",
|
32
|
-
"@vicons/ionicons5": "^0.12.0",
|
33
|
-
"@vueuse/core": "^8.6.0",
|
34
|
-
"@vueuse/shared": "^8.6.0",
|
35
|
-
"@wangeditor/editor": "^5.1.1",
|
36
|
-
"@wangeditor/editor-for-vue": "^5.1.11",
|
37
|
-
"axios": "^0.27.2",
|
38
|
-
"bpmn-js": "^9.2.2",
|
39
|
-
"bpmnlint-utils": "^1.0.2",
|
40
|
-
"date-fns": "^2.30.0",
|
41
|
-
"diagram-js": "^8.7.1",
|
42
|
-
"ids": "^1.0.0",
|
43
|
-
"inherits": "^2.0.4",
|
44
|
-
"lodash": "^4.17.21",
|
45
|
-
"lodash-es": "^4.17.21",
|
46
|
-
"lodash-unified": "^1.0.2",
|
47
|
-
"min-dash": "^3.8.1",
|
48
|
-
"min-dom": "^3.2.1",
|
49
|
-
"moment": "^2.29.1",
|
50
|
-
"naive-ui": "^2.34.0",
|
51
|
-
"recorder-core": "^1.2.23070100",
|
52
|
-
"socket.io-client": "^4.7.3",
|
53
|
-
"sockjs-client": "^1.6.1",
|
54
|
-
"sortablejs": "^1.15.0",
|
55
|
-
"spark-md5": "^3.0.2",
|
56
|
-
"stompjs": "^2.3.3",
|
57
|
-
"tiny-svg": "^2.2.4",
|
58
|
-
"trtc-sdk-v5": "^5.5.2",
|
59
|
-
"v-viewer": "^3.0.10",
|
60
|
-
"video.js": "^7.19.2",
|
61
|
-
"videojs-contrib-hls": "^5.15.0",
|
62
|
-
"viewerjs": "^1.10.5",
|
63
|
-
"vue": "^3.2.0",
|
64
|
-
"vue-simple-uploader": "^1.0.0-beta.5",
|
65
|
-
"xe-utils": "^3.5.4"
|
66
|
-
},
|
67
|
-
"browserslist": [
|
68
|
-
"defaults",
|
69
|
-
"not ie < 8",
|
70
|
-
"last 2 versions",
|
71
|
-
"> 1%",
|
72
|
-
"iOS 7",
|
73
|
-
"last 3 iOS versions"
|
74
|
-
],
|
75
|
-
"gitHead": "
|
76
|
-
}
|
1
|
+
{
|
2
|
+
"name": "cnhis-design-vue",
|
3
|
+
"version": "3.2.14-beta.29",
|
4
|
+
"license": "ISC",
|
5
|
+
"module": "./es/components/index.js",
|
6
|
+
"main": "./es/components/index.js",
|
7
|
+
"types": "./es/components/index.d.ts",
|
8
|
+
"sideEffects": [
|
9
|
+
"es/components/**/style/*",
|
10
|
+
"es/components/*(.css,.less)"
|
11
|
+
],
|
12
|
+
"files": [
|
13
|
+
"es",
|
14
|
+
"README.md"
|
15
|
+
],
|
16
|
+
"peerDependencies": {
|
17
|
+
"@fullcalendar/core": "^6.1.10",
|
18
|
+
"@fullcalendar/interaction": "^6.1.10",
|
19
|
+
"@fullcalendar/resource": "^6.1.10",
|
20
|
+
"@fullcalendar/resource-timegrid": "^6.1.10",
|
21
|
+
"@fullcalendar/scrollgrid": "^6.1.10",
|
22
|
+
"@fullcalendar/vue3": "^6.1.10",
|
23
|
+
"naive-ui": "^2.34.0",
|
24
|
+
"vue": "^3.2.0",
|
25
|
+
"vxe-table": "^4.2.5"
|
26
|
+
},
|
27
|
+
"dependencies": {
|
28
|
+
"@formily/core": "2.1.9",
|
29
|
+
"@formily/path": "2.1.9",
|
30
|
+
"@formily/reactive": "2.1.9",
|
31
|
+
"@formily/vue": "2.1.9",
|
32
|
+
"@vicons/ionicons5": "^0.12.0",
|
33
|
+
"@vueuse/core": "^8.6.0",
|
34
|
+
"@vueuse/shared": "^8.6.0",
|
35
|
+
"@wangeditor/editor": "^5.1.1",
|
36
|
+
"@wangeditor/editor-for-vue": "^5.1.11",
|
37
|
+
"axios": "^0.27.2",
|
38
|
+
"bpmn-js": "^9.2.2",
|
39
|
+
"bpmnlint-utils": "^1.0.2",
|
40
|
+
"date-fns": "^2.30.0",
|
41
|
+
"diagram-js": "^8.7.1",
|
42
|
+
"ids": "^1.0.0",
|
43
|
+
"inherits": "^2.0.4",
|
44
|
+
"lodash": "^4.17.21",
|
45
|
+
"lodash-es": "^4.17.21",
|
46
|
+
"lodash-unified": "^1.0.2",
|
47
|
+
"min-dash": "^3.8.1",
|
48
|
+
"min-dom": "^3.2.1",
|
49
|
+
"moment": "^2.29.1",
|
50
|
+
"naive-ui": "^2.34.0",
|
51
|
+
"recorder-core": "^1.2.23070100",
|
52
|
+
"socket.io-client": "^4.7.3",
|
53
|
+
"sockjs-client": "^1.6.1",
|
54
|
+
"sortablejs": "^1.15.0",
|
55
|
+
"spark-md5": "^3.0.2",
|
56
|
+
"stompjs": "^2.3.3",
|
57
|
+
"tiny-svg": "^2.2.4",
|
58
|
+
"trtc-sdk-v5": "^5.5.2",
|
59
|
+
"v-viewer": "^3.0.10",
|
60
|
+
"video.js": "^7.19.2",
|
61
|
+
"videojs-contrib-hls": "^5.15.0",
|
62
|
+
"viewerjs": "^1.10.5",
|
63
|
+
"vue": "^3.2.0",
|
64
|
+
"vue-simple-uploader": "^1.0.0-beta.5",
|
65
|
+
"xe-utils": "^3.5.4"
|
66
|
+
},
|
67
|
+
"browserslist": [
|
68
|
+
"defaults",
|
69
|
+
"not ie < 8",
|
70
|
+
"last 2 versions",
|
71
|
+
"> 1%",
|
72
|
+
"iOS 7",
|
73
|
+
"last 3 iOS versions"
|
74
|
+
],
|
75
|
+
"gitHead": "8608bbfc8f8273af160171d5f3b105559efd3463"
|
76
|
+
}
|