cnhis-design-vue 3.2.14-beta.26 → 3.2.14-beta.32
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/index.d.ts +1 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +1 -0
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +8 -3
- package/es/components/base-search/src/index.vue.d.ts +8 -3
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/branch-notice/index.d.ts +54 -0
- package/es/components/branch-notice/index.js +1 -0
- package/es/components/branch-notice/src/BranchNotice.vue.d.ts +54 -0
- package/es/components/branch-notice/src/BranchNotice.vue.js +1 -0
- package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -0
- package/es/components/branch-notice/src/types.d.ts +12 -0
- package/es/components/branch-notice/src/types.js +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.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/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +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/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- 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/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/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.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/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/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/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +3 -1
- package/es/components/quick-search/src/index.vue.d.ts +3 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
import{createElementVNode as e,defineComponent as t,inject as n,ref as i,reactive as a,computed as r,onMounted as l,onBeforeUnmount as o,watch as s,openBlock as u,createElementBlock as d,Fragment as c,createCommentVNode as p,createVNode as m,unref as v,withCtx as g,renderList as y,createBlock as f,mergeProps as w,createTextVNode as h,toDisplayString as k,isRef as b,renderSlot as P,withModifiers as C,normalizeClass as S}from"vue";import{isObject as L}from"@vue/shared";import{useMessage as I,NButtonGroup as O,NDropdown as T,NButton as j,NIcon as M,NPopover as x,NCheckbox as E,NDivider as F}from"naive-ui";import{PrintOutline as B,SettingsOutline as N,ChevronDownSharp as _,ArrowForwardOutline as D}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as R}from"../constants/index.js";import{Print as J}from"../utils/print.js";import{isIReport as U}from"../utils/browserPrint.js";import z from"./IdentityVerification.vue.js";import{format as A}from"date-fns";import"../api.js";import"../../../shortcut-provider/index.js";import{encapBrowserLog as K}from"../../../../shared/utils/index.js";import{useShortcuts as V}from"../../../shortcut-provider/src/hooks/useShortcuts.js";var G,q,Y,H,$,Q,W;const X={class:"newprint-button-outer"},Z={key:0,class:"newprint-button-outer__shortcut"},ee=e("span",{class:"label bold"},(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.477"))||"外显设置",-1),te={class:"newprint-button-poperOver"},ne={class:"print-lite"},ie={class:"label bold"},ae={class:"print-li"},re={class:"print-lite"},le={key:0,class:"newprint-button-outer__shortcut"},oe={class:"newprint-button-poperOver"},se=["onMouseenter","onClick"],ue={class:"label bold"},de={class:"newprint-button-poperOver"},ce={class:"print-lite"},pe={class:"label bold"},me={class:"print-li"},ve={class:"print-lite"},ge=["onClick"],ye={key:0,class:"newprint-button-outer__shortcut"},fe={class:"newprint-button-poperOver"},we=["onMouseenter"],he={class:"print-lite"},ke=["onClick"];var be=t({__name:"NewPrintComponent",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.478"))||"打印",type:String},printText:{default:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.479"))||"直接打印",type:String},previewText:{default:(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.480"))||"打印预览",type:String},pdfLoadText:{default:(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.481"))||"下载pdf",type:String},formatEditText:{default:(null==(Q=window.getLanguageByCode)?void 0:Q.call(window,"10010.1.482"))||"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.483"))||"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},resolution:{type:Number},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,printAllType:1,isShowOutSetting:!0,customProps:{},outerPrintKeys:[],defaultFormatId:"",shortcut:{},buttonProps:{}})},svrUpdateIp:{type:String}},setup(t,{expose:G}){var q,Y,H;const $=t,Q=String(navigator.platform).toLowerCase().includes("linux"),W=[{label:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.476"))||"分割线",key:"divider"},{label:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.477"))||"外显设置",key:"outSetting"}],be=I();let Pe;const Ce=n(R),Se=i(""),Le=a({spinning:!1,visible:!1,formatList:[],templateParams:[],printParams:[],originParams:{},currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1,curPrintParamList:[],iReportExecuteMode:1}),Ie=i({});let Oe=i([]),Te=i([{label:$.previewText,key:"previewText"},{label:$.pdfLoadText,key:"downloadPdf"},{label:$.formatEditText,key:"formatEditText"},{label:(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.484"))||"重置打印机",key:"resetPrinter"}]);const je=a({oneMouseType:"",oneClickType:"",twoMouseType:""}),Me=a({oneShow:!1,isOperation:!1,isOutSetting:!1}),xe=i([]),Ee=i([]),Fe=r((()=>{if(!Le.currentFormatId)return{};let e=Le.currentFormatId;return Le.formatList.find((t=>t.id===e))}));r((()=>{var e,t;return(null==(e=Fe.value)?void 0:e.name)||(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.485"))||"格式选择"}));const Be=r((()=>{let e=Le.formatList.find((e=>e.id===Le.currentFormatId));return null==e?void 0:e.templateId})),Ne=r((()=>{let e=Le.formatList.find((e=>e.id===Le.currentFormatId));return null==e?void 0:e.number})),_e=r((()=>{var e;return null==(e=$.newPrintSetting)?void 0:e.isShowPrintAll})),De=r((()=>{var e;return null==(e=$.newPrintSetting)?void 0:e.isShowOutSetting})),Re=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.customProps)||{}})),Je=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.defaultFormatId)||""})),Ue=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.printAllType)||1})),ze=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.shortcut)||{}})),Ae=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.buttonProps)||{}})),Ke=r((()=>{var e,t;const n=Object.keys(ze.value);if(n.length>0){if(Je.value&&n.includes(Je.value))return(null==(e=ze.value[Je.value])?void 0:e.shortcutLabel)||"";if(n.includes("all"))return(null==(t=ze.value.all)?void 0:t.shortcutLabel)||""}return""})),Ve=r((()=>{const e=W.map((e=>e.key));return Oe.value.filter((t=>!e.includes(t.key)))})),Ge=r({get:()=>Ve.value.every((e=>e.selected)),set(e){Ve.value.forEach((t=>{t.selected=e}))}}),qe=async()=>{var e,t;(null==(t=null==(e=$.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)||await kt(),Me.oneShow=!0},Ye=async e=>{if($.directPrint){if(Le.spinning)return;return"button"===e?void(_e.value?await Ct():Je.value?async function(e){await kt(!1);const t=xe.value.find((t=>t.key==e));t&&ot(t.templateCode,t.templateId,t.key,!1)}(Je.value):qe()):qe()}return qe()},He=(e,t)=>Le.printParams[t.templateCode]?U(t.key)&&(Q||2==Le.iReportExecuteMode)?e.filter((e=>"formatEditText"!=e.key)):e:[],$e=(e,t)=>{je[e]=t},Qe=()=>{xe.value=Oe.value.filter((e=>!e.selected)),Ee.value=Ve.value.filter((e=>e.selected)),Xe("oneShow"),Xe("isOutSetting"),Ce("saveOuterPrint",Ee.value)},We=e=>{Me[e]=!0},Xe=e=>{je.oneClickType="",Me[e]=!1,"isOutSetting"==e&&(Me.isOutSetting=!1)},Ze=(e,t)=>{rt(!1);let n={type:t,formatId:Le.currentFormatId,templateId:(null==e?void 0:e.templateId)||Be.value,templateCode:(null==e?void 0:e.templateCode)||Ne.value};K({type:"进入成功的回调",info:n},"PRINT-SDK"),Ce("success",e,n)},et=e=>{rt(!1),K({type:"进入失败的回调",res:e},"PRINT-SDK"),Ce("error",e),L(e)&&"notInstalledApp"===e.type&&be.error(e.message)},tt=e=>{rt(!1),Ce("cancel",e)},nt=e=>{var t;const n={message:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.486"))||"前置条件执行错误",type:e,preExecution:!0};Ce("error",n)},it=()=>JSON.stringify({...$.token?{token:$.token}:{}}),at=(e=[],t)=>{var n,i;let a={},r={};if((null==(n=Le.templateParams[t].customizeDataset)?void 0:n.length)>0){const t=(null==(i=Object.keys(e[0].datasetData||{}))?void 0:i[0])||"",n=JSON.stringify(e.map((e=>JSON.parse(e.datasetData[t]))));r={datasetData:{}},r.datasetData[t]=n}else Object.keys(e[0]).forEach((t=>{r[t]=[],e.forEach((e=>{r[t].includes(e[t])||r[t].push(e[t])})),r[t]=r[t].join(",")}));return a=Object.assign({},JSON.parse(it()),Re.value,r),JSON.stringify(a)},rt=(e,t)=>{if(Le.isClickOuterPrint){if(e&&t){const n=Ee.value.find((e=>e.key==t));return void(n&&(n.isLoading=e))}Ee.value.forEach((e=>{e.isLoading=!1}))}else Le.spinning=e},lt=()=>Le.isClickOuterPrint?Ee.value.some((e=>e.isLoading)):Le.spinning,ot=(e,t,n,i)=>{const a=Le.printParams[e];if(!a)return;Le.isClickOuterPrint=i,Le.currentFormatId=n;const r=Le.originParams[e]||[];st(a,e,t,n,r)},st=async(e=[],t,n,i,a=[],r)=>{let l=e.length;const o=async e=>{try{--l<=0&&Ze(e,"print")}catch(e){console.log("error",e)}};$.showLoading&<()&&!r||(rt(!0,i),$.prevFn("print",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e;const r={formatId:i,iReportExecuteMode:Le.iReportExecuteMode,templateId:n,authorizationKey:Se.value,printdlgshow:$.printdlgshow,signature:$.signature,copies:$.printCopies,svrUpdateIp:$.svrUpdateIp};if("MULTI"===$.strategy)for(let t=0;t<e.length;t++){t>0&&(r.printdlgshow="0");const n=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,e[t]));Pe.printDirect({...r,params:n},o,et,tt)}else Pe.printDirect({...r,params:at(e,t)},(e=>{e.params=a,e.templateCode=t,e.templateId=n,Ze(e,"print")}),et,tt)})).catch((()=>{nt("print"),rt(!1)})).finally((()=>{Le.visible=!1})))},ut=async(e,{templateCode:t,templateId:n,key:i},a)=>{const r=Le.printParams[t];if(r)switch(Le.isClickOuterPrint=a,Le.currentFormatId=i,e){case"previewText":(async(e=[],t,n,i)=>{$.showLoading&<()||(rt(!0,i),$.prevFn("preview",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e;const a=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,e[0])),r="MULTI"===$.strategy?a:at(e,t),l={formatId:i,templateId:n,iReportExecuteMode:Le.iReportExecuteMode,authorizationKey:Se.value,params:r,btnprint:$.btnprint,signature:$.signature};Pe.preview(l,(e=>{Ze(e,"preview")}),et)})).catch((()=>{nt("preview"),rt(!1)})).finally((()=>{Le.visible=!1})))})(r,t,n,i);break;case"formatEditText":((e=[],t,n,i)=>{$.showLoading&<()||(rt(!0,i),$.prevFn("edit",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e,Le.currentFormatId=i,Le.identityVerification.visible=!0})).catch((()=>{nt("edit")})).finally((()=>{rt(!1)})))})(r,0,n,i);break;case"downloadPdf":(async(e=[],t,n,i)=>{$.showLoading&<()||(rt(!0,i),$.prevFn("download",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e;const a=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,e[0])),r="MULTI"===$.strategy?a:at(e,t),l={formatId:i,templateId:n,iReportExecuteMode:Le.iReportExecuteMode,authorizationKey:Se.value,print:{print:"1",type:"1",resolution:null==$?void 0:$.resolution},params:r,signature:$.signature};Pe.downloadPDF(l,(e=>Ze(e,"preview")),et)})).catch((()=>{nt("download"),rt(!1)})).finally((()=>{Le.visible=!1})))})(r,t,n,i);break;case"resetPrinter":(async(e=[],t,n,i)=>{var a,r,l;if(!$.showLoading||!lt()){rt(!0,i);try{const e=await Pe.resetPrinter(i,Le.iReportExecuteMode);if(rt(!1),"success"==(null==e?void 0:e.result))return void be.success((null==e?void 0:e.message)||(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.487"))||"重置打印机成功");be.warning((null==e?void 0:e.message)||(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.488"))||"重置打印机失败")}catch(e){rt(!1),be.warning((null==e?void 0:e.message)||(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.488"))||"重置打印机失败")}}})(r,0,0,i)}},dt=()=>{},ct=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},gt(n,t,e))})),n},pt=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},yt(n,t,e))})),n},mt=(e,t,n)=>{const i={};return t.forEach((t=>{let a=((e,t)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=t;return Object.keys(n).includes(e.type)&&t&&t instanceof Date&&(i=A(t,n[e.type])),(null==e?void 0:e.defaultValue)||i})(t,e[t[n]]);e[t[n]]&&a&&(i[t[n]]=a)})),i},vt=({customizeDataset:e=[],param:t=[]},n={})=>{let i={};return e.forEach((e=>{const t=e.dataSetting[0].selectFieldList;i.datasetData||(i.datasetData={}),i.datasetData[e.name]=JSON.stringify(mt(n,t,"fieldName"))})),i=Object.assign({},i,mt(n,t,"key")),i},gt=(e,t,n)=>{if(t.templateNumbers){for(let i=0;i<t.templateNumbers.length;i++){const a=t.templateNumbers[i],r=n[a];if(!r)return e;e[a]||(e[a]=[]),e[a].push(vt(r,t))}return e}const i=Object.keys(n);for(let a=0;a<i.length;a++){const r=i[a],l=n[r];if(!l)return e;e[r]||(e[r]=[]),e[r].push(vt(l,t))}return e},yt=(e,t,n)=>{if(t.templateNumbers){for(let i=0;i<t.templateNumbers.length;i++){const a=t.templateNumbers[i];if(!n[a])return e;e[a]||(e[a]=[]),e[a].push(t)}return e}const i=Object.keys(n);for(let a=0;a<i.length;a++){const r=i[a];if(!n[r])return e;e[r]||(e[r]=[]),e[r].push(t)}return e},ft=async e=>{var t;Le.formatList=e?(e=>{let t=[];return e&&e.forEach((e=>{if(!e.format)return!1;t.push(...e.format.map((t=>Object.assign({},t,{templateName:e.name}))))})),t})(e.obj):[],Le.iReportExecuteMode=(null==(t=null==e?void 0:e.obj)?void 0:t.length)>0&&e.obj[0].iReportExecuteMode||1,(()=>{var e,t,n;const i=Object.keys(ze.value),a=Le.formatList.map((e=>{const t={templateCode:e.number,templateId:e.templateId,label:e.name,key:e.id,selected:!1,isLoading:!1};if(i.includes(e.id)){const n=ze.value[e.id];n&&(t.shortcutLabel=n.shortcutLabel)}return t}));Oe.value.unshift(...a),De.value&&Oe.value.push(...W),(null==(t=null==(e=$.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)>0&&(Oe.value.forEach((e=>{var t;(null==(t=$.newPrintSetting)?void 0:t.outerPrintKeys.includes(e.key))&&(e.selected=!0)})),Ee.value=Oe.value.filter((e=>e.selected))),xe.value=Oe.value.filter((e=>!e.selected)),$.hideButtons.length>0&&(Te.value=Te.value.filter((e=>!$.hideButtons.includes(e.key))));const r=sessionStorage.getItem("portal");if(r){const e=JSON.parse(r),t=(null==(n=null==e?void 0:e.user)?void 0:n.currentRoleResourceObj)||{},i=Object.keys(t);i.includes("RY7.2.21.1.M2.G94181E")||(Te.value=Te.value.filter((e=>"downloadPdf"!=e.key))),i.includes("RY7.2.21.1.M2.G33633A")||(Te.value=Te.value.filter((e=>"formatEditText"!=e.key))),i.includes("RY7.2.21.1.M2.G99314S")||(Te.value=Te.value.filter((e=>"resetPrinter"!=e.key)))}})(),Le.templateParams=(e=>{let t={};return e&&e.forEach((e=>{if(!e.templateConfig)return!1;t[e.number]=e.templateConfig})),t})(e.obj),Le.printParams=ct(Le.templateParams,$.params),Le.originParams=pt(Le.templateParams,$.params),ht()},wt=async()=>{var e;if(Le.isInited)return!0;Le.isInited=!0,Le.spinning=!0,(()=>{if(Pe)return!1;Pe=new J})();const t=await $.queryPrintFormatByNumber();return await ft(t),(null==(e=t.obj)?void 0:e.length)>0&&(Se.value=t.obj[0].authorizationKey||""),Le.spinning=!1,!0},ht=async()=>{const e=Object.keys(ze.value);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t],i=ze.value[n],{stop:a,signature:r}=V().register({label:i.code,shortcutSignature:i.shortcutKey,operation:["state","reset"],callback(){"all"==n&&Ye("button");const e=Ve.value.map((e=>e.key)),t=Le.originParams;if(e.includes(n)){const e=Ve.value.find((e=>e.key==n));if(e){const n=Le.printParams[null==e?void 0:e.templateCode],i=t[null==e?void 0:e.templateCode]||[];st(n,e.templateCode,e.templateId,e.key,i)}}}});Ie.value[n]=a}},kt=async(e=!0)=>{if(await $.clickPrevFn()){if(!Le.visible){if(!await wt())return!1}e&&(Le.visible=!Le.visible)}},bt=e=>{if(Le.identityVerification.visible=!1,U(Le.currentFormatId))return Ze({result:"success",message:""},"edit");const t=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,Le.curPrintParamList[0])),n="MULTI"===$.strategy?t:at(Le.curPrintParamList,Ne.value),i={formatId:Le.currentFormatId,templateId:Be.value,params:n,token:e};Pe.editPrintFormat(i,(e=>{Ze(e,"edit")}),et)},Pt=(e,t)=>{const n=Ee.value[t+1];return t<Ee.value.length-1&&!Le.printParams[e.templateCode]&&Le.printParams[n.templateCode]};async function Ct(){await kt(!1),(()=>{const e=Object.keys(Le.printParams);Le.isClickOuterPrint=!1;const t=Le.originParams;if(1==Ue.value)for(let n=0;n<e.length;n++){const i=e[n],a=Le.printParams[i],r=t[i]||[],l=Le.formatList.filter((e=>e.number==i));l&&l.length>0&&l.forEach((e=>{Le.currentFormatId=e.id,st(a,e.number,e.templateId,e.id,r,!0)}))}2==Ue.value&&Ee.value.forEach((e=>{const n=Le.printParams[e.templateCode],i=t[e.templateCode]||[];Le.currentFormatId=e.key,st(n,e.templateCode,e.templateId,e.key,i,!0)}))})()}return l((()=>{Le.isInited=!1})),o((()=>{const e=Object.keys(Ie.value);e.length>0&&e.forEach((e=>{Ie.value[e]&&Ie.value[e]()}))})),s((()=>$.params),(e=>{Object.keys(Le.templateParams).length>0&&(Le.printParams=ct(Le.templateParams,$.params),Le.originParams=pt(Le.templateParams,$.params))}),{deep:!0}),s((()=>{var e;return null==(e=$.newPrintSetting)?void 0:e.outerPrintKeys}),(async e=>{(null==e?void 0:e.length)>0&&await kt(!1)}),{deep:!0,immediate:!0}),G({directPrint:Ct}),(n,i)=>(u(),d(c,null,[e("div",X,[p(" 外显按钮集合 "),m(v(O),{class:"outButtonGroup"},{default:g((()=>[(u(!0),d(c,null,y(Ee.value,((e,n)=>(u(),f(v(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:dt,options:He(v(Te),e),onSelect:t=>ut(t,e,!0)},{default:g((()=>[m(v(j),w(v(Ae),{disabled:!Le.printParams[e.templateCode],loading:t.showLoading&&e.isLoading,onClick:t=>ot(e.templateCode,e.templateId,e.key,!0),class:n==Ee.value.length-1?"outerLastButton":Pt(e,n)?"isPrintDisabled":""}),{icon:g((()=>[m(v(M),{component:v(B),size:"18"},null,8,["component"])])),default:g((()=>[h(" "+k(e.label)+" ",1),e.shortcutLabel?(u(),d("span",Z,k(e.shortcutLabel),1)):p("v-if",!0)])),_:2},1040,["disabled","loading","onClick","class"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),p(" 外显设置按钮 "),Ee.value.length>0&&Ee.value.length==v(Ve).length&&v(De)&&2!=v(Ue)?(u(),f(v(x),{key:0,trigger:"click","show-arrow":!1,show:Me.isOutSetting,onClickoutside:i[2]||(i[2]=e=>Xe("isOutSetting"))},{trigger:g((()=>[m(v(j),w(v(Ae),{class:Ee.value.length>0?"printAllLeftCls":"",onClick:i[0]||(i[0]=e=>We("isOutSetting"))}),{default:g((()=>[ee,m(v(M),{style:{"margin-left":"8px"},component:v(N),size:"18"},null,8,["component"])])),_:1},16,["class"])])),default:g((()=>[e("div",te,[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ne,[e("span",ie,k(t.label),1),m(v(E),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ae,[m(v(F)),e("div",re,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(E),{key:0,checked:v(Ge),"onUpdate:checked":i[1]||(i[1]=e=>b(Ge)?Ge.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])])])),_:1},8,["show"])):(u(),d(c,{key:1},[p(" 打印全部按钮 "),m(v(x),{trigger:"click","show-arrow":!1,show:Me.oneShow,onClickoutside:i[10]||(i[10]=e=>Xe("oneShow"))},{trigger:g((()=>[P(n.$slots,"button",{handleClickPrintBtn:qe,printSpinning:Le.spinning,printbtnText:t.btnText,printVisible:Le.visible},(()=>[m(v(O),{class:"newprint-button-component",onClick:i[4]||(i[4]=C((()=>Ye("icon")),["stop"]))},{default:g((()=>[m(v(j),w({loading:t.showLoading&&Le.spinning},v(Ae),{onClick:i[3]||(i[3]=C((()=>Ye("button")),["stop"])),class:Ee.value.length>0?"printAllLeftCls":""}),{icon:g((()=>[m(v(M),{component:v(B),size:"18"},null,8,["component"])])),default:g((()=>{var e;return[h(" "+k(v(_e)?(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.475"))||"打印全部":t.btnText)+" ",1),v(Ke)?(u(),d("span",le,k(v(Ke)),1)):p("v-if",!0)]})),_:1},16,["loading","class"]),m(v(j),w({class:"icon-select"},v(Ae)),{icon:g((()=>[m(v(M),{component:v(_),size:"18"},null,8,["component"])])),_:1},16)])),_:1})]))])),default:g((()=>[e("div",oe,[(u(!0),d(c,null,y(xe.value,(t=>(u(),d("div",{class:S(["print-li",je.oneMouseType==t.key||je.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>$e("oneMouseType",t.key),onMouseleave:i[9]||(i[9]=e=>$e("oneMouseType","")),onClick:e=>((e,t,n)=>{if(!Le.printParams[n.templateCode])return[];$e(e,t)})("oneClickType",t.key,t)},["divider"==t.key?(u(),f(v(F),{key:0})):"outSetting"==t.key?(u(),d(c,{key:1},[p(" 第二层外显设置 "),m(v(x),{trigger:"click","show-arrow":!1,placement:"right-start",show:Me.isOutSetting,onClickoutside:i[7]||(i[7]=e=>Xe("isOutSetting"))},{trigger:g((()=>[e("div",{class:"print-lite",onClick:i[5]||(i[5]=e=>We("isOutSetting"))},[e("span",ue,k(t.label),1),m(v(M),{color:Ee.value.length>0?"#2563F4":"",component:v(N),size:"18"},null,8,["color","component"])])])),default:g((()=>[e("div",de,[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ce,[e("span",pe,k(t.label),1),m(v(E),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",me,[m(v(F)),e("div",ve,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(E),{key:0,checked:v(Ge),"onUpdate:checked":i[6]||(i[6]=e=>b(Ge)?Ge.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])])])),_:2},1032,["show"])],2112)):(u(),d(c,{key:2},[p(" 第二层功能操作 "),e("div",{class:S(["print-lite",Le.printParams[t.templateCode]?"":"isDisabled"])},[e("span",{class:"label bold",onClick:e=>ot(t.templateCode,t.templateId,t.key,!1)},[h(k(t.label)+" ",1),t.shortcutLabel?(u(),d("span",ye,k(t.shortcutLabel),1)):p("v-if",!0)],8,ge),Le.printParams[t.templateCode]?(u(),f(v(x),{key:0,trigger:"click","show-arrow":!1,placement:"right-start",show:Me[t.key],onClickoutside:e=>Xe(t.key)},{trigger:g((()=>[m(v(M),{component:v(D),size:"18",onClick:e=>We(t.key)},null,8,["component","onClick"])])),default:g((()=>[e("div",fe,[(u(!0),d(c,null,y(He(v(Te),t),(n=>(u(),d("div",{class:S(["print-li",je.twoMouseType==n.key?"active":""]),key:n.key,onMouseenter:e=>$e("twoMouseType",n.key),onMouseleave:i[8]||(i[8]=e=>$e("twoMouseType",""))},[e("div",he,[e("span",{class:"label",onClick:e=>ut(n.key,t,!1)},k(n.label),9,ke)])],42,we)))),128))])])),_:2},1032,["show","onClickoutside"])):p("v-if",!0)],2)],2112))],42,se)))),128))])])),_:3},8,["show"])],2112))]),m(z,w(n.$attrs,{modelValue:Le.identityVerification.visible,"onUpdate:modelValue":i[11]||(i[11]=e=>Le.identityVerification.visible=e),formatId:Le.currentFormatId,templateId:v(Be),onSuccess:bt}),null,16,["modelValue","formatId","templateId"])],64))}});export{be as default};
|
1
|
+
import{createElementVNode as e,defineComponent as t,inject as n,ref as i,reactive as a,computed as r,onMounted as l,onBeforeUnmount as o,watch as s,openBlock as u,createElementBlock as d,Fragment as c,createCommentVNode as p,createVNode as m,unref as v,withCtx as g,renderList as y,createBlock as f,mergeProps as w,createTextVNode as h,toDisplayString as k,isRef as b,renderSlot as P,withModifiers as C,normalizeClass as S}from"vue";import{isObject as L}from"@vue/shared";import{useMessage as I,NButtonGroup as O,NDropdown as T,NButton as j,NIcon as M,NPopover as x,NCheckbox as E,NDivider as F}from"naive-ui";import{PrintOutline as B,SettingsOutline as N,ChevronDownSharp as _,ArrowForwardOutline as D}from"@vicons/ionicons5";import{InjectionButtonPrintEmits as R}from"../constants/index.js";import{Print as J}from"../utils/print.js";import{isIReport as U}from"../utils/browserPrint.js";import z from"./IdentityVerification.vue.js";import{format as A}from"date-fns";import"../api.js";import"../../../shortcut-provider/index.js";import{encapBrowserLog as K}from"../../../../shared/utils/index.js";import{useShortcuts as V}from"../../../shortcut-provider/src/hooks/useShortcuts.js";var G,q,Y,H,$,Q,W;const X={class:"newprint-button-outer"},Z={key:0,class:"newprint-button-outer__shortcut"},ee=e("span",{class:"label bold"},(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.477"))||"外显设置",-1),te={class:"newprint-button-poperOver"},ne={class:"print-lite"},ie={class:"label bold"},ae={class:"print-li"},re={class:"print-lite"},le={key:0,class:"newprint-button-outer__shortcut"},oe={class:"newprint-button-poperOver"},se=["onMouseenter","onClick"],ue={class:"label bold"},de={class:"newprint-button-poperOver"},ce={class:"print-lite"},pe={class:"label bold"},me={class:"print-li"},ve={class:"print-lite"},ge=["onClick"],ye={key:0,class:"newprint-button-outer__shortcut"},fe={class:"newprint-button-poperOver"},we=["onMouseenter"],he={class:"print-lite"},ke=["onClick"];var be=t({__name:"NewPrintComponent",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.478"))||"打印",type:String},printText:{default:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.479"))||"直接打印",type:String},previewText:{default:(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.480"))||"打印预览",type:String},pdfLoadText:{default:(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.481"))||"下载pdf",type:String},formatEditText:{default:(null==(Q=window.getLanguageByCode)?void 0:Q.call(window,"10010.1.482"))||"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.483"))||"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},resolution:{type:Number},newPrintSetting:{type:Object,default:()=>({isShowPrintAll:!0,printAllType:1,isShowOutSetting:!0,customProps:{},outerPrintKeys:[],defaultFormatId:"",shortcut:{},buttonProps:{}})},svrUpdateIp:{type:String}},setup(t,{expose:G}){var q,Y,H;const $=t,Q=String(navigator.platform).toLowerCase().includes("linux"),W=[{label:(null==(q=window.getLanguageByCode)?void 0:q.call(window,"10010.1.476"))||"分割线",key:"divider"},{label:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.477"))||"外显设置",key:"outSetting"}],be=I();let Pe;const Ce=n(R),Se=i(""),Le=a({spinning:!1,visible:!1,formatList:[],templateParams:[],printParams:[],originParams:{},currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null,isClickOuterPrint:!1,curPrintParamList:[],iReportExecuteMode:1}),Ie=i({});let Oe=i([]),Te=i([{label:$.previewText,key:"previewText"},{label:$.pdfLoadText,key:"downloadPdf"},{label:$.formatEditText,key:"formatEditText"},{label:(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.484"))||"重置打印机",key:"resetPrinter"}]);const je=a({oneMouseType:"",oneClickType:"",twoMouseType:""}),Me=a({oneShow:!1,isOperation:!1,isOutSetting:!1}),xe=i([]),Ee=i([]),Fe=r((()=>{if(!Le.currentFormatId)return{};let e=Le.currentFormatId;return Le.formatList.find((t=>t.id===e))}));r((()=>{var e,t;return(null==(e=Fe.value)?void 0:e.name)||(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.485"))||"格式选择"}));const Be=r((()=>{let e=Le.formatList.find((e=>e.id===Le.currentFormatId));return null==e?void 0:e.templateId})),Ne=r((()=>{let e=Le.formatList.find((e=>e.id===Le.currentFormatId));return null==e?void 0:e.number})),_e=r((()=>{var e;return null==(e=$.newPrintSetting)?void 0:e.isShowPrintAll})),De=r((()=>{var e;return null==(e=$.newPrintSetting)?void 0:e.isShowOutSetting})),Re=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.customProps)||{}})),Je=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.defaultFormatId)||""})),Ue=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.printAllType)||1})),ze=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.shortcut)||{}})),Ae=r((()=>{var e;return(null==(e=$.newPrintSetting)?void 0:e.buttonProps)||{}})),Ke=r((()=>{var e,t;const n=Object.keys(ze.value);if(n.length>0){if(Je.value&&n.includes(Je.value))return(null==(e=ze.value[Je.value])?void 0:e.shortcutLabel)||"";if(n.includes("all"))return(null==(t=ze.value.all)?void 0:t.shortcutLabel)||""}return""})),Ve=r((()=>{const e=W.map((e=>e.key));return Oe.value.filter((t=>!e.includes(t.key)))})),Ge=r({get:()=>Ve.value.every((e=>e.selected)),set(e){Ve.value.forEach((t=>{t.selected=e}))}}),qe=async()=>{var e,t;(null==(t=null==(e=$.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)||await kt(),Me.oneShow=!0},Ye=async e=>{if($.directPrint){if(Le.spinning)return;return"button"===e?void(_e.value?await Ct():Je.value?async function(e){await kt(!1);const t=xe.value.find((t=>t.key==e));t&&ot(t.templateCode,t.templateId,t.key,!1)}(Je.value):qe()):qe()}return qe()},He=(e,t)=>Le.printParams[t.templateCode]?U(t.key)&&(Q||2==Le.iReportExecuteMode)?e.filter((e=>"formatEditText"!=e.key)):e:[],$e=(e,t)=>{je[e]=t},Qe=()=>{xe.value=Oe.value.filter((e=>!e.selected)),Ee.value=Ve.value.filter((e=>e.selected)),Xe("oneShow"),Xe("isOutSetting"),Ce("saveOuterPrint",Ee.value)},We=e=>{Me[e]=!0},Xe=e=>{je.oneClickType="",Me[e]=!1,"isOutSetting"==e&&(Me.isOutSetting=!1)},Ze=(e,t)=>{rt(!1);let n={type:t,formatId:Le.currentFormatId,templateId:(null==e?void 0:e.templateId)||Be.value,templateCode:(null==e?void 0:e.templateCode)||Ne.value};K({type:"进入成功的回调",info:n},"PRINT-SDK"),Ce("success",e,n)},et=e=>{rt(!1),K({type:"进入失败的回调",res:e},"PRINT-SDK"),Ce("error",e),L(e)&&"notInstalledApp"===e.type&&be.error(e.message)},tt=e=>{rt(!1),Ce("cancel",e)},nt=e=>{var t;const n={message:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.486"))||"前置条件执行错误",type:e,preExecution:!0};Ce("error",n)},it=()=>JSON.stringify({...$.token?{token:$.token}:{}}),at=(e=[],t)=>{var n,i;let a={},r={};if((null==(n=Le.templateParams[t].customizeDataset)?void 0:n.length)>0){const t=(null==(i=Object.keys(e[0].datasetData||{}))?void 0:i[0])||"",n=JSON.stringify(e.map((e=>JSON.parse(e.datasetData[t]))));r={datasetData:{}},r.datasetData[t]=n}else Object.keys(e[0]).forEach((t=>{r[t]=[],e.forEach((e=>{r[t].includes(e[t])||r[t].push(e[t])})),r[t]=r[t].join(",")}));return a=Object.assign({},JSON.parse(it()),Re.value,r),JSON.stringify(a)},rt=(e,t)=>{if(Le.isClickOuterPrint){if(e&&t){const n=Ee.value.find((e=>e.key==t));return void(n&&(n.isLoading=e))}Ee.value.forEach((e=>{e.isLoading=!1}))}else Le.spinning=e},lt=()=>Le.isClickOuterPrint?Ee.value.some((e=>e.isLoading)):Le.spinning,ot=(e,t,n,i)=>{const a=Le.printParams[e];if(!a)return;Le.isClickOuterPrint=i,Le.currentFormatId=n;const r=Le.originParams[e]||[];st(a,e,t,n,r)},st=async(e=[],t,n,i,a=[],r)=>{let l=e.length;const o=async e=>{try{--l<=0&&Ze(e,"print")}catch(e){console.log("error",e)}};$.showLoading&<()&&!r||(rt(!0,i),$.prevFn("print",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e;const r={formatId:i,iReportExecuteMode:Le.iReportExecuteMode,templateId:n,authorizationKey:Se.value,printdlgshow:$.printdlgshow,signature:$.signature,copies:$.printCopies,svrUpdateIp:$.svrUpdateIp};if("MULTI"===$.strategy)for(let t=0;t<e.length;t++){t>0&&(r.printdlgshow="0");const n=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,e[t]));Pe.printDirect({...r,params:n},o,et,tt)}else Pe.printDirect({...r,params:at(e,t)},(e=>{e.params=a,e.templateCode=t,e.templateId=n,Ze(e,"print")}),et,tt)})).catch((()=>{nt("print"),rt(!1)})).finally((()=>{Le.visible=!1})))},ut=async(e,{templateCode:t,templateId:n,key:i},a)=>{const r=Le.printParams[t];if(r)switch(Le.isClickOuterPrint=a,Le.currentFormatId=i,e){case"previewText":(async(e=[],t,n,i)=>{$.showLoading&<()||(rt(!0,i),$.prevFn("preview",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e;const a=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,e[0])),r="MULTI"===$.strategy?a:at(e,t),l={formatId:i,templateId:n,iReportExecuteMode:Le.iReportExecuteMode,authorizationKey:Se.value,params:r,btnprint:$.btnprint,signature:$.signature};Pe.preview(l,(e=>{Ze(e,"preview")}),et)})).catch((()=>{nt("preview"),rt(!1)})).finally((()=>{Le.visible=!1})))})(r,t,n,i);break;case"formatEditText":((e=[],t,n,i)=>{$.showLoading&<()||(rt(!0,i),$.prevFn("edit",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e,Le.currentFormatId=i,Le.identityVerification.visible=!0})).catch((()=>{nt("edit")})).finally((()=>{rt(!1)})))})(r,0,n,i);break;case"downloadPdf":(async(e=[],t,n,i)=>{$.showLoading&<()||(rt(!0,i),$.prevFn("download",{formatId:i,templateId:n}).then((()=>{Le.curPrintParamList=e;const a=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,e[0])),r="MULTI"===$.strategy?a:at(e,t),l={formatId:i,templateId:n,iReportExecuteMode:Le.iReportExecuteMode,authorizationKey:Se.value,print:{print:"1",type:"1",resolution:null==$?void 0:$.resolution},params:r,signature:$.signature};Pe.downloadPDF(l,(e=>Ze(e,"preview")),et)})).catch((()=>{nt("download"),rt(!1)})).finally((()=>{Le.visible=!1})))})(r,t,n,i);break;case"resetPrinter":(async(e=[],t,n,i)=>{var a,r,l;if(!$.showLoading||!lt()){rt(!0,i);try{const e=await Pe.resetPrinter(i,Le.iReportExecuteMode);if(rt(!1),"success"==(null==e?void 0:e.result))return void be.success((null==e?void 0:e.message)||(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.487"))||"重置打印机成功");be.warning((null==e?void 0:e.message)||(null==(r=window.getLanguageByCode)?void 0:r.call(window,"10010.1.488"))||"重置打印机失败")}catch(e){rt(!1),be.warning((null==e?void 0:e.message)||(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.488"))||"重置打印机失败")}}})(r,0,0,i)}},dt=()=>{},ct=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},gt(n,t,e))})),n},pt=(e,t=[])=>{let n={};return(t=t||[]).forEach((t=>{n=Object.assign({},yt(n,t,e))})),n},mt=(e,t,n)=>{const i={};return t.forEach((t=>{let a=((e,t)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=t;return Object.keys(n).includes(e.type)&&t&&t instanceof Date&&(i=A(t,n[e.type])),(null==e?void 0:e.defaultValue)||i})(t,e[t[n]]);e[t[n]]&&a&&(i[t[n]]=a)})),i},vt=({customizeDataset:e=[],param:t=[]},n={})=>{let i={};return e.forEach((e=>{const t=e.dataSetting[0].selectFieldList;i.datasetData||(i.datasetData={}),i.datasetData[e.name]=JSON.stringify(mt(n,t,"fieldName"))})),i=Object.assign({},i,mt(n,t,"key")),i},gt=(e,t,n)=>{if(t.templateNumbers){for(let i=0;i<t.templateNumbers.length;i++){const a=t.templateNumbers[i],r=n[a];if(!r)return e;e[a]||(e[a]=[]),e[a].push(vt(r,t))}return e}const i=Object.keys(n);for(let a=0;a<i.length;a++){const r=i[a],l=n[r];if(!l)return e;e[r]||(e[r]=[]),e[r].push(vt(l,t))}return e},yt=(e,t,n)=>{if(t.templateNumbers){for(let i=0;i<t.templateNumbers.length;i++){const a=t.templateNumbers[i];if(!n[a])return e;e[a]||(e[a]=[]),e[a].push(t)}return e}const i=Object.keys(n);for(let a=0;a<i.length;a++){const r=i[a];if(!n[r])return e;e[r]||(e[r]=[]),e[r].push(t)}return e},ft=async e=>{var t;Le.formatList=e?(e=>{let t=[];return e&&e.forEach((e=>{if(!e.format)return!1;t.push(...e.format.map((t=>Object.assign({},t,{templateName:e.name}))))})),t})(e.obj):[],Le.iReportExecuteMode=(null==(t=null==e?void 0:e.obj)?void 0:t.length)>0&&e.obj[0].iReportExecuteMode||1,(()=>{var e,t,n;const i=Object.keys(ze.value),a=Le.formatList.map((e=>{const t={templateCode:e.number,templateId:e.templateId,label:e.name,key:e.id,selected:!1,isLoading:!1};if(i.includes(e.id)){const n=ze.value[e.id];n&&(t.shortcutLabel=n.shortcutLabel)}return t}));Oe.value.unshift(...a),De.value&&Oe.value.push(...W),(null==(t=null==(e=$.newPrintSetting)?void 0:e.outerPrintKeys)?void 0:t.length)>0&&(Oe.value.forEach((e=>{var t;(null==(t=$.newPrintSetting)?void 0:t.outerPrintKeys.includes(e.key))&&(e.selected=!0)})),Ee.value=Oe.value.filter((e=>e.selected))),xe.value=Oe.value.filter((e=>!e.selected)),$.hideButtons.length>0&&(Te.value=Te.value.filter((e=>!$.hideButtons.includes(e.key))));const r=sessionStorage.getItem("portal");if(r){const e=JSON.parse(r),t=(null==(n=null==e?void 0:e.user)?void 0:n.currentRoleResourceObj)||{},i=Object.keys(t);i.includes("RY7.2.21.1.M2.G94181E")||(Te.value=Te.value.filter((e=>"downloadPdf"!=e.key))),i.includes("RY7.2.21.1.M2.G33633A")||(Te.value=Te.value.filter((e=>"formatEditText"!=e.key))),i.includes("RY7.2.21.1.M2.G99314S")||(Te.value=Te.value.filter((e=>"resetPrinter"!=e.key)))}})(),Le.templateParams=(e=>{let t={};return e&&e.forEach((e=>{if(!e.templateConfig)return!1;t[e.number]=e.templateConfig})),t})(e.obj),Le.printParams=ct(Le.templateParams,$.params),Le.originParams=pt(Le.templateParams,$.params),ht()},wt=async()=>{var e;if(Le.isInited)return!0;Le.isInited=!0,Le.spinning=!0,(()=>{if(Pe)return!1;Pe=new J})();const t=await $.queryPrintFormatByNumber();return await ft(t),(null==(e=t.obj)?void 0:e.length)>0&&(Se.value=t.obj[0].authorizationKey||""),Le.spinning=!1,!0},ht=async()=>{const e=Object.keys(ze.value);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t],i=ze.value[n],{stop:a,signature:r}=V().register({label:i.code,shortcutSignature:i.shortcutKey,operation:["state","reset"],callback(){"all"==n&&Ye("button");const e=Ve.value.map((e=>e.key)),t=Le.originParams;if(e.includes(n)){const e=Ve.value.find((e=>e.key==n));if(e){const n=Le.printParams[null==e?void 0:e.templateCode],i=t[null==e?void 0:e.templateCode]||[];st(n,e.templateCode,e.templateId,e.key,i)}}}});Ie.value[n]=a}},kt=async(e=!0)=>{if(await $.clickPrevFn()){if(!Le.visible){if(!await wt())return!1}e&&(Le.visible=!Le.visible)}},bt=e=>{if(Le.identityVerification.visible=!1,U(Le.currentFormatId))return Ze({result:"success",message:""},"edit");const t=JSON.stringify(Object.assign({},JSON.parse(it()),Re.value,Le.curPrintParamList[0])),n="MULTI"===$.strategy?t:at(Le.curPrintParamList,Ne.value),i={formatId:Le.currentFormatId,templateId:Be.value,params:n,token:e};Pe.editPrintFormat(i,(e=>{Ze(e,"edit")}),et)},Pt=(e,t)=>{const n=Ee.value[t+1];return t<Ee.value.length-1&&!Le.printParams[e.templateCode]&&Le.printParams[n.templateCode]};async function Ct(){await kt(!1),(()=>{const e=Object.keys(Le.printParams);Le.isClickOuterPrint=!1;const t=Le.originParams;if(1==Ue.value)for(let n=0;n<e.length;n++){const i=e[n],a=Le.printParams[i],r=t[i]||[],l=Le.formatList.filter((e=>e.number==i));l&&l.length>0&&l.forEach((e=>{Le.currentFormatId=e.id,st(a,e.number,e.templateId,e.id,r,!0)}))}2==Ue.value&&Ee.value.forEach((e=>{const n=Le.printParams[e.templateCode],i=t[e.templateCode]||[];Le.currentFormatId=e.key,st(n,e.templateCode,e.templateId,e.key,i,!0)}))})()}return l((()=>{Le.isInited=!1})),o((()=>{const e=Object.keys(Ie.value);e.length>0&&e.forEach((e=>{Ie.value[e]&&Ie.value[e]()}))})),s((()=>$.params),(e=>{Object.keys(Le.templateParams).length>0&&(Le.printParams=ct(Le.templateParams,$.params),Le.originParams=pt(Le.templateParams,$.params))}),{deep:!0}),s((()=>{var e;return null==(e=$.newPrintSetting)?void 0:e.outerPrintKeys}),(async e=>{(null==e?void 0:e.length)>0&&await kt(!1)}),{deep:!0,immediate:!0}),G({directPrint:Ct}),(n,i)=>(u(),d(c,null,[e("div",X,[p(" 外显按钮集合 "),m(v(O),{class:"outButtonGroup"},{default:g((()=>[(u(!0),d(c,null,y(Ee.value,((e,n)=>(u(),f(v(T),{key:e.key,class:"c-dropdown",placement:"bottom-start",trigger:"hover",onClickoutside:dt,options:He(v(Te),e),onSelect:t=>ut(t,e,!0)},{default:g((()=>[m(v(j),w(v(Ae),{disabled:!Le.printParams[e.templateCode],loading:t.showLoading&&e.isLoading,onClick:t=>ot(e.templateCode,e.templateId,e.key,!0),class:n==Ee.value.length-1?"outerLastButton":Pt(e,n)?"isPrintDisabled":""}),{icon:g((()=>[m(v(M),{component:v(B),size:"18"},null,8,["component"])])),default:g((()=>[h(" "+k(e.label)+" ",1),e.shortcutLabel?(u(),d("span",Z,k(e.shortcutLabel),1)):p("v-if",!0)])),_:2},1040,["disabled","loading","onClick","class"])])),_:2},1032,["options","onSelect"])))),128))])),_:1}),p(" 外显设置按钮 "),Ee.value.length>0&&Ee.value.length==v(Ve).length&&v(De)&&2!=v(Ue)?(u(),f(v(x),{key:0,trigger:"click","show-arrow":!1,show:Me.isOutSetting,onClickoutside:i[2]||(i[2]=e=>Xe("isOutSetting"))},{trigger:g((()=>[m(v(j),w(v(Ae),{class:Ee.value.length>0?"printAllLeftCls":"",onClick:i[0]||(i[0]=e=>We("isOutSetting"))}),{default:g((()=>[ee,m(v(M),{style:{"margin-left":"8px"},component:v(N),size:"18"},null,8,["component"])])),_:1},16,["class"])])),default:g((()=>[e("div",te,[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ne,[e("span",ie,k(t.label),1),m(v(E),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",ae,[m(v(F)),e("div",re,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(E),{key:0,checked:v(Ge),"onUpdate:checked":i[1]||(i[1]=e=>b(Ge)?Ge.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])])])),_:1},8,["show"])):(u(),d(c,{key:1},[p(" 打印全部按钮 "),m(v(x),{trigger:"click","show-arrow":!1,show:Me.oneShow,onClickoutside:i[10]||(i[10]=e=>Xe("oneShow"))},{trigger:g((()=>[P(n.$slots,"button",{handleClickPrintBtn:qe,handlePrintBySetting:()=>Ye("button"),printSpinning:Le.spinning,printbtnText:t.btnText,printVisible:Le.visible},(()=>[m(v(O),{class:"newprint-button-component",onClick:i[4]||(i[4]=C((()=>Ye("icon")),["stop"]))},{default:g((()=>[m(v(j),w({loading:t.showLoading&&Le.spinning},v(Ae),{onClick:i[3]||(i[3]=C((()=>Ye("button")),["stop"])),class:Ee.value.length>0?"printAllLeftCls":""}),{icon:g((()=>[m(v(M),{component:v(B),size:"18"},null,8,["component"])])),default:g((()=>{var e;return[h(" "+k(v(_e)?(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.475"))||"打印全部":t.btnText)+" ",1),v(Ke)?(u(),d("span",le,k(v(Ke)),1)):p("v-if",!0)]})),_:1},16,["loading","class"]),m(v(j),w({class:"icon-select"},v(Ae)),{icon:g((()=>[m(v(M),{component:v(_),size:"18"},null,8,["component"])])),_:1},16)])),_:1})]))])),default:g((()=>[e("div",oe,[(u(!0),d(c,null,y(xe.value,(t=>(u(),d("div",{class:S(["print-li",je.oneMouseType==t.key||je.oneClickType==t.key?"active":""]),key:t.key,onMouseenter:e=>$e("oneMouseType",t.key),onMouseleave:i[9]||(i[9]=e=>$e("oneMouseType","")),onClick:e=>((e,t,n)=>{if(!Le.printParams[n.templateCode])return[];$e(e,t)})("oneClickType",t.key,t)},["divider"==t.key?(u(),f(v(F),{key:0})):"outSetting"==t.key?(u(),d(c,{key:1},[p(" 第二层外显设置 "),m(v(x),{trigger:"click","show-arrow":!1,placement:"right-start",show:Me.isOutSetting,onClickoutside:i[7]||(i[7]=e=>Xe("isOutSetting"))},{trigger:g((()=>[e("div",{class:"print-lite",onClick:i[5]||(i[5]=e=>We("isOutSetting"))},[e("span",ue,k(t.label),1),m(v(M),{color:Ee.value.length>0?"#2563F4":"",component:v(N),size:"18"},null,8,["color","component"])])])),default:g((()=>[e("div",de,[(u(!0),d(c,null,y(v(Ve),(t=>(u(),d("div",{class:"print-li",key:t.key},[e("div",ce,[e("span",pe,k(t.label),1),m(v(E),{checked:t.selected,"onUpdate:checked":e=>t.selected=e},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.474"))||"外显")]})),_:2},1032,["checked","onUpdate:checked"])])])))),128)),e("div",me,[m(v(F)),e("div",ve,[m(v(j),{type:"primary",size:"small",onClick:Qe},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1}),v(Ve)&&v(Ve).length>1?(u(),f(v(E),{key:0,checked:v(Ge),"onUpdate:checked":i[6]||(i[6]=e=>b(Ge)?Ge.value=e:null)},{default:g((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])):p("v-if",!0)])])])])),_:2},1032,["show"])],2112)):(u(),d(c,{key:2},[p(" 第二层功能操作 "),e("div",{class:S(["print-lite",Le.printParams[t.templateCode]?"":"isDisabled"])},[e("span",{class:"label bold",onClick:e=>ot(t.templateCode,t.templateId,t.key,!1)},[h(k(t.label)+" ",1),t.shortcutLabel?(u(),d("span",ye,k(t.shortcutLabel),1)):p("v-if",!0)],8,ge),Le.printParams[t.templateCode]?(u(),f(v(x),{key:0,trigger:"click","show-arrow":!1,placement:"right-start",show:Me[t.key],onClickoutside:e=>Xe(t.key)},{trigger:g((()=>[m(v(M),{component:v(D),size:"18",onClick:e=>We(t.key)},null,8,["component","onClick"])])),default:g((()=>[e("div",fe,[(u(!0),d(c,null,y(He(v(Te),t),(n=>(u(),d("div",{class:S(["print-li",je.twoMouseType==n.key?"active":""]),key:n.key,onMouseenter:e=>$e("twoMouseType",n.key),onMouseleave:i[8]||(i[8]=e=>$e("twoMouseType",""))},[e("div",he,[e("span",{class:"label",onClick:e=>ut(n.key,t,!1)},k(n.label),9,ke)])],42,we)))),128))])])),_:2},1032,["show","onClickoutside"])):p("v-if",!0)],2)],2112))],42,se)))),128))])])),_:3},8,["show"])],2112))]),m(z,w(n.$attrs,{modelValue:Le.identityVerification.visible,"onUpdate:modelValue":i[11]||(i[11]=e=>Le.identityVerification.visible=e),formatId:Le.currentFormatId,templateId:v(Be),onSuccess:bt}),null,16,["modelValue","formatId","templateId"])],64))}});export{be as default};
|
@@ -68,12 +68,12 @@ declare const Calendar: SFCWithInstall<import("vue").DefineComponent<{
|
|
68
68
|
};
|
69
69
|
}>> & {
|
70
70
|
onSelect?: ((...args: any[]) => any) | undefined;
|
71
|
-
onEventClick?: ((...args: any[]) => any) | undefined;
|
72
71
|
onEventDrag?: ((...args: any[]) => any) | undefined;
|
72
|
+
onEventClick?: ((...args: any[]) => any) | undefined;
|
73
73
|
onEventResize?: ((...args: any[]) => any) | undefined;
|
74
74
|
onDateChange?: ((...args: any[]) => any) | undefined;
|
75
75
|
}>>;
|
76
|
-
emit: (event: "select" | "
|
76
|
+
emit: (event: "select" | "eventDrag" | "eventClick" | "eventResize" | "dateChange", ...args: any[]) => void;
|
77
77
|
calendarRef: import("vue").Ref<any>;
|
78
78
|
currentDate: import("vue").Ref<{
|
79
79
|
toString: () => string;
|
@@ -240,7 +240,7 @@ declare const Calendar: SFCWithInstall<import("vue").DefineComponent<{
|
|
240
240
|
options: import("vue").PropType<import("@fullcalendar/core").CalendarOptions>;
|
241
241
|
}>>, {}>;
|
242
242
|
isSameDay: typeof import("date-fns").isSameDay;
|
243
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
243
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "eventDrag" | "eventClick" | "eventResize" | "dateChange")[], "select" | "eventDrag" | "eventClick" | "eventResize" | "dateChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
244
244
|
showDateNavigation: {
|
245
245
|
type: BooleanConstructor;
|
246
246
|
default: boolean;
|
@@ -273,8 +273,8 @@ declare const Calendar: SFCWithInstall<import("vue").DefineComponent<{
|
|
273
273
|
};
|
274
274
|
}>> & {
|
275
275
|
onSelect?: ((...args: any[]) => any) | undefined;
|
276
|
-
onEventClick?: ((...args: any[]) => any) | undefined;
|
277
276
|
onEventDrag?: ((...args: any[]) => any) | undefined;
|
277
|
+
onEventClick?: ((...args: any[]) => any) | undefined;
|
278
278
|
onEventResize?: ((...args: any[]) => any) | undefined;
|
279
279
|
onDateChange?: ((...args: any[]) => any) | undefined;
|
280
280
|
}, {
|
@@ -61,12 +61,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
61
61
|
};
|
62
62
|
}>> & {
|
63
63
|
onSelect?: ((...args: any[]) => any) | undefined;
|
64
|
-
onEventClick?: ((...args: any[]) => any) | undefined;
|
65
64
|
onEventDrag?: ((...args: any[]) => any) | undefined;
|
65
|
+
onEventClick?: ((...args: any[]) => any) | undefined;
|
66
66
|
onEventResize?: ((...args: any[]) => any) | undefined;
|
67
67
|
onDateChange?: ((...args: any[]) => any) | undefined;
|
68
68
|
}>>;
|
69
|
-
emit: (event: "select" | "
|
69
|
+
emit: (event: "select" | "eventDrag" | "eventClick" | "eventResize" | "dateChange", ...args: any[]) => void;
|
70
70
|
calendarRef: import("vue").Ref<any>;
|
71
71
|
currentDate: import("vue").Ref<{
|
72
72
|
toString: () => string;
|
@@ -233,7 +233,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
233
233
|
options: PropType<import("@fullcalendar/core").CalendarOptions>;
|
234
234
|
}>>, {}>;
|
235
235
|
isSameDay: typeof isSameDay;
|
236
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
236
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "eventDrag" | "eventClick" | "eventResize" | "dateChange")[], "select" | "eventDrag" | "eventClick" | "eventResize" | "dateChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
237
237
|
showDateNavigation: {
|
238
238
|
type: BooleanConstructor;
|
239
239
|
default: boolean;
|
@@ -262,8 +262,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
262
262
|
};
|
263
263
|
}>> & {
|
264
264
|
onSelect?: ((...args: any[]) => any) | undefined;
|
265
|
-
onEventClick?: ((...args: any[]) => any) | undefined;
|
266
265
|
onEventDrag?: ((...args: any[]) => any) | undefined;
|
266
|
+
onEventClick?: ((...args: any[]) => any) | undefined;
|
267
267
|
onEventResize?: ((...args: any[]) => any) | undefined;
|
268
268
|
onDateChange?: ((...args: any[]) => any) | undefined;
|
269
269
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
import{createElementVNode as e,defineComponent as
|
1
|
+
import{createElementVNode as e,defineComponent as l,ref as t,inject as n,watch as i,openBlock as a,createBlock as o,unref as d,normalizeClass as u,withCtx as s,createVNode as r,normalizeStyle as c,createSlots as w,withDirectives as g,createTextVNode as v,toDisplayString as p,createCommentVNode as y,withModifiers as m,vShow as h,createElementBlock as f,renderSlot as C}from"vue";import{NModal as B,NCard as k,NTooltip as L,NIcon as x,NSwitch as b,NPopconfirm as z,NButton as S}from"naive-ui";import{ReorderTwo as _,Brush as D,DocumentOutline as I}from"@vicons/ionicons5";import E from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as N}from"../../const/index.js";import{cloneDeep as P}from"lodash-es";var F,M,U,V,O,j,Y,$,A,H;const J={class:"svg-wrap"},q={class:"flex_between"},G={class:"table-modal-list"},K=e("div",{class:"list-title"},[e("span",{class:"list-title-item",style:{width:"6%"}}),e("span",{class:"list-title-item",title:(null==(F=window.getLanguageByCode)?void 0:F.call(window,"10010.1.10"))||"名称"},(null==(M=window.getLanguageByCode)?void 0:M.call(window,"10010.1.10"))||"名称"),e("span",{class:"list-title-item",title:(null==(U=window.getLanguageByCode)?void 0:U.call(window,"10010.1.361"))||"父类名称"},(null==(V=window.getLanguageByCode)?void 0:V.call(window,"10010.1.361"))||"父类名称"),e("span",{class:"list-title-item",title:(null==(O=window.getLanguageByCode)?void 0:O.call(window,"10010.1.20"))||"是否显示"},(null==(j=window.getLanguageByCode)?void 0:j.call(window,"10010.1.20"))||"是否显示"),e("span",{class:"list-title-item",title:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.412"))||"设置为默认"},(null==($=window.getLanguageByCode)?void 0:$.call(window,"10010.1.412"))||"设置为默认"),e("span",{class:"list-title-item",title:(null==(A=window.getLanguageByCode)?void 0:A.call(window,"10010.1.241"))||"操作"},(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.241"))||"操作")],-1),Q=["onClick"],R={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},T=["title"],W=["title"],X={class:"list-content-item list-content-switch"},Z={class:"list-content-item list-content-radio"},ee={class:"list-content-item"},le={key:0},te=e("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[e("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),e("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),e("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),e("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ne=l({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String,default:"search"},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","resetPopconfirm","finishSubmit"],setup(l,{emit:F}){const M=l,U=t([]),V=t(M.visibleIn),O=t(!1),j=t("other"==M.type?"100%":"860px"),Y=t("654px"),$=n(N);function A(){var e;M.type&&(ne(),F("handleOk","search"==(e=M.type)||"other"==e?{id:"",tableId:"",setting:JSON.stringify(U.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))}:void 0))}function H(){V.value=!1,ne(),F("close")}function ne(){j.value="860px",Y.value="654px",O.value=!1}function ie(){O.value=!O.value;let e=document.body.clientHeight;j.value="860px"===j.value?"100%":"860px",Y.value="654px"===Y.value?`${e}px`:"654px"}function ae(e){F("resetPopconfirm",e)}function oe(e,l,t){const n=M[e];n&&n(l,t)}return i((()=>M.visibleIn),(e=>{V.value=e})),i((()=>M.dataSource),(e=>{U.value=P(e)}),{immediate:!0,deep:!0}),(t,n)=>{var i,N;return a(),o(d(B),{show:V.value,bodyStyle:{height:Y.value,overflowY:"auto"},width:j.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":O.value}]),closable:!1,centered:"",transitionName:l.transitionName,getContainer:l.getContainer,"positive-text":(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.244"))||"保存","negative-text":(null==(N=window.getLanguageByCode)?void 0:N.call(window,"10010.1.32"))||"取消",onPositiveClick:A,onNegativeClick:H},{default:s((()=>{var n;return[r(d(k),{style:c({width:j.value,height:Y.value,overflowY:"auto"}),title:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.281"))||"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},w({"header-extra":s((()=>[e("div",J,[e("i",{onClick:ie,class:u(["iconfont-table-filter",O.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),e("i",{onClick:H,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:s((()=>[e("div",G,[K,r(d(E),{class:"list-content",tag:"ul",list:U.value,"item-key":"sid",animation:"300"},{item:s((({element:t})=>{var n,i,o;return[g(e("li",{class:u({checked:t.checked}),onClick:e=>{return l=t,void U.value.forEach((e=>{e.sid==l.sid?e.checked=!0:e.checked=!1}));var l}},[e("span",R,[r(d(L),{mouseEnterDelay:1},{trigger:s((()=>[r(d(x),{component:d(_),size:"24"},null,8,["component"])])),default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.282"))||"拖拽调整顺序")]})),_:1})]),e("span",{title:t.displayCategory,class:"list-content-item"},p(t.name),9,T),e("span",{title:t.name,class:"list-content-item"},p(t.displayCategory),9,W),e("span",X,[r(d(b),{"onUpdate:value":e=>{return l=t,void U.value.forEach((e=>{e.sid==l.sid&&(e.isShow=!e.isShow,e.isShow||(l.isDefault=!1))}));var l},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),e("span",Z,[r(d(b),{"onUpdate:value":e=>{var l;(l=t).isShow&&U.value.forEach((e=>{e.sid==l.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),e("span",ee,[y((null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.284"))||"编辑"),g(e("span",null,[r(d(L),null,{trigger:s((()=>[r(d(x),{component:d(D),onClick:m((e=>{var l;return oe("edit",t,(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.284"))||"编辑")}),["prevent","stop"])},null,8,["component","onClick"])])),default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.284"))||"编辑")]})),_:2},1024)],512),[[h,"other"==l.type||"search"==l.type&&t.isEdit]]),y((null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.97"))||"复制"),g(e("span",null,[r(d(L),null,{trigger:s((()=>[r(d(x),{component:d(I),onClick:m((e=>{var l;return oe("copy",t,(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.97"))||"复制")}),["prevent","stop"])},null,8,["component","onClick"])])),default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.97"))||"复制")]})),_:2},1024)],512),[[h,"search"==l.type||"other"==l.type]]),y((null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.215"))||"删除"),t.isEdit?(a(),f("span",le,[r(d(z),{onPositiveClick:e=>{var l;return oe("delItem",t,(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.215"))||"删除")}},{trigger:s((()=>[r(d(x),null,{default:s((()=>[te])),_:1})])),default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.285"))||"是否确认删除?")]})),_:2},1032,["onPositiveClick"])])):y("v-if",!0)])],10,Q),[[h,"line"!=t.type]])]})),_:1},8,["list"])])])),_:2},["search"==l.type?{name:"footer",fn:s((()=>{var l,n;return[e("div",q,[e("div",null,[d($)?(a(),o(d(z),{key:0,placement:"top-start","positive-text":(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.428"))||"确认","negative-text":(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.32"))||"取消",onPositiveClick:ae},{trigger:s((()=>[r(d(S),null,{default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.242"))||"恢复默认设置")]})),_:1})])),default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.243"))||"确认要恢复系统默认设置吗?")]})),_:1})):y("v-if",!0)]),e("div",null,[r(d(S),{onClick:H},{default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.32"))||"取消")]})),_:1}),C(t.$slots,"add"),r(d(S),{type:"info",onClick:A},{default:s((()=>{var e;return[v((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.244"))||"保存")]})),_:1})])])]})),key:"0"}:void 0]),1032,["style"])]})),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"])}}});export{ne as default};
|
@@ -1 +1 @@
|
|
1
|
-
@font-face{font-family:classification-iconfont;src:url(classification-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:classification-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}.classification-block .item-count span{color:#db0a0a}
|
1
|
+
@font-face{font-family:classification-iconfont;src:url(classification-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:classification-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name{display:flex;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item .child-item-name .number{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}.classification-block .item-count span{color:#db0a0a}
|
@@ -52,11 +52,12 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
52
52
|
onRemove?: ((...args: any[]) => any) | undefined;
|
53
53
|
onEdit?: ((...args: any[]) => any) | undefined;
|
54
54
|
onAdd?: ((...args: any[]) => any) | undefined;
|
55
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
55
56
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
56
57
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
57
|
-
|
58
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
58
59
|
}>>;
|
59
|
-
emits: (event: "remove" | "edit" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
60
|
+
emits: (event: "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", ...args: any[]) => void;
|
60
61
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
61
62
|
canvas: import("vue").Ref<any>;
|
62
63
|
pointTipProps: {
|
@@ -273,7 +274,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
273
274
|
list: unknown[];
|
274
275
|
show: boolean;
|
275
276
|
}>;
|
276
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
277
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click")[], "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
277
278
|
type: {
|
278
279
|
type: import("vue").PropType<import("./src/interface").IType>;
|
279
280
|
default: string;
|
@@ -302,9 +303,10 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
302
303
|
onRemove?: ((...args: any[]) => any) | undefined;
|
303
304
|
onEdit?: ((...args: any[]) => any) | undefined;
|
304
305
|
onAdd?: ((...args: any[]) => any) | undefined;
|
306
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
305
307
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
306
308
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
307
|
-
|
309
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
308
310
|
}, {
|
309
311
|
type: import("./src/interface").IType;
|
310
312
|
}>>;
|
@@ -46,11 +46,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
onRemove?: ((...args: any[]) => any) | undefined;
|
47
47
|
onEdit?: ((...args: any[]) => any) | undefined;
|
48
48
|
onAdd?: ((...args: any[]) => any) | undefined;
|
49
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
49
50
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
50
51
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
51
|
-
|
52
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
52
53
|
}>>;
|
53
|
-
emits: (event: "remove" | "edit" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
54
|
+
emits: (event: "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", ...args: any[]) => void;
|
54
55
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
55
56
|
canvas: import("vue").Ref<any>;
|
56
57
|
pointTipProps: {
|
@@ -267,7 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
267
268
|
list: unknown[];
|
268
269
|
show: boolean;
|
269
270
|
}>;
|
270
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "change" | "add" | "select" | "add:prevent" | "click:grid" | "
|
271
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click")[], "remove" | "edit" | "change" | "add" | "right-click" | "select" | "add:prevent" | "click:grid" | "event-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
271
272
|
type: {
|
272
273
|
type: PropType<IType>;
|
273
274
|
default: string;
|
@@ -292,9 +293,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
292
293
|
onRemove?: ((...args: any[]) => any) | undefined;
|
293
294
|
onEdit?: ((...args: any[]) => any) | undefined;
|
294
295
|
onAdd?: ((...args: any[]) => any) | undefined;
|
296
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
295
297
|
"onAdd:prevent"?: ((...args: any[]) => any) | undefined;
|
296
298
|
"onClick:grid"?: ((...args: any[]) => any) | undefined;
|
297
|
-
|
299
|
+
"onEvent-click"?: ((...args: any[]) => any) | undefined;
|
298
300
|
}, {
|
299
301
|
type: IType;
|
300
302
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as n,normalizeStyle as u,unref as l,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as d,createCommentVNode as m}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import w from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import"./hooks/useCommon.js";import{useBirthProcessChart as g}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as
|
1
|
+
import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as n,normalizeStyle as u,unref as l,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as d,createCommentVNode as m}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import w from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import"./hooks/useCommon.js";import{useBirthProcessChart as g}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as k}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as C}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";import{useElectrocardiogramChart as R}from"./hooks/electrocardiogram/useElectrocardiogramChart.js";import{useNewBirthProcessChart as P}from"./hooks/newBirthProcess/useNewBirthProcessChart.js";var j=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},popupTipRender:{type:Function},addRenderItem:{type:Function}},emits:["change","add","remove","edit","right-click","select","add:prevent","click:grid","event-click"],setup(e,{expose:j,emit:y}){const b=e,x=r(null),I=r(),T=t({show:!1,point:{x:0,y:0},list:[],movable:!1,sourceData:[],isTarget:!1}),M=t({show:!1,point:{x:0,y:0},list:[],target:null}),B=o((()=>{var e;return null==(e=I.value)?void 0:e.wrapperEl})),A=o((()=>({width:`${b.data.width||800}px`,height:`${b.data.height||500}px`}))),{propItems:E,redrawPoints:F,select:S,clickMenu:_,useMeasureRuler:D,useCaliper:G,useCaliperRuler:L,useRectRuler:$,updatePolyline:q,getGridInfo:H,redrawLinePoints:N}=function(){const e=[I,b,y,x,T,M];switch(b.type){case"birthProcess":return g(...e);case"surgicalAnesthesia":return C(...e,!!b.popupTipRender);case"electrocardiogram":return R(...e);case"newBirthProcess":return P(...e);default:return k(...e)}}();return s((()=>{I.value=new f.Canvas(x.value,{width:E.canvasWidth,height:E.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{var e,r,t,o;null==(r=null==(e=I.value)?void 0:e.off)||r.call(e),null==(o=null==(t=I.value)?void 0:t.clear)||o.call(t)})),j({redrawPoints:F,redrawLinePoints:N,select:S,canvas:I,useMeasureRuler:D,useCaliper:G,useCaliperRuler:L,useRectRuler:$,updatePolyline:q,getGridInfo:H}),(r,t)=>(i(),n("div",{class:"c-fabric-chart",style:u(l(A))},[p("canvas",{ref_key:"canvasRef",ref:x},null,512),l(B)?(i(),n(c,{key:0},[h(v,d({popupTipRender:e.popupTipRender,...T},{propItems:l(E)}),null,16,["propItems"]),h(l(w),d({propItems:l(E)},M,{show:M.show,"onUpdate:show":t[0]||(t[0]=e=>M.show=e),onClickMenu:l(_)}),null,16,["propItems","show","onClickMenu"])],64)):m("v-if",!0)],4))}});export{j as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{fabric as
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as t,drawText as n,defaultRectStyle as i,drawTextGroup as o,drawLine as r,drawPoint as l}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useBirthProcessCumputedPoint as c}from"../useCumputedPoint.js";import"../useEvent.js";import{drawScaleNumber as u}from"../useScaleColumn.js";import{useCommon as a}from"../useCommon.js";import"vue";import{getScaleNumberList as f}from"../../utils/index.js";import{omit as d,has as h,isArray as p}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import{OTHER_MENU as m}from"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"@vueuse/core";import"../../../../../shared/utils/index.js";function g(e,t,[n,i]){var o,r;let l=null;for(let s=0;s<e.length;s++){const c=e[s],{left:u,top:a,width:f,height:d}=c;if("tree"===t&&!(null==(o=c.children)?void 0:o.length)&&i>=a&&i<=a+d){l=c;break}if("treeMenu"===t&&n>=u&&n<=u+f&&i>=a&&i<=a+d){l=c;break}if(null==(r=c.children)?void 0:r.length){const e=g(c.children,t,[n,i]);if(e){l=e;break}}}return l?d(l,["uuid","left","top","width","height"]):null}function v(v,L,x,y,w){const{computedX:X,getXValue:C}=c(L),{originX:b,endX:Y,xCellWidth:k,originYXAxis:S,top:j,canvasWidth:M,borderStyle:$,treeData:G,xAxis:E,topGridYNumber:I,topGridOriginY:P,topGridYCellHeight:R,topGridEndY:T,event:z,extraMenuConfig:A,getTreeData:V,grid:D}=L,{getPointEventProps:B}=a(v,x,L);let N=V();const W=new Set;function F(){const{show:e=!0,range:t}=(null==j?void 0:j.scaleValue)||{};return e&&p(t)}function H(){!function e(t){t.forEach((t=>{var i;(null==(i=t.children)?void 0:i.length)?e(t.children):(function(e){if(!(null==e?void 0:e.data)||!Array.isArray(e.data))return;const{lineStyle:t}=j.dataStyle||{},n=e.top,i=n+R,o=i-R/2,l={y1:n,y2:i,halfY:o};let s=null;const c=d(e,["data","width","height","left","top"]);e.data.forEach(((n,i,u)=>{const a={...c,data:n,index:i},{time:f,continue:d}=n,[h,p]=f,m=h&&X(h),g=p&&X(p),v=q({...l,x:m},{isCustomIcon:!g&&!d,isContinue:!1,isLeft:!0}),L=q({...l,x:g},{isCustomIcon:!1,isContinue:!!d});let x,y;if((v||m<b)&&(L||g>Y)){const n=v?m:b,i=L?g:Y;x="wavy"===e.lineType?O([n,i,o],t):r([n,o,i,o],t),y=_({width:i-n-k,left:n+(i-n)/2,top:o,onlyRect:!0}),y.origin=a,x.centerLineRect=y}const w={startLine:v,centerLine:x,endLine:L};let C,S;!function(e,t,n){const{startLine:i,centerLine:o,endLine:r}=t,{startLine:l,endLine:s}=e||{};if(i){i.origin=n;const e={x1:b,x2:r?r.left:Y};s?(e.x1=s.left,s.limitX.x2=i.left,i.prevLine=s,s.nextLine=i):l&&(e.x1=l.left,l.limitX.x2=i.left,i.prevLine=l,l.nextLine=i),i.limitX=e,o&&(i.centerLine=o)}if(r){r.origin=n;const e={x1:i?i.left:b,x2:Y};r.limitX=e,o&&(r.centerLine=o)}o&&(o.origin=n);i&&r&&(i.nearLine=r,r.nearLine=i)}(s,w,a),s&&(C=Q(u[i-1],s,o,a)),i===u.length-1&&(S=Q(n,w,o,a)),s=w,x&&W.add(x),y&&W.add(y),v&&W.add(v),L&&W.add(L),C&&W.add(C),S&&W.add(S)}))}(t),function(e){if(F())return;const t=M-Y,{divider:i={},style:o}=(null==j?void 0:j.total)||{};if(i.show){const n=e.top+R,o=r([Y,n,Y+t,n],i.style);v.value.add(o)}if(!(null==e?void 0:e.total))return;const l=e.top+R/2,s=Y+t/2,c=n([s,l],{value:e.total,...o}),u=M-$.strokeWidth;s+c.width>u&&c.set({originX:"right",left:u});c&&v.value.add(c)}(t))}))}(N),W.size&&v.value.add(...W)}function O([n,i,o],r){const{stroke:l="#000"}=r||{},{subXCell:s=6}=D,c=k*s,u=R/2,a=c/2,f=o-u,d=o+u;if(n>i)return;let h=n,p=`M${h} ${o}`,m=0;for(;i-h>=c;)p+=` Q${h+a} ${m%2==0?f:d} ${h+c} ${o}`,h+=c,m++;i-h<c&&(p+=` L${i} ${o}`);const g=new e.Gradient({gradientUnits:"pencentage",coords:{x1:i,y1:0,x2:0,y2:0},colorStops:[{offset:0,color:l+"90"},{offset:.5,color:l+"50"},{offset:1,color:l+"20"}]}),v=new e.Path(p,{fill:g,objectCaching:!1,...r,...t});return v.pathPointer=[n,i,o],v.selfStyle=r,v}function Q(e,t,n,i){let o;const{content:r}=e.value||{},{startLine:s,endLine:c,centerLine:u}=t;if(r&&(s||u||c)){const{textStyle:e}=j.dataStyle||{};o=l(r,{fontSize:12,...e,backgroundColor:"#fff",lockMovementX:!0,lockMovementY:!0});const u=U(o,t,n);o&&(o.set(u),o.origin=i,J(o),s&&(s.text=o),c&&(c.text=o))}return o}function U(e,t,n){var i,o,r;const l=e.width+1,{startLine:s,centerLine:c,endLine:u}=t,a={top:n,originX:"center",originY:"center"},f=null!=(r=null!=(o=null==c?void 0:c.x1)?o:null==(i=null==c?void 0:c.pathPointer)?void 0:i[0])?r:0;return c&&l<=c.width?a.left=f+c.width/2:u&&l<=u.limitX.x2-u.left?(a.originX="left",a.left=u.left+1):s&&!u&&l<=s.limitX.x2-s.left?(a.originX="left",a.left=s.left+(s.isCustomIcon?5:1)):s&&l<=s.left-s.limitX.x1?(a.originX="right",a.left=s.left-(s.isCustomIcon?5:1)):c?(a.originY="top",a.left=f+c.width/2,a.top=n+1,a.fontSize=10):s&&(a.originX="left",a.originY="top",a.fontSize=10,a.left=s.left,a.top=n+1),e.bringToFront(),a}function _(t){const{bindLine:n,width:i,left:o,top:r,props:l,onlyRect:s=!1}=t,c={originX:"center",originY:"center",hasControls:!1,hasBorders:!1,hoverCursor:"pointer",left:o,top:r},u=new e.Rect({width:i,height:R,fill:"transparent",...c});if(s)return u.set({lockMovementX:!0,lockMovementY:!0}),J(u),u;const a=new e.Group([n,u],{...c,...l,lockMovementY:!0});return J(a),a}function q(e,{isCustomIcon:t,isContinue:n,isLeft:i}){const{x:o,y1:s,y2:c,halfY:u}=e;if(!o||o<b||o>Y)return;const{lineStyle:a}=j.dataStyle||{};let f;const d={left:o,top:u};f=t?l("circle",{fill:a.stroke,...d}):n?l(">",{fill:a.stroke,...d,fontSize:18}):r([o,s,o,u],a);const h=_({...d,width:k,bindLine:f,props:B()});return h.isLeft=i,h.isCustomIcon=t,h}function J(e){z.hovered&&(e.on("mouseover",(()=>{K(e,"hover")})),e.on("mouseout",(()=>{y.show=!1}))),e.lockMovementX&&e.lockMovementY||(e.on("moving",(()=>{!function(e){e.setCoords(),e.left<e.limitX.x1&&e.set("left",e.limitX.x1);e.left>e.limitX.x2&&e.set("left",e.limitX.x2)}(e),function(e){var t,n;if(e.centerLine){const i=e.isLeft?{x1:e.left}:{x2:e.left};if(h(e.centerLine,"pathPointer")){const{pathPointer:t,selfStyle:n}=e.centerLine;t[e.isLeft?0:1]=e.left,v.value.remove(e.centerLine);const{centerLineRect:i}=e.centerLine;e.centerLine=null;const o=O(t,n);o&&(i.bringToFront(),o.centerLineRect=i,e.centerLine=o,e.nearLine.centerLine=o,v.value.add(o))}else e.centerLine.setCoords().set(i);if(e.isLeft){const n=e.limitX.x2-e.left;null==(t=e.centerLine.centerLineRect)||t.setCoords().set({width:n-k,left:e.left+n/2})}else{const t=e.left-e.limitX.x1;null==(n=e.centerLine.centerLineRect)||n.setCoords().set({width:t-k,left:e.limitX.x1+t/2})}}if(e.text){const t=U(e.text,{startLine:e.isLeft?e:e.nearLine,centerLine:e.centerLine,endLine:e.isLeft?e.nearLine:e},e.top);e.text.setCoords().set(t)}}(e),z.hovered&&K(e)})),e.on("mouseup",(t=>{if(1===t.button){!function(e){e.isLeft?(e.prevLine&&(e.prevLine.limitX.x2=e.left),e.nearLine&&(e.nearLine.limitX.x1=e.left)):(e.nextLine&&(e.nextLine.limitX.x1=e.left),e.nearLine&&(e.nearLine.limitX.x2=e.left))}(e);const t={type:"tree",...e.origin};x("change",d(t,["uuid"]))}})))}function K(e,t="moving"){var n,i,o;y.isTarget=!0,y.show=!0;const{data:r}=e.origin;y.point={x:e.left,y:e.top},y.marginTop=R/2;let[l="",s=""]=r.time||[];if("moving"===t){const t=C(e.left);e.isLeft?l=t:s=t,r.time=[l,s],e.text&&(e.text.origin.data.time=[l,s])}y.list=[`开始时间 ${l}`,`结束时间 ${s}`,`流速 ${(null==(n=r.value)?void 0:n.currentSpeed)||""}`,`浓度 ${(null==(i=r.value)?void 0:i.consistence)||""}`,`总量 ${(null==(o=r.value)?void 0:o.total)||""}`],y.sourceData=[{type:"tree",startTime:l,endTime:s,value:r.value}]}return s(v,{...L,gridYNumber:I,originY:P,yCellHeight:R,endY:T}),function(){var o;const{height:r,list:l,left:s,spaceValue:c,style:u,marginBottom:a}=E;if(!r)return;const f=[],d=S+(a?r-a:r/2),h=a?"bottom":"center";l.forEach(((e,t)=>{const i=s+t*k*c;f.push(n([i,d],{value:e.slice(11,16),originY:h,...u}))}));const p=f.length>0?new e.Group([...f],{...t,objectCaching:!1}):null;p&&v.value.add(p);const m=new e.Rect({width:M,height:r,left:0,top:S,...i,originX:"left",originY:"top",...$});if(v.value.add(m),!F()){const{title:e=(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.234"))||"总量",style:t}=(null==j?void 0:j.total)||{},i=n([Y+(M-Y)/2,d],{value:e,originY:h,...t});v.value.add(i)}}(),function(){var n;const i=(null==(n=null==j?void 0:j.tree)?void 0:n.textStyle)||{},r=[];!function e(t){t.forEach((t=>{var n;const{width:l,height:s,left:c,top:u,title:a=""}=t,f={value:a,...i};(null==(n=t.children)?void 0:n.length)?(f.value=a.split("").join("\n"),e(t.children)):f.textAlign="left",r.push(o({width:l,height:s,...$},f,{left:c,top:u},!0))}))}(G);const l=r.length>0?new e.Group([...r],{...t,objectCaching:!1}):null;l&&v.value.add(l)}(),H(),function(){const{range:n,spaceValue:i=.5,spaceGridNumber:o=1,style:r,margin:l=5}=(null==j?void 0:j.scaleValue)||{};if(!F())return;const s=f(n,i),c=[];if(s.forEach(((e,t)=>{if(0===t||t===s.length-1)return;const n=T-t*R*o;Math.abs(n-P)<1||c.push(u(String(e),{style:r,position:"right"},Y+l,n))})),!c.length)return;const a=new e.Group(c,{objectCaching:!1,...t});v.value.add(a)}(),z.evented&&v.value.on("mouse:up",(e=>{3===e.button&&function(e){y.show=!1;const{x:t=0,y:n=0}=e.pointer||{};if(n>=P&&n<=T)if(t>=b&&t<=Y)if(e.target){const t=e.target;w.point={x:t.left,y:t.top},w.show=!0,w.target=t;const{treeMenuList:n=[]}=A;w.list=m.concat(n).map((e=>({...e,renderItem:()=>e.label,type:e.key||e.type,_type:"tree"})))}else{const e={type:"tree",treeItem:g(N,"tree",[t,n]),time:C(t)};x("right-click",e)}else{const e={type:"treeMenu",treeItem:g(G,"treeMenu",[t,n])};x("right-click",e)}}(e)})),{redrawLinePoints:function(){var e;W.size&&(null==(e=v.value)||e.remove(...W)),W.clear(),N=V(),H()},clickMenu:function({item:e,target:t}){var n;if(!t)return;const{type:i}=e,o={...t.origin,type:"tree"};if(m.map((e=>e.type)).includes(i)){if("remove"===i){const e=[...W].filter((e=>{var t;return(null==(t=e.origin)?void 0:t.uuid)===o.uuid}));e.length&&(v.value.remove(...e),e.forEach((e=>{W.delete(e)})))}x(i,d(o,["uuid"]))}else null==(n=A.click)||n.call(A,i,o)}}}export{v as useTop};
|
@@ -187,6 +187,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
187
187
|
unreadTotal: import("vue").ComputedRef<number>;
|
188
188
|
openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
|
189
189
|
setUpdateSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
190
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
190
191
|
currentWidth: import("vue").ComputedRef<number>;
|
191
192
|
sessionList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
192
193
|
getLabelNum: (session: import("../../shared/types").AnyObject) => number;
|
@@ -241,6 +242,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
241
242
|
beforeUnmount(el: any): void;
|
242
243
|
};
|
243
244
|
formatTime: typeof import("./src/utils").formatTime;
|
245
|
+
STATUS: typeof import("./src/constants").STATUS;
|
244
246
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
245
247
|
ChatHeader: import("vue").DefineComponent<{}, {
|
246
248
|
state: {
|
@@ -1889,13 +1891,32 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1889
1891
|
openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
|
1890
1892
|
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1891
1893
|
handleInput: () => void;
|
1894
|
+
currentTabValue: import("vue").Ref<string>;
|
1895
|
+
userItemRender: import("vue").DefineComponent<{
|
1896
|
+
item: {
|
1897
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1898
|
+
default: () => {};
|
1899
|
+
};
|
1900
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1901
|
+
item: {
|
1902
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1903
|
+
default: () => {};
|
1904
|
+
};
|
1905
|
+
}>>, {
|
1906
|
+
item: import("../../shared/types").AnyObject;
|
1907
|
+
}>;
|
1908
|
+
groupList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
1892
1909
|
showNoData: import("vue").ComputedRef<boolean>;
|
1893
|
-
|
1910
|
+
showAllNoData: import("vue").ComputedRef<boolean>;
|
1911
|
+
showGroupNoData: import("vue").ComputedRef<boolean>;
|
1912
|
+
addSession: (id: string) => Promise<void>;
|
1894
1913
|
NPopover: any;
|
1895
1914
|
NButton: any;
|
1896
|
-
NAvatar: any;
|
1897
1915
|
NInput: any;
|
1898
1916
|
NIcon: any;
|
1917
|
+
NTabs: any;
|
1918
|
+
NTabPane: any;
|
1919
|
+
NDivider: any;
|
1899
1920
|
SearchOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1900
1921
|
DefaultPage: SFCWithInstall<import("vue").DefineComponent<{
|
1901
1922
|
type: {
|