← Back
Editing: protect-ext-legacy.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(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return n};var e,n={},r=Object.prototype,a=r.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),i=new D(r||[]);return u(a,"_invoke",{value:P(t,n,i)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function x(){}function b(){}var _={};p(_,l,(function(){return this}));var j=Object.getPrototypeOf,k=j&&j(j(T([])));k&&k!==r&&a.call(k,l)&&(_=k);var O=b.prototype=w.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(o,u,i,l){var c=h(e[o],e,u);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==t(p)&&a.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):n.resolve(p).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,l)}))}l(c.arg)}var o;u(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 P(t,n,r){var o=d;return function(a,u){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw u;return{value:e,done:!0}}for(r.method=a,r.arg=u;;){var i=r.delegate;if(i){var l=S(i,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=h(t,n,r);if("normal"===c.type){if(o=r.done?m:v,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var u=a.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function V(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 D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(V,this),this.reset(!0)}function T(n){if(n||""===n){var r=n[l];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,u=function t(){for(;++o<n.length;)if(a.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return u.next=u}}throw new TypeError(t(n)+" is not iterable")}return x.prototype=b,u(O,"constructor",{value:b,configurable:!0}),u(b,"constructor",{value:x,configurable:!0}),x.displayName=p(b,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,p(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},E(L.prototype),p(L.prototype,c,(function(){return this})),n.AsyncIterator=L,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var u=new L(f(t,e,r,o),a);return n.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},E(O),p(O,s,"Generator"),p(O,l,(function(){return this})),p(O,"toString",(function(){return"[object Generator]"})),n.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}},n.values=T,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function r(r,o){return i.type="throw",i.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],i=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var l=a.call(u,"catchLoc"),c=a.call(u,"finallyLoc");if(l&&c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(l){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.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 u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(u)},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),N(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;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function a(t,e,n,r,o,a,u){try{var i=t[a](u),l=i.value}catch(t){return void n(t)}i.done?e(l):Promise.resolve(l).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var u=t.apply(e,n);function i(t){a(u,r,o,i,l,"next",t)}function l(t){a(u,r,o,i,l,"throw",t)}i(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy123.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./masker.vue_vue_type_script_setup_true_lang-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy130.js?v=VERSION_NUMBER","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,a,i,l,c,s,p,f,h,d,v,y,m,g,w,x,b,_,j,k,O,E,L,P,S,V,N,D,T,C,F,G,q,I,U,A,B,R,z,M,H,J,Y,K,W,Q,X,Z,$,tt,et,nt,rt,ot,at;return{setters:[function(t){r=t.at,a=t.p,i=t.K,l=t.aj,c=t.al,s=t.k,p=t.l,f=t.a0,h=t.W,d=t.j,v=t.b,y=t.e},function(t){m=t.c,g=t.r,w=t.k,x=t.e,b=t.g,_=t.B,j=t.F,k=t.p,O=t.G,E=t.H,L=t.x,P=t.q,S=t.v,V=t.M,N=t.C,D=t.P,T=t.A,C=t.y,F=t.a_,G=t.U,q=t.al,I=t.D,U=t.ai,A=t.aj,B=t.a9,R=t.a7,z=t.w},function(t){M=t._},function(t){H=t._},function(t){J=t.a,Y=t.u,K=t.c},function(t){W=t.o,Q=t.r},function(t){X=t.u},function(t){Z=t.getTamperRuleByPath,$=t.addBlackExts,tt=t.releaseFileExt,et=t.syncBlackExts,nt=t.removeBlackExts,rt=t.getActionLogsForExts,ot=t.getSiteInfo},function(t){at=t._},null,null,null,null,null],execute:function(){var e={class:"flex gap-col-1rem"},ut={class:"p-2rem"},it=m({__name:"protect-ext",props:{compData:{default:{}}},setup:function(t,y){var m,it=y.expose,lt=v(),ct=X().siteInfo,st=g("file"),pt=g(),ft=g(!1),ht=g(""),dt=g(!1),vt=g({}),yt=g([]),mt=g([]),gt=g(!1),wt=g(!1),xt=g(),bt=g(!1),_t=w({sites:[],list:[]}),jt=w({sites:[{required:!0,message:"请选择同步配置",trigger:"blur"}]}),kt=g([{label:"受保护的文件类型",name:"file",lazy:!0,render:function(){return x("span",null,null)}},{label:"受保护的文件目录",name:"directory",lazy:!0,render:function(){return x("span",null,null)}}]),Ot=b((function(){return"file"===st.value?[{content:"所谓文件类型是指文件名结尾的字符串,不一定是扩展名"},{content:x(j,null,[_("例如"),x("code",null,[_(".php")]),_(","),x("code",null,[_(".html")]),_(","),x("code",null,[_(".js?v=VERSION_NUMBER")]),_(","),x("code",null,[_("index.php")]),_("等")])},{content:x(j,null,[_("例1:"),x("code",null,[_(".php")]),_("匹配:"),x("code",null,[_("./1.php")]),x("code",null,[_("./test/2.php")]),_("不匹配:"),x("code",null,[_("./1.php/1.txt")])])},{content:x(j,null,[_("例2:"),x("code",null,[_("index.php")]),_("匹配:"),x("code",null,[_("./index.php")]),x("code",null,[_("./test/index.php")]),x("code",null,[_("./abc_index.php")]),_("不匹配:"),x("code",null,[_("./index.php.tar.gz")])])}]:[{content:"支持以下4种方式"},{content:x(j,null,[_("1、完整文件路径,如:"),x("code",null,[_("/www/wwwroot/test/123.php")])])},{content:x(j,null,[_("2、相对于网站的相对路径,如:全路径是"),x("code",null,[_("/www/wwwroot/test/app/123.php")]),_("相对路径"),x("code",null,[_("./app/123.php")])])},{content:x(j,null,[_("3、指定目录下的所有文件,如:"),x("code",null,[_("/www/wwwroot/test/app/*")]),_("相对路径"),x("code",null,[_("./app/*")])])},{content:x(j,null,[_("4、指定目录下的指定文件类型,如:"),x("code",null,[_("/www/wwwroot/test/app/*.php")]),_("相对路径"),x("code",null,[_("./app/*.php")])])},{content:x("span",{class:"text-danger"},[_("注意,已经在【受保护的文件类型】中被包含的文件无需专门设置规则")])}]})),Et=[{content:x(j,null,[_("【一键应用】将当前网站已配置的"),x("span",{class:"text-danger"},[_("排除目录")]),_(","),x("span",{class:"text-danger"},[_("防护文件")]),_(",同步配置到其他网站")])}],Lt=function(){var t=u(o().mark((function t(e,n,r,a){var i,l,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=a.label,l=a.value,c=function(){var t=u(o().mark((function t(e,n){var r,a,u,i,c,s,p,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=new Map([["open",tt],["close",tt],["delete",nt]]),a=e.exts,u=vt.value,i=u.pid,c=u.path,s=r.get(l),t.t0=l,t.next="open"===t.t0||"close"===t.t0?7:"delete"===t.t0?10:13;break;case 7:if(!s){t.next=10;break}return p={path_id:i,exts:a,release:"open"!==l?1:0},t.abrupt("return",s(p));case 10:if(!s){t.next=13;break}return f={path_id:i,exts:a,path:c},t.abrupt("return",s(f));case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),t.next=4,e({title:"批量".concat(i),content:"批量".concat(i,",是否继续操作?"),column:[{label:"".concat("file"===st.value?"文件类型":"文件全路径 或 相对路径"),prop:"exts"},K()],onConfirm:function(){var t=u(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(c);case 2:return Pt(),t.abrupt("return",!1);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),Pt=function(){var t=u(o().mark((function t(){var e,n,a,u,i,l,c=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]&&c[0],t.prev=1,e&&(ft.value=!0),t.next=5,Z({path:ct.value.path});case 5:n=t.sent,a=n.data,u=[],a.hasOwnProperty("status")&&(vt.value=a,i=a.black_exts||[],l=a.white_exts||[],null==i||i.forEach((function(t){u.push({exts:t,limit_status:1})})),null==l||l.forEach((function(t){u.push({exts:t,limit_status:0})}))),yt.value=u.filter((function(t){return"file"===st.value?-1===t.exts.indexOf("/"):-1!==t.exts.indexOf("/")})),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),r(t.t0);case 15:return t.prev=15,e&&(ft.value=!1),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])})));return function(){return t.apply(this,arguments)}}(),St=function(){var t=u(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==ht.value){t.next=2;break}return t.abrupt("return",lt.error("文件类型不能为空"));case 2:return t.prev=2,t.next=5,$({path_id:vt.value.pid,path:vt.value.path,exts:ht.value});case 5:e=t.sent,lt.request(e),e.status&&(ht.value="",Pt()),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(2);case 12:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(){return t.apply(this,arguments)}}(),Vt=function(){var t=u(o().mark((function t(e,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.limit_status=n?1:0,t.next=4,a({title:"".concat(n?"开启":"关闭","【").concat(e.exts,"】"),content:"".concat(n?"开启该受保护文件类型后,该类型后缀文件将被保护,是否继续?":"关闭该受保护文件类型后,该类型后缀文件将不被保护,是否继续?"),icon:"warning"});case 4:return t.next=6,i({loading:"正在设置保护文件状态,请稍后...",request:tt({path_id:vt.value.pid,exts:e.exts,release:n?0:1}),message:!0});case 6:t.sent.status&&Pt(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),"cancel"===t.t0&&(e.limit_status=n?0:1);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e,n){return t.apply(this,arguments)}}(),Nt=function(){var t=u(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({loading:wt,request:ot(),data:Array});case 2:e=t.sent,_t.list=e;case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Dt=function(){var t=u(o().mark((function t(){var e,n,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,xt.value.validate();case 2:return t.prev=2,n={},mt.value.forEach((function(t){n[t.exts]=t.limit_status})),a={site_ids:JSON.stringify(_t.sites),exts:JSON.stringify(n)},t.next=8,et(a);case 8:u=t.sent,gt.value=!1,W({title:"批量同步到其他站点",resultData:null===(e=u.data)||void 0===e?void 0:e.map((function(t){return{name:t.name,status:"同步成功"===t.msg,msg:t.msg}})),resultTitle:"批量同步到其他站点操作",showMult:!1}),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(2),r(t.t0);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})));return function(){return t.apply(this,arguments)}}(),Tt=function(){var t=u(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a({title:"删除受保护的文件类型【"+e.exts+"】",content:"删除受保护的文件类型后,文件名以该后缀结尾的文件将失去保护,是否继续操作?",icon:"warning"});case 2:return t.next=4,i({loading:"正在删除受保护的文件类型,请稍后...",request:nt({path_id:vt.value.pid,path:vt.value.path,exts:e.exts}),message:!0});case 4:t.sent.status&&Pt();case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ct=function(){var t=u(o().mark((function t(e){var a,u,i,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,u={path_id:vt.value.pid,exts:e.exts,row:10,p:1,pid:vt.value.pid},t.next=4,rt(u);case 4:i=t.sent,c=i.data,null!==(a=c.data)&&void 0!==a&&a.length?Q({title:"受保护的文件类型【".concat(e.exts,"】日志"),row:e,data:c,params:n(n({},u),{},{total:l(c.page)})}):lt.error("暂无日志"),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),r(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}(),Ft=function(t){ht.value="",st.value=t,Gt.value[1].label="file"===t?"文件类型":"文件全路径 或 相对路径",Pt()},Gt=G([J(),{prop:"exts",label:"文件路径"},{prop:"limit_status",label:"状态",render:function(t,e){var n=1===t.limit_status;return x(q,{size:"small",modelValue:n,"onUpdate:modelValue":function(t){return n=t},onChange:function(e){return Vt(t,e)}},null)}},Y([{title:"日志",onClick:Ct},{title:"删除",onClick:Tt}])]),qt=[{label:"开启受保护文件类型",value:"open",event:Lt},{label:"关闭受保护文件类型",value:"close",event:Lt},{label:"同步到其他站点",value:"sync",event:(m=u(o().mark((function t(e,n,r,a,u){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:mt.value=r.value,_t.sites=[],gt.value=!0,Nt(),z((function(){return gt.value}),(function(t){t||u()}));case 5:case"end":return t.stop()}}),t)}))),function(t,e,n,r,o){return m.apply(this,arguments)})},{label:"删除受保护文件类型",value:"delete",event:Lt}];return k((function(){Pt(!0)})),it({init:function(){Pt(!0)}}),function(t,r){var o,a=c,u=s,i=I,l=H,v=p,y=f,m=M,g=h,w=U,b=A,k=B,G=R,q=d,z=O("bt-loading");return E((P(),S("div",null,[null!==(o=L(vt))&&void 0!==o&&o.path?N("",!0):(P(),V(at,{key:0,compData:n(n({},t.compData),{},{init:Pt})},null,8,["compData"])),x(a,{ref:"tamperRef",type:"",modelValue:L(st),"onUpdate:modelValue":r[0]||(r[0]=function(t){return D(st)?st.value=t:null}),options:L(kt),onChange:Ft},null,8,["modelValue","options"]),x(m,null,{"header-left":T((function(){return[C("div",e,[x(u,{modelValue:L(ht),"onUpdate:modelValue":r[1]||(r[1]=function(t){return D(ht)?ht.value=t:null}),width:"30rem",placeholder:"文件类型"},null,8,["modelValue"]),x(i,{type:"primary",onClick:St},{default:T((function(){return r[4]||(r[4]=[_("添加")])})),_:1})])]})),"header-right":T((function(){return[x(l,{onRefresh:Pt})]})),content:T((function(){return[E(x(v,{ref_key:"protectTableRef",ref:pt,column:L(Gt),"max-height":360,data:L(yt)},null,8,["column","data"]),[[z,L(dt)]])]})),"footer-left":T((function(){return[x(y,{"table-ref":L(pt),options:L(qt)},null,8,["table-ref","options"])]})),"footer-right":T((function(){return r[5]||(r[5]=[])})),_:1}),x(g,{class:"ml-2rem mt-2rem tamper-help-info","list-style":"disc",options:L(Ot)},null,8,["options"]),x(q,{title:"批量同步到其他站点",modelValue:L(gt),"onUpdate:modelValue":r[3]||(r[3]=function(t){return D(gt)?gt.value=t:null}),area:50,"show-footer":"",onConfirm:Dt},{default:T((function(){return[C("div",ut,[E((P(),V(G,{ref_key:"applyFormRef",ref:xt,model:L(_t),rules:L(jt),disabled:L(bt)},{default:T((function(){return[x(k,{label:"同步站点",prop:"sites"},{default:T((function(){return[x(b,{modelValue:L(_t).sites,"onUpdate:modelValue":r[2]||(r[2]=function(t){return L(_t).sites=t}),multiple:"","collapse-tags":"",class:"w-30rem",placeholder:"请选择站点"},{default:T((function(){return[(P(!0),S(j,null,F(L(_t).list,(function(t){return P(),S(j,null,[t.id!==L(ct).id?(P(),V(w,{key:t.id,label:t.rname,value:t.id},null,8,["label","value"])):N("",!0)],64)})),256))]})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["model","rules","disabled"])),[[z,L(wt)]]),x(g,{"list-style":"disc",class:"mt-2rem ml-2rem",options:Et})])]})),_:1},8,["modelValue"])])),[[z,L(ft)],[z,"正在获取站点防篡改信息,请稍侯","title"]])}}});t("default",y(it,[["__scopeId","data-v-35f00a47"]]))}}}))}();
Save File
Cancel