← Back
Editing: add-group-legacy.js
!function(){function e(){/*! 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:{},a=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function i(e,o,a,u){var i=o&&o.prototype instanceof f?o:f,l=Object.create(i.prototype);return t(l,"_invoke",function(e,t,o){var a,u,i,f=0,l=o||[],s=!1,p={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(e,t){return a=e,u=0,i=n,p.n=t,c}};function d(e,t){for(u=e,i=t,r=0;!s&&f&&!o&&r<l.length;r++){var o,a=l[r],d=p.p,v=a[2];e>3?(o=v===t)&&(i=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=n):a[0]<=d&&((o=e<2&&d<a[1])?(u=0,p.v=t,p.n=a[1]):d<v&&(o=e<3||a[0]>t||t>v)&&(a[4]=e,a[5]=t,p.n=v,u=0))}if(o||e>1)return c;throw s=!0,t}return function(o,l,v){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&d(l,v),u=l,i=v;(r=u<2?n:i)||!s;){a||(u?u<3?(u>1&&(p.n=-1),d(u,i)):p.n=i:p.v=i);try{if(f=2,a){if(u||(o="next"),r=a[o]){if(!(r=r.call(a,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,u<2&&(u=0)}else 1===u&&(r=a.return)&&r.call(a),u<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=n}else if((r=(s=p.n<0)?i:e.call(t,p))!==c)break}catch(r){a=n,u=1,i=r}finally{f=1}}return{value:r,done:s}}}(e,a,u),!0),l}var c={};function f(){}function l(){}function s(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(t(r={},a,function(){return this}),r),d=s.prototype=f.prototype=Object.create(p);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,t(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,t(d,"constructor",s),t(s,"constructor",l),l.displayName="GeneratorFunction",t(s,u,"GeneratorFunction"),t(d),t(d,u,"Generator"),t(d,a,function(){return this}),t(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:v}})()}function t(e,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,n,r,o){function u(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(u("next",0),u("throw",1),u("return",2))},t(e,n,r,o)}function n(e,t,n,r,o,a,u){try{var i=e[a](u),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}System.register(["./base-lib-legacy.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./site-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387"],function(t,r){"use strict";var o,a,u,i,c,f,l,s,p,d,v,m,y,b;return{setters:[function(e){o=e.c,a=e.r,u=e.k,i=e.q,c=e.v,f=e.e,l=e.A,s=e.x,p=e.aa,d=e.a8},function(e){v=e.K,m=e.j,y=e.e},function(e){b=e.fM},null],execute:function(){var r={class:"p-[2rem]"},h=o({__name:"add-group",props:{compData:{default:{}}},setup:function(t,o){var y=o.expose,h=t,g=a(),_=a(!1),j=u({name:""}),w={name:{required:!0,message:"请输入项目组名称",trigger:"blur"}},O=function(){var t,r=(t=e().m(function t(n){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,g.value.validate();case 1:v({loading:_,request:b({group_name:j.name}),success:function(e){e.status&&(h.compData.refreshEvent&&h.compData.refreshEvent(),n&&n())}});case 2:return e.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(o,a){var u=t.apply(e,r);function i(e){n(u,o,a,i,c,"next",e)}function c(e){n(u,o,a,i,c,"throw",e)}i(void 0)})});return function(e){return r.apply(this,arguments)}}();return y({onConfirm:O}),function(e,t){var n=m,o=p,a=d;return i(),c("div",r,[f(a,{ref_key:"javaAddFormRef",ref:g,model:s(j),disabled:s(_),"label-width":"9rem",rules:w},{default:l(function(){return[f(o,{label:"项目组名称",prop:"name"},{default:l(function(){return[f(n,{modelValue:s(j).name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return s(j).name=e}),width:"22rem"},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model","disabled"])])}}});t("default",y(h,[["__scopeId","data-v-2ad96e59"]]))}}})}();
Save File
Cancel