← Back
Editing: index-legacy315.js
!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 r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),l=new F(r||[]);return i(a,"_invoke",{value:S(t,n,l)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var h="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,c,(function(){return this}));var j=Object.getPrototypeOf,L=j&&j(j(G([])));L&&L!==o&&a.call(L,c)&&(_=L);var k=x.prototype=w.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(e,n){function r(o,i,l,c){var u=d(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):n.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function S(t,e,r){var o=h;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=P(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=d(t,e,r);if("normal"===u.type){if(o=r.done?m:v,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function P(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;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=n),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function C(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 V(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function G(e){if(e||""===e){var r=e[c];if(r)return r.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=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=x,i(k,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(k),t},r.awrap=function(t){return{__await:t}},E(O.prototype),f(O.prototype,u,(function(){return this})),r.AsyncIterator=O,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new O(p(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(k),f(k,s,"Generator"),f(k,c,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=G,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(V),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 r(r,o){return l.type="throw",l.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,g):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),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),V(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;V(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:G(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function l(t){n(i,o,a,l,c,"next",t)}function c(t){n(i,o,a,l,c,"throw",t)}l(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy101.js?v=VERSION_NUMBER","./index-legacy48.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy110.js?v=VERSION_NUMBER","./index-legacy105.js?v=VERSION_NUMBER","./store-legacy3.js?v=VERSION_NUMBER","./store-legacy4.js?v=VERSION_NUMBER","./store-legacy5.js?v=VERSION_NUMBER","./hooks-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,a,i,l,c,u,s,f,p,d,h,v,y,m,g,w,b,x,_,j,L,k,E,O,S,P,C,V,F,G;return{setters:[function(t){o=t.c,a=t.s,i=t.p,l=t.G,c=t.q,u=t.v,s=t.y,f=t.H,p=t.x,d=t.F,h=t.a_,v=t.z,y=t.b7,m=t.e,g=t.A,w=t.J,b=t.M,x=t.C,_=t.B,j=t.al,L=t.a$,k=t.ai,E=t.aj,O=t.a9,S=t.a7,P=t.D,C=t.ax},function(t){V=t._},function(t){F=t.H},function(t){G=t.e},null,null,null,null,null,null,null,null,null,null],execute:function(){var n={class:"p-[2rem]"},N={class:"flex flex-col"},T={class:"overview-box min-h-[20rem]"},A={class:"content"},I={class:"model-title"},D={class:"model-content"},U={key:0,class:"model mt-[16px]"},H={key:1,class:"font-bold mt-[24px] text-[1.5rem]"},z={class:"operate"},M={class:"flex items-center"},Y={class:"py-1rem"},q={key:0},B={key:0,class:"flex w-full justify-end"},J=["onClick"],$=o({__name:"index",setup:function(t){var o=F(),G=a(o),$=G.isLoading,K=G.overviewModelList,Q=G.supportConfig,R=G.supportPath,W=G.form;return i(r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.getOverviewData();case 2:return t.next=4,o.getOverviewTemplateData();case 4:o.dataAlignment();case 5:case"end":return t.stop()}}),t)})))),function(t,e){var r=j,a=L,i=k,F=E,G=V,X=O,Z=S,tt=P,et=C,nt=l("trim"),rt=l("bt-loading");return c(),u("div",n,[e[8]||(e[8]=s("div",{class:"warm-tips"},[s("i",{class:"svgtofont-el-warning text-[#F0AD4E] mr-[0.8rem] text-[1.8rem]"}),s("span",{class:"text-[#F0AD4E]"}," 温馨提示:预览编辑界面,可以预览和修改当前概览界面,添加自己需要的工具和模块 ")],-1)),s("div",N,[e[7]||(e[7]=s("div",{class:"text-[1.4rem] mb-[1rem] font-bold leading-[2.2rem]"},"模板",-1)),f((c(),u("div",T,[(c(!0),u(d,null,h(p(K),(function(t,n){return c(),u("div",{class:"overview-item",key:n},[s("div",A,[s("span",I,v(t.title),1),s("div",D,["browse"===t.template?(c(),u("div",U,e[1]||(e[1]=[y('<div class="to-day" data-v-8a201cd8><span class="" data-v-8a201cd8>今日</span><span class="font-bold" data-v-8a201cd8>-</span></div><div class="yester-day" data-v-8a201cd8><span data-v-8a201cd8>昨日</span><span class="font-bold" data-v-8a201cd8>-</span></div>',2)]))):(c(),u("span",H,"-"))])]),s("div",z,[s("div",M,[e[2]||(e[2]=s("span",{class:"mr-[.6rem]"},"显示",-1)),m(r,{modelValue:t.isShow,"onUpdate:modelValue":function(e){return t.isShow=e},width:32,size:"small",onChange:function(e){return p(o).setOverviewTemplateShow(t)}},null,8,["modelValue","onUpdate:modelValue","onChange"])]),p(Q).indexOf(t.name)>-1||p(R).indexOf(t.name)>-1?(c(),u(d,{key:0},[m(a,{direction:"vertical"}),m(et,{visible:t.overviewPopover,placement:"top",width:"320","popper-class":"el-tooltip-white overview-popover"},{reference:g((function(){return[s("span",{class:"cursor-pointer mr-[16px]",onClick:function(e){return p(o).setPopoverShow(t,n)}}," 设置 ",8,J)]})),default:g((function(){return[s("div",Y,[m(Z,{model:p(W),"label-width":"60px"},{default:g((function(){return[(c(!0),u(d,null,h(t.params,(function(n,r){return c(),u(d,{key:r},[t.name?(c(),u("div",q,[m(X,{label:n.name,class:w("".concat("select"===n.type?"":"!mb-0"))},{default:g((function(){return["select"===n.type?(c(),b(F,{key:0,modelValue:p(W)["val"+r],"onUpdate:modelValue":function(t){return p(W)["val"+r]=t},placeholder:"请选择"+n.name},{default:g((function(){return[(c(!0),u(d,null,h(n.option,(function(t,e){return c(),b(i,{key:e,label:t.name,value:e},null,8,["label","value"])})),128))]})),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):f((c(),b(G,{key:1,modelValue:p(W).val0,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p(W).val0=t}),name:"path",icon:"el-folder-opened",onIconClick:function(e){return p(o).onPathChange(t)},width:"20rem"},null,8,["modelValue","onIconClick"])),[[nt]])]})),_:2},1032,["label","class"])])):x("",!0)],64)})),128))]})),_:2},1032,["model"]),"open_dir"!==t.name?(c(),u("div",B,[s("div",null,[m(tt,{type:"default",onClick:function(e){return t.overviewPopover=!1}},{default:g((function(){return e[3]||(e[3]=[_(" 取消 ")])})),_:2},1032,["onClick"]),m(tt,{type:"primary",onClick:function(e){return p(o).addOverviewFun(t)}},{default:g((function(){return e[4]||(e[4]=[_("确认")])})),_:2},1032,["onClick"])])])):x("",!0)])]})),_:2},1032,["visible"])],64)):(c(),u(d,{key:1},[e[5]||(e[5]=s("span",null,null,-1)),e[6]||(e[6]=s("span",null,null,-1))],64))])])})),128))])),[[rt,p($)]])])])}}});t("default",G($,[["__scopeId","data-v-8a201cd8"]]))}}}))}();
Save File
Cancel