@utogether/components 2.9.3 → 2.9.5
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/dist/components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/components.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(Q,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("vue-i18n"),require("xe-utils"),require("@utogether/utils"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","vue-i18n","xe-utils","@utogether/utils","vxe-table"],o):(Q=typeof globalThis<"u"?globalThis:Q||self,o(Q["@utogether/components"]={},Q.vue,Q.vueI18n,Q.xeUtils,Q.utils,Q.VXETable))})(this,function(Q,o,Me,$,F,Ie){"use strict";const Wn={key:1,class:"inline-block su-popconfirm",style:{"margin-left":"6px"}},jn={name:"SuButton"},Hn=o.defineComponent({...jn,props:{content:null,type:null,mode:{default:"primary"},status:{default:"primary"},icon:null,disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},auth:null,title:{default:"确定继续操作?"}},emits:["tap","confirm","onCancel"],setup(e,{emit:t}){const n=e,a=o.getCurrentInstance().appContext.config.globalProperties.$hasAuthority,{t:l}=Me.useI18n(),r=o.computed(()=>{let f=n==null?void 0:n.icon;return f!=null&&f.includes("fa")&&(f=`fa ${n.icon}`),{icon:f,content:l(`message.${n.content}`)}}),s=f=>{var v,b,S;return(v=n.content)!=null&&v.toLowerCase().includes("print")?"ri-printer-line":(b=n.content)!=null&&b.toLowerCase().includes("look")?"ri-eye-line":(S=n.content)!=null&&S.toLowerCase().includes("del")?"ri-delete-bin-line":"ri-edit-box-line"},c=$.throttle(()=>{t("confirm")},3e3),d=()=>{t("onCancel")},u=$.throttle(()=>{n.disabled||n.auth&&!a(n.auth)||t("tap")},3e3);return(f,v)=>{const b=o.resolveComponent("vxe-button"),S=o.resolveComponent("el-popconfirm");return e.mode==="primary"&&!e.hidden?(o.openBlock(),o.createBlock(b,{key:0,disabled:e.auth&&!o.unref(a)(e.auth)||e.disabled,status:e.status,type:e.type,content:o.unref(r).content,icon:`${o.unref(r).icon||s(o.unref(r))} ri-1x`,loading:e.loading,onClick:o.unref(u)},null,8,["disabled","status","type","content","icon","loading","onClick"])):e.mode==="pop"&&!e.hidden?(o.openBlock(),o.createElementBlock("div",Wn,[o.createVNode(S,{"confirm-button-text":f.$t("message.CONFIRM"),"cancel-button-text":f.$t("message.CANCEL"),"icon-color":"#E6A23C",teleported:!1,title:e.title,onConfirm:o.unref(c),onCancel:d},{reference:o.withCtx(()=>[o.createVNode(b,{disabled:e.auth&&!o.unref(a)(e.auth)||e.disabled,status:e.status,type:e.type,content:o.unref(r).content,icon:`${o.unref(r).icon||s(o.unref(r))} ri-1x`,loading:e.loading},null,8,["disabled","status","type","content","icon","loading"])]),_:1},8,["confirm-button-text","cancel-button-text","title","onConfirm"])])):o.createCommentVNode("",!0)}}}),Ra="",Ht=F.withInstall(Hn);function Je(e,t){return e.then(function(n){return[null,n]}).catch(function(n){return t&&Object.assign(n,t),[n,void 0]})}const Yn={class:"su-lov-wrapper"},Xn={style:{height:"360px"}},qn={name:"SuLov"},Gn=o.defineComponent({...qn,props:{record:{default:()=>({})},fetchParam:{default:()=>({})},code:null,field:null,displayName:null,placeholder:{default:"请选择"},mode:{default:"vxe"},clearable:{type:Boolean,default:!0},isMulti:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoLoad:{type:Boolean,default:!0},readonly:{type:Boolean,default:!0}},emits:["clear","change"],setup(e,{emit:t}){const n=e,a=o.getCurrentInstance().appContext.config.globalProperties.$serviceApi,l=600,r=o.ref(!1),s=o.ref(l),c=o.ref(""),d=o.reactive({loading:!1,border:!0,pagerConfig:{},formConfig:{titleWidth:90,titleAlign:"right",items:[]},height:"auto",editConfig:{},rowConfig:{keyField:"_X_ROW_KEY"},proxyConfig:{form:!0,autoLoad:!1,props:{result:"list",total:"total"},ajax:{query:({page:k,form:m})=>{const _=F.cookies.get("kCookies_param")?JSON.parse(F.cookies.get("kCookies_param")):{};let C=Object.assign({},m,_,n.fetchParam);if(C.pageNum=k.currentPage,C.pageSize=k.pageSize,!n.readonly){const{field:T,displayName:V}=n;C[V||T]=n.record[V||T]}return C=b(C),f.lovType!=="url"?(C.lovCode=n.code,a.get("/upfm/v1/lovViewHeader/listBySql",C)):a.get(f.lovUrl,C)}}},checkboxConfig:{},columns:[]}),u=o.ref(null);let f,v=[];const b=k=>(v.filter(_=>["date","month"].includes(_.fieldType)&&_.isSearch).forEach(_=>{_.fieldType==="date"?k[_.field]=$.toDateString(k[_.field],"yyyy-MM-dd 00:00:00"):_.fieldType==="month"&&(k[_.field]=$.toDateString(k[_.field],"yyyy-MM"))}),k),S=()=>{const k=$.clone(v,!0).filter(C=>C.isSearch==="Y");if(!k.length)return;const m=k.length>2,_=k.sort((C,T)=>C.seqNo-T.seqNo).map((C,T)=>({field:C.colField,title:C.colTitle,span:8,folding:T>1,itemRender:N(C)}));h.collapseNode=m,m?_.splice(2,0,h):_.push(h),d.formConfig.items=_},h={span:8,align:"right",collapseNode:!1,itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"message.SEARCH",status:"primary",icon:"ri-search-line"}},{props:{type:"reset",content:"message.RESET",status:"info",icon:"ri-refresh-line"}}]}},p=F.useRender(),N=k=>{if(["date","month"].includes(k.fieldType)){const m=k.fieldType==="date"?"yyyy-MM-dd HH:mm:ss":"yyyy-MM";return p.renderDate({type:k.fieldType,valueFormat:m})}else if(k.fieldType==="dictCode")return p.renderDict(k.dictCode);return{name:"$input"}},y=()=>{const k=$.clone(v,!0).filter(_=>_.isCol==="Y"),m=k.reduce((_,C)=>_+ +C.colWidth,65);s.value=m<l?l:m>900?900:m,d.columns=k.sort((_,C)=>_.seqNo-C.seqNo).map(_=>{const C=_.fieldType,T=["formatDict",_.dictCode];return{field:_.colField,title:_.colTitle,minWidth:_.colWidth,formatter:C==="date"?["formatDate"]:_.fieldType==="dictCode"?T:null}}),n.isMulti?d.columns.unshift({type:"checkbox",width:45,align:"center"}):d.columns.unshift({type:"radio",width:45,align:"center"})},E=o.ref(null),D=async()=>{d.loading=!0;const k="/upfm/v1/lovViewHeader/detailByViewCode",[m,_]=await Je(a.get(k,{lovCode:n.code}));d.loading=!1,m&&O(),c.value=_==null?void 0:_.lovTitle,v=_.lineList,f=_,n.autoLoad&&E.value.commitProxy("query"),y(),S()},g=()=>{n.disabled||(D(),r.value=!0)},x=()=>{t("clear","")},w=({row:k})=>{const m=n.isMulti?[k]:k;t("change",m,f.valueField),O()},B=()=>{const k=E.value,m=n.isMulti?k.getCheckboxRecords():k.getRadioRecord();!$.isEmpty(m)&&t("change",m,f.valueField),O()},O=()=>{v.length=0,r.value=!1},I=({type:k})=>{};return(k,m)=>{const _=o.resolveComponent("vxe-grid"),C=o.resolveComponent("vxe-button"),T=o.resolveComponent("vxe-modal"),V=o.resolveComponent("el-dialog"),A=o.resolveComponent("vxe-input");return o.openBlock(),o.createElementBlock("div",Yn,[e.mode==="vxe"?(o.openBlock(),o.createBlock(T,{key:0,modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=P=>r.value=P),width:s.value,"destroy-on-close":!1,title:c.value,height:"80%",resize:"","esc-closable":"","show-footer":"","before-hide-method":I},{default:o.withCtx(()=>[o.createVNode(_,o.mergeProps({ref_key:"xgrid",ref:E},d,{resizable:"",onCellDblclick:w}),null,16)]),footer:o.withCtx(()=>[o.createVNode(C,{content:k.$t("message.CANCEL"),icon:"ri-close-line",status:"warning",onClick:O},null,8,["content"]),o.createVNode(C,{content:k.$t("message.CONFIRM"),icon:"ri-save-3-line",status:"primary",onClick:B},null,8,["content"])]),_:1},8,["modelValue","width","title"])):(o.openBlock(),o.createBlock(V,{key:1,modelValue:r.value,"onUpdate:modelValue":m[1]||(m[1]=P=>r.value=P),width:s.value,"show-close":!1,title:c.value,draggable:"","destroy-on-close":"","close-on-press-escape":""},{default:o.withCtx(()=>[o.createElementVNode("div",Xn,[o.createVNode(_,o.mergeProps({ref_key:"xgrid",ref:E},d,{resizable:"",onCellDblclick:w}),null,16)])]),footer:o.withCtx(()=>[o.createVNode(C,{content:k.$t("message.CANCEL"),icon:"ri-close-line",status:"warning",onClick:O},null,8,["content"]),o.createVNode(C,{content:k.$t("message.CONFIRM"),icon:"ri-save-3-line",status:"primary",onClick:B},null,8,["content"])]),_:1},8,["modelValue","width","title"])),o.createVNode(A,{modelValue:e.record[u.value||e.field],"onUpdate:modelValue":m[2]||(m[2]=P=>e.record[u.value||e.field]=P),clearable:!e.disabled&&e.clearable,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,type:"search",size:"mini",onSearchClick:g,onClear:x},null,8,["modelValue","clearable","disabled","readonly","placeholder"])])}}}),za="",Yt=F.withInstall(Gn);async function Kn(e,t){return new Promise(async(n,i)=>{try{const a=await Jn(e);let l=document.createElement("canvas");l.width=a.naturalWidth,l.height=a.naturalHeight;const r=l.getContext("2d");r.drawImage(a,0,0,l.width,l.height),l=Xt(l,r,t),l.toBlob(s=>n(s))}catch(a){i(a)}})}function Jn(e){return new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{const i=new Image;i.src=n.result,i.addEventListener("load",()=>t(i))}),n.readAsDataURL(e)})}const Xt=(e,t,n)=>{const i=n.content.split(","),{textAlign:a,fontSize:l,color:r,fillOpacity:s,xAxis:c,yAxis:d}=n,u=e.width,f=e.height;t.font=`${l||22}px Microsoft Yahei`,t.lineWidth=1,t.fillStyle=r||"rgba(255, 255, 255, 1)",t.textAlign=a||"left",t.textBaseline="middle",t.globalAlpha=Number(s||1);const v=Number(c),b=Number(d);return i.forEach((S,h)=>{let p=l;n.watermarkType==="1"?p=18:n.watermarkType==="2"&&(p=16);const N=u-S.split("").length*Number(p);t.fillText(S,v||N,b||f-Number(p)-h*25)}),e},Qn=async(e,t)=>{let n=await Zn(e);const i=n.getContext("2d");return n=Xt(n,i,t),n.toDataURL("image/png")},Zn=async e=>{const t=document.createElement("img");t.src=e,t.setAttribute("crossOrigin","anonymous"),await new Promise(i=>t.onload=i);const n=document.createElement("canvas");return n.width=t.naturalWidth||t.width,n.height=t.naturalHeight||t.height,n.getContext("2d").drawImage(t,0,0,n.width,n.height),n},Un={style:{width:"100%"},class:"su-attachment-wrapper"},eo={style:{display:"flex","font-weight":"700",color:"#000"}},to={style:{display:"flex","justify-content":"space-evenly"}},no={name:"SuAttachment"},oo=o.defineComponent({...no,props:{baseUrl:null,sourceTable:{default:""},sourceId:{default:""},dataStatus:{default:"detail"},title:null,watermarkCode:{default:""},maxHeight:{default:200},showTitle:{type:Boolean,default:!0}},setup(e){const t=e,n=o.ref(null),i=o.getCurrentInstance(),a=i.appContext.config.globalProperties.$serviceApi,l=i.appContext.config.globalProperties.$viewerApi,r="/ufil/v1/attachment",s=["png","jpg","jpeg","webp","gif"];let c;const d=[{field:"fileName",title:"message.fileName"},{field:"fileSize",title:"message.fileSize"},{field:"createdBy",title:"message.createdByName"},{field:"creationDate",title:"message.creationDate"},{field:"operate",title:"message.operate",slots:{default:"operate"},width:180}],u=["xlsx","xls","docx","png","jpg","jpeg","webp","gif","pdf","pptx","txt","zip","rar","svg"],f=o.reactive({border:!0,loading:!1,maxHeight:t.maxHeight,pagerConfig:{},toolbarConfig:{enabled:t.showTitle,slots:{buttons:"toolbar_buttons"},import:t.dataStatus!=="detail"},importConfig:{remote:!0,types:u,modes:["insert"],async importMethod({file:p}){const N=p.name.split(".").pop();let y=p;t.watermarkCode&&c.watermarkTrigger==="upload"&&s.includes(N)&&(y=await Kn(p,c));const E=new FormData,D=n.value;E.append("file",y);const g={"Content-Type":"multipart/form-data"};return a.post("/ufil/file/uploadMultipart",E,{headers:g}).then(async x=>{const w={realpath:x,fileName:p.name,fileSize:p.size,fileExtend:N,sourceTable:t.sourceTable,sourceId:t.sourceId};await a.post(r,[w]),D.commitProxy("query")}).catch(()=>{Ie.VXETable.modal.message({content:"导入失败,请检查数据是否正确!",status:"error"})})}},proxyConfig:{ajax:{query:({page:p,form:N})=>{const y=Object.assign({},N);return y.pageNum=p.currentPage,y.pageSize=p.pageSize,y.sourceTable=t.sourceTable,y.sourceId=t.sourceId,t.sourceId?a.get(r,y):null}}},columns:d}),v=async p=>{try{f.loading=!0,await a.delete(r,[p]),n.value.commitProxy("query")}finally{f.loading=!1}},b=async()=>{const p="/ufile/v1/fileWatermark/selectFileWatermark",N=await a.get(p,{watermarkCode:t.watermarkCode});c=N==null?void 0:N.list[0],c.watermarkType==="1"?c.content=$.toDateString(new Date,"yyyy-MM-dd"):c.watermarkType==="2"?c.content=$.toDateString(new Date,"yyyy-MM-dd hh:mm:ss"):c.watermarkType==="0"&&(c.content="")},S=async()=>{const p=n.value.getData().filter(y=>s.includes(y.fileExtend)),N=[];(c==null?void 0:c.watermarkTrigger)=="preview"?await p.forEachSync(async y=>{const E=`${t.baseUrl}/ufil${y.realpath}}`,D=await Qn(E,c);N.push({src:D,"data-source":D})}):p.forEach(y=>{const E=`${t.baseUrl}/ufil${y.realpath}`;console.log(E),N.push({src:E,"data-source":E})}),l({options:{toolbar:!0,url:"data-source"},images:N})},h=p=>{const N=t.baseUrl+"/ufil"+p.realpath,y=document.createElement("a");y.style.display="none";const E=p.fileName.split(".");y.href=N,y.setAttribute("download",E[0]),document.body.appendChild(y),y.click(),document.body.removeChild(y)};return Array.prototype.forEachSync=async function(p){for(const[N,y]of Object.entries(this))await p(y,N,this)},o.onMounted(()=>{t.watermarkCode&&b()}),(p,N)=>{const y=o.resolveComponent("SuDivider"),E=o.resolveComponent("su-button"),D=o.resolveComponent("vxe-grid");return o.openBlock(),o.createElementBlock("div",Un,[o.createVNode(D,o.mergeProps({ref_key:"xGrid",ref:n},f),o.createSlots({operate:o.withCtx(({row:g})=>[o.createElementVNode("div",to,[o.createVNode(E,{disabled:e.dataStatus==="detail",status:"danger",icon:"ri-delete-bin-5-fill",content:"DEL",onClick:x=>v(g)},null,8,["disabled","onClick"]),["png","jpeg","jpg"].includes(g.fileExtend)?(o.openBlock(),o.createBlock(E,{key:0,icon:"ri-search-line",content:"PREVIEW",onClick:N[0]||(N[0]=x=>S())})):(o.openBlock(),o.createBlock(E,{key:1,icon:"ri-download-2-fill",content:"DOWNLOAD",onClick:x=>h(g)},null,8,["onClick"]))])]),_:2},[e.showTitle?{name:"toolbar_buttons",fn:o.withCtx(()=>[o.createElementVNode("div",eo,[o.createVNode(y,{title:e.title||p.$t("message.attachmentInfo")},null,8,["title"])])]),key:"0"}:void 0]),1040)])}}}),Wa="",qt=F.withInstall(oo);var io=20,ao=1,Ae=1e6,Gt=1e6,lo=-7,ro=21,so=!1,Qe="[big.js] ",Pe=Qe+"Invalid ",dt=Pe+"decimal places",co=Pe+"rounding mode",Kt=Qe+"Division by zero",K={},_e=void 0,fo=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Jt(){function e(t){var n=this;if(!(n instanceof e))return t===_e?Jt():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(Pe+"value");t=t===0&&1/t<0?"-0":String(t)}uo(n,t)}n.constructor=e}return e.prototype=K,e.DP=io,e.RM=ao,e.NE=lo,e.PE=ro,e.strict=so,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function uo(e,t){var n,i,a;if(!fo.test(t))throw Error(Pe+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),a=t.length,i=0;i<a&&t.charAt(i)=="0";)++i;if(i==a)e.c=[e.e=0];else{for(;a>0&&t.charAt(--a)=="0";);for(e.e=n-i-1,e.c=[],n=0;i<=a;)e.c[n++]=+t.charAt(i++)}return e}function Oe(e,t,n,i){var a=e.c;if(n===_e&&(n=e.constructor.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(co);if(t<1)i=n===3&&(i||!!a[0])||t===0&&(n===1&&a[0]>=5||n===2&&(a[0]>5||a[0]===5&&(i||a[1]!==_e))),a.length=1,i?(e.e=e.e-t+1,a[0]=1):a[0]=e.e=0;else if(t<a.length){if(i=n===1&&a[t]>=5||n===2&&(a[t]>5||a[t]===5&&(i||a[t+1]!==_e||a[t-1]&1))||n===3&&(i||!!a[0]),a.length=t,i){for(;++a[--t]>9;)if(a[t]=0,t===0){++e.e,a.unshift(1);break}}for(t=a.length;!a[--t];)a.pop()}return e}function ze(e,t,n){var i=e.e,a=e.c.join(""),l=a.length;if(t)a=a.charAt(0)+(l>1?"."+a.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)a="0"+a;a="0."+a}else if(i>0)if(++i>l)for(i-=l;i--;)a+="0";else i<l&&(a=a.slice(0,i)+"."+a.slice(i));else l>1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&n?"-"+a:a}K.abs=function(){var e=new this.constructor(this);return e.s=1,e},K.cmp=function(e){var t,n=this,i=n.c,a=(e=new n.constructor(e)).c,l=n.s,r=e.s,s=n.e,c=e.e;if(!i[0]||!a[0])return i[0]?l:a[0]?-r:0;if(l!=r)return l;if(t=l<0,s!=c)return s>c^t?1:-1;for(r=(s=i.length)<(c=a.length)?s:c,l=-1;++l<r;)if(i[l]!=a[l])return i[l]>a[l]^t?1:-1;return s==c?0:s>c^t?1:-1},K.div=function(e){var t=this,n=t.constructor,i=t.c,a=(e=new n(e)).c,l=t.s==e.s?1:-1,r=n.DP;if(r!==~~r||r<0||r>Ae)throw Error(dt);if(!a[0])throw Error(Kt);if(!i[0])return e.s=l,e.c=[e.e=0],e;var s,c,d,u,f,v=a.slice(),b=s=a.length,S=i.length,h=i.slice(0,s),p=h.length,N=e,y=N.c=[],E=0,D=r+(N.e=t.e-e.e)+1;for(N.s=l,l=D<0?0:D,v.unshift(0);p++<s;)h.push(0);do{for(d=0;d<10;d++){if(s!=(p=h.length))u=s>p?1:-1;else for(f=-1,u=0;++f<s;)if(a[f]!=h[f]){u=a[f]>h[f]?1:-1;break}if(u<0){for(c=p==s?a:v;p;){if(h[--p]<c[p]){for(f=p;f&&!h[--f];)h[f]=9;--h[f],h[p]+=10}h[p]-=c[p]}for(;!h[0];)h.shift()}else break}y[E++]=u?d:++d,h[0]&&u?h[p]=i[b]||0:h=[i[b]]}while((b++<S||h[0]!==_e)&&l--);return!y[0]&&E!=1&&(y.shift(),N.e--,D--),E>D&&Oe(N,D,n.RM,h[0]!==_e),N},K.eq=function(e){return this.cmp(e)===0},K.gt=function(e){return this.cmp(e)>0},K.gte=function(e){return this.cmp(e)>-1},K.lt=function(e){return this.cmp(e)<0},K.lte=function(e){return this.cmp(e)<1},K.minus=K.sub=function(e){var t,n,i,a,l=this,r=l.constructor,s=l.s,c=(e=new r(e)).s;if(s!=c)return e.s=-c,l.plus(e);var d=l.c.slice(),u=l.e,f=e.c,v=e.e;if(!d[0]||!f[0])return f[0]?e.s=-c:d[0]?e=new r(l):e.s=1,e;if(s=u-v){for((a=s<0)?(s=-s,i=d):(v=u,i=f),i.reverse(),c=s;c--;)i.push(0);i.reverse()}else for(n=((a=d.length<f.length)?d:f).length,s=c=0;c<n;c++)if(d[c]!=f[c]){a=d[c]<f[c];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),(c=(n=f.length)-(t=d.length))>0)for(;c--;)d[t++]=0;for(c=t;n>s;){if(d[--n]<f[n]){for(t=n;t&&!d[--t];)d[t]=9;--d[t],d[n]+=10}d[n]-=f[n]}for(;d[--c]===0;)d.pop();for(;d[0]===0;)d.shift(),--v;return d[0]||(e.s=1,d=[v=0]),e.c=d,e.e=v,e},K.mod=function(e){var t,n=this,i=n.constructor,a=n.s,l=(e=new i(e)).s;if(!e.c[0])throw Error(Kt);return n.s=e.s=1,t=e.cmp(n)==1,n.s=a,e.s=l,t?new i(n):(a=i.DP,l=i.RM,i.DP=i.RM=0,n=n.div(e),i.DP=a,i.RM=l,this.minus(n.times(e)))},K.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},K.plus=K.add=function(e){var t,n,i,a=this,l=a.constructor;if(e=new l(e),a.s!=e.s)return e.s=-e.s,a.minus(e);var r=a.e,s=a.c,c=e.e,d=e.c;if(!s[0]||!d[0])return d[0]||(s[0]?e=new l(a):e.s=a.s),e;if(s=s.slice(),t=r-c){for(t>0?(c=r,i=d):(t=-t,i=s),i.reverse();t--;)i.push(0);i.reverse()}for(s.length-d.length<0&&(i=d,d=s,s=i),t=d.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+d[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;s[--t]===0;)s.pop();return e.c=s,e.e=c,e},K.pow=function(e){var t=this,n=new t.constructor("1"),i=n,a=e<0;if(e!==~~e||e<-Gt||e>Gt)throw Error(Pe+"exponent");for(a&&(e=-e);e&1&&(i=i.times(t)),e>>=1,!!e;)t=t.times(t);return a?n.div(i):i},K.prec=function(e,t){if(e!==~~e||e<1||e>Ae)throw Error(Pe+"precision");return Oe(new this.constructor(this),e,t)},K.round=function(e,t){if(e===_e)e=0;else if(e!==~~e||e<-Ae||e>Ae)throw Error(dt);return Oe(new this.constructor(this),e+this.e+1,t)},K.sqrt=function(){var e,t,n,i=this,a=i.constructor,l=i.s,r=i.e,s=new a("0.5");if(!i.c[0])return new a(i);if(l<0)throw Error(Qe+"No square root");l=Math.sqrt(i+""),l===0||l===1/0?(t=i.c.join(""),t.length+r&1||(t+="0"),l=Math.sqrt(t),r=((r+1)/2|0)-(r<0||r&1),e=new a((l==1/0?"5e":(l=l.toExponential()).slice(0,l.indexOf("e")+1))+r)):e=new a(l+""),r=e.e+(a.DP+=4);do n=e,e=s.times(n.plus(i.div(n)));while(n.c.slice(0,r).join("")!==e.c.slice(0,r).join(""));return Oe(e,(a.DP-=4)+e.e+1,a.RM)},K.times=K.mul=function(e){var t,n=this,i=n.constructor,a=n.c,l=(e=new i(e)).c,r=a.length,s=l.length,c=n.e,d=e.e;if(e.s=n.s==e.s?1:-1,!a[0]||!l[0])return e.c=[e.e=0],e;for(e.e=c+d,r<s&&(t=a,a=l,l=t,d=r,r=s,s=d),t=new Array(d=r+s);d--;)t[d]=0;for(c=s;c--;){for(s=0,d=r+c;d>c;)s=t[d]+l[c]*a[d-c-1]+s,t[d--]=s%10,s=s/10|0;t[d]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},K.toExponential=function(e,t){var n=this,i=n.c[0];if(e!==_e){if(e!==~~e||e<0||e>Ae)throw Error(dt);for(n=Oe(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return ze(n,!0,!!i)},K.toFixed=function(e,t){var n=this,i=n.c[0];if(e!==_e){if(e!==~~e||e<0||e>Ae)throw Error(dt);for(n=Oe(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return ze(n,!1,!!i)},K[Symbol.for("nodejs.util.inspect.custom")]=K.toJSON=K.toString=function(){var e=this,t=e.constructor;return ze(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},K.toNumber=function(){var e=Number(ze(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(Qe+"Imprecise conversion");return e},K.toPrecision=function(e,t){var n=this,i=n.constructor,a=n.c[0];if(e!==_e){if(e!==~~e||e<1||e>Ae)throw Error(Pe+"precision");for(n=Oe(new i(n),e,t);n.c.length<e;)n.c.push(0)}return ze(n,e<=n.e||n.e<=i.NE||n.e>=i.PE,!!a)},K.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(Qe+"valueOf disallowed");return ze(e,e.e<=t.NE||e.e>=t.PE,!0)};var mo=Jt();const ho=["onUpdate:modelValue"],go={key:3},po={key:4},yo={name:"SuUpload"},wo=o.defineComponent({...yo,props:{extParam:{default:()=>({})},options:{default:()=>({})},columns:{default:()=>[]},templateData:{default:()=>[]},serviceCode:null,url:null,sourceList:{default:"list"}},emits:["onClose","onConfirm"],setup(e,{emit:t}){const n=e,a=o.getCurrentInstance().appContext.config.globalProperties.$serviceApi,l=o.ref(!1);let r=o.reactive({filename:"数据模板",errorField:"errorMsg",errListField:"list"});const s=F.storageLocal.getItem("kLov"),c=()=>{const m=n.columns.map(C=>(C.slots={default:C.field},C.title=C.field,C)),_={type:"checkbox",width:40,align:"center",fixed:"left"};return m.unshift(_),m},d=o.ref({pageSize:200,currentPage:1,total:0}),u=["Sizes","PrevJump","PrevPage","Number","NextPage","NextJump","FullJump","Total"],f=window.innerHeight-90,v=o.ref();let b=[];const S={mode:"covering",types:["csv","xlsx"],afterImportMethod:y},h=o.reactive({border:!0,height:f,data:[],importConfig:S,showOverflow:!0,loading:!1,toolbarConfig:{buttons:[{code:"import_plus",name:"导入",icon:"ri-upload-2-line",status:"primary"},{code:"save_plus",name:"保存",icon:"ri-save-3-line",status:"success"},{code:"del_plus",name:"删除",icon:"ri-delete-bin-line",status:"danger"},{code:"export_plus",name:"模板下载",icon:"ri-download-2-line",status:"warning"}],tools:[{code:"question",name:"常见问题",status:"primary",icon:"vxe-icon-info-circle-fill"},{code:"replay",name:"返回",status:"info",icon:"vxe-icon-undo"}]},columns:c()}),p={toolbarButtonClick({code:m}){switch(m){case"import_plus":{N();break}case"save_plus":{x();break}case"del_plus":{w();break}case"export_plus":{g();break}}},toolbarToolClick({code:m}){switch(m){case"replay":{k();break}case"question":{I();break}}}},N=()=>{var m;b=[],(m=v.value)==null||m.openImport()};function y(m){b=m.$table.getTableData().fullData,c().filter(C=>!C.type&&C.mapField!==n.options.errorField).forEach(C=>{const T=b.findIndex(V=>V[C.field]===C.field);T!==-1&&b.splice(T,1)}),n.columns.forEach(C=>{(C.dateFormatter||C.valueType==="number")&&b.forEach(T=>{C.dateFormatter?T[C.field]=$.toDateString(T[C.field],C.dateFormatter||"yyyy-MM-dd hh:mm:ss"):T[C.field]=mo(T[C.field]).toFixed(C.decimal||6)})}),d.value.total=b.length,E()}const E=()=>{const{currentPage:m,pageSize:_}=d.value;h.data=b.filter((C,T)=>T<_*m&&T>=_*(m-1))},D=({currentPage:m,pageSize:_})=>{d.value.currentPage=m,d.value.pageSize=_,E()},g=()=>{var C;const m=[];if(n.templateData.length)m.push(...n.templateData);else{const T={};c().filter(V=>V.type!=="checkbox").forEach(V=>{T[V.field]="案例"}),m.push(T)}const _={filename:r.filename,type:"xlsx",columns:c().filter(T=>T.mapField!==r.errorField&&T.type!=="checkbox"),data:m};(C=v.value)==null||C.exportData(_)},x=async()=>{if(!b.length)return F.warnMessage("系统检测到数据列表为空,请确认!!!");if(await Ie.modal.confirm("您确定要导入数据吗?")==="confirm"){h.loading=!0;const{serviceCode:_,url:C}=n;O("toSave"),a[C?"post":"zuul"](C||_,b).then(V=>{(V==null?void 0:V.status)==="error"||V!=null&&V.length?(l.value=!0,B(V!=null&&V.length?V:V[r.errListField||n.sourceList]),Ie.modal.message({content:"数据导入失败,请往下滚动以便查看错误信息",status:"error"})):(Ie.modal.message({content:"数据导入成功",status:"success"}),k())}).finally(()=>{l.value=!1,h.loading=!1})}},w=()=>{var _;const m=(_=v.value)==null?void 0:_.getCheckboxRecords();if(!(m!=null&&m.length))return Ie.modal.message({content:"至少选择一条数据",status:"warning"});m.forEach(C=>{const T=b.findIndex(V=>V._X_ROW_KEY===C._X_ROW_KEY);T!==-1&&b.splice(T,1)}),h.data=b},B=m=>{d.value.total=m.length,b=m.map((_,C)=>(_._X_ROW_KEY=C,_)),O("toShow"),E()},O=m=>{h.columns.forEach(_=>{if(m==="toSave"){const C=F.cookies.get("kCookies_param")?JSON.parse(F.cookies.get("kCookies_param")):{};b.forEach(T=>{T[_.mapField]=T[_.field],Object.assign(T,C,n.extParam)})}else b.forEach(C=>{C[_.field]=C[_.mapField]})})},I=()=>{const m=`
|
|
1
|
+
(function(Q,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("vue-i18n"),require("xe-utils"),require("@utogether/utils"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","vue-i18n","xe-utils","@utogether/utils","vxe-table"],o):(Q=typeof globalThis<"u"?globalThis:Q||self,o(Q["@utogether/components"]={},Q.vue,Q.vueI18n,Q.xeUtils,Q.utils,Q.VXETable))})(this,function(Q,o,Me,$,F,Ie){"use strict";const Wn={key:1,class:"inline-block su-popconfirm",style:{"margin-left":"6px"}},jn={name:"SuButton"},Hn=o.defineComponent({...jn,props:{content:null,type:null,mode:{default:"primary"},status:{default:"primary"},icon:null,disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},auth:null,title:{default:"确定继续操作?"}},emits:["tap","confirm","onCancel"],setup(e,{emit:t}){const n=e,a=o.getCurrentInstance().appContext.config.globalProperties.$hasAuthority,{t:l}=Me.useI18n(),r=o.computed(()=>{let f=n==null?void 0:n.icon;return f!=null&&f.includes("fa")&&(f=`fa ${n.icon}`),{icon:f,content:l(`message.${n.content}`)}}),s=f=>{var v,b,S;return(v=n.content)!=null&&v.toLowerCase().includes("print")?"ri-printer-line":(b=n.content)!=null&&b.toLowerCase().includes("look")?"ri-eye-line":(S=n.content)!=null&&S.toLowerCase().includes("del")?"ri-delete-bin-line":"ri-edit-box-line"},c=$.throttle(()=>{t("confirm")},3e3),d=()=>{t("onCancel")},u=$.throttle(()=>{n.disabled||n.auth&&!a(n.auth)||t("tap")},3e3);return(f,v)=>{const b=o.resolveComponent("vxe-button"),S=o.resolveComponent("el-popconfirm");return e.mode==="primary"&&!e.hidden?(o.openBlock(),o.createBlock(b,{key:0,disabled:e.auth&&!o.unref(a)(e.auth)||e.disabled,status:e.status,type:e.type,content:o.unref(r).content,icon:`${o.unref(r).icon||s(o.unref(r))} ri-1x`,loading:e.loading,onClick:o.unref(u)},null,8,["disabled","status","type","content","icon","loading","onClick"])):e.mode==="pop"&&!e.hidden?(o.openBlock(),o.createElementBlock("div",Wn,[o.createVNode(S,{"confirm-button-text":f.$t("message.CONFIRM"),"cancel-button-text":f.$t("message.CANCEL"),"icon-color":"#E6A23C",teleported:!1,title:e.title,onConfirm:o.unref(c),onCancel:d},{reference:o.withCtx(()=>[o.createVNode(b,{disabled:e.auth&&!o.unref(a)(e.auth)||e.disabled,status:e.status,type:e.type,content:o.unref(r).content,icon:`${o.unref(r).icon||s(o.unref(r))} ri-1x`,loading:e.loading},null,8,["disabled","status","type","content","icon","loading"])]),_:1},8,["confirm-button-text","cancel-button-text","title","onConfirm"])])):o.createCommentVNode("",!0)}}}),Ra="",Ht=F.withInstall(Hn);function Je(e,t){return e.then(function(n){return[null,n]}).catch(function(n){return t&&Object.assign(n,t),[n,void 0]})}const Yn={class:"su-lov-wrapper"},Xn={style:{height:"360px"}},qn={name:"SuLov"},Gn=o.defineComponent({...qn,props:{record:{default:()=>({})},fetchParam:{default:()=>({})},code:null,field:null,displayName:null,placeholder:{default:"请选择"},mode:{default:"vxe"},clearable:{type:Boolean,default:!0},isMulti:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoLoad:{type:Boolean,default:!0},readonly:{type:Boolean,default:!0}},emits:["clear","change"],setup(e,{emit:t}){const n=e,a=o.getCurrentInstance().appContext.config.globalProperties.$serviceApi,l=600,r=o.ref(!1),s=o.ref(l),c=o.ref(""),d=o.reactive({loading:!1,border:!0,pagerConfig:{},formConfig:{titleWidth:90,titleAlign:"right",items:[]},height:"auto",editConfig:{},rowConfig:{keyField:"_X_ROW_KEY"},proxyConfig:{form:!0,autoLoad:!1,props:{result:"list",total:"total"},ajax:{query:({page:k,form:m})=>{const _=F.cookies.get("kCookies_param")?JSON.parse(F.cookies.get("kCookies_param")):{};let C=Object.assign({},m,_,n.fetchParam);if(C.pageNum=k.currentPage,C.pageSize=k.pageSize,!n.readonly){const{field:T,displayName:V}=n;C[V||T]=n.record[V||T]}return C=b(C),f.lovType!=="url"?(C.lovCode=n.code,a.get("/upfm/v1/lovViewHeader/listBySql",C)):a.get(f.lovUrl,C)}}},checkboxConfig:{},columns:[]}),u=o.ref(null);let f,v=[];const b=k=>(v.filter(_=>["date","month"].includes(_.fieldType)&&_.isSearch).forEach(_=>{_.fieldType==="date"?k[_.field]=$.toDateString(k[_.field],"yyyy-MM-dd 00:00:00"):_.fieldType==="month"&&(k[_.field]=$.toDateString(k[_.field],"yyyy-MM"))}),k),S=()=>{const k=$.clone(v,!0).filter(C=>C.isSearch==="Y");if(!k.length)return;const m=k.length>2,_=k.sort((C,T)=>C.seqNo-T.seqNo).map((C,T)=>({field:C.colField,title:C.colTitle,span:8,folding:T>1,itemRender:N(C)}));h.collapseNode=m,m?_.splice(2,0,h):_.push(h),d.formConfig.items=_},h={span:8,align:"right",collapseNode:!1,itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"message.SEARCH",status:"primary",icon:"ri-search-line"}},{props:{type:"reset",content:"message.RESET",status:"info",icon:"ri-refresh-line"}}]}},p=F.useRender(),N=k=>{if(["date","month"].includes(k.fieldType)){const m=k.fieldType==="date"?"yyyy-MM-dd HH:mm:ss":"yyyy-MM";return p.renderDate({type:k.fieldType,valueFormat:m})}else if(k.fieldType==="dictCode")return p.renderDict(k.dictCode);return{name:"$input"}},y=()=>{const k=$.clone(v,!0).filter(_=>_.isCol==="Y"),m=k.reduce((_,C)=>_+ +C.colWidth,65);s.value=m<l?l:m>900?900:m,d.columns=k.sort((_,C)=>_.seqNo-C.seqNo).map(_=>{const C=_.fieldType,T=["formatDict",_.dictCode];return{field:_.colField,title:_.colTitle,minWidth:_.colWidth,formatter:C==="date"?["formatDate"]:_.fieldType==="dictCode"?T:null}}),n.isMulti?d.columns.unshift({type:"checkbox",width:45,align:"center"}):d.columns.unshift({type:"radio",width:45,align:"center"})},E=o.ref(null),D=async()=>{d.loading=!0;const k="/upfm/v1/lovViewHeader/detailByViewCode",[m,_]=await Je(a.get(k,{lovCode:n.code}));d.loading=!1,m&&O(),c.value=_==null?void 0:_.lovTitle,v=_.lineList,f=_,n.autoLoad&&E.value.commitProxy("query"),y(),S()},g=()=>{n.disabled||(D(),r.value=!0)},x=()=>{t("clear","")},w=({row:k})=>{const m=n.isMulti?[k]:k;t("change",m,f.valueField),O()},B=()=>{const k=E.value,m=n.isMulti?k.getCheckboxRecords():k.getRadioRecord();!$.isEmpty(m)&&t("change",m,f.valueField),O()},O=()=>{v.length=0,r.value=!1},I=({type:k})=>{};return(k,m)=>{const _=o.resolveComponent("vxe-grid"),C=o.resolveComponent("vxe-button"),T=o.resolveComponent("vxe-modal"),V=o.resolveComponent("el-dialog"),A=o.resolveComponent("vxe-input");return o.openBlock(),o.createElementBlock("div",Yn,[e.mode==="vxe"?(o.openBlock(),o.createBlock(T,{key:0,modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=P=>r.value=P),width:s.value,"destroy-on-close":!1,title:c.value,height:"80%",resize:"","esc-closable":"","show-footer":"","before-hide-method":I},{default:o.withCtx(()=>[o.createVNode(_,o.mergeProps({ref_key:"xgrid",ref:E},d,{resizable:"",onCellDblclick:w}),null,16)]),footer:o.withCtx(()=>[o.createVNode(C,{content:k.$t("message.CANCEL"),icon:"ri-close-line",status:"warning",onClick:O},null,8,["content"]),o.createVNode(C,{content:k.$t("message.CONFIRM"),icon:"ri-save-3-line",status:"primary",onClick:B},null,8,["content"])]),_:1},8,["modelValue","width","title"])):(o.openBlock(),o.createBlock(V,{key:1,modelValue:r.value,"onUpdate:modelValue":m[1]||(m[1]=P=>r.value=P),width:s.value,"show-close":!1,title:c.value,draggable:"","destroy-on-close":"","close-on-press-escape":""},{default:o.withCtx(()=>[o.createElementVNode("div",Xn,[o.createVNode(_,o.mergeProps({ref_key:"xgrid",ref:E},d,{resizable:"",onCellDblclick:w}),null,16)])]),footer:o.withCtx(()=>[o.createVNode(C,{content:k.$t("message.CANCEL"),icon:"ri-close-line",status:"warning",onClick:O},null,8,["content"]),o.createVNode(C,{content:k.$t("message.CONFIRM"),icon:"ri-save-3-line",status:"primary",onClick:B},null,8,["content"])]),_:1},8,["modelValue","width","title"])),o.createVNode(A,{modelValue:e.record[u.value||e.field],"onUpdate:modelValue":m[2]||(m[2]=P=>e.record[u.value||e.field]=P),clearable:!e.disabled&&e.clearable,disabled:e.disabled,readonly:e.readonly,placeholder:e.placeholder,type:"search",size:"mini",onSearchClick:g,onClear:x},null,8,["modelValue","clearable","disabled","readonly","placeholder"])])}}}),za="",Yt=F.withInstall(Gn);async function Kn(e,t){return new Promise(async(n,i)=>{try{const a=await Jn(e);let l=document.createElement("canvas");l.width=a.naturalWidth,l.height=a.naturalHeight;const r=l.getContext("2d");r.drawImage(a,0,0,l.width,l.height),l=Xt(l,r,t),l.toBlob(s=>n(s))}catch(a){i(a)}})}function Jn(e){return new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{const i=new Image;i.src=n.result,i.addEventListener("load",()=>t(i))}),n.readAsDataURL(e)})}const Xt=(e,t,n)=>{const i=n.content.split(","),{textAlign:a,fontSize:l,color:r,fillOpacity:s,xAxis:c,yAxis:d}=n,u=e.width,f=e.height;t.font=`${l||22}px Microsoft Yahei`,t.lineWidth=1,t.fillStyle=r||"rgba(255, 255, 255, 1)",t.textAlign=a||"left",t.textBaseline="middle",t.globalAlpha=Number(s||1);const v=Number(c),b=Number(d);return i.forEach((S,h)=>{let p=l;n.watermarkType==="1"?p=18:n.watermarkType==="2"&&(p=16);const N=u-S.split("").length*Number(p);t.fillText(S,v||N,b||f-Number(p)-h*25)}),e},Qn=async(e,t)=>{let n=await Zn(e);const i=n.getContext("2d");return n=Xt(n,i,t),n.toDataURL("image/png")},Zn=async e=>{const t=document.createElement("img");t.src=e,t.setAttribute("crossOrigin","anonymous"),await new Promise(i=>t.onload=i);const n=document.createElement("canvas");return n.width=t.naturalWidth||t.width,n.height=t.naturalHeight||t.height,n.getContext("2d").drawImage(t,0,0,n.width,n.height),n},Un={style:{width:"100%"},class:"su-attachment-wrapper"},eo={style:{display:"flex","font-weight":"700",color:"#000"}},to={style:{display:"flex","justify-content":"space-evenly"}},no={name:"SuAttachment"},oo=o.defineComponent({...no,props:{baseUrl:null,sourceTable:{default:""},sourceId:{default:""},dataStatus:{default:"detail"},title:null,watermarkCode:{default:""},maxHeight:{default:200},showTitle:{type:Boolean,default:!0}},setup(e){const t=e,n=o.ref(null),i=o.getCurrentInstance(),a=i.appContext.config.globalProperties.$serviceApi,l=i.appContext.config.globalProperties.$viewerApi,r="/ufil/v1/attachment",s=["png","jpg","jpeg","webp","gif"];let c;const d=[{field:"fileName",title:"message.fileName"},{field:"fileSize",title:"message.fileSize"},{field:"createdBy",title:"message.createdByName"},{field:"creationDate",title:"message.creationDate"},{field:"operate",title:"message.operate",slots:{default:"operate"},width:180}],u=["xlsx","xls","docx","png","jpg","jpeg","webp","gif","pdf","pptx","txt","zip","rar","svg"],f=o.reactive({border:!0,loading:!1,maxHeight:t.maxHeight,pagerConfig:{},toolbarConfig:{enabled:t.showTitle,slots:{buttons:"toolbar_buttons"},import:t.dataStatus!=="detail"},importConfig:{remote:!0,types:u,modes:["insert"],async importMethod({file:p}){const N=p.name.split(".").pop();let y=p;t.watermarkCode&&c.watermarkTrigger==="upload"&&s.includes(N)&&(y=await Kn(p,c));const E=new FormData,D=n.value;E.append("file",y);const g={"Content-Type":"multipart/form-data"};return a.post("/ufil/file/uploadMultipart",E,{headers:g}).then(async x=>{const w={realpath:x,fileName:p.name,fileSize:p.size,fileExtend:N,sourceTable:t.sourceTable,sourceId:t.sourceId};await a.post(r,[w]),D.commitProxy("query")}).catch(()=>{Ie.VXETable.modal.message({content:"导入失败,请检查数据是否正确!",status:"error"})})}},proxyConfig:{ajax:{query:({page:p,form:N})=>{const y=Object.assign({},N);return y.pageNum=p.currentPage,y.pageSize=p.pageSize,y.sourceTable=t.sourceTable,y.sourceId=t.sourceId,t.sourceId?a.get(r,y):null}}},columns:d}),v=async p=>{try{f.loading=!0,await a.delete(r,[p]),n.value.commitProxy("query")}finally{f.loading=!1}},b=async()=>{const p="/upms/v1/watermark/selectByCode",N=await a.get(p,{watermarkCode:t.watermarkCode});c=N==null?void 0:N.list[0],c.watermarkType==="1"?c.content=$.toDateString(new Date,"yyyy-MM-dd"):c.watermarkType==="2"?c.content=$.toDateString(new Date,"yyyy-MM-dd HH:mm:ss"):c.watermarkType==="0"&&(c.content="")},S=async()=>{const p=n.value.getData().filter(y=>s.includes(y.fileExtend)),N=[];(c==null?void 0:c.watermarkTrigger)=="preview"?await p.forEachSync(async y=>{const E=`${t.baseUrl}/ufil${y.realpath}}`,D=await Qn(E,c);N.push({src:D,"data-source":D})}):p.forEach(y=>{const E=`${t.baseUrl}/ufil${y.realpath}`;console.log(E),N.push({src:E,"data-source":E})}),l({options:{toolbar:!0,url:"data-source"},images:N})},h=p=>{const N=t.baseUrl+"/ufil"+p.realpath,y=document.createElement("a");y.style.display="none";const E=p.fileName.split(".");y.href=N,y.setAttribute("download",E[0]),document.body.appendChild(y),y.click(),document.body.removeChild(y)};return Array.prototype.forEachSync=async function(p){for(const[N,y]of Object.entries(this))await p(y,N,this)},o.onMounted(()=>{t.watermarkCode&&b()}),(p,N)=>{const y=o.resolveComponent("SuDivider"),E=o.resolveComponent("su-button"),D=o.resolveComponent("vxe-grid");return o.openBlock(),o.createElementBlock("div",Un,[o.createVNode(D,o.mergeProps({ref_key:"xGrid",ref:n},f),o.createSlots({operate:o.withCtx(({row:g})=>[o.createElementVNode("div",to,[o.createVNode(E,{disabled:e.dataStatus==="detail",status:"danger",icon:"ri-delete-bin-5-fill",content:"DEL",onClick:x=>v(g)},null,8,["disabled","onClick"]),["png","jpeg","jpg"].includes(g.fileExtend)?(o.openBlock(),o.createBlock(E,{key:0,icon:"ri-search-line",content:"PREVIEW",onClick:N[0]||(N[0]=x=>S())})):(o.openBlock(),o.createBlock(E,{key:1,icon:"ri-download-2-fill",content:"DOWNLOAD",onClick:x=>h(g)},null,8,["onClick"]))])]),_:2},[e.showTitle?{name:"toolbar_buttons",fn:o.withCtx(()=>[o.createElementVNode("div",eo,[o.createVNode(y,{title:e.title||p.$t("message.attachmentInfo")},null,8,["title"])])]),key:"0"}:void 0]),1040)])}}}),Wa="",qt=F.withInstall(oo);var io=20,ao=1,Ae=1e6,Gt=1e6,lo=-7,ro=21,so=!1,Qe="[big.js] ",Pe=Qe+"Invalid ",dt=Pe+"decimal places",co=Pe+"rounding mode",Kt=Qe+"Division by zero",K={},_e=void 0,fo=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Jt(){function e(t){var n=this;if(!(n instanceof e))return t===_e?Jt():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(Pe+"value");t=t===0&&1/t<0?"-0":String(t)}uo(n,t)}n.constructor=e}return e.prototype=K,e.DP=io,e.RM=ao,e.NE=lo,e.PE=ro,e.strict=so,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function uo(e,t){var n,i,a;if(!fo.test(t))throw Error(Pe+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),a=t.length,i=0;i<a&&t.charAt(i)=="0";)++i;if(i==a)e.c=[e.e=0];else{for(;a>0&&t.charAt(--a)=="0";);for(e.e=n-i-1,e.c=[],n=0;i<=a;)e.c[n++]=+t.charAt(i++)}return e}function Oe(e,t,n,i){var a=e.c;if(n===_e&&(n=e.constructor.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(co);if(t<1)i=n===3&&(i||!!a[0])||t===0&&(n===1&&a[0]>=5||n===2&&(a[0]>5||a[0]===5&&(i||a[1]!==_e))),a.length=1,i?(e.e=e.e-t+1,a[0]=1):a[0]=e.e=0;else if(t<a.length){if(i=n===1&&a[t]>=5||n===2&&(a[t]>5||a[t]===5&&(i||a[t+1]!==_e||a[t-1]&1))||n===3&&(i||!!a[0]),a.length=t,i){for(;++a[--t]>9;)if(a[t]=0,t===0){++e.e,a.unshift(1);break}}for(t=a.length;!a[--t];)a.pop()}return e}function ze(e,t,n){var i=e.e,a=e.c.join(""),l=a.length;if(t)a=a.charAt(0)+(l>1?"."+a.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)a="0"+a;a="0."+a}else if(i>0)if(++i>l)for(i-=l;i--;)a+="0";else i<l&&(a=a.slice(0,i)+"."+a.slice(i));else l>1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&n?"-"+a:a}K.abs=function(){var e=new this.constructor(this);return e.s=1,e},K.cmp=function(e){var t,n=this,i=n.c,a=(e=new n.constructor(e)).c,l=n.s,r=e.s,s=n.e,c=e.e;if(!i[0]||!a[0])return i[0]?l:a[0]?-r:0;if(l!=r)return l;if(t=l<0,s!=c)return s>c^t?1:-1;for(r=(s=i.length)<(c=a.length)?s:c,l=-1;++l<r;)if(i[l]!=a[l])return i[l]>a[l]^t?1:-1;return s==c?0:s>c^t?1:-1},K.div=function(e){var t=this,n=t.constructor,i=t.c,a=(e=new n(e)).c,l=t.s==e.s?1:-1,r=n.DP;if(r!==~~r||r<0||r>Ae)throw Error(dt);if(!a[0])throw Error(Kt);if(!i[0])return e.s=l,e.c=[e.e=0],e;var s,c,d,u,f,v=a.slice(),b=s=a.length,S=i.length,h=i.slice(0,s),p=h.length,N=e,y=N.c=[],E=0,D=r+(N.e=t.e-e.e)+1;for(N.s=l,l=D<0?0:D,v.unshift(0);p++<s;)h.push(0);do{for(d=0;d<10;d++){if(s!=(p=h.length))u=s>p?1:-1;else for(f=-1,u=0;++f<s;)if(a[f]!=h[f]){u=a[f]>h[f]?1:-1;break}if(u<0){for(c=p==s?a:v;p;){if(h[--p]<c[p]){for(f=p;f&&!h[--f];)h[f]=9;--h[f],h[p]+=10}h[p]-=c[p]}for(;!h[0];)h.shift()}else break}y[E++]=u?d:++d,h[0]&&u?h[p]=i[b]||0:h=[i[b]]}while((b++<S||h[0]!==_e)&&l--);return!y[0]&&E!=1&&(y.shift(),N.e--,D--),E>D&&Oe(N,D,n.RM,h[0]!==_e),N},K.eq=function(e){return this.cmp(e)===0},K.gt=function(e){return this.cmp(e)>0},K.gte=function(e){return this.cmp(e)>-1},K.lt=function(e){return this.cmp(e)<0},K.lte=function(e){return this.cmp(e)<1},K.minus=K.sub=function(e){var t,n,i,a,l=this,r=l.constructor,s=l.s,c=(e=new r(e)).s;if(s!=c)return e.s=-c,l.plus(e);var d=l.c.slice(),u=l.e,f=e.c,v=e.e;if(!d[0]||!f[0])return f[0]?e.s=-c:d[0]?e=new r(l):e.s=1,e;if(s=u-v){for((a=s<0)?(s=-s,i=d):(v=u,i=f),i.reverse(),c=s;c--;)i.push(0);i.reverse()}else for(n=((a=d.length<f.length)?d:f).length,s=c=0;c<n;c++)if(d[c]!=f[c]){a=d[c]<f[c];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),(c=(n=f.length)-(t=d.length))>0)for(;c--;)d[t++]=0;for(c=t;n>s;){if(d[--n]<f[n]){for(t=n;t&&!d[--t];)d[t]=9;--d[t],d[n]+=10}d[n]-=f[n]}for(;d[--c]===0;)d.pop();for(;d[0]===0;)d.shift(),--v;return d[0]||(e.s=1,d=[v=0]),e.c=d,e.e=v,e},K.mod=function(e){var t,n=this,i=n.constructor,a=n.s,l=(e=new i(e)).s;if(!e.c[0])throw Error(Kt);return n.s=e.s=1,t=e.cmp(n)==1,n.s=a,e.s=l,t?new i(n):(a=i.DP,l=i.RM,i.DP=i.RM=0,n=n.div(e),i.DP=a,i.RM=l,this.minus(n.times(e)))},K.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},K.plus=K.add=function(e){var t,n,i,a=this,l=a.constructor;if(e=new l(e),a.s!=e.s)return e.s=-e.s,a.minus(e);var r=a.e,s=a.c,c=e.e,d=e.c;if(!s[0]||!d[0])return d[0]||(s[0]?e=new l(a):e.s=a.s),e;if(s=s.slice(),t=r-c){for(t>0?(c=r,i=d):(t=-t,i=s),i.reverse();t--;)i.push(0);i.reverse()}for(s.length-d.length<0&&(i=d,d=s,s=i),t=d.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+d[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;s[--t]===0;)s.pop();return e.c=s,e.e=c,e},K.pow=function(e){var t=this,n=new t.constructor("1"),i=n,a=e<0;if(e!==~~e||e<-Gt||e>Gt)throw Error(Pe+"exponent");for(a&&(e=-e);e&1&&(i=i.times(t)),e>>=1,!!e;)t=t.times(t);return a?n.div(i):i},K.prec=function(e,t){if(e!==~~e||e<1||e>Ae)throw Error(Pe+"precision");return Oe(new this.constructor(this),e,t)},K.round=function(e,t){if(e===_e)e=0;else if(e!==~~e||e<-Ae||e>Ae)throw Error(dt);return Oe(new this.constructor(this),e+this.e+1,t)},K.sqrt=function(){var e,t,n,i=this,a=i.constructor,l=i.s,r=i.e,s=new a("0.5");if(!i.c[0])return new a(i);if(l<0)throw Error(Qe+"No square root");l=Math.sqrt(i+""),l===0||l===1/0?(t=i.c.join(""),t.length+r&1||(t+="0"),l=Math.sqrt(t),r=((r+1)/2|0)-(r<0||r&1),e=new a((l==1/0?"5e":(l=l.toExponential()).slice(0,l.indexOf("e")+1))+r)):e=new a(l+""),r=e.e+(a.DP+=4);do n=e,e=s.times(n.plus(i.div(n)));while(n.c.slice(0,r).join("")!==e.c.slice(0,r).join(""));return Oe(e,(a.DP-=4)+e.e+1,a.RM)},K.times=K.mul=function(e){var t,n=this,i=n.constructor,a=n.c,l=(e=new i(e)).c,r=a.length,s=l.length,c=n.e,d=e.e;if(e.s=n.s==e.s?1:-1,!a[0]||!l[0])return e.c=[e.e=0],e;for(e.e=c+d,r<s&&(t=a,a=l,l=t,d=r,r=s,s=d),t=new Array(d=r+s);d--;)t[d]=0;for(c=s;c--;){for(s=0,d=r+c;d>c;)s=t[d]+l[c]*a[d-c-1]+s,t[d--]=s%10,s=s/10|0;t[d]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},K.toExponential=function(e,t){var n=this,i=n.c[0];if(e!==_e){if(e!==~~e||e<0||e>Ae)throw Error(dt);for(n=Oe(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return ze(n,!0,!!i)},K.toFixed=function(e,t){var n=this,i=n.c[0];if(e!==_e){if(e!==~~e||e<0||e>Ae)throw Error(dt);for(n=Oe(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return ze(n,!1,!!i)},K[Symbol.for("nodejs.util.inspect.custom")]=K.toJSON=K.toString=function(){var e=this,t=e.constructor;return ze(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},K.toNumber=function(){var e=Number(ze(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(Qe+"Imprecise conversion");return e},K.toPrecision=function(e,t){var n=this,i=n.constructor,a=n.c[0];if(e!==_e){if(e!==~~e||e<1||e>Ae)throw Error(Pe+"precision");for(n=Oe(new i(n),e,t);n.c.length<e;)n.c.push(0)}return ze(n,e<=n.e||n.e<=i.NE||n.e>=i.PE,!!a)},K.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(Qe+"valueOf disallowed");return ze(e,e.e<=t.NE||e.e>=t.PE,!0)};var mo=Jt();const ho=["onUpdate:modelValue"],go={key:3},po={key:4},yo={name:"SuUpload"},wo=o.defineComponent({...yo,props:{extParam:{default:()=>({})},options:{default:()=>({})},columns:{default:()=>[]},templateData:{default:()=>[]},serviceCode:null,url:null,sourceList:{default:"list"}},emits:["onClose","onConfirm"],setup(e,{emit:t}){const n=e,a=o.getCurrentInstance().appContext.config.globalProperties.$serviceApi,l=o.ref(!1);let r=o.reactive({filename:"数据模板",errorField:"errorMsg",errListField:"list"});const s=F.storageLocal.getItem("kLov"),c=()=>{const m=n.columns.map(C=>(C.slots={default:C.field},C.title=C.field,C)),_={type:"checkbox",width:40,align:"center",fixed:"left"};return m.unshift(_),m},d=o.ref({pageSize:200,currentPage:1,total:0}),u=["Sizes","PrevJump","PrevPage","Number","NextPage","NextJump","FullJump","Total"],f=window.innerHeight-90,v=o.ref();let b=[];const S={mode:"covering",types:["csv","xlsx"],afterImportMethod:y},h=o.reactive({border:!0,height:f,data:[],importConfig:S,showOverflow:!0,loading:!1,toolbarConfig:{buttons:[{code:"import_plus",name:"导入",icon:"ri-upload-2-line",status:"primary"},{code:"save_plus",name:"保存",icon:"ri-save-3-line",status:"success"},{code:"del_plus",name:"删除",icon:"ri-delete-bin-line",status:"danger"},{code:"export_plus",name:"模板下载",icon:"ri-download-2-line",status:"warning"}],tools:[{code:"question",name:"常见问题",status:"primary",icon:"vxe-icon-info-circle-fill"},{code:"replay",name:"返回",status:"info",icon:"vxe-icon-undo"}]},columns:c()}),p={toolbarButtonClick({code:m}){switch(m){case"import_plus":{N();break}case"save_plus":{x();break}case"del_plus":{w();break}case"export_plus":{g();break}}},toolbarToolClick({code:m}){switch(m){case"replay":{k();break}case"question":{I();break}}}},N=()=>{var m;b=[],(m=v.value)==null||m.openImport()};function y(m){b=m.$table.getTableData().fullData,c().filter(C=>!C.type&&C.mapField!==n.options.errorField).forEach(C=>{const T=b.findIndex(V=>V[C.field]===C.field);T!==-1&&b.splice(T,1)}),n.columns.forEach(C=>{(C.dateFormatter||C.valueType==="number")&&b.forEach(T=>{C.dateFormatter?T[C.field]=$.toDateString(T[C.field],C.dateFormatter||"yyyy-MM-dd HH:mm:ss"):T[C.field]=mo(T[C.field]).toFixed(C.decimal||6)})}),d.value.total=b.length,E()}const E=()=>{const{currentPage:m,pageSize:_}=d.value;h.data=b.filter((C,T)=>T<_*m&&T>=_*(m-1))},D=({currentPage:m,pageSize:_})=>{d.value.currentPage=m,d.value.pageSize=_,E()},g=()=>{var C;const m=[];if(n.templateData.length)m.push(...n.templateData);else{const T={};c().filter(V=>V.type!=="checkbox").forEach(V=>{T[V.field]="案例"}),m.push(T)}const _={filename:r.filename,type:"xlsx",columns:c().filter(T=>T.mapField!==r.errorField&&T.type!=="checkbox"),data:m};(C=v.value)==null||C.exportData(_)},x=async()=>{if(!b.length)return F.warnMessage("系统检测到数据列表为空,请确认!!!");if(await Ie.modal.confirm("您确定要导入数据吗?")==="confirm"){h.loading=!0;const{serviceCode:_,url:C}=n;O("toSave"),a[C?"post":"zuul"](C||_,b).then(V=>{(V==null?void 0:V.status)==="error"||V!=null&&V.length?(l.value=!0,B(V!=null&&V.length?V:V[r.errListField||n.sourceList]),Ie.modal.message({content:"数据导入失败,请往下滚动以便查看错误信息",status:"error"})):(Ie.modal.message({content:"数据导入成功",status:"success"}),k())}).finally(()=>{l.value=!1,h.loading=!1})}},w=()=>{var _;const m=(_=v.value)==null?void 0:_.getCheckboxRecords();if(!(m!=null&&m.length))return Ie.modal.message({content:"至少选择一条数据",status:"warning"});m.forEach(C=>{const T=b.findIndex(V=>V._X_ROW_KEY===C._X_ROW_KEY);T!==-1&&b.splice(T,1)}),h.data=b},B=m=>{d.value.total=m.length,b=m.map((_,C)=>(_._X_ROW_KEY=C,_)),O("toShow"),E()},O=m=>{h.columns.forEach(_=>{if(m==="toSave"){const C=F.cookies.get("kCookies_param")?JSON.parse(F.cookies.get("kCookies_param")):{};b.forEach(T=>{T[_.mapField]=T[_.field],Object.assign(T,C,n.extParam)})}else b.forEach(C=>{C[_.field]=C[_.mapField]})})},I=()=>{const m=`
|
|
2
2
|
1、数据导入模板的列表题切记不可修改!!!;
|
|
3
3
|
2、单次导入数量应小于5000条;
|
|
4
4
|
3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
|
|
5
5
|
4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行
|
|
6
|
-
`;Ie.modal.alert(m,"温馨提示")},k=()=>{t("onClose")};return o.onMounted(()=>{r=Object.assign(r,n.options)}),(m,_)=>{const C=o.resolveComponent("el-option"),T=o.resolveComponent("el-select"),V=o.resolveComponent("el-date-picker"),A=o.resolveComponent("vxe-pager"),P=o.resolveComponent("vxe-grid");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(P,o.mergeProps({ref_key:"xgrid",ref:v},h,o.toHandlers(p)),o.createSlots({pager:o.withCtx(()=>[o.createVNode(A,{"current-page":d.value.currentPage,"onUpdate:currentPage":_[0]||(_[0]=L=>d.value.currentPage=L),"page-size":d.value.pageSize,"onUpdate:pageSize":_[1]||(_[1]=L=>d.value.pageSize=L),layouts:u,"page-sizes":[200,500,1e3,2e3,5e3,1e4],total:d.value.total,onPageChange:D},null,8,["current-page","page-size","total"])]),_:2},[o.renderList(e.columns,L=>({name:L.field,fn:o.withCtx(({row:J})=>[L.dictCode&&!L.disabled?(o.openBlock(),o.createBlock(T,{key:0,modelValue:J[L.field],"onUpdate:modelValue":Y=>J[L.field]=Y,modelModifiers:{trim:!0},clearable:""},{default:o.withCtx(()=>{var Y;return[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList((Y=o.unref(s)[L.dictCode])==null?void 0:Y.children,le=>(o.openBlock(),o.createBlock(C,{key:le.dictCode,value:le.dictCode,label:le.dictName},null,8,["value","label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue"])):["date","month","datetime"].includes(L.dataType)&&!L.disabled?(o.openBlock(),o.createBlock(V,{key:1,modelValue:J[L.field],"onUpdate:modelValue":Y=>J[L.field]=Y,modelModifiers:{trim:!0},type:L.dataType,"value-format":"YYYY-MM-DD hh:mm:ss"},null,8,["modelValue","onUpdate:modelValue","type"])):!L.da&&!L.disabled?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:2,"onUpdate:modelValue":Y=>J[L.field]=Y,class:"su-input"},null,8,ho)),[[o.vModelText,J[L.field],void 0,{trim:!0}]]):l.value?(o.openBlock(),o.createElementBlock("span",po,o.toDisplayString(J[L.field]),1)):(o.openBlock(),o.createElementBlock("span",go,o.toDisplayString(J[L.field]),1))])}))]),1040)])}}}),ja="",We=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},_o=We(wo,[["__scopeId","data-v-
|
|
6
|
+
`;Ie.modal.alert(m,"温馨提示")},k=()=>{t("onClose")};return o.onMounted(()=>{r=Object.assign(r,n.options)}),(m,_)=>{const C=o.resolveComponent("el-option"),T=o.resolveComponent("el-select"),V=o.resolveComponent("el-date-picker"),A=o.resolveComponent("vxe-pager"),P=o.resolveComponent("vxe-grid");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(P,o.mergeProps({ref_key:"xgrid",ref:v},h,o.toHandlers(p)),o.createSlots({pager:o.withCtx(()=>[o.createVNode(A,{"current-page":d.value.currentPage,"onUpdate:currentPage":_[0]||(_[0]=L=>d.value.currentPage=L),"page-size":d.value.pageSize,"onUpdate:pageSize":_[1]||(_[1]=L=>d.value.pageSize=L),layouts:u,"page-sizes":[200,500,1e3,2e3,5e3,1e4],total:d.value.total,onPageChange:D},null,8,["current-page","page-size","total"])]),_:2},[o.renderList(e.columns,L=>({name:L.field,fn:o.withCtx(({row:J})=>[L.dictCode&&!L.disabled?(o.openBlock(),o.createBlock(T,{key:0,modelValue:J[L.field],"onUpdate:modelValue":Y=>J[L.field]=Y,modelModifiers:{trim:!0},clearable:""},{default:o.withCtx(()=>{var Y;return[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList((Y=o.unref(s)[L.dictCode])==null?void 0:Y.children,le=>(o.openBlock(),o.createBlock(C,{key:le.dictCode,value:le.dictCode,label:le.dictName},null,8,["value","label"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue"])):["date","month","datetime"].includes(L.dataType)&&!L.disabled?(o.openBlock(),o.createBlock(V,{key:1,modelValue:J[L.field],"onUpdate:modelValue":Y=>J[L.field]=Y,modelModifiers:{trim:!0},type:L.dataType,"value-format":"YYYY-MM-DD hh:mm:ss"},null,8,["modelValue","onUpdate:modelValue","type"])):!L.da&&!L.disabled?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:2,"onUpdate:modelValue":Y=>J[L.field]=Y,class:"su-input"},null,8,ho)),[[o.vModelText,J[L.field],void 0,{trim:!0}]]):l.value?(o.openBlock(),o.createElementBlock("span",po,o.toDisplayString(J[L.field]),1)):(o.openBlock(),o.createElementBlock("span",go,o.toDisplayString(J[L.field]),1))])}))]),1040)])}}}),ja="",We=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},_o=We(wo,[["__scopeId","data-v-578697a0"]]),Qt=F.withInstall(_o),bo={class:"su-content"},Co={key:0},vo={class:"su-right-panel"},Eo={class:"su-content-body"},ko={name:"SuContent"},xo=o.defineComponent({...ko,props:{title:{default:""}},emits:["onClose"],setup(e,{emit:t}){const n=o.ref(window.top===window.self),i=()=>{t("onClose")};return(a,l)=>{const r=o.resolveComponent("su-button");return o.openBlock(),o.createElementBlock("div",bo,[n.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["su-content-top",e.title?"justify-between":"justify-end"])},[e.title?(o.openBlock(),o.createElementBlock("span",Co,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",vo,[o.renderSlot(a.$slots,"header",{},void 0,!0),o.createVNode(r,{status:"info",icon:"ri-reply-line",content:"GOBACK",onClick:l[0]||(l[0]=s=>i())})])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",Eo,[o.renderSlot(a.$slots,"body",{},void 0,!0)])])}}}),Ha="",Do=We(xo,[["__scopeId","data-v-4f0773ea"]]),Zt=F.withInstall(Do),So=e=>(o.pushScopeId("data-v-95ebafa1"),e=e(),o.popScopeId(),e),No={class:"su-divider-wrapper"},To={class:"flex items-center"},Bo=So(()=>o.createElementVNode("span",{class:"su-color-block"},null,-1)),Mo={class:"su-divider-title"},Io={class:"mr-2"},Ao={name:"SuDivider"},Po=o.defineComponent({...Ao,props:{title:{default:"分割线"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",No,[o.createElementVNode("div",To,[Bo,o.createElementVNode("span",Mo,o.toDisplayString(e.title),1)]),o.createElementVNode("div",Io,[o.renderSlot(t.$slots,"operate",{},void 0,!0)])]))}}),Ya="",Oo=We(Po,[["__scopeId","data-v-95ebafa1"]]),Ut=F.withInstall(Oo),$o={name:"SuDropdown"},Fo=o.defineComponent({...$o,props:{trigger:{default:"hover"},status:{default:"warning"},disabled:{type:Boolean,default:!1},buttons:{default:()=>[]}},emits:["command"],setup(e,{emit:t}){const n=o.getCurrentInstance(),i=n==null?void 0:n.appContext.config.globalProperties.$hasAuthority,a=s=>{s.auth&&!i(s.auth)||s.disabled||t("command",s.code)},l=["primary","success","warning"],r=s=>{var c,d;return(c=s.code)!=null&&c.toLowerCase().includes("print")?"ri-printer-fill":(d=s.code)!=null&&d.toLowerCase().includes("look")?"ri-eye-fill":"ri-edit-2-fill"};return(s,c)=>{const d=o.resolveComponent("IconifyIconOffline"),u=o.resolveComponent("el-icon"),f=o.resolveComponent("vxe-button"),v=o.resolveComponent("el-dropdown-item"),b=o.resolveComponent("el-dropdown-menu"),S=o.resolveComponent("el-dropdown");return o.openBlock(),o.createBlock(S,{trigger:e.trigger,size:"small",class:"su-dropdown"},{dropdown:o.withCtx(()=>[o.createVNode(b,{class:"su-dropdown-menu"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.buttons,(h,p)=>(o.openBlock(),o.createBlock(v,{key:h.code},{default:o.withCtx(()=>[h.isHidden?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(f,{key:0,disabled:h.disabled||h.auth&&!o.unref(i)(h.auth),status:h.status||l[p],content:s.$t("message."+(h.content||h.code||"edit")),icon:h.icon||r(h),onClick:N=>a(h)},null,8,["disabled","status","content","icon","onClick"]))]),_:2},1024))),128))]),_:1})]),default:o.withCtx(()=>[o.createVNode(f,{status:e.status,disabled:e.disabled},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.$t("message.MORE"))+" ",1),o.createVNode(u,{class:"el-icon--right"},{default:o.withCtx(()=>[o.createVNode(d,{icon:"arrow-down"})]),_:1})]),_:1},8,["status","disabled"])]),_:1},8,["trigger"])}}}),Xa="",en=F.withInstall(Fo),Vo={name:"SuEnabledButton"},Lo=o.defineComponent({...Vo,props:{content:null,row:{default:()=>({})},status:{default:"primary"},icon:null,disabled:{type:Boolean,default:!1},auth:null},setup(e){const t=e,n=o.getCurrentInstance(),i=n==null?void 0:n.appContext.config.globalProperties.$hasAuthority,{t:a}=Me.useI18n(),l=o.computed(()=>{const r=t==null?void 0:t.row,s=(r==null?void 0:r.enabled)*1?"ri-pause-circle-line ri-lg":"ri-play-circle-line ri-1x",c=(r==null?void 0:r.enabled)*1?"disabled":"enabled",d=(r==null?void 0:r.enabled)*1?"warning":"success";return{icon:s,status:d,content:a(`message.${c}`)}});return(r,s)=>{const c=o.resolveComponent("vxe-button");return o.openBlock(),o.createBlock(c,{disabled:e.auth&&!o.unref(i)(e.auth)||e.disabled,status:o.unref(l).status,content:o.unref(l).content,icon:o.unref(l).icon},null,8,["disabled","status","content","icon"])}}}),tn=F.withInstall(Lo),Ro={name:"SuForm"},zo=o.defineComponent({...Ro,props:{record:{default:()=>({})},items:{default:()=>[]},loading:{type:Boolean,default:!1},titleWidth:{default:90},span:{default:6},dataStatus:{default:"detail"}},setup(e,{expose:t}){const n=e,i=o.ref(void 0),{t:a}=Me.useI18n(),l=o.computed(()=>n.items.length?F.formatRules(n.items,a):{}),r=o.computed(()=>n.items.length?F.formatItems(n.items,n.dataStatus,6):n.items);return t({validateForm:c=>{i.value.validate(c)}}),(c,d)=>{const u=o.resolveComponent("vxe-form");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(u,{ref_key:"xForm",ref:i,data:e.record,items:o.unref(r),rules:o.unref(l),loading:e.loading,"title-align":"right","title-width":e.titleWidth},null,8,["data","items","rules","loading","title-width"])])}}}),nn=F.withInstall(zo);/**!
|
|
7
7
|
* Sortable 1.15.0
|
|
8
8
|
* @author RubaXa <trash@rubaxa.org>
|
|
9
9
|
* @author owenm <owen23355@gmail.com>
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.su-popconfirm .el-popconfirm__main{font-size:12px!important}.su-popconfirm .el-popconfirm__action{display:flex;justify-content:center}.su-popconfirm .el-popconfirm__action .el-button.is-text{border:1px solid #cdd0d6!important;padding:4px 6px}.su-popconfirm .el-popconfirm__action .el-button--primary{padding:4px 6px}.su-lov-wrapper .vxe-pager .vxe-pager--sizes{width:7em!important;text-align:center;cursor:pointer;display:inline-block}.su-lov-wrapper .el-dialog__header{padding:.6em 4.6em .6em 1em;border-bottom:1px solid #ebeef5;background-color:#f8f8f8;margin-right:0}.su-lov-wrapper .el-dialog__header .el-dialog__title{color:#000!important;font-size:1.1em;font-weight:600}.su-lov-wrapper .el-dialog__body,.su-lov-wrapper .el-dialog__footer{padding:5px 6px}.su-lov-wrapper .vxe-grid .vxe-form .vxe-form--item .vxe-form--item-title-label{color:#000!important;font-weight:500!important}.su-lov-wrapper .vxe-grid .vxe-form .vxe-form--item .vxe-input--date-picker-suffix{color:#000!important}.su-lov-wrapper .vxe-grid .vxe-cell .vxe-cell--label{color:#000!important;font-weight:500!important}.su-lov-wrapper .vxe-input i[class*=vxe-icon-]{color:#6a6a6a!important}.su-attachment-wrapper .vxe-toolbar{height:26px;padding-left:0;background-color:#fff!important}.su-attachment-wrapper .vxe-toolbar .vxe-button{height:26px}.su-attachment-wrapper .vxe-toolbar .su-divider-wrapper{margin-bottom:0}.su-attachment-wrapper .su-attachment-divider{padding:12px;margin:0}.su-input[data-v-56f09a30]{box-sizing:border-box;display:inline-block;width:100%;height:28px;padding:0 15px;font-size:13px;line-height:28px;color:#606266;background-color:#fff;background-image:none;border:1px solid #dcdfe6;border-radius:4px;outline:0;transition:border-color .2s cubic-bezier(.645,.045,.355,1);appearance:none}.su-input[data-v-56f09a30]:hover{border-color:#c0c4cc}.su-input[data-v-56f09a30]:focus{border-color:#409eff;outline:0}.su-input[data-v-56f09a30]:disabled{background-color:#f5f7fa;outline:none}.su-content[data-v-4f0773ea]{width:100%;height:100%;padding:0 8px;background-color:#f7f7f7}.su-content-top[data-v-4f0773ea]{position:sticky;top:0;left:0;z-index:10;display:flex;align-items:center;height:36px;padding:2px 12px;background-color:#fff;border:1px solid #e0ebf6}.su-content-body[data-v-4f0773ea]{width:100%;height:100%;margin:5px 0;background-color:#fff;border:1px solid #e0ebf6;border-radius:5px}.su-divider-wrapper[data-v-95ebafa1]{width:100%;height:24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;margin-bottom:6px}.su-divider-wrapper .su-color-block[data-v-95ebafa1]{display:inline-block;width:5px;height:16px;margin:5px;background-color:#1cbbb4}.su-divider-wrapper .su-divider-title[data-v-95ebafa1]{font-weight:700;font-size:12px}.su-dropdown{margin-left:6px}.su-dropdown-menu .el-dropdown-menu__item .vxe-button--icon{margin-right:0!important}.x-card[data-v-50c85ff6]:after{content:"";width:32%;height:0;visibility:hidden}.selectCard[data-v-50c85ff6]{border:#006fff .2em solid}.card[data-v-50c85ff6]{width:32%;height:110px;background-image:linear-gradient(163deg,#00ff75 0%,#3700ff 100%);border-radius:10px;transition:all .3s;margin-top:10px}.card2[data-v-50c85ff6]{width:100%;height:110px;border-radius:8px;background-color:#ebf5ff;transition:all .2s}.card2[data-v-50c85ff6]:hover{transform:scale(.98);border-radius:10px}.card[data-v-50c85ff6]:hover{box-shadow:0 0 10px 1px #00ff754d}.su-grid-wrapper{padding:5px}.su-grid-wrapper .vxe-form--item{padding:.1em .8em .1em 0!important}.su-upload-wrapper .el-upload--picture-card,.su-upload-wrapper .el-upload-list--picture-card .el-upload-list__item{width:60px!important;height:60px!important}.su-upload-wrapper .el-upload-list--picture-card .el-progress{width:50px!important}.su-upload-wrapper .el-upload-list--picture-card .el-progress .el-progress-circle{width:50px!important;height:50px!important}.cell-value{position:relative;box-sizing:border-box;display:inline-block;width:calc(100% - 5px);height:40px;line-height:40px;cursor:default}.cell-value .op-one{height:20px}.cell .add-op{position:absolute;top:0;right:0;display:none;padding-right:10px;cursor:pointer;background:rgb(246,246,246)}.cell .add-op span{font-weight:700}.cell .add-op:hover{color:#3396fb}.cell .trigger{position:absolute;left:-14px;width:10px;margin-right:2px;line-height:40px;text-indent:0;cursor:pointer}.cell .trigger .open-icon{color:#bfbfbf;transition:transform .1s ease,color .1s ease;transform:rotate(0)}.cell .trigger .open-icon:after{display:block;width:0;height:0;content:"";border-top:5px solid #bfbfbf;border-right:5px solid transparent;border-left:5px solid transparent}.cell .trigger:hover .open-icon{color:#999}.cell .spot{position:absolute;top:50%;left:-10px;width:4px;height:4px;margin-top:-2px;background:#3396fb;border-radius:50%}.su-gante-tbody{width:max-content}.su-gante-row .su-gante-row--contain.gante-hover{background:rgba(246,246,246,.7)}.su-gante-row.gante-cell-after{position:relative}.su-gante-row.gante-cell-after:after{position:absolute;top:25px;left:8px;height:calc(100% - 45px);content:"";border-left:1px dashed #0fb7a6}.su-gante-row.gante-cell-after .su-gante-row--contain{position:relative}.su-gante-row.gante-cell-after .su-gante-row--contain:after{position:absolute;top:20px;left:-10px;width:15px;height:1px;content:"";border-top:1px dashed #0fb7a6}.su-gante-row.gante-cell-after .su-gante-row--contain.gante_tr_only:after{left:40px;width:36px}.su-gante-row.gante-cell-after-last{position:relative}.su-gante-row.gante-cell-after-last:before{position:absolute;top:20px;left:-10px;z-index:1;height:calc(100% - 40px);content:"";border-left:1px solid #fff}.su-gante-row.gante-cell-after-first>.su-gante-row--contain:after{display:none}.su-total-cell{position:sticky;bottom:0;background-color:#fff}.gante-table{position:relative;display:table;width:100%;font-size:13px;color:#666;word-break:break-all;table-layout:fixed}.gante-thead{position:absolute;top:0;left:0;z-index:2;width:100%}.gante-tbody{position:relative;padding-top:40px}.gante-th{box-sizing:border-box;display:table-cell;overflow:hidden;text-align:left;white-space:nowrap;user-select:none;background:#fff}.su-gante-column{position:relative;display:table-cell}.gante-th,.su-gante-column{box-sizing:border-box;min-width:0;line-height:40px;text-overflow:ellipsis;word-break:keep-all;white-space:nowrap;vertical-align:middle;border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.gante-th .cell,.su-gante-column .cell{position:relative;box-sizing:border-box;width:100%;height:40px;padding:0 10px;overflow:hidden;line-height:40px;text-overflow:ellipsis;word-wrap:normal;vertical-align:middle}.gante-th .cell{border-top:1px solid #ebeef5}.cell .caret-wrapper{position:relative;display:inline-flex;flex-direction:column;align-items:center;width:24px;height:34px;overflow:initial;vertical-align:middle;cursor:pointer}.sort-caret{position:absolute;left:7px;width:0;height:0;border:5px solid transparent}.ascend .sort-caret.ascending{border-bottom-color:#3396fb}.descend .sort-caret.descending{border-top-color:#3396fb}.sort-caret.ascending{top:5px;border-bottom-color:#c0c4cc}.sort-caret.descending{bottom:7px;border-top-color:#c0c4cc}#gante-table-column-resize-proxy{position:absolute;top:0;bottom:0;left:0;z-index:5;width:0;border-left:1px solid #ebeef5}.ganteview-item[data-v-4eaea0df]{width:0;height:20px;cursor:grab;background:#2898b0;border-radius:3px}.ganteview-item .left-drag-line[data-v-4eaea0df],.ganteview-item .right-drag-line[data-v-4eaea0df]{position:absolute;top:2px;left:-15px;width:15px;height:26px;margin-top:-5px;cursor:e-resize}.ganteview-item .left-drag-line[data-v-4eaea0df]:hover:after,.ganteview-item .right-drag-line[data-v-4eaea0df]:hover:after{border-color:#3396fb}.ganteview-item .left-drag-line[data-v-4eaea0df]:after,.ganteview-item .right-drag-line[data-v-4eaea0df]:after{position:absolute;top:8px;left:6px;width:2px;height:10px;content:"";border-right:1px solid rgba(0,0,0,.5);border-left:1px solid rgba(0,0,0,.5)}.ganteview-item .time-tip-left[data-v-4eaea0df]{position:absolute;left:-85px;width:67px;height:15px;padding:3px 4px;font-size:12px;line-height:15px;color:#fff;background:#333;border-radius:3px}.ganteview-item .right-drag-line[data-v-4eaea0df]{right:-15px;left:auto}.ganteview-item .ganter_drag_hover[data-v-4eaea0df]{position:absolute;top:-3px;left:-15px;z-index:-1;width:calc(100% + 30px);height:26px;border-radius:3px;box-shadow:1px 1px 3px 1px #0003}.ganteview-item[data-v-4eaea0df]:hover{opacity:1}.ganteview-item:hover .left-drag-line[data-v-4eaea0df],.ganteview-item:hover .right-drag-line[data-v-4eaea0df],.ganteview-item:hover .ganter_drag_hover[data-v-4eaea0df]{display:block}.ganteview-item.has-child[data-v-4eaea0df]{box-sizing:border-box;height:20px;background:#3db9d3!important;border-radius:3px}.ganteview-item.has-child .left-drag-line[data-v-4eaea0df],.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]{top:-10px;left:-17px}.ganteview-item.has-child .left-drag-line[data-v-4eaea0df]:after,.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]:after{left:4px}.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]{right:-17px;left:auto}.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]:after{left:6px}.ganteview-item.has-child .ganter_drag_hover[data-v-4eaea0df]{top:-15px;left:-17px;width:calc(100% + 34px)}.ganteview-item.has-child .time-tip-left[data-v-4eaea0df]{top:-12px}.ganteview-content{position:relative}.ganteview-content .ganteview-ones-seat{height:41px;line-height:40px}.ganteview-content-one{position:relative;z-index:1;box-sizing:border-box;height:41px;line-height:40px}.gante-hover{background:rgba(246,246,246,.7)}.gante-bottom-wrapper{position:sticky;bottom:-48px;z-index:8;display:flex;font-size:12px;background-color:#fff}.gante-bottom-wrapper .gante-bottom-item{display:flex;flex-direction:column;align-items:center;background-color:#fff}.ganteview-box[data-v-befd87af]{position:relative;height:100%;overflow:hidden}.ganteview[data-v-befd87af]{box-sizing:border-box;height:100%;padding-bottom:50px;overflow:auto;font-size:13px}.ganteview .current_move_time[data-v-befd87af]{position:absolute;top:0;z-index:3;height:39px;padding-left:10px;line-height:54px;color:#777;background:#fff}.ganteview-header[data-v-befd87af]{position:absolute;top:0;left:0;z-index:2;width:100%;height:54px;font-size:13px}.ganteview-toptime[data-v-befd87af]{position:relative;height:54px;line-height:54px;background:#fff}.ganteview-toptime .ganteview-headercell[data-v-befd87af]{padding-left:4px;text-align:left}.ganteview-bottomtime[data-v-befd87af]{position:relative;height:40px;line-height:40px;background:#fff}.ganteview-bottomtime .ganteview-headercell[data-v-befd87af]{text-align:center}.ganteview-column[data-v-befd87af]{position:absolute;top:54px;z-index:0;box-sizing:border-box;height:calc(100% - 54px);border-right:1px solid #ebeef5}#today-ganteview-column[data-v-befd87af]{position:absolute;top:54px;z-index:0;box-sizing:border-box;height:calc(100% - 54px);background:#dcecfe}.ganteview-headercell[data-v-befd87af]{position:absolute;box-sizing:border-box;height:100%;overflow:hidden;color:#666;word-break:break-all;border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.ganteview-content-box[data-v-befd87af]{padding-top:94px;border-bottom:1px solid #ebeef5}.su-gante-split{position:absolute;top:0;z-index:2;width:2px;height:100%;cursor:e-resize;background:#ccc;transition:background .1s ease}.su-gante-split:hover{background:#666}.su-gante-split-resize{position:absolute;top:0;width:3px;height:100%;background:#ccc}li{list-style:none}.gante-box{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 50px);overflow:hidden;background:#fff;border:1px solid #ccc;border-radius:5px}.gante-box .gante-top-op{position:relative;z-index:3;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;height:54px;padding:0 10px 0 20px}.gante-table-box{position:absolute;top:54px;bottom:0;left:0;width:50%;overflow-x:auto;overflow-y:hidden}.gante-gc-box{position:absolute;top:0;box-sizing:border-box;width:50%;height:100%;padding-right:2px;overflow:auto;border-left:5px solid transparent}.gante-toast{position:fixed;z-index:10000;width:auto;height:auto;padding:6px;font-family:Microsoft Yahei;font-size:12px;font-weight:700;line-height:16px;color:#fff;background-color:#323232b3;border-radius:3px;transition:left .4s cubic-bezier(.23,1,.32,1) 0s,top .4s cubic-bezier(.23,1,.32,1) 0s}.unselecttable{-webkit-touch-callout:none;user-select:none}.gante-out-op{z-index:10;display:flex;align-items:center;justify-content:space-between;height:54px}.gante-out-op .gante-trigger,.gante-out-op .to-today{padding:5px 12px;margin-right:20px;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:3px}.gante-out-op .gante-trigger:hover,.gante-out-op .to-today:hover{color:#3396fb;background:#f5f5f5}.gante-out-op .reOrde{display:flex;align-items:center;margin-right:20px;border:1px solid #ccc}.gante-out-op .reOrde .icons{padding:8px;cursor:pointer;background:#fff}.gante-out-op .reOrde .icons:hover{color:#3396fb!important;background:#f5f5f5}.gante-out-op .reOrde .icons:first-child{border-right:1px solid rgba(0,0,0,.05);border-radius:3px 0 0 3px}.gante-out-op .reOrde .icons:last-child{padding:8px 12px;border-radius:0 3px 3px 0}.gante-out-op .fullScreen{padding:5px 12px;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:3px}.gante-out-op .fullScreen img{width:20px;height:20px}.gante-out-op .fullScreen:hover{color:#3396fb;background:#f5f5f5}
|
|
1
|
+
@charset "UTF-8";.su-popconfirm .el-popconfirm__main{font-size:12px!important}.su-popconfirm .el-popconfirm__action{display:flex;justify-content:center}.su-popconfirm .el-popconfirm__action .el-button.is-text{border:1px solid #cdd0d6!important;padding:4px 6px}.su-popconfirm .el-popconfirm__action .el-button--primary{padding:4px 6px}.su-lov-wrapper .vxe-pager .vxe-pager--sizes{width:7em!important;text-align:center;cursor:pointer;display:inline-block}.su-lov-wrapper .el-dialog__header{padding:.6em 4.6em .6em 1em;border-bottom:1px solid #ebeef5;background-color:#f8f8f8;margin-right:0}.su-lov-wrapper .el-dialog__header .el-dialog__title{color:#000!important;font-size:1.1em;font-weight:600}.su-lov-wrapper .el-dialog__body,.su-lov-wrapper .el-dialog__footer{padding:5px 6px}.su-lov-wrapper .vxe-grid .vxe-form .vxe-form--item .vxe-form--item-title-label{color:#000!important;font-weight:500!important}.su-lov-wrapper .vxe-grid .vxe-form .vxe-form--item .vxe-input--date-picker-suffix{color:#000!important}.su-lov-wrapper .vxe-grid .vxe-cell .vxe-cell--label{color:#000!important;font-weight:500!important}.su-lov-wrapper .vxe-input i[class*=vxe-icon-]{color:#6a6a6a!important}.su-attachment-wrapper .vxe-toolbar{height:26px;padding-left:0;background-color:#fff!important}.su-attachment-wrapper .vxe-toolbar .vxe-button{height:26px}.su-attachment-wrapper .vxe-toolbar .su-divider-wrapper{margin-bottom:0}.su-attachment-wrapper .su-attachment-divider{padding:12px;margin:0}.su-input[data-v-578697a0]{box-sizing:border-box;display:inline-block;width:100%;height:28px;padding:0 15px;font-size:13px;line-height:28px;color:#606266;background-color:#fff;background-image:none;border:1px solid #dcdfe6;border-radius:4px;outline:0;transition:border-color .2s cubic-bezier(.645,.045,.355,1);appearance:none}.su-input[data-v-578697a0]:hover{border-color:#c0c4cc}.su-input[data-v-578697a0]:focus{border-color:#409eff;outline:0}.su-input[data-v-578697a0]:disabled{background-color:#f5f7fa;outline:none}.su-content[data-v-4f0773ea]{width:100%;height:100%;padding:0 8px;background-color:#f7f7f7}.su-content-top[data-v-4f0773ea]{position:sticky;top:0;left:0;z-index:10;display:flex;align-items:center;height:36px;padding:2px 12px;background-color:#fff;border:1px solid #e0ebf6}.su-content-body[data-v-4f0773ea]{width:100%;height:100%;margin:5px 0;background-color:#fff;border:1px solid #e0ebf6;border-radius:5px}.su-divider-wrapper[data-v-95ebafa1]{width:100%;height:24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;margin-bottom:6px}.su-divider-wrapper .su-color-block[data-v-95ebafa1]{display:inline-block;width:5px;height:16px;margin:5px;background-color:#1cbbb4}.su-divider-wrapper .su-divider-title[data-v-95ebafa1]{font-weight:700;font-size:12px}.su-dropdown{margin-left:6px}.su-dropdown-menu .el-dropdown-menu__item .vxe-button--icon{margin-right:0!important}.x-card[data-v-50c85ff6]:after{content:"";width:32%;height:0;visibility:hidden}.selectCard[data-v-50c85ff6]{border:#006fff .2em solid}.card[data-v-50c85ff6]{width:32%;height:110px;background-image:linear-gradient(163deg,#00ff75 0%,#3700ff 100%);border-radius:10px;transition:all .3s;margin-top:10px}.card2[data-v-50c85ff6]{width:100%;height:110px;border-radius:8px;background-color:#ebf5ff;transition:all .2s}.card2[data-v-50c85ff6]:hover{transform:scale(.98);border-radius:10px}.card[data-v-50c85ff6]:hover{box-shadow:0 0 10px 1px #00ff754d}.su-grid-wrapper{padding:5px}.su-grid-wrapper .vxe-form--item{padding:.1em .8em .1em 0!important}.su-upload-wrapper .el-upload--picture-card,.su-upload-wrapper .el-upload-list--picture-card .el-upload-list__item{width:60px!important;height:60px!important}.su-upload-wrapper .el-upload-list--picture-card .el-progress{width:50px!important}.su-upload-wrapper .el-upload-list--picture-card .el-progress .el-progress-circle{width:50px!important;height:50px!important}.cell-value{position:relative;box-sizing:border-box;display:inline-block;width:calc(100% - 5px);height:40px;line-height:40px;cursor:default}.cell-value .op-one{height:20px}.cell .add-op{position:absolute;top:0;right:0;display:none;padding-right:10px;cursor:pointer;background:rgb(246,246,246)}.cell .add-op span{font-weight:700}.cell .add-op:hover{color:#3396fb}.cell .trigger{position:absolute;left:-14px;width:10px;margin-right:2px;line-height:40px;text-indent:0;cursor:pointer}.cell .trigger .open-icon{color:#bfbfbf;transition:transform .1s ease,color .1s ease;transform:rotate(0)}.cell .trigger .open-icon:after{display:block;width:0;height:0;content:"";border-top:5px solid #bfbfbf;border-right:5px solid transparent;border-left:5px solid transparent}.cell .trigger:hover .open-icon{color:#999}.cell .spot{position:absolute;top:50%;left:-10px;width:4px;height:4px;margin-top:-2px;background:#3396fb;border-radius:50%}.su-gante-tbody{width:max-content}.su-gante-row .su-gante-row--contain.gante-hover{background:rgba(246,246,246,.7)}.su-gante-row.gante-cell-after{position:relative}.su-gante-row.gante-cell-after:after{position:absolute;top:25px;left:8px;height:calc(100% - 45px);content:"";border-left:1px dashed #0fb7a6}.su-gante-row.gante-cell-after .su-gante-row--contain{position:relative}.su-gante-row.gante-cell-after .su-gante-row--contain:after{position:absolute;top:20px;left:-10px;width:15px;height:1px;content:"";border-top:1px dashed #0fb7a6}.su-gante-row.gante-cell-after .su-gante-row--contain.gante_tr_only:after{left:40px;width:36px}.su-gante-row.gante-cell-after-last{position:relative}.su-gante-row.gante-cell-after-last:before{position:absolute;top:20px;left:-10px;z-index:1;height:calc(100% - 40px);content:"";border-left:1px solid #fff}.su-gante-row.gante-cell-after-first>.su-gante-row--contain:after{display:none}.su-total-cell{position:sticky;bottom:0;background-color:#fff}.gante-table{position:relative;display:table;width:100%;font-size:13px;color:#666;word-break:break-all;table-layout:fixed}.gante-thead{position:absolute;top:0;left:0;z-index:2;width:100%}.gante-tbody{position:relative;padding-top:40px}.gante-th{box-sizing:border-box;display:table-cell;overflow:hidden;text-align:left;white-space:nowrap;user-select:none;background:#fff}.su-gante-column{position:relative;display:table-cell}.gante-th,.su-gante-column{box-sizing:border-box;min-width:0;line-height:40px;text-overflow:ellipsis;word-break:keep-all;white-space:nowrap;vertical-align:middle;border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.gante-th .cell,.su-gante-column .cell{position:relative;box-sizing:border-box;width:100%;height:40px;padding:0 10px;overflow:hidden;line-height:40px;text-overflow:ellipsis;word-wrap:normal;vertical-align:middle}.gante-th .cell{border-top:1px solid #ebeef5}.cell .caret-wrapper{position:relative;display:inline-flex;flex-direction:column;align-items:center;width:24px;height:34px;overflow:initial;vertical-align:middle;cursor:pointer}.sort-caret{position:absolute;left:7px;width:0;height:0;border:5px solid transparent}.ascend .sort-caret.ascending{border-bottom-color:#3396fb}.descend .sort-caret.descending{border-top-color:#3396fb}.sort-caret.ascending{top:5px;border-bottom-color:#c0c4cc}.sort-caret.descending{bottom:7px;border-top-color:#c0c4cc}#gante-table-column-resize-proxy{position:absolute;top:0;bottom:0;left:0;z-index:5;width:0;border-left:1px solid #ebeef5}.ganteview-item[data-v-4eaea0df]{width:0;height:20px;cursor:grab;background:#2898b0;border-radius:3px}.ganteview-item .left-drag-line[data-v-4eaea0df],.ganteview-item .right-drag-line[data-v-4eaea0df]{position:absolute;top:2px;left:-15px;width:15px;height:26px;margin-top:-5px;cursor:e-resize}.ganteview-item .left-drag-line[data-v-4eaea0df]:hover:after,.ganteview-item .right-drag-line[data-v-4eaea0df]:hover:after{border-color:#3396fb}.ganteview-item .left-drag-line[data-v-4eaea0df]:after,.ganteview-item .right-drag-line[data-v-4eaea0df]:after{position:absolute;top:8px;left:6px;width:2px;height:10px;content:"";border-right:1px solid rgba(0,0,0,.5);border-left:1px solid rgba(0,0,0,.5)}.ganteview-item .time-tip-left[data-v-4eaea0df]{position:absolute;left:-85px;width:67px;height:15px;padding:3px 4px;font-size:12px;line-height:15px;color:#fff;background:#333;border-radius:3px}.ganteview-item .right-drag-line[data-v-4eaea0df]{right:-15px;left:auto}.ganteview-item .ganter_drag_hover[data-v-4eaea0df]{position:absolute;top:-3px;left:-15px;z-index:-1;width:calc(100% + 30px);height:26px;border-radius:3px;box-shadow:1px 1px 3px 1px #0003}.ganteview-item[data-v-4eaea0df]:hover{opacity:1}.ganteview-item:hover .left-drag-line[data-v-4eaea0df],.ganteview-item:hover .right-drag-line[data-v-4eaea0df],.ganteview-item:hover .ganter_drag_hover[data-v-4eaea0df]{display:block}.ganteview-item.has-child[data-v-4eaea0df]{box-sizing:border-box;height:20px;background:#3db9d3!important;border-radius:3px}.ganteview-item.has-child .left-drag-line[data-v-4eaea0df],.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]{top:-10px;left:-17px}.ganteview-item.has-child .left-drag-line[data-v-4eaea0df]:after,.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]:after{left:4px}.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]{right:-17px;left:auto}.ganteview-item.has-child .right-drag-line[data-v-4eaea0df]:after{left:6px}.ganteview-item.has-child .ganter_drag_hover[data-v-4eaea0df]{top:-15px;left:-17px;width:calc(100% + 34px)}.ganteview-item.has-child .time-tip-left[data-v-4eaea0df]{top:-12px}.ganteview-content{position:relative}.ganteview-content .ganteview-ones-seat{height:41px;line-height:40px}.ganteview-content-one{position:relative;z-index:1;box-sizing:border-box;height:41px;line-height:40px}.gante-hover{background:rgba(246,246,246,.7)}.gante-bottom-wrapper{position:sticky;bottom:-48px;z-index:8;display:flex;font-size:12px;background-color:#fff}.gante-bottom-wrapper .gante-bottom-item{display:flex;flex-direction:column;align-items:center;background-color:#fff}.ganteview-box[data-v-befd87af]{position:relative;height:100%;overflow:hidden}.ganteview[data-v-befd87af]{box-sizing:border-box;height:100%;padding-bottom:50px;overflow:auto;font-size:13px}.ganteview .current_move_time[data-v-befd87af]{position:absolute;top:0;z-index:3;height:39px;padding-left:10px;line-height:54px;color:#777;background:#fff}.ganteview-header[data-v-befd87af]{position:absolute;top:0;left:0;z-index:2;width:100%;height:54px;font-size:13px}.ganteview-toptime[data-v-befd87af]{position:relative;height:54px;line-height:54px;background:#fff}.ganteview-toptime .ganteview-headercell[data-v-befd87af]{padding-left:4px;text-align:left}.ganteview-bottomtime[data-v-befd87af]{position:relative;height:40px;line-height:40px;background:#fff}.ganteview-bottomtime .ganteview-headercell[data-v-befd87af]{text-align:center}.ganteview-column[data-v-befd87af]{position:absolute;top:54px;z-index:0;box-sizing:border-box;height:calc(100% - 54px);border-right:1px solid #ebeef5}#today-ganteview-column[data-v-befd87af]{position:absolute;top:54px;z-index:0;box-sizing:border-box;height:calc(100% - 54px);background:#dcecfe}.ganteview-headercell[data-v-befd87af]{position:absolute;box-sizing:border-box;height:100%;overflow:hidden;color:#666;word-break:break-all;border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.ganteview-content-box[data-v-befd87af]{padding-top:94px;border-bottom:1px solid #ebeef5}.su-gante-split{position:absolute;top:0;z-index:2;width:2px;height:100%;cursor:e-resize;background:#ccc;transition:background .1s ease}.su-gante-split:hover{background:#666}.su-gante-split-resize{position:absolute;top:0;width:3px;height:100%;background:#ccc}li{list-style:none}.gante-box{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 50px);overflow:hidden;background:#fff;border:1px solid #ccc;border-radius:5px}.gante-box .gante-top-op{position:relative;z-index:3;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;height:54px;padding:0 10px 0 20px}.gante-table-box{position:absolute;top:54px;bottom:0;left:0;width:50%;overflow-x:auto;overflow-y:hidden}.gante-gc-box{position:absolute;top:0;box-sizing:border-box;width:50%;height:100%;padding-right:2px;overflow:auto;border-left:5px solid transparent}.gante-toast{position:fixed;z-index:10000;width:auto;height:auto;padding:6px;font-family:Microsoft Yahei;font-size:12px;font-weight:700;line-height:16px;color:#fff;background-color:#323232b3;border-radius:3px;transition:left .4s cubic-bezier(.23,1,.32,1) 0s,top .4s cubic-bezier(.23,1,.32,1) 0s}.unselecttable{-webkit-touch-callout:none;user-select:none}.gante-out-op{z-index:10;display:flex;align-items:center;justify-content:space-between;height:54px}.gante-out-op .gante-trigger,.gante-out-op .to-today{padding:5px 12px;margin-right:20px;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:3px}.gante-out-op .gante-trigger:hover,.gante-out-op .to-today:hover{color:#3396fb;background:#f5f5f5}.gante-out-op .reOrde{display:flex;align-items:center;margin-right:20px;border:1px solid #ccc}.gante-out-op .reOrde .icons{padding:8px;cursor:pointer;background:#fff}.gante-out-op .reOrde .icons:hover{color:#3396fb!important;background:#f5f5f5}.gante-out-op .reOrde .icons:first-child{border-right:1px solid rgba(0,0,0,.05);border-radius:3px 0 0 3px}.gante-out-op .reOrde .icons:last-child{padding:8px 12px;border-radius:0 3px 3px 0}.gante-out-op .fullScreen{padding:5px 12px;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:3px}.gante-out-op .fullScreen img{width:20px;height:20px}.gante-out-op .fullScreen:hover{color:#3396fb;background:#f5f5f5}
|