← Back
Editing: project-exception-alarm-legacy.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(t,o,u,a){var i=o&&o.prototype instanceof l?o:l,s=Object.create(i.prototype);return e(s,"_invoke",function(t,e,o){var u,a,i,l=0,s=o||[],f=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(t,e){return u=t,a=0,i=n,p.n=e,c}};function v(t,e){for(a=t,i=e,r=0;!f&&l&&!o&&r<s.length;r++){var o,u=s[r],v=p.p,m=u[2];t>3?(o=m===e)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=v&&((o=t<2&&v<u[1])?(a=0,p.v=e,p.n=u[1]):v<m&&(o=t<3||u[0]>e||e>m)&&(u[4]=t,u[5]=e,p.n=m,a=0))}if(o||t>1)return c;throw f=!0,e}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,m),a=s,i=m;(r=a<2?n:i)||!f;){u||(a?a<3?(a>1&&(p.n=-1),v(a,i)):p.n=i:p.v=i);try{if(l=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=n}else if((r=(f=p.n<0)?i:t.call(e,p))!==c)break}catch(r){u=n,a=1,i=r}finally{l=1}}return{value:r,done:f}}}(t,u,a),!0),s}var c={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(e(r={},u,function(){return this}),r),v=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,e(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=f,e(v,"constructor",f),e(f,"constructor",s),s.displayName="GeneratorFunction",e(f,a,"GeneratorFunction"),e(v),e(v,a,"Generator"),e(v,u,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:m}})()}function e(t,n,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}e=function(t,n,r,o){function a(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?u?u(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},e(t,n,r,o)}function n(t,e,n,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise(function(o,u){var a=t.apply(e,r);function i(t){n(a,o,u,i,c,"next",t)}function c(t){n(a,o,u,i,c,"throw",t)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./index.vue_vue_type_script_setup_true_lang-legacy19.js?v=1765440387","./useStore-legacy3.js?v=1765440387","./validator-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./form-item-legacy.js?v=1765440387","./useController-legacy6.js?v=1765440387","./site-legacy.js?v=1765440387"],function(e,n){"use strict";var o,u,a,i,c,l,s,f,p,v,m,d,y,b,h,g;return{setters:[function(t){o=t.G,u=t.j,a=t.bg,i=t.bU},function(t){c=t.c,l=t.g,s=t.e,f=t.B,p=t.q,v=t.M,m=t.x},function(t){d=t.g,y=t.m,b=t.s},function(t){h=t.u},function(t){g=t.aI},null,null,null,null,null,null],execute:function(){e("default",c({__name:"project-exception-alarm",props:{compData:{}},setup:function(e,n){var c,j,_=n.expose,w=e,x=h().siteInfo,O=o({data:(j=r(t().m(function e(){var n,r,o,u,a;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,d();case 1:return u=t.v,(a=u.data)&&(a.status="open"===(null===(n=w.compData)||void 0===n?void 0:n.type)),t.a(2,a||{status:"open"===(null===(r=w.compData)||void 0===r?void 0:r.type),type:"project_status",title:"项目停止告警",project:null===(o=x.value)||void 0===o?void 0:o.id,tid:"site_push@9",interval:600,count:1,push_count:1,module:[],id:""})}},e)})),function(){return j.apply(this,arguments)}),options:function(t){return l(function(){return[{type:"switch",label:"停止告警",key:"status",attrs:{onChange:function(t){y.status=t}}},{type:"radio",label:"自动重启",key:"count",options:[{label:"自动尝试重启项目",value:1},{label:"不做重启尝试",value:2}]},{type:"custom",render:function(){return s(a,{label:"间隔时间",prop:"interval"},{default:function(){return[s("div",{class:"flex items-center"},[s(u,{class:"!w-[12rem]",width:"12rem",type:"number",modelValue:t.value.interval,"onUpdate:modelValue":function(e){return t.value.interval=e}},{append:"秒"}),s("span",{class:"text-[1.2rem] text-[#666] ml-[12px]"},[f("后再次监控检测条件 ")])])]}})},rules:{interval:[i({message:"请输入间隔时间"}),{validator:function(t,e,n){!/^[1-9]\d*$/.test(e)||e<=0?n(new Error("请输入大于0的整数")):n()}}]}},{type:"custom",render:function(){return s(a,{label:"每天发送",prop:"push_count"},{default:function(){return[s("div",{class:"flex items-center"},[s(u,{class:"!w-[12rem]",width:"12rem",type:"number",modelValue:t.value.push_count,"onUpdate:modelValue":function(e){return t.value.push_count=e}},{append:"次"}),s("span",{class:"text-[1.2rem] text-[#666] ml-[12px]"},[f("后,当日不再发送,次日恢复 ")])])]}})},rules:{push_count:[i({message:"请输入发送次数"}),{validator:function(t,e,n){!/^[1-9]\d*$/.test(e)||e<=0?n(new Error("请输入大于0的整数")):n()}}]}},g("告警方式","module",{attrs:{limit:["sms"]},rules:{module:[i({message:"请选择告警方式"})]}})]})},submit:(c=r(t().m(function e(n,r){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r();case 1:return t.n=2,b(n.value);case 2:return t.a(2,t.v)}},e)})),function(t,e){return c.apply(this,arguments)})}),G=O.BtForm;return _({onConfirm:O.submit}),function(t,e){return p(),v(m(G),{class:"p-2rem"})}}}))}}})}();
Save File
Cancel