2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(r){s=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),c=new T(n||[]);return i(a,"_invoke",{value:E(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var y="suspendedStart",h="suspendedYield",v="executing",g="completed",m={};function b(){}function w(){}function x(){}var S={};s(S,u,(function(){return this}));var j=Object.getPrototypeOf,k=j&&j(j(C([])));k&&k!==o&&a.call(k,u)&&(S=k);var I=x.prototype=b.prototype=Object.create(S);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(o,i,c,u){var l=p(e[o],e,i);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&a.call(s,"__await")?r.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}})}function E(t,e,n){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=L(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=p(t,e,n);if("normal"===l.type){if(o=n.done?g:h,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function L(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=p(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,m;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=x,i(I,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,f,"GeneratorFunction")),t.prototype=Object.create(I),t},n.awrap=function(t){return{__await:t}},O(_.prototype),s(_.prototype,l,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var i=new _(d(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(I),s(I,f,"Generator"),s(I,u,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=C,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),m}},n}function r(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}System.register(["./provide-context-legacy-SDorkqk7.js","./index-legacy-C7SuCoiZ.js","./table-legacy-BH8ldvI2.js","./_plugin-vue_export-helper-legacy-DySZQj4h.js","./iconfont-legacy-fMYhhym4.js","./icon-column-select-legacy-BYe7s0Z2.js","./vue3-smooth-dnd.esm-legacy-D4ipxfgL.js","./confirm-bar-legacy-Bf4LJf2W.js","./useActivated-legacy-KbtLw-Pt.js","./db-legacy-C-2HirI_.js","./table-legacy-CrVGBNCP.js","./index-legacy-D-UTxSiO.js","./index-legacy-Dy2OjLbj.js","./index-legacy-JYDHEPjY.js"],(function(t,r){"use strict";var o,i,c,u,l,f,s,d,p,y,h,v,g,m,b,w,x,S,j,k,I,O,_,E,L,P,N,T,C,z,F,G,D;return{setters:[function(t){o=t.l,i=t.h,c=t.i,u=t.j,l=t.c},function(t){f=t.cZ,s=t.x,d=t.E,p=t.t,y=t.U,h=t.v,v=t.A,g=t.y,m=t.c,b=t.C,w=t.Q,x=t.R,S=t.T,j=t.S,k=t.N,I=t.an},function(t){O=t.c},function(t){_=t._},function(t){E=t.i},null,null,null,function(t){L=t.u},function(t){P=t.g,N=t.e},function(t){T=t._},function(t){C=t.S},function(t){z=t._,F=t.M,G=t.a},function(t){D=t.I}],execute:function(){var r=document.createElement("style");r.textContent=".table[data-v-7afcdba4]{height:100%;display:flex;flex-direction:column}.table .content[data-v-7afcdba4]{flex:1;overflow:hidden;margin-top:16px}.title-wrap[data-v-f535dc84]{display:flex;white-space:nowrap;align-items:center}.title-wrap span[data-v-f535dc84]{margin-right:12px}\n/*$vite$:1*/",document.head.appendChild(r);var A=_({__name:"table-embed",setup:function(t){o().value=[{title:"名称",dataIndex:"dataName",key:"dataName",fixed:"left",width:200,sorter:!0,showSorterTooltip:{title:"按首字母排序"}},{title:"文件类型",dataIndex:"fileType",key:"fileType",width:150,sorter:!0,showSorterTooltip:{title:"按首字母排序"}},{title:"编码",dataIndex:"fileCode",key:"fileCode",width:250,checked:!1},{title:"上传时间",dataIndex:"gmtCreate",key:"gmtCreate",width:180,sorter:!0,checked:!1},{title:"版本",dataIndex:"version",key:"version",width:100,sorter:!0},{title:"修改时间",dataIndex:"updatedTime",key:"updatedTime",width:180,sorter:!0},{title:"状态",dataIndex:"dataStatus",key:"dataStatus",width:100,filters:[{text:"已发布",value:"publish"}],filterMultiple:!1,filteredValue:null},{title:"备注",dataIndex:"note",key:"note",width:200},{title:"文件大小",dataIndex:"fileSizeShow",key:"fileSizeShow",width:150,sorter:!0,showSorterTooltip:{title:"按大小排序"}}].map((function(t){return a(a({},t),{},{checked:!0})}));var e=i();return e.getCheckboxProps=function(t){return{disabled:"folder"===t.dataType}},c().value=!0,window.getSelectedFileId=function(){var t;return JSON.stringify(((null==e||null===(t=e.selectedRowInfos)||void 0===t?void 0:t.value)||[]).map(f))},window.clearSelectedFileId=function(){e.selectedRowKeys.value=[]},function(t,e){return s(),d(O)}}},[["__scopeId","data-v-7afcdba4"]]),R={key:0,style:{display:"flex","justify-content":"center","align-items":"center",height:"100%"}},J={__name:"table-structure-embed",props:{tableInfo:{type:Object,default:function(){return{}}},categoryName:{type:String,default:function(){return""}}},setup:function(t){var r=t,o=p({}),u=p([]),l=p([]),I=p(!1);function O(){return _.apply(this,arguments)}function _(){return(_=n(e().mark((function t(){var n,i,c,f,s,d,p,y,h,v;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return I.value=!0,t.prev=1,s=o.value,d=s.current,p=s.pageSize,t.next=5,P(a(a({},o.value),{},{pageNum:d}));case 5:y=t.sent,o.value.current=(null==y||null===(n=y.data)||void 0===n?void 0:n.pageNum)||d,o.value.pageSize=(null==y||null===(i=y.data)||void 0===i?void 0:i.pageSize)||p,o.value.total=(null==y||null===(c=y.data)||void 0===c?void 0:c.total)||0,h=JSON.parse(r.tableInfo.tableHeader),u.value=Object.keys(h).map((function(t){var e=h[t],r="row".concat(t);return{title:e,dataIndex:r,key:r,width:20*e.length+50}})),console.log(u),v=(null===(f=y.data)||void 0===f?void 0:f.records)||[],l.value=v.map((function(t,e){var r=JSON.parse(t.data||{}),n={tableInfoId:t.tableInfoId,id:t.id,editing:!1,loading:!1};for(var o in r){var a=r[o];n["row".concat(o)]=a}return n})),console.log(l),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(1),k.error("结构化数据查询失败![".concat(t.t0.message,"]"));case 20:I.value=!1;case 21:case"end":return t.stop()}}),t,null,[[1,17]])})))).apply(this,arguments)}function L(t,e,r){var n=t.current,a=t.pageSize;o.value.current=n,o.value.pageSize=a,O()}y((function(){return r.tableInfo}),(function(t){o.value.current=1,o.value.pageSize=10,o.value.tableInfoId=t.id,O()}),{immediate:!0}),p(!1);var N=i();N.getCheckboxProps=function(t){return{disabled:"folder"===t.dataType}};var A=c();return A.value=!0,h((function(){window.getSelectedFileId=function(){var t;return JSON.stringify(((null==N||null===(t=N.selectedRowInfos)||void 0===t?void 0:t.value)||[]).map(f))},window.clearSelectedFileId=function(){N.selectedRowKeys.value=[]}})),function(t,e){var r=C,n=z,a=F,i=G,c=D;return v(I)?(s(),g("div",R,[m(r,{spinning:v(I)},null,8,["spinning"])])):(s(),d(T,{key:1,dataSource:v(l),columns:v(u),pagination:v(o),onChange:L,"force-render":"","row-selection":v(A)?v(N):null,rowKey:"id"},{bodyCell:b((function(t){var e=t.column,r=void 0===e?{}:e,o=t.text,u=t.record;t.index;return["action"===r.key?(s(),g(w,{key:0},[],64)):(s(),g(w,{key:1},["[object Array]"===Object.prototype.toString.call(u[r.key])?(s(),d(i,{key:0,arrow:""},{overlay:b((function(){return[m(a,{style:{"max-height":"300px","overflow-y":"auto"}},{default:b((function(){return[(s(!0),g(w,null,x(u[r.key],(function(t){return s(),d(n,null,{default:b((function(){return[S(j(t),1)]})),_:2},1024)})),256))]})),_:2},1024)]})),default:b((function(){return[m(E,{name:"#icon-gengduo",style:{color:"#1677ff","font-size":"18px","margin-left":"5px",outline:"0",cursor:"pointer"}})]})),_:2},1024)):(s(),g(w,{key:1},[u.editing?(s(),d(c,{key:0,type:"text",value:u[r.key],"onUpdate:value":function(t){return u[r.key]=t},disabled:u.loading,placeholder:"请输入",maxlength:100},null,8,["value","onUpdate:value","disabled"])):(s(),g(w,{key:1},[S(j(o),1)],64))],64))],64))]})),_:1},8,["dataSource","columns","pagination","row-selection"]))}}},K={__name:"detail-card-embed",props:{groupId:{type:String},treeSelectedInfo:{type:Object},staticPermission:{type:Object}},setup:function(t){var r=t;L();var o=I(r,"groupId"),a=I(r,"treeSelectedInfo");u({groupId:o,categoryId:o,treeSelectedInfo:a,useSearchQueryDataname:!0,staticPermission:r.staticPermission});var i=l(),c=p(!1),f=p({}),h=p(!1);return y(o,function(){var t=n(e().mark((function t(r){var n,o,a,u;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:return h.value=!0,t.prev=3,t.next=6,N({parentId:r,pageNum:1,pageSize:10,keyword:""},i);case 6:if(t.t0=t.sent,t.t0){t.next=9;break}t.t0={};case 9:n=t.t0,o=n.data,a=o.struct,u=o.importTableInfoVO,c.value=a,f.value=u,t.next=19;break;case 16:t.prev=16,t.t1=t.catch(3),k.error("是否是结构化数据查询失败![".concat(t.t1.message,"]"));case 19:h.value=!1;case 20:case"end":return t.stop()}}),t,null,[[3,16]])})));return function(e){return t.apply(this,arguments)}}(),{immediate:!0}),function(t,e){var r;return v(c)?(s(),d(J,{key:0,categoryName:null===(r=v(a))||void 0===r?void 0:r.categoryName,tableInfo:v(f)},null,8,["categoryName","tableInfo"])):(s(),d(A,{key:1}))}}};t("D",_(K,[["__scopeId","data-v-f535dc84"]]))}}}))}();
|