351 changed files with 376 additions and 1476 deletions
@ -0,0 +1,193 @@ |
|||
<?xml version="1.0"?> |
|||
<doc> |
|||
<assembly> |
|||
<name>Wood.Admin.WebApi</name> |
|||
</assembly> |
|||
<members> |
|||
<member name="T:Wood.Admin.WebApi.Filter.ApiExceptionFilter"> |
|||
<summary> |
|||
action 异常捕捉 filter |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Filter.ApiExceptionFilter.OnExceptionAsync(Microsoft.AspNetCore.Mvc.Filters.ExceptionContext)"> |
|||
<summary> |
|||
异常捕捉 返回 |
|||
</summary> |
|||
<param name="context"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.Filter.ApiPerformanceLoggingFilter"> |
|||
<summary> |
|||
性能统计 |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Filter.ApiPerformanceLoggingFilter.#ctor(Wood.EventBus.IEventBus)"> |
|||
<summary> |
|||
|
|||
</summary> |
|||
<param name="eventBus"></param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Filter.ApiPerformanceLoggingFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext,Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate)"> |
|||
<summary> |
|||
异步接口日志 |
|||
</summary> |
|||
<param name="context"></param> |
|||
<param name="next"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.Filter.ApiResponseWrapperFilter"> |
|||
<summary> |
|||
action结果包装filter |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Filter.ApiResponseWrapperFilter.OnResultExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext,Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate)"> |
|||
<summary> |
|||
|
|||
</summary> |
|||
<param name="context"></param> |
|||
<param name="next"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.Middleware.GlobalExceptionMiddleware"> |
|||
<summary> |
|||
全局异常中间件 |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Middleware.GlobalExceptionMiddleware.#ctor(Microsoft.AspNetCore.Http.RequestDelegate,Wood.EventBus.IEventBus)"> |
|||
<summary> |
|||
全局异常中间件 |
|||
</summary> |
|||
<param name="next"></param> |
|||
<param name="eventBus"></param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Middleware.GlobalExceptionMiddleware.Invoke(Microsoft.AspNetCore.Http.HttpContext)"> |
|||
<summary> |
|||
|
|||
</summary> |
|||
<param name="context"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Middleware.GlobalExceptionMiddleware.HandleExceptionAsync(Microsoft.AspNetCore.Http.HttpContext,System.Exception)"> |
|||
<summary> |
|||
|
|||
</summary> |
|||
<param name="context"></param> |
|||
<param name="exception"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.Middleware.ModelBindingMetadataProvider"> |
|||
<summary> |
|||
Controller Model Binding 处理 |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Middleware.ModelBindingMetadataProvider.CreateDisplayMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext)"> |
|||
<summary> |
|||
|
|||
</summary> |
|||
<param name="context"></param> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.AutoRouteConvention"> |
|||
<summary> |
|||
自动扫描所有带service名称的程序集 |
|||
扫描程序集中所有带service后缀的类 |
|||
给类中所有public 方法注册路由 |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.AutoRouteConvention.Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel)"> |
|||
<summary> |
|||
应用路由规则 |
|||
get 开头为 get |
|||
其他为post |
|||
</summary> |
|||
<param name="application"></param> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.ServiceCollectionExtensions"> |
|||
<summary> |
|||
服务拓展 |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.ServiceCollectionExtensions.ScanAndRegisterLifeTimes(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Reflection.Assembly[])"> |
|||
<summary> |
|||
扫描指定程序集中的所有类型,并根据其实现的生命周期接口自动注册到DI容器中。 |
|||
</summary> |
|||
<param name="services">服务集合</param> |
|||
<param name="assemblies">要扫描的程序集数组</param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.ServiceCollectionExtensions.UseEventBus(Microsoft.AspNetCore.Builder.IApplicationBuilder,System.Reflection.Assembly[])"> |
|||
<summary> |
|||
自动注册所有订阅事件 |
|||
</summary> |
|||
<param name="serviceProvider"></param> |
|||
</member> |
|||
<!-- Badly formed XML comment ignored for member "M:Wood.Admin.WebApi.ServiceCollectionExtensions.AddSqlSugar(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.Configuration.IConfiguration)" --> |
|||
<member name="M:Wood.Admin.WebApi.ServiceCollectionExtensions.UseSqlSugar(Microsoft.AspNetCore.Builder.IApplicationBuilder)"> |
|||
<summary> |
|||
初始化数据库 |
|||
</summary> |
|||
<param name="app"></param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.ServiceCollectionExtensions.AddCache(Microsoft.Extensions.DependencyInjection.IServiceCollection)"> |
|||
<summary> |
|||
开启缓存 |
|||
</summary> |
|||
<param name="services"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.ServiceCollectionExtensions.AddMagicodesIE(Microsoft.Extensions.DependencyInjection.IServiceCollection)"> |
|||
<summary> |
|||
Magicodes |
|||
导入导出 |
|||
</summary> |
|||
<param name="services"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.Program"> |
|||
<summary> |
|||
program |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Program.Main(System.String[])"> |
|||
<summary> |
|||
main |
|||
</summary> |
|||
<param name="args"></param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Program.CreateHostBuilder(System.String[])"> |
|||
<summary> |
|||
启用 |
|||
</summary> |
|||
<param name="args"></param> |
|||
<returns></returns> |
|||
</member> |
|||
<member name="T:Wood.Admin.WebApi.Startup"> |
|||
<summary> |
|||
入口 |
|||
</summary> |
|||
</member> |
|||
<member name="P:Wood.Admin.WebApi.Startup.Configuration"> |
|||
<summary> |
|||
配置 |
|||
</summary> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Startup.#ctor(Microsoft.Extensions.Configuration.IConfiguration,Microsoft.AspNetCore.Hosting.IWebHostEnvironment)"> |
|||
<summary> |
|||
构造函数 |
|||
</summary> |
|||
<param name="configuration"></param> |
|||
<param name="env"></param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Startup.ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)"> |
|||
<summary> |
|||
This method gets called by the runtime. Use this method to add services to the container. |
|||
</summary> |
|||
<param name="services"></param> |
|||
</member> |
|||
<member name="M:Wood.Admin.WebApi.Startup.Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder,Microsoft.AspNetCore.Hosting.IWebHostEnvironment)"> |
|||
<summary> |
|||
This method gets called by the runtime. Use this method to configure the HTTP request pipeline. |
|||
</summary> |
|||
<param name="app"></param> |
|||
<param name="env"></param> |
|||
</member> |
|||
</members> |
|||
</doc> |
@ -1 +0,0 @@ |
|||
import{_ as i,c as o,a as t,b as c,t as l,o as d}from"./index-CsSGZIOI.js";const r="/assets/404-N4aRkdWY.png",a="/assets/404_cloud-CPexjtDj.png",n={name:"Page404",computed:{message(){return"The webmaster said that you can not enter this page..."}}},_={class:"wscn-http404-container"},p={class:"wscn-http404"},h={class:"bullshit"},m={class:"bullshit__headline"};function u(v,s,g,b,f,e){return d(),o("div",_,[t("div",p,[s[4]||(s[4]=c('<div class="pic-404" data-v-77105cad><img class="pic-404__parent" src="'+r+'" alt="404" data-v-77105cad><img class="pic-404__child left" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child mid" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child right" src="'+a+'" alt="404" data-v-77105cad></div>',1)),t("div",h,[s[0]||(s[0]=t("div",{class:"bullshit__oops"},"OOPS!",-1)),s[1]||(s[1]=t("div",{class:"bullshit__info"},"All rights reserved",-1)),t("div",m,l(e.message),1),s[2]||(s[2]=t("div",{class:"bullshit__info"},"Please check that the URL you entered is correct, or click the button below to return to the homepage.",-1)),s[3]||(s[3]=t("a",{href:"/",class:"bullshit__return-home"},"Back to home",-1))])])])}const w=i(n,[["render",u],["__scopeId","data-v-77105cad"]]);export{w as default}; |
@ -1 +0,0 @@ |
|||
import{_ as i,c as o,a as t,b as c,t as l,o as d}from"./index-CL0IOL6c.js";const r="/assets/404-N4aRkdWY.png",a="/assets/404_cloud-CPexjtDj.png",n={name:"Page404",computed:{message(){return"The webmaster said that you can not enter this page..."}}},_={class:"wscn-http404-container"},p={class:"wscn-http404"},h={class:"bullshit"},m={class:"bullshit__headline"};function u(v,s,g,b,f,e){return d(),o("div",_,[t("div",p,[s[4]||(s[4]=c('<div class="pic-404" data-v-77105cad><img class="pic-404__parent" src="'+r+'" alt="404" data-v-77105cad><img class="pic-404__child left" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child mid" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child right" src="'+a+'" alt="404" data-v-77105cad></div>',1)),t("div",h,[s[0]||(s[0]=t("div",{class:"bullshit__oops"},"OOPS!",-1)),s[1]||(s[1]=t("div",{class:"bullshit__info"},"All rights reserved",-1)),t("div",m,l(e.message),1),s[2]||(s[2]=t("div",{class:"bullshit__info"},"Please check that the URL you entered is correct, or click the button below to return to the homepage.",-1)),s[3]||(s[3]=t("a",{href:"/",class:"bullshit__return-home"},"Back to home",-1))])])])}const w=i(n,[["render",u],["__scopeId","data-v-77105cad"]]);export{w as default}; |
@ -1 +0,0 @@ |
|||
import{_ as i,c as o,a as t,b as c,t as l,o as d}from"./index-BO1j28mb.js";const r="/assets/404-N4aRkdWY.png",a="/assets/404_cloud-CPexjtDj.png",n={name:"Page404",computed:{message(){return"The webmaster said that you can not enter this page..."}}},_={class:"wscn-http404-container"},p={class:"wscn-http404"},h={class:"bullshit"},m={class:"bullshit__headline"};function u(v,s,g,b,f,e){return d(),o("div",_,[t("div",p,[s[4]||(s[4]=c('<div class="pic-404" data-v-77105cad><img class="pic-404__parent" src="'+r+'" alt="404" data-v-77105cad><img class="pic-404__child left" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child mid" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child right" src="'+a+'" alt="404" data-v-77105cad></div>',1)),t("div",h,[s[0]||(s[0]=t("div",{class:"bullshit__oops"},"OOPS!",-1)),s[1]||(s[1]=t("div",{class:"bullshit__info"},"All rights reserved",-1)),t("div",m,l(e.message),1),s[2]||(s[2]=t("div",{class:"bullshit__info"},"Please check that the URL you entered is correct, or click the button below to return to the homepage.",-1)),s[3]||(s[3]=t("a",{href:"/",class:"bullshit__return-home"},"Back to home",-1))])])])}const w=i(n,[["render",u],["__scopeId","data-v-77105cad"]]);export{w as default}; |
@ -1 +1 @@ |
|||
import{_ as i,c as o,a as t,b as c,t as l,o as d}from"./index-DVN0Hxy1.js";const r="/assets/404-N4aRkdWY.png",a="/assets/404_cloud-CPexjtDj.png",n={name:"Page404",computed:{message(){return"The webmaster said that you can not enter this page..."}}},_={class:"wscn-http404-container"},p={class:"wscn-http404"},h={class:"bullshit"},m={class:"bullshit__headline"};function u(v,s,g,b,f,e){return d(),o("div",_,[t("div",p,[s[4]||(s[4]=c('<div class="pic-404" data-v-77105cad><img class="pic-404__parent" src="'+r+'" alt="404" data-v-77105cad><img class="pic-404__child left" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child mid" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child right" src="'+a+'" alt="404" data-v-77105cad></div>',1)),t("div",h,[s[0]||(s[0]=t("div",{class:"bullshit__oops"},"OOPS!",-1)),s[1]||(s[1]=t("div",{class:"bullshit__info"},"All rights reserved",-1)),t("div",m,l(e.message),1),s[2]||(s[2]=t("div",{class:"bullshit__info"},"Please check that the URL you entered is correct, or click the button below to return to the homepage.",-1)),s[3]||(s[3]=t("a",{href:"/",class:"bullshit__return-home"},"Back to home",-1))])])])}const w=i(n,[["render",u],["__scopeId","data-v-77105cad"]]);export{w as default}; |
|||
import{_ as i,c as o,a as t,b as c,t as l,o as d}from"./index-CI8aco7-.js";const r="/assets/404-N4aRkdWY.png",a="/assets/404_cloud-CPexjtDj.png",n={name:"Page404",computed:{message(){return"The webmaster said that you can not enter this page..."}}},_={class:"wscn-http404-container"},p={class:"wscn-http404"},h={class:"bullshit"},m={class:"bullshit__headline"};function u(v,s,g,b,f,e){return d(),o("div",_,[t("div",p,[s[4]||(s[4]=c('<div class="pic-404" data-v-77105cad><img class="pic-404__parent" src="'+r+'" alt="404" data-v-77105cad><img class="pic-404__child left" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child mid" src="'+a+'" alt="404" data-v-77105cad><img class="pic-404__child right" src="'+a+'" alt="404" data-v-77105cad></div>',1)),t("div",h,[s[0]||(s[0]=t("div",{class:"bullshit__oops"},"OOPS!",-1)),s[1]||(s[1]=t("div",{class:"bullshit__info"},"All rights reserved",-1)),t("div",m,l(e.message),1),s[2]||(s[2]=t("div",{class:"bullshit__info"},"Please check that the URL you entered is correct, or click the button below to return to the homepage.",-1)),s[3]||(s[3]=t("a",{href:"/",class:"bullshit__return-home"},"Back to home",-1))])])])}const w=i(n,[["render",u],["__scopeId","data-v-77105cad"]]);export{w as default}; |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
.current-select-tableRow,.current-select-tableRow td{background:#e1f3d8!important}.normal-tableRow td{background:#fff}.footerBtns[data-v-6dc0f633]{display:flex;padding:20px;justify-content:space-between}[data-v-ba293134] .el-row{margin:0!important} |
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||
import{v as o}from"./index-DVN0Hxy1.js";function s(t){return o({url:"/api/customlog/getlogrequestjsonlist",method:"get",params:{uId:t}})}export{s as g}; |
|||
import{v as o}from"./index-CI8aco7-.js";function s(t){return o({url:"/api/customlog/getlogrequestjsonlist",method:"get",params:{uId:t}})}export{s as g}; |
@ -1 +0,0 @@ |
|||
import{m as a}from"./index-CL0IOL6c.js";function i(t){return a({url:"/api/dataDictDetail/paged",method:"post",data:t})}function r(){return a({url:"/api/dataDictDetail/maxSort",method:"get"})}function d(t){return a({url:"/api/dataDictDetail/delete",method:"post",data:t})}function D(t){return a({url:"/api/dataDictDetail/add",method:"post",data:t})}function u(t){return a({url:"/api/dataDictDetail/update",method:"post",data:t})}function l(t){return a({url:"/api/dataDictDetail/detail",method:"get",params:{id:t}})}function o(t){return a({url:"/api/dataDictDetail/selectList",method:"get",params:{code:t}})}export{i as a,l as b,r as c,d,D as e,o as g,u}; |
@ -1 +1 @@ |
|||
import{v as a}from"./index-BO1j28mb.js";function i(t){return a({url:"/api/dataDictDetail/paged",method:"post",data:t})}function r(){return a({url:"/api/dataDictDetail/maxSort",method:"get"})}function d(t){return a({url:"/api/dataDictDetail/delete",method:"post",data:t})}function D(t){return a({url:"/api/dataDictDetail/add",method:"post",data:t})}function u(t){return a({url:"/api/dataDictDetail/update",method:"post",data:t})}function l(t){return a({url:"/api/dataDictDetail/detail",method:"get",params:{id:t}})}function o(t){return a({url:"/api/dataDictDetail/selectList",method:"get",params:{code:t}})}export{i as a,l as b,r as c,d,D as e,o as g,u}; |
|||
import{v as a}from"./index-CI8aco7-.js";function i(t){return a({url:"/api/dataDictDetail/paged",method:"post",data:t})}function r(){return a({url:"/api/dataDictDetail/maxSort",method:"get"})}function d(t){return a({url:"/api/dataDictDetail/delete",method:"post",data:t})}function D(t){return a({url:"/api/dataDictDetail/add",method:"post",data:t})}function u(t){return a({url:"/api/dataDictDetail/update",method:"post",data:t})}function l(t){return a({url:"/api/dataDictDetail/detail",method:"get",params:{id:t}})}function o(t){return a({url:"/api/dataDictDetail/selectList",method:"get",params:{code:t}})}export{i as a,l as b,r as c,d,D as e,o as g,u}; |
@ -1 +0,0 @@ |
|||
import{v as a}from"./index-DVN0Hxy1.js";function i(t){return a({url:"/api/dataDictDetail/paged",method:"post",data:t})}function r(){return a({url:"/api/dataDictDetail/maxSort",method:"get"})}function d(t){return a({url:"/api/dataDictDetail/delete",method:"post",data:t})}function D(t){return a({url:"/api/dataDictDetail/add",method:"post",data:t})}function u(t){return a({url:"/api/dataDictDetail/update",method:"post",data:t})}function l(t){return a({url:"/api/dataDictDetail/detail",method:"get",params:{id:t}})}function o(t){return a({url:"/api/dataDictDetail/selectList",method:"get",params:{code:t}})}export{i as a,l as b,r as c,d,D as e,o as g,u}; |
@ -1 +0,0 @@ |
|||
import{l as a}from"./index-CsSGZIOI.js";function i(t){return a({url:"/api/dataDictDetail/paged",method:"post",data:t})}function r(){return a({url:"/api/dataDictDetail/maxSort",method:"get"})}function d(t){return a({url:"/api/dataDictDetail/delete",method:"post",data:t})}function D(t){return a({url:"/api/dataDictDetail/add",method:"post",data:t})}function l(t){return a({url:"/api/dataDictDetail/update",method:"post",data:t})}function u(t){return a({url:"/api/dataDictDetail/detail",method:"get",params:{id:t}})}function o(t){return a({url:"/api/dataDictDetail/selectList",method:"get",params:{code:t}})}export{i as a,u as b,r as c,d,D as e,o as g,l as u}; |
@ -1 +0,0 @@ |
|||
import{v as s,g as C,i as B,r as l,k as E,o as f,h as F,w as t,a as r,d as a,e as c,l as N,c as M,p as O}from"./index-DVN0Hxy1.js";function q(n){return s({url:"/api/autoJob/paged",method:"post",data:n})}function A(n){return s({url:"/api/autoJob/start",method:"get",params:{id:n}})}function G(n){return s({url:"/api/autoJob/stop",method:"get",params:{id:n}})}function P(n){return s({url:"/api/autoJob/deferred",method:"post",data:n})}const R={class:"app-container",style:{"min-height":"200px"}},U={class:"el-custom-dialog-footer"},j={__name:"deferredJobDialog",emits:["onClose"],setup(n,{expose:p,emit:_}){const g=_,e=C({isShowDialog:!1,form:{},loading:!1}),m=B();function b(i){e.loading=!0,v(),e.form.id=i.id,e.form.endTime=i.endTime,e.loading=!1,e.isShowDialog=!0}function v(){var i;e.form={id:null,endTime:""},(i=m.value)==null||i.resetFields()}function w(){e.loading=!0,P(e.form).then(()=>{O("延期成功"),g("onClose"),e.isShowDialog=!1,e.loading=!1})}return p({openDialog:b}),(i,o)=>{const h=l("Edit"),D=l("el-icon"),k=l("el-date-picker"),J=l("el-form-item"),V=l("el-col"),x=l("el-row"),S=l("el-form"),u=l("el-button"),y=l("el-dialog"),T=E("loading");return f(),F(y,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=d=>e.isShowDialog=d),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[r("div",null,[a(D,{class:"el-custom-dialog-icon"},{default:t(()=>[a(h)]),_:1}),o[3]||(o[3]=r("span",null,"延期Job",-1))])]),footer:t(()=>[r("div",U,[a(u,{type:"primary",onClick:w,disabled:e.loading},{default:t(()=>o[4]||(o[4]=[c("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[5]||(o[5]=[c("取消")])),_:1},8,["disabled"])])]),default:t(()=>[N((f(),M("div",R,[a(S,{ref_key:"elFormRef",ref:m,model:e.form,"label-width":"90px"},{default:t(()=>[a(x,null,{default:t(()=>[a(V,{span:24},{default:t(()=>[a(J,{label:"结束时间"},{default:t(()=>[a(k,{modelValue:e.form.endTime,"onUpdate:modelValue":o[0]||(o[0]=d=>e.form.endTime=d),type:"datetime",placeholder:"结束时间"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[T,e.loading]])]),_:1},8,["modelValue"])}}},H=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{j as _,G as a,H as d,q as g,A as s}; |
@ -1 +1 @@ |
|||
import{v as s,g as C,i as B,r as l,k as E,o as f,h as F,w as t,a as r,d as a,e as c,l as N,c as M,p as O}from"./index-BO1j28mb.js";function q(n){return s({url:"/api/autoJob/paged",method:"post",data:n})}function A(n){return s({url:"/api/autoJob/start",method:"get",params:{id:n}})}function G(n){return s({url:"/api/autoJob/stop",method:"get",params:{id:n}})}function P(n){return s({url:"/api/autoJob/deferred",method:"post",data:n})}const R={class:"app-container",style:{"min-height":"200px"}},U={class:"el-custom-dialog-footer"},j={__name:"deferredJobDialog",emits:["onClose"],setup(n,{expose:p,emit:_}){const g=_,e=C({isShowDialog:!1,form:{},loading:!1}),m=B();function b(i){e.loading=!0,v(),e.form.id=i.id,e.form.endTime=i.endTime,e.loading=!1,e.isShowDialog=!0}function v(){var i;e.form={id:null,endTime:""},(i=m.value)==null||i.resetFields()}function w(){e.loading=!0,P(e.form).then(()=>{O("延期成功"),g("onClose"),e.isShowDialog=!1,e.loading=!1})}return p({openDialog:b}),(i,o)=>{const h=l("Edit"),D=l("el-icon"),k=l("el-date-picker"),J=l("el-form-item"),V=l("el-col"),x=l("el-row"),S=l("el-form"),u=l("el-button"),y=l("el-dialog"),T=E("loading");return f(),F(y,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=d=>e.isShowDialog=d),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[r("div",null,[a(D,{class:"el-custom-dialog-icon"},{default:t(()=>[a(h)]),_:1}),o[3]||(o[3]=r("span",null,"延期Job",-1))])]),footer:t(()=>[r("div",U,[a(u,{type:"primary",onClick:w,disabled:e.loading},{default:t(()=>o[4]||(o[4]=[c("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[5]||(o[5]=[c("取消")])),_:1},8,["disabled"])])]),default:t(()=>[N((f(),M("div",R,[a(S,{ref_key:"elFormRef",ref:m,model:e.form,"label-width":"90px"},{default:t(()=>[a(x,null,{default:t(()=>[a(V,{span:24},{default:t(()=>[a(J,{label:"结束时间"},{default:t(()=>[a(k,{modelValue:e.form.endTime,"onUpdate:modelValue":o[0]||(o[0]=d=>e.form.endTime=d),type:"datetime",placeholder:"结束时间"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[T,e.loading]])]),_:1},8,["modelValue"])}}},H=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{j as _,G as a,H as d,q as g,A as s}; |
|||
import{v as s,g as C,i as B,r as l,k as E,o as f,h as F,w as t,a as r,d as a,e as c,l as N,c as M,p as O}from"./index-CI8aco7-.js";function q(n){return s({url:"/api/autoJob/paged",method:"post",data:n})}function A(n){return s({url:"/api/autoJob/start",method:"get",params:{id:n}})}function G(n){return s({url:"/api/autoJob/stop",method:"get",params:{id:n}})}function P(n){return s({url:"/api/autoJob/deferred",method:"post",data:n})}const R={class:"app-container",style:{"min-height":"200px"}},U={class:"el-custom-dialog-footer"},j={__name:"deferredJobDialog",emits:["onClose"],setup(n,{expose:p,emit:_}){const g=_,e=C({isShowDialog:!1,form:{},loading:!1}),m=B();function b(i){e.loading=!0,v(),e.form.id=i.id,e.form.endTime=i.endTime,e.loading=!1,e.isShowDialog=!0}function v(){var i;e.form={id:null,endTime:""},(i=m.value)==null||i.resetFields()}function w(){e.loading=!0,P(e.form).then(()=>{O("延期成功"),g("onClose"),e.isShowDialog=!1,e.loading=!1})}return p({openDialog:b}),(i,o)=>{const h=l("Edit"),D=l("el-icon"),k=l("el-date-picker"),J=l("el-form-item"),V=l("el-col"),x=l("el-row"),S=l("el-form"),u=l("el-button"),y=l("el-dialog"),T=E("loading");return f(),F(y,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=d=>e.isShowDialog=d),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[r("div",null,[a(D,{class:"el-custom-dialog-icon"},{default:t(()=>[a(h)]),_:1}),o[3]||(o[3]=r("span",null,"延期Job",-1))])]),footer:t(()=>[r("div",U,[a(u,{type:"primary",onClick:w,disabled:e.loading},{default:t(()=>o[4]||(o[4]=[c("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[5]||(o[5]=[c("取消")])),_:1},8,["disabled"])])]),default:t(()=>[N((f(),M("div",R,[a(S,{ref_key:"elFormRef",ref:m,model:e.form,"label-width":"90px"},{default:t(()=>[a(x,null,{default:t(()=>[a(V,{span:24},{default:t(()=>[a(J,{label:"结束时间"},{default:t(()=>[a(k,{modelValue:e.form.endTime,"onUpdate:modelValue":o[0]||(o[0]=d=>e.form.endTime=d),type:"datetime",placeholder:"结束时间"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[T,e.loading]])]),_:1},8,["modelValue"])}}},H=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{j as _,G as a,H as d,q as g,A as s}; |
@ -1 +0,0 @@ |
|||
import{m as s,g as C,i as E,r as l,k as B,o as f,h as F,w as t,a as r,d as a,e as c,l as N,c as M,E as O}from"./index-CL0IOL6c.js";function q(n){return s({url:"/api/autoJob/paged",method:"post",data:n})}function A(n){return s({url:"/api/autoJob/start",method:"get",params:{id:n}})}function G(n){return s({url:"/api/autoJob/stop",method:"get",params:{id:n}})}function P(n){return s({url:"/api/autoJob/deferred",method:"post",data:n})}const R={class:"app-container",style:{"min-height":"200px"}},U={class:"el-custom-dialog-footer"},j={__name:"deferredJobDialog",emits:["onClose"],setup(n,{expose:p,emit:_}){const g=_,e=C({isShowDialog:!1,form:{},loading:!1}),m=E();function b(i){e.loading=!0,w(),e.form.id=i.id,e.form.endTime=i.endTime,e.loading=!1,e.isShowDialog=!0}function w(){var i;e.form={id:null,endTime:""},(i=m.value)==null||i.resetFields()}function v(){e.loading=!0,P(e.form).then(()=>{O("延期成功"),g("onClose"),e.isShowDialog=!1,e.loading=!1})}return p({openDialog:b}),(i,o)=>{const h=l("Edit"),D=l("el-icon"),k=l("el-date-picker"),J=l("el-form-item"),V=l("el-col"),x=l("el-row"),S=l("el-form"),u=l("el-button"),y=l("el-dialog"),T=B("loading");return f(),F(y,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=d=>e.isShowDialog=d),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[r("div",null,[a(D,{class:"el-custom-dialog-icon"},{default:t(()=>[a(h)]),_:1}),o[3]||(o[3]=r("span",null,"延期Job",-1))])]),footer:t(()=>[r("div",U,[a(u,{type:"primary",onClick:v,disabled:e.loading},{default:t(()=>o[4]||(o[4]=[c("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[5]||(o[5]=[c("取消")])),_:1},8,["disabled"])])]),default:t(()=>[N((f(),M("div",R,[a(S,{ref_key:"elFormRef",ref:m,model:e.form,"label-width":"90px"},{default:t(()=>[a(x,null,{default:t(()=>[a(V,{span:24},{default:t(()=>[a(J,{label:"结束时间"},{default:t(()=>[a(k,{modelValue:e.form.endTime,"onUpdate:modelValue":o[0]||(o[0]=d=>e.form.endTime=d),type:"datetime",placeholder:"结束时间"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[T,e.loading]])]),_:1},8,["modelValue"])}}},H=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{j as _,G as a,H as d,q as g,A as s}; |
@ -1 +0,0 @@ |
|||
import{l as s,g as C,z as B,r as l,i as E,o as f,k as F,w as t,a as r,d as a,e as c,j as N,c as j,A as z}from"./index-CsSGZIOI.js";function A(n){return s({url:"/api/autoJob/paged",method:"post",data:n})}function q(n){return s({url:"/api/autoJob/start",method:"get",params:{id:n}})}function G(n){return s({url:"/api/autoJob/stop",method:"get",params:{id:n}})}function M(n){return s({url:"/api/autoJob/deferred",method:"post",data:n})}const O={class:"app-container",style:{"min-height":"200px"}},P={class:"el-custom-dialog-footer"},R={__name:"deferredJobDialog",emits:["onClose"],setup(n,{expose:p,emit:_}){const g=_,e=C({isShowDialog:!1,form:{},loading:!1}),m=B();function b(i){e.loading=!0,w(),e.form.id=i.id,e.form.endTime=i.endTime,e.loading=!1,e.isShowDialog=!0}function w(){var i;e.form={id:null,endTime:""},(i=m.value)==null||i.resetFields()}function v(){e.loading=!0,M(e.form).then(()=>{z("延期成功"),g("onClose"),e.isShowDialog=!1,e.loading=!1})}return p({openDialog:b}),(i,o)=>{const D=l("Edit"),h=l("el-icon"),k=l("el-date-picker"),J=l("el-form-item"),V=l("el-col"),x=l("el-row"),S=l("el-form"),u=l("el-button"),y=l("el-dialog"),T=E("loading");return f(),F(y,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=d=>e.isShowDialog=d),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[r("div",null,[a(h,{class:"el-custom-dialog-icon"},{default:t(()=>[a(D)]),_:1}),o[3]||(o[3]=r("span",null,"延期Job",-1))])]),footer:t(()=>[r("div",P,[a(u,{type:"primary",onClick:v,disabled:e.loading},{default:t(()=>o[4]||(o[4]=[c("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[5]||(o[5]=[c("取消")])),_:1},8,["disabled"])])]),default:t(()=>[N((f(),j("div",O,[a(S,{ref_key:"elFormRef",ref:m,model:e.form,"label-width":"90px"},{default:t(()=>[a(x,null,{default:t(()=>[a(V,{span:24},{default:t(()=>[a(J,{label:"结束时间"},{default:t(()=>[a(k,{modelValue:e.form.endTime,"onUpdate:modelValue":o[0]||(o[0]=d=>e.form.endTime=d),type:"datetime",placeholder:"结束时间"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[T,e.loading]])]),_:1},8,["modelValue"])}}},H=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{R as _,G as a,H as d,A as g,q as s}; |
@ -1 +1 @@ |
|||
import{a as B,d as E}from"./dataDictDetailApi-dfKtNhjz.js";import q from"./editDictDetailDialog-B1eYBIuP.js";import{g as T,i as U,r as n,k as h,o as g,h as m,w as l,a as y,d as t,l as I,c as N,e as r,t as R,E as $,p as M}from"./index-DVN0Hxy1.js";const O={class:"app-container",style:{height:"50vh"}},G={__name:"dictDetailDialog",setup(j,{expose:P}){const e=T({isShowDialog:!1,loading:!1,queryParams:{dictId:"",name:""},pageParams:{Sort:"sort",Page:1,PageSize:10,Total:0},tableData:[]}),u=U();function d(){e.loading=!0,B(Object.assign({},e.queryParams,e.pageParams)).then(i=>{e.tableData=i.data.data,e.pageParams.Total=i.data.total}).finally(()=>e.loading=!1)}function D(i){$.confirm("是否删除该字典值?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.loading=!0,E({ids:i}).then(()=>{M({message:"删除成功",type:"success"}),d()}).finally(()=>e.loading=!1)})}function b(i){e.queryParams.dictId=i,d(),e.isShowDialog=!0}return P({openDialog:b}),(i,a)=>{const k=n("Edit"),w=n("el-icon"),v=n("el-input"),c=n("el-form-item"),p=n("el-button"),x=n("el-form"),f=n("el-card"),s=n("el-table-column"),_=n("el-tag"),S=n("el-table"),C=n("el-pagination"),z=n("el-dialog"),V=h("loading");return g(),m(z,{modelValue:e.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=o=>e.isShowDialog=o),draggable:"","close-on-click-modal":!1,width:"1024px"},{header:l(()=>[y("div",null,[t(w,{class:"el-custom-dialog-icon"},{default:l(()=>[t(k)]),_:1}),a[5]||(a[5]=y("span",null,"字典信息",-1))])]),default:l(()=>[I((g(),N("div",O,[t(f,{class:"search-container"},{default:l(()=>[t(x,{inline:!0},{default:l(()=>[t(c,{label:"名称"},{default:l(()=>[t(v,{modelValue:e.queryParams.name,"onUpdate:modelValue":a[0]||(a[0]=o=>e.queryParams.name=o),placeholder:"名称/编码",clearable:""},null,8,["modelValue"])]),_:1}),t(c,null,{default:l(()=>[t(p,{onClick:d,icon:"Search"},{default:l(()=>a[6]||(a[6]=[r("查询")])),_:1}),t(p,{type:"primary",onClick:a[1]||(a[1]=()=>u.value.openDialog())},{default:l(()=>a[7]||(a[7]=[r("新增")])),_:1})]),_:1})]),_:1})]),_:1}),t(f,{class:"paged-table-container"},{default:l(()=>[t(S,{ref:"tableRef","row-key":"id",data:e.tableData,border:""},{default:l(()=>[t(s,{type:"index",width:"50"},{default:l(o=>[r(R(o.$index+1+(e.pageParams.Page-1)*e.pageParams.PageSize),1)]),_:1}),t(s,{prop:"dictValue",label:"字典值"}),t(s,{prop:"dictKey",label:"字典键"}),t(s,{prop:"sort",label:"序号"}),t(s,{prop:"status",label:"状态"},{default:l(o=>[o.row.status===1?(g(),m(_,{key:0,type:"success","disable-transitions":""},{default:l(()=>a[8]||(a[8]=[r("正常")])),_:1})):(g(),m(_,{key:1,type:"danger","disable-transitions":""},{default:l(()=>a[9]||(a[9]=[r("禁用")])),_:1}))]),_:1}),t(s,{prop:"remark",label:"备注"}),t(s,{label:"操作",align:"left",width:"150","show-overflow-tooltip":""},{default:l(o=>[t(p,{link:"",icon:"Edit",type:"primary",onClick:()=>u.value.openDialog(o.row.id)},{default:l(()=>a[10]||(a[10]=[r(" 编辑 ")])),_:2},1032,["onClick"]),t(p,{link:"",icon:"Delete",type:"danger",onClick:K=>D([o.row.id])},{default:l(()=>a[11]||(a[11]=[r(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),t(C,{style:{"margin-top":"10px"},currentPage:e.pageParams.Page,"onUpdate:currentPage":a[2]||(a[2]=o=>e.pageParams.Page=o),"page-size":e.pageParams.PageSize,"onUpdate:pageSize":a[3]||(a[3]=o=>e.pageParams.PageSize=o),total:e.pageParams.Total,background:"",layout:"total, sizes,prev, pager, next",onSizeChange:d,onCurrentChange:d,"page-sizes":[10,20,50,100]},null,8,["currentPage","page-size","total"])]),_:1}),t(q,{ref_key:"editDictDetailDialogRef",ref:u,onOnClose:d,"dict-id":e.queryParams.dictId},null,8,["dict-id"])])),[[V,e.loading]])]),_:1},8,["modelValue"])}}};export{G as default}; |
|||
import{a as B,d as E}from"./dataDictDetailApi-Kg01d_jj.js";import q from"./editDictDetailDialog-D4k1iggk.js";import{g as T,i as U,r as n,k as h,o as g,h as m,w as l,a as y,d as t,l as I,c as N,e as r,t as R,E as $,p as M}from"./index-CI8aco7-.js";const O={class:"app-container",style:{height:"50vh"}},G={__name:"dictDetailDialog",setup(j,{expose:P}){const e=T({isShowDialog:!1,loading:!1,queryParams:{dictId:"",name:""},pageParams:{Sort:"sort",Page:1,PageSize:10,Total:0},tableData:[]}),u=U();function d(){e.loading=!0,B(Object.assign({},e.queryParams,e.pageParams)).then(i=>{e.tableData=i.data.data,e.pageParams.Total=i.data.total}).finally(()=>e.loading=!1)}function D(i){$.confirm("是否删除该字典值?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.loading=!0,E({ids:i}).then(()=>{M({message:"删除成功",type:"success"}),d()}).finally(()=>e.loading=!1)})}function b(i){e.queryParams.dictId=i,d(),e.isShowDialog=!0}return P({openDialog:b}),(i,a)=>{const k=n("Edit"),w=n("el-icon"),v=n("el-input"),c=n("el-form-item"),p=n("el-button"),x=n("el-form"),f=n("el-card"),s=n("el-table-column"),_=n("el-tag"),S=n("el-table"),C=n("el-pagination"),z=n("el-dialog"),V=h("loading");return g(),m(z,{modelValue:e.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=o=>e.isShowDialog=o),draggable:"","close-on-click-modal":!1,width:"1024px"},{header:l(()=>[y("div",null,[t(w,{class:"el-custom-dialog-icon"},{default:l(()=>[t(k)]),_:1}),a[5]||(a[5]=y("span",null,"字典信息",-1))])]),default:l(()=>[I((g(),N("div",O,[t(f,{class:"search-container"},{default:l(()=>[t(x,{inline:!0},{default:l(()=>[t(c,{label:"名称"},{default:l(()=>[t(v,{modelValue:e.queryParams.name,"onUpdate:modelValue":a[0]||(a[0]=o=>e.queryParams.name=o),placeholder:"名称/编码",clearable:""},null,8,["modelValue"])]),_:1}),t(c,null,{default:l(()=>[t(p,{onClick:d,icon:"Search"},{default:l(()=>a[6]||(a[6]=[r("查询")])),_:1}),t(p,{type:"primary",onClick:a[1]||(a[1]=()=>u.value.openDialog())},{default:l(()=>a[7]||(a[7]=[r("新增")])),_:1})]),_:1})]),_:1})]),_:1}),t(f,{class:"paged-table-container"},{default:l(()=>[t(S,{ref:"tableRef","row-key":"id",data:e.tableData,border:""},{default:l(()=>[t(s,{type:"index",width:"50"},{default:l(o=>[r(R(o.$index+1+(e.pageParams.Page-1)*e.pageParams.PageSize),1)]),_:1}),t(s,{prop:"dictValue",label:"字典值"}),t(s,{prop:"dictKey",label:"字典键"}),t(s,{prop:"sort",label:"序号"}),t(s,{prop:"status",label:"状态"},{default:l(o=>[o.row.status===1?(g(),m(_,{key:0,type:"success","disable-transitions":""},{default:l(()=>a[8]||(a[8]=[r("正常")])),_:1})):(g(),m(_,{key:1,type:"danger","disable-transitions":""},{default:l(()=>a[9]||(a[9]=[r("禁用")])),_:1}))]),_:1}),t(s,{prop:"remark",label:"备注"}),t(s,{label:"操作",align:"left",width:"150","show-overflow-tooltip":""},{default:l(o=>[t(p,{link:"",icon:"Edit",type:"primary",onClick:()=>u.value.openDialog(o.row.id)},{default:l(()=>a[10]||(a[10]=[r(" 编辑 ")])),_:2},1032,["onClick"]),t(p,{link:"",icon:"Delete",type:"danger",onClick:K=>D([o.row.id])},{default:l(()=>a[11]||(a[11]=[r(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),t(C,{style:{"margin-top":"10px"},currentPage:e.pageParams.Page,"onUpdate:currentPage":a[2]||(a[2]=o=>e.pageParams.Page=o),"page-size":e.pageParams.PageSize,"onUpdate:pageSize":a[3]||(a[3]=o=>e.pageParams.PageSize=o),total:e.pageParams.Total,background:"",layout:"total, sizes,prev, pager, next",onSizeChange:d,onCurrentChange:d,"page-sizes":[10,20,50,100]},null,8,["currentPage","page-size","total"])]),_:1}),t(q,{ref_key:"editDictDetailDialogRef",ref:u,onOnClose:d,"dict-id":e.queryParams.dictId},null,8,["dict-id"])])),[[V,e.loading]])]),_:1},8,["modelValue"])}}};export{G as default}; |
@ -1 +0,0 @@ |
|||
import{a as B,d as E}from"./dataDictDetailApi-CT6MIz2g.js";import q from"./editDictDetailDialog-BG1bOjVD.js";import{g as T,i as I,r as n,k as U,o as g,h as m,w as l,a as y,d as t,l as h,c as N,e as r,t as R,I as $,E as M}from"./index-CL0IOL6c.js";const O={class:"app-container",style:{height:"50vh"}},G={__name:"dictDetailDialog",setup(j,{expose:P}){const e=T({isShowDialog:!1,loading:!1,queryParams:{dictId:"",name:""},pageParams:{Sort:"sort",Page:1,PageSize:10,Total:0},tableData:[]}),u=I();function d(){e.loading=!0,B(Object.assign({},e.queryParams,e.pageParams)).then(i=>{e.tableData=i.data.data,e.pageParams.Total=i.data.total}).finally(()=>e.loading=!1)}function D(i){$.confirm("是否删除该字典值?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.loading=!0,E({ids:i}).then(()=>{M({message:"删除成功",type:"success"}),d()}).finally(()=>e.loading=!1)})}function b(i){e.queryParams.dictId=i,d(),e.isShowDialog=!0}return P({openDialog:b}),(i,a)=>{const k=n("Edit"),w=n("el-icon"),v=n("el-input"),c=n("el-form-item"),p=n("el-button"),x=n("el-form"),f=n("el-card"),s=n("el-table-column"),_=n("el-tag"),S=n("el-table"),C=n("el-pagination"),z=n("el-dialog"),V=U("loading");return g(),m(z,{modelValue:e.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=o=>e.isShowDialog=o),draggable:"","close-on-click-modal":!1,width:"1024px"},{header:l(()=>[y("div",null,[t(w,{class:"el-custom-dialog-icon"},{default:l(()=>[t(k)]),_:1}),a[5]||(a[5]=y("span",null,"字典信息",-1))])]),default:l(()=>[h((g(),N("div",O,[t(f,{class:"search-container"},{default:l(()=>[t(x,{inline:!0},{default:l(()=>[t(c,{label:"名称"},{default:l(()=>[t(v,{modelValue:e.queryParams.name,"onUpdate:modelValue":a[0]||(a[0]=o=>e.queryParams.name=o),placeholder:"名称/编码",clearable:""},null,8,["modelValue"])]),_:1}),t(c,null,{default:l(()=>[t(p,{onClick:d,icon:"Search"},{default:l(()=>a[6]||(a[6]=[r("查询")])),_:1}),t(p,{type:"primary",onClick:a[1]||(a[1]=()=>u.value.openDialog())},{default:l(()=>a[7]||(a[7]=[r("新增")])),_:1})]),_:1})]),_:1})]),_:1}),t(f,{class:"paged-table-container"},{default:l(()=>[t(S,{ref:"tableRef","row-key":"id",data:e.tableData,border:""},{default:l(()=>[t(s,{type:"index",width:"50"},{default:l(o=>[r(R(o.$index+1+(e.pageParams.Page-1)*e.pageParams.PageSize),1)]),_:1}),t(s,{prop:"dictValue",label:"字典值"}),t(s,{prop:"dictKey",label:"字典键"}),t(s,{prop:"sort",label:"序号"}),t(s,{prop:"status",label:"状态"},{default:l(o=>[o.row.status===1?(g(),m(_,{key:0,type:"success","disable-transitions":""},{default:l(()=>a[8]||(a[8]=[r("正常")])),_:1})):(g(),m(_,{key:1,type:"danger","disable-transitions":""},{default:l(()=>a[9]||(a[9]=[r("禁用")])),_:1}))]),_:1}),t(s,{prop:"remark",label:"备注"}),t(s,{label:"操作",align:"left",width:"150","show-overflow-tooltip":""},{default:l(o=>[t(p,{link:"",icon:"Edit",type:"primary",onClick:()=>u.value.openDialog(o.row.id)},{default:l(()=>a[10]||(a[10]=[r(" 编辑 ")])),_:2},1032,["onClick"]),t(p,{link:"",icon:"Delete",type:"danger",onClick:K=>D([o.row.id])},{default:l(()=>a[11]||(a[11]=[r(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),t(C,{style:{"margin-top":"10px"},currentPage:e.pageParams.Page,"onUpdate:currentPage":a[2]||(a[2]=o=>e.pageParams.Page=o),"page-size":e.pageParams.PageSize,"onUpdate:pageSize":a[3]||(a[3]=o=>e.pageParams.PageSize=o),total:e.pageParams.Total,background:"",layout:"total, sizes,prev, pager, next",onSizeChange:d,onCurrentChange:d,"page-sizes":[10,20,50,100]},null,8,["currentPage","page-size","total"])]),_:1}),t(q,{ref_key:"editDictDetailDialogRef",ref:u,onOnClose:d,"dict-id":e.queryParams.dictId},null,8,["dict-id"])])),[[V,e.loading]])]),_:1},8,["modelValue"])}}};export{G as default}; |
@ -1 +0,0 @@ |
|||
import{a as B,d as E}from"./dataDictDetailApi-C-i4OK3W.js";import q from"./editDictDetailDialog-CIm6hjUI.js";import{g as T,i as U,r as n,k as h,o as g,h as m,w as l,a as y,d as t,l as I,c as N,e as r,t as R,E as $,p as M}from"./index-BO1j28mb.js";const O={class:"app-container",style:{height:"50vh"}},G={__name:"dictDetailDialog",setup(j,{expose:P}){const e=T({isShowDialog:!1,loading:!1,queryParams:{dictId:"",name:""},pageParams:{Sort:"sort",Page:1,PageSize:10,Total:0},tableData:[]}),u=U();function d(){e.loading=!0,B(Object.assign({},e.queryParams,e.pageParams)).then(i=>{e.tableData=i.data.data,e.pageParams.Total=i.data.total}).finally(()=>e.loading=!1)}function D(i){$.confirm("是否删除该字典值?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.loading=!0,E({ids:i}).then(()=>{M({message:"删除成功",type:"success"}),d()}).finally(()=>e.loading=!1)})}function b(i){e.queryParams.dictId=i,d(),e.isShowDialog=!0}return P({openDialog:b}),(i,a)=>{const k=n("Edit"),w=n("el-icon"),v=n("el-input"),c=n("el-form-item"),p=n("el-button"),x=n("el-form"),f=n("el-card"),s=n("el-table-column"),_=n("el-tag"),S=n("el-table"),C=n("el-pagination"),z=n("el-dialog"),V=h("loading");return g(),m(z,{modelValue:e.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=o=>e.isShowDialog=o),draggable:"","close-on-click-modal":!1,width:"1024px"},{header:l(()=>[y("div",null,[t(w,{class:"el-custom-dialog-icon"},{default:l(()=>[t(k)]),_:1}),a[5]||(a[5]=y("span",null,"字典信息",-1))])]),default:l(()=>[I((g(),N("div",O,[t(f,{class:"search-container"},{default:l(()=>[t(x,{inline:!0},{default:l(()=>[t(c,{label:"名称"},{default:l(()=>[t(v,{modelValue:e.queryParams.name,"onUpdate:modelValue":a[0]||(a[0]=o=>e.queryParams.name=o),placeholder:"名称/编码",clearable:""},null,8,["modelValue"])]),_:1}),t(c,null,{default:l(()=>[t(p,{onClick:d,icon:"Search"},{default:l(()=>a[6]||(a[6]=[r("查询")])),_:1}),t(p,{type:"primary",onClick:a[1]||(a[1]=()=>u.value.openDialog())},{default:l(()=>a[7]||(a[7]=[r("新增")])),_:1})]),_:1})]),_:1})]),_:1}),t(f,{class:"paged-table-container"},{default:l(()=>[t(S,{ref:"tableRef","row-key":"id",data:e.tableData,border:""},{default:l(()=>[t(s,{type:"index",width:"50"},{default:l(o=>[r(R(o.$index+1+(e.pageParams.Page-1)*e.pageParams.PageSize),1)]),_:1}),t(s,{prop:"dictValue",label:"字典值"}),t(s,{prop:"dictKey",label:"字典键"}),t(s,{prop:"sort",label:"序号"}),t(s,{prop:"status",label:"状态"},{default:l(o=>[o.row.status===1?(g(),m(_,{key:0,type:"success","disable-transitions":""},{default:l(()=>a[8]||(a[8]=[r("正常")])),_:1})):(g(),m(_,{key:1,type:"danger","disable-transitions":""},{default:l(()=>a[9]||(a[9]=[r("禁用")])),_:1}))]),_:1}),t(s,{prop:"remark",label:"备注"}),t(s,{label:"操作",align:"left",width:"150","show-overflow-tooltip":""},{default:l(o=>[t(p,{link:"",icon:"Edit",type:"primary",onClick:()=>u.value.openDialog(o.row.id)},{default:l(()=>a[10]||(a[10]=[r(" 编辑 ")])),_:2},1032,["onClick"]),t(p,{link:"",icon:"Delete",type:"danger",onClick:K=>D([o.row.id])},{default:l(()=>a[11]||(a[11]=[r(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),t(C,{style:{"margin-top":"10px"},currentPage:e.pageParams.Page,"onUpdate:currentPage":a[2]||(a[2]=o=>e.pageParams.Page=o),"page-size":e.pageParams.PageSize,"onUpdate:pageSize":a[3]||(a[3]=o=>e.pageParams.PageSize=o),total:e.pageParams.Total,background:"",layout:"total, sizes,prev, pager, next",onSizeChange:d,onCurrentChange:d,"page-sizes":[10,20,50,100]},null,8,["currentPage","page-size","total"])]),_:1}),t(q,{ref_key:"editDictDetailDialogRef",ref:u,onOnClose:d,"dict-id":e.queryParams.dictId},null,8,["dict-id"])])),[[V,e.loading]])]),_:1},8,["modelValue"])}}};export{G as default}; |
@ -1 +0,0 @@ |
|||
import{a as B,d as q}from"./dataDictDetailApi-vfLmp7YF.js";import E from"./editDictDetailDialog-ChRiJYXN.js";import{g as T,z as U,r as n,i as I,o as g,k as m,w as l,a as y,d as t,j as N,c as R,e as r,t as $,D as h,A as j}from"./index-CsSGZIOI.js";const M={class:"app-container",style:{height:"50vh"}},G={__name:"dictDetailDialog",setup(O,{expose:P}){const e=T({isShowDialog:!1,loading:!1,queryParams:{dictId:"",name:""},pageParams:{Sort:"sort",Page:1,PageSize:10,Total:0},tableData:[]}),u=U();function d(){e.loading=!0,B(Object.assign({},e.queryParams,e.pageParams)).then(i=>{e.tableData=i.data.data,e.pageParams.Total=i.data.total}).finally(()=>e.loading=!1)}function D(i){h.confirm("是否删除该字典值?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e.loading=!0,q({ids:i}).then(()=>{j({message:"删除成功",type:"success"}),d()}).finally(()=>e.loading=!1)})}function b(i){e.queryParams.dictId=i,d(),e.isShowDialog=!0}return P({openDialog:b}),(i,a)=>{const k=n("Edit"),w=n("el-icon"),v=n("el-input"),c=n("el-form-item"),p=n("el-button"),x=n("el-form"),f=n("el-card"),s=n("el-table-column"),_=n("el-tag"),S=n("el-table"),C=n("el-pagination"),z=n("el-dialog"),V=I("loading");return g(),m(z,{modelValue:e.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=o=>e.isShowDialog=o),draggable:"","close-on-click-modal":!1,width:"1024px"},{header:l(()=>[y("div",null,[t(w,{class:"el-custom-dialog-icon"},{default:l(()=>[t(k)]),_:1}),a[5]||(a[5]=y("span",null,"字典信息",-1))])]),default:l(()=>[N((g(),R("div",M,[t(f,{class:"search-container"},{default:l(()=>[t(x,{inline:!0},{default:l(()=>[t(c,{label:"名称"},{default:l(()=>[t(v,{modelValue:e.queryParams.name,"onUpdate:modelValue":a[0]||(a[0]=o=>e.queryParams.name=o),placeholder:"名称/编码",clearable:""},null,8,["modelValue"])]),_:1}),t(c,null,{default:l(()=>[t(p,{onClick:d,icon:"Search"},{default:l(()=>a[6]||(a[6]=[r("查询")])),_:1}),t(p,{type:"primary",onClick:a[1]||(a[1]=()=>u.value.openDialog())},{default:l(()=>a[7]||(a[7]=[r("新增")])),_:1})]),_:1})]),_:1})]),_:1}),t(f,{class:"paged-table-container"},{default:l(()=>[t(S,{ref:"tableRef","row-key":"id",data:e.tableData,border:""},{default:l(()=>[t(s,{type:"index",width:"50"},{default:l(o=>[r($(o.$index+1+(e.pageParams.Page-1)*e.pageParams.PageSize),1)]),_:1}),t(s,{prop:"dictValue",label:"字典值"}),t(s,{prop:"dictKey",label:"字典键"}),t(s,{prop:"sort",label:"序号"}),t(s,{prop:"status",label:"状态"},{default:l(o=>[o.row.status===1?(g(),m(_,{key:0,type:"success","disable-transitions":""},{default:l(()=>a[8]||(a[8]=[r("正常")])),_:1})):(g(),m(_,{key:1,type:"danger","disable-transitions":""},{default:l(()=>a[9]||(a[9]=[r("禁用")])),_:1}))]),_:1}),t(s,{prop:"remark",label:"备注"}),t(s,{label:"操作",align:"left",width:"150","show-overflow-tooltip":""},{default:l(o=>[t(p,{link:"",icon:"Edit",type:"primary",onClick:()=>u.value.openDialog(o.row.id)},{default:l(()=>a[10]||(a[10]=[r(" 编辑 ")])),_:2},1032,["onClick"]),t(p,{link:"",icon:"Delete",type:"danger",onClick:A=>D([o.row.id])},{default:l(()=>a[11]||(a[11]=[r(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),t(C,{style:{"margin-top":"10px"},currentPage:e.pageParams.Page,"onUpdate:currentPage":a[2]||(a[2]=o=>e.pageParams.Page=o),"page-size":e.pageParams.PageSize,"onUpdate:pageSize":a[3]||(a[3]=o=>e.pageParams.PageSize=o),total:e.pageParams.Total,background:"",layout:"total, sizes,prev, pager, next",onSizeChange:d,onCurrentChange:d,"page-sizes":[10,20,50,100]},null,8,["currentPage","page-size","total"])]),_:1}),t(E,{ref_key:"editDictDetailDialogRef",ref:u,onOnClose:d,"dict-id":e.queryParams.dictId},null,8,["dict-id"])])),[[V,e.loading]])]),_:1},8,["modelValue"])}}};export{G as default}; |
@ -1 +1 @@ |
|||
import{g as p}from"./dataDictDetailApi-dfKtNhjz.js";import{I as i,J as v,i as _,j as f,r as u,o as l,h as r,w as V,c as g,F as k,m as M}from"./index-DVN0Hxy1.js";const B={__name:"dictSelect",props:i({dict:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=v(t,"modelValue"),a=_([]),c=t;return f(()=>{p(c.dict).then(s=>{a.value=s.data})}),(s,n)=>{const d=u("el-option"),m=u("el-select");return l(),r(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{default:V(()=>[(l(!0),g(k,null,M(a.value,e=>(l(),r(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{B as default}; |
|||
import{g as p}from"./dataDictDetailApi-Kg01d_jj.js";import{I as i,J as v,i as _,j as f,r as u,o as l,h as r,w as V,c as g,F as k,m as M}from"./index-CI8aco7-.js";const B={__name:"dictSelect",props:i({dict:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=v(t,"modelValue"),a=_([]),c=t;return f(()=>{p(c.dict).then(s=>{a.value=s.data})}),(s,n)=>{const d=u("el-option"),m=u("el-select");return l(),r(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{default:V(()=>[(l(!0),g(k,null,M(a.value,e=>(l(),r(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{B as default}; |
@ -1 +0,0 @@ |
|||
import{g as p}from"./dataDictDetailApi-CT6MIz2g.js";import{n as i,u as v,i as _,j as f,r as u,o as l,h as r,w as V,c as g,F as k,p as M}from"./index-CL0IOL6c.js";const B={__name:"dictSelect",props:i({dict:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=v(t,"modelValue"),a=_([]),c=t;return f(()=>{p(c.dict).then(s=>{a.value=s.data})}),(s,n)=>{const d=u("el-option"),m=u("el-select");return l(),r(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{default:V(()=>[(l(!0),g(k,null,M(a.value,e=>(l(),r(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{B as default}; |
@ -1 +0,0 @@ |
|||
import{g as p}from"./dataDictDetailApi-C-i4OK3W.js";import{I as i,J as v,i as _,j as f,r as u,o as l,h as r,w as V,c as g,F as k,m as M}from"./index-BO1j28mb.js";const B={__name:"dictSelect",props:i({dict:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=v(t,"modelValue"),a=_([]),c=t;return f(()=>{p(c.dict).then(s=>{a.value=s.data})}),(s,n)=>{const d=u("el-option"),m=u("el-select");return l(),r(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{default:V(()=>[(l(!0),g(k,null,M(a.value,e=>(l(),r(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{B as default}; |
@ -1 +0,0 @@ |
|||
import{g as p}from"./dataDictDetailApi-vfLmp7YF.js";import{B as i,C as v,z as _,h as f,r as u,o as l,k as r,w as V,c as g,F as k,m as B}from"./index-CsSGZIOI.js";const x={__name:"dictSelect",props:i({dict:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=v(t,"modelValue"),a=_([]),c=t;return f(()=>{p(c.dict).then(s=>{a.value=s.data})}),(s,n)=>{const d=u("el-option"),m=u("el-select");return l(),r(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{default:V(()=>[(l(!0),g(k,null,B(a.value,e=>(l(),r(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{x as default}; |
@ -1 +0,0 @@ |
|||
import{g as B,i as _,r as s,k as F,o as g,h as K,w as l,a as m,d as a,e as y,l as h,c as N,z as U,p as w}from"./index-BO1j28mb.js";import{g as $,u as z}from"./roleApi-5o7N_hM7.js";import M from"./orgTree-BG52n0CD.js";import O from"./enumSelect-Ccq-sba0.js";import"./orgApi-BlXck7vw.js";const q={class:"app-container",style:{"min-height":"50px"}},A={class:"el-custom-dialog-footer"},Q={__name:"editDataTypeDialog",emits:["onClose"],setup(G,{expose:S,emit:v}){const T=v,e=B({isShowDialog:!1,form:{},selectOptions:[],loading:!1}),d=_(),n=_();function k(t){D(),e.form.id=t.id,e.form.dataScopeType=t.dataScopeType,t.dataScopeType===16&&(e.loading=!0,$(t.id).then(o=>{var i;(i=n.value)==null||i.setCheckedKeys(o.data.orgs)}).finally(()=>e.loading=!1)),e.isShowDialog=!0}function D(){var t,o;e.form={id:null,dataScopeType:"",orgs:[]},(t=n.value)==null||t.setCheckedKeys([]),(o=d.value)==null||o.resetFields()}function x(){d.value.validate(t=>{var o;if(t){if(e.form.orgs=(o=n.value)==null?void 0:o.getCheckedKeys(),e.form.dataScopeType===16&&e.form.orgs.length===0){w({message:"请选择自定义部门数据权限!",type:"warning"});return}e.loading=!0,z(e.form).then(()=>{T("onClose"),w({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return S({openDialog:k}),(t,o)=>{const i=s("Edit"),b=s("el-icon"),p=s("el-form-item"),c=s("el-col"),f=s("el-row"),C=s("el-scrollbar"),V=s("el-form"),u=s("el-button"),R=s("el-dialog"),E=F("loading");return g(),K(R,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=r=>e.isShowDialog=r),draggable:"","close-on-click-modal":!1,width:"700px"},{header:l(()=>[m("div",null,[a(b,{class:"el-custom-dialog-icon"},{default:l(()=>[a(i)]),_:1}),o[3]||(o[3]=m("span",null,"角色数据权限",-1))])]),footer:l(()=>[m("div",A,[a(u,{type:"primary",onClick:x,disabled:e.loading},{default:l(()=>o[4]||(o[4]=[y("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:l(()=>o[5]||(o[5]=[y("取消")])),_:1},8,["disabled"])])]),default:l(()=>[h((g(),N("div",q,[a(V,{ref_key:"elFormRef",ref:d,model:e.form,"label-width":"90px"},{default:l(()=>[a(f,null,{default:l(()=>[a(c,{span:18},{default:l(()=>[a(p,{label:"数据范围",prop:"dataScopeType"},{default:l(()=>[a(O,{enum:"DataScopeTypeEnum",modelValue:e.form.dataScopeType,"onUpdate:modelValue":o[0]||(o[0]=r=>e.form.dataScopeType=r)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(a(f,null,{default:l(()=>[a(c,{span:24},{default:l(()=>[a(p,{label:"部门权限"},{default:l(()=>[a(C,{"max-height":"500px",style:{width:"100%"}},{default:l(()=>[a(M,{ref_key:"elTreeRef",ref:n,"default-expand-all":"","show-checkbox":"","check-strictly":""},null,512)]),_:1})]),_:1})]),_:1})]),_:1},512),[[U,e.form.dataScopeType===16]])]),_:1},8,["model"])])),[[E,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +0,0 @@ |
|||
import{g as B,i as _,r as s,k as F,o as g,h as K,w as l,a as m,d as a,e as y,l as h,c as N,ag as U,E as w}from"./index-CL0IOL6c.js";import{g as $,u as M}from"./roleApi-BDJCNzzM.js";import O from"./orgTree-CZlB4jkB.js";import q from"./enumSelect-B79BbPRz.js";import"./orgApi-B9lfoxVb.js";const z={class:"app-container",style:{"min-height":"50px"}},A={class:"el-custom-dialog-footer"},Q={__name:"editDataTypeDialog",emits:["onClose"],setup(G,{expose:S,emit:v}){const T=v,e=B({isShowDialog:!1,form:{},selectOptions:[],loading:!1}),d=_(),n=_();function k(t){D(),e.form.id=t.id,e.form.dataScopeType=t.dataScopeType,t.dataScopeType===16&&(e.loading=!0,$(t.id).then(o=>{var i;(i=n.value)==null||i.setCheckedKeys(o.data.orgs)}).finally(()=>e.loading=!1)),e.isShowDialog=!0}function D(){var t,o;e.form={id:null,dataScopeType:"",orgs:[]},(t=n.value)==null||t.setCheckedKeys([]),(o=d.value)==null||o.resetFields()}function x(){d.value.validate(t=>{var o;if(t){if(e.form.orgs=(o=n.value)==null?void 0:o.getCheckedKeys(),e.form.dataScopeType===16&&e.form.orgs.length===0){w({message:"请选择自定义部门数据权限!",type:"warning"});return}e.loading=!0,M(e.form).then(()=>{T("onClose"),w({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return S({openDialog:k}),(t,o)=>{const i=s("Edit"),b=s("el-icon"),p=s("el-form-item"),c=s("el-col"),f=s("el-row"),C=s("el-scrollbar"),V=s("el-form"),u=s("el-button"),E=s("el-dialog"),R=F("loading");return g(),K(E,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=r=>e.isShowDialog=r),draggable:"","close-on-click-modal":!1,width:"700px"},{header:l(()=>[m("div",null,[a(b,{class:"el-custom-dialog-icon"},{default:l(()=>[a(i)]),_:1}),o[3]||(o[3]=m("span",null,"角色数据权限",-1))])]),footer:l(()=>[m("div",A,[a(u,{type:"primary",onClick:x,disabled:e.loading},{default:l(()=>o[4]||(o[4]=[y("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:l(()=>o[5]||(o[5]=[y("取消")])),_:1},8,["disabled"])])]),default:l(()=>[h((g(),N("div",z,[a(V,{ref_key:"elFormRef",ref:d,model:e.form,"label-width":"90px"},{default:l(()=>[a(f,null,{default:l(()=>[a(c,{span:18},{default:l(()=>[a(p,{label:"数据范围",prop:"dataScopeType"},{default:l(()=>[a(q,{enum:"DataScopeTypeEnum",modelValue:e.form.dataScopeType,"onUpdate:modelValue":o[0]||(o[0]=r=>e.form.dataScopeType=r)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(a(f,null,{default:l(()=>[a(c,{span:24},{default:l(()=>[a(p,{label:"部门权限"},{default:l(()=>[a(C,{"max-height":"500px",style:{width:"100%"}},{default:l(()=>[a(O,{ref_key:"elTreeRef",ref:n,"default-expand-all":"","show-checkbox":"","check-strictly":""},null,512)]),_:1})]),_:1})]),_:1})]),_:1},512),[[U,e.form.dataScopeType===16]])]),_:1},8,["model"])])),[[R,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +1 @@ |
|||
import{g as B,i as _,r as s,k as F,o as g,h as K,w as l,a as m,d as a,e as y,l as h,c as N,z as U,p as w}from"./index-DVN0Hxy1.js";import{g as $,u as z}from"./roleApi-C4DOuyXi.js";import M from"./orgTree-BugcgzC5.js";import O from"./enumSelect-CjMncTFH.js";import"./orgApi-Bv6Iw9r1.js";const q={class:"app-container",style:{"min-height":"50px"}},A={class:"el-custom-dialog-footer"},Q={__name:"editDataTypeDialog",emits:["onClose"],setup(G,{expose:S,emit:v}){const T=v,e=B({isShowDialog:!1,form:{},selectOptions:[],loading:!1}),d=_(),n=_();function k(t){D(),e.form.id=t.id,e.form.dataScopeType=t.dataScopeType,t.dataScopeType===16&&(e.loading=!0,$(t.id).then(o=>{var i;(i=n.value)==null||i.setCheckedKeys(o.data.orgs)}).finally(()=>e.loading=!1)),e.isShowDialog=!0}function D(){var t,o;e.form={id:null,dataScopeType:"",orgs:[]},(t=n.value)==null||t.setCheckedKeys([]),(o=d.value)==null||o.resetFields()}function x(){d.value.validate(t=>{var o;if(t){if(e.form.orgs=(o=n.value)==null?void 0:o.getCheckedKeys(),e.form.dataScopeType===16&&e.form.orgs.length===0){w({message:"请选择自定义部门数据权限!",type:"warning"});return}e.loading=!0,z(e.form).then(()=>{T("onClose"),w({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return S({openDialog:k}),(t,o)=>{const i=s("Edit"),b=s("el-icon"),p=s("el-form-item"),c=s("el-col"),f=s("el-row"),C=s("el-scrollbar"),V=s("el-form"),u=s("el-button"),R=s("el-dialog"),E=F("loading");return g(),K(R,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=r=>e.isShowDialog=r),draggable:"","close-on-click-modal":!1,width:"700px"},{header:l(()=>[m("div",null,[a(b,{class:"el-custom-dialog-icon"},{default:l(()=>[a(i)]),_:1}),o[3]||(o[3]=m("span",null,"角色数据权限",-1))])]),footer:l(()=>[m("div",A,[a(u,{type:"primary",onClick:x,disabled:e.loading},{default:l(()=>o[4]||(o[4]=[y("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:l(()=>o[5]||(o[5]=[y("取消")])),_:1},8,["disabled"])])]),default:l(()=>[h((g(),N("div",q,[a(V,{ref_key:"elFormRef",ref:d,model:e.form,"label-width":"90px"},{default:l(()=>[a(f,null,{default:l(()=>[a(c,{span:18},{default:l(()=>[a(p,{label:"数据范围",prop:"dataScopeType"},{default:l(()=>[a(O,{enum:"DataScopeTypeEnum",modelValue:e.form.dataScopeType,"onUpdate:modelValue":o[0]||(o[0]=r=>e.form.dataScopeType=r)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(a(f,null,{default:l(()=>[a(c,{span:24},{default:l(()=>[a(p,{label:"部门权限"},{default:l(()=>[a(C,{"max-height":"500px",style:{width:"100%"}},{default:l(()=>[a(M,{ref_key:"elTreeRef",ref:n,"default-expand-all":"","show-checkbox":"","check-strictly":""},null,512)]),_:1})]),_:1})]),_:1})]),_:1},512),[[U,e.form.dataScopeType===16]])]),_:1},8,["model"])])),[[E,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
|||
import{g as B,i as _,r as s,k as F,o as g,h as K,w as l,a as m,d as a,e as y,l as h,c as N,A as U,p as w}from"./index-CI8aco7-.js";import{g as $,u as A}from"./roleApi-D1CvLHy6.js";import M from"./orgTree-CVJ7OAun.js";import O from"./enumSelect-CN__qthn.js";import"./orgApi-v6vhSMlI.js";const q={class:"app-container",style:{"min-height":"50px"}},z={class:"el-custom-dialog-footer"},Q={__name:"editDataTypeDialog",emits:["onClose"],setup(G,{expose:S,emit:v}){const T=v,e=B({isShowDialog:!1,form:{},selectOptions:[],loading:!1}),d=_(),n=_();function k(t){D(),e.form.id=t.id,e.form.dataScopeType=t.dataScopeType,t.dataScopeType===16&&(e.loading=!0,$(t.id).then(o=>{var i;(i=n.value)==null||i.setCheckedKeys(o.data.orgs)}).finally(()=>e.loading=!1)),e.isShowDialog=!0}function D(){var t,o;e.form={id:null,dataScopeType:"",orgs:[]},(t=n.value)==null||t.setCheckedKeys([]),(o=d.value)==null||o.resetFields()}function x(){d.value.validate(t=>{var o;if(t){if(e.form.orgs=(o=n.value)==null?void 0:o.getCheckedKeys(),e.form.dataScopeType===16&&e.form.orgs.length===0){w({message:"请选择自定义部门数据权限!",type:"warning"});return}e.loading=!0,A(e.form).then(()=>{T("onClose"),w({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return S({openDialog:k}),(t,o)=>{const i=s("Edit"),b=s("el-icon"),p=s("el-form-item"),c=s("el-col"),f=s("el-row"),C=s("el-scrollbar"),V=s("el-form"),u=s("el-button"),R=s("el-dialog"),E=F("loading");return g(),K(R,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=r=>e.isShowDialog=r),draggable:"","close-on-click-modal":!1,width:"700px"},{header:l(()=>[m("div",null,[a(b,{class:"el-custom-dialog-icon"},{default:l(()=>[a(i)]),_:1}),o[3]||(o[3]=m("span",null,"角色数据权限",-1))])]),footer:l(()=>[m("div",z,[a(u,{type:"primary",onClick:x,disabled:e.loading},{default:l(()=>o[4]||(o[4]=[y("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:l(()=>o[5]||(o[5]=[y("取消")])),_:1},8,["disabled"])])]),default:l(()=>[h((g(),N("div",q,[a(V,{ref_key:"elFormRef",ref:d,model:e.form,"label-width":"90px"},{default:l(()=>[a(f,null,{default:l(()=>[a(c,{span:18},{default:l(()=>[a(p,{label:"数据范围",prop:"dataScopeType"},{default:l(()=>[a(O,{enum:"DataScopeTypeEnum",modelValue:e.form.dataScopeType,"onUpdate:modelValue":o[0]||(o[0]=r=>e.form.dataScopeType=r)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(a(f,null,{default:l(()=>[a(c,{span:24},{default:l(()=>[a(p,{label:"部门权限"},{default:l(()=>[a(C,{"max-height":"500px",style:{width:"100%"}},{default:l(()=>[a(M,{ref_key:"elTreeRef",ref:n,"default-expand-all":"","show-checkbox":"","check-strictly":""},null,512)]),_:1})]),_:1})]),_:1})]),_:1},512),[[U,e.form.dataScopeType===16]])]),_:1},8,["model"])])),[[E,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +0,0 @@ |
|||
import{g as B,z as _,r as s,i as F,o as g,k as K,w as l,a as m,d as a,e as y,j as h,c as N,af as U,A as w}from"./index-CsSGZIOI.js";import{g as $,u as z}from"./roleApi-TOST4PBa.js";import A from"./orgTree-FdbKD78J.js";import M from"./enumSelect-C-ZVfWAm.js";import"./orgApi-B5ceIBmm.js";const O={class:"app-container",style:{"min-height":"50px"}},q={class:"el-custom-dialog-footer"},Q={__name:"editDataTypeDialog",emits:["onClose"],setup(G,{expose:S,emit:v}){const T=v,e=B({isShowDialog:!1,form:{},selectOptions:[],loading:!1}),d=_(),n=_();function k(t){D(),e.form.id=t.id,e.form.dataScopeType=t.dataScopeType,t.dataScopeType===16&&(e.loading=!0,$(t.id).then(o=>{var i;(i=n.value)==null||i.setCheckedKeys(o.data.orgs)}).finally(()=>e.loading=!1)),e.isShowDialog=!0}function D(){var t,o;e.form={id:null,dataScopeType:"",orgs:[]},(t=n.value)==null||t.setCheckedKeys([]),(o=d.value)==null||o.resetFields()}function x(){d.value.validate(t=>{var o;if(t){if(e.form.orgs=(o=n.value)==null?void 0:o.getCheckedKeys(),e.form.dataScopeType===16&&e.form.orgs.length===0){w({message:"请选择自定义部门数据权限!",type:"warning"});return}e.loading=!0,z(e.form).then(()=>{T("onClose"),w({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return S({openDialog:k}),(t,o)=>{const i=s("Edit"),b=s("el-icon"),f=s("el-form-item"),p=s("el-col"),c=s("el-row"),C=s("el-scrollbar"),V=s("el-form"),u=s("el-button"),R=s("el-dialog"),E=F("loading");return g(),K(R,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[2]||(o[2]=r=>e.isShowDialog=r),draggable:"","close-on-click-modal":!1,width:"700px"},{header:l(()=>[m("div",null,[a(b,{class:"el-custom-dialog-icon"},{default:l(()=>[a(i)]),_:1}),o[3]||(o[3]=m("span",null,"角色数据权限",-1))])]),footer:l(()=>[m("div",q,[a(u,{type:"primary",onClick:x,disabled:e.loading},{default:l(()=>o[4]||(o[4]=[y("确定")])),_:1},8,["disabled"]),a(u,{onClick:o[1]||(o[1]=()=>e.isShowDialog=!1),disabled:e.loading},{default:l(()=>o[5]||(o[5]=[y("取消")])),_:1},8,["disabled"])])]),default:l(()=>[h((g(),N("div",O,[a(V,{ref_key:"elFormRef",ref:d,model:e.form,"label-width":"90px"},{default:l(()=>[a(c,null,{default:l(()=>[a(p,{span:18},{default:l(()=>[a(f,{label:"数据范围",prop:"dataScopeType"},{default:l(()=>[a(M,{enum:"DataScopeTypeEnum",modelValue:e.form.dataScopeType,"onUpdate:modelValue":o[0]||(o[0]=r=>e.form.dataScopeType=r)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(a(c,null,{default:l(()=>[a(p,{span:24},{default:l(()=>[a(f,{label:"部门权限"},{default:l(()=>[a(C,{"max-height":"500px",style:{width:"100%"}},{default:l(()=>[a(A,{ref_key:"elTreeRef",ref:n,"default-expand-all":"","show-checkbox":"","check-strictly":""},null,512)]),_:1})]),_:1})]),_:1})]),_:1},512),[[U,e.form.dataScopeType===16]])]),_:1},8,["model"])])),[[E,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +1 @@ |
|||
import{v as i,g as M,i as O,r as a,k as T,o as b,h as q,w as t,a as c,d as l,e as V,l as P,c as R,p as v}from"./index-DVN0Hxy1.js";function Q(d){return i({url:"/api/dataDict/paged",method:"post",data:d})}function z(){return i({url:"/api/dataDict/maxSort",method:"get"})}function W(d){return i({url:"/api/dataDict/delete",method:"post",data:d})}function A(d){return i({url:"/api/dataDict/add",method:"post",data:d})}function G(d){return i({url:"/api/dataDict/update",method:"post",data:d})}function H(d){return i({url:"/api/dataDict/detail",method:"get",params:{id:d}})}const I={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},K={__name:"editDialog",emits:["onClose"],setup(d,{expose:w,emit:y}){const _=y,e=M({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),m=O(),C={dictName:[{required:!0,message:"请输入字典类型名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入字典类型编码!",trigger:"blur"}]};function k(s){e.loading=!0,x(),s?H(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):z().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function x(){var s;e.form={id:null,dictName:"",formCode:"",sort:0,status:1,remark:""},(s=m.value)==null||s.resetFields()}function S(){m.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?G(o).then(()=>{_("onClose"),v({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):A(o).then(()=>{_("onClose"),v({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return w({openDialog:k}),(s,o)=>{const h=a("Edit"),N=a("el-icon"),f=a("el-input"),r=a("el-form-item"),u=a("el-col"),p=a("el-row"),U=a("el-input-number"),g=a("el-radio"),B=a("el-radio-group"),E=a("el-form"),D=a("el-button"),F=a("el-dialog"),j=T("loading");return b(),q(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[6]||(o[6]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[c("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(h)]),_:1}),o[7]||(o[7]=c("span",null,"字典类型信息",-1))])]),footer:t(()=>[c("div",J,[l(D,{type:"primary",onClick:S,disabled:e.loading},{default:t(()=>o[8]||(o[8]=[V("确定")])),_:1},8,["disabled"]),l(D,{onClick:o[5]||(o[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[9]||(o[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",I,[l(E,{ref_key:"elFormRef",ref:m,model:e.form,rules:C,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"字典类型",prop:"dictName"},{default:t(()=>[l(f,{modelValue:e.form.dictName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.dictName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"排序"},{default:t(()=>[l(U,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"状态"},{default:t(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(g,{label:"启用",value:1}),l(g,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:24},{default:t(()=>[l(r,{label:"备注"},{default:t(()=>[l(f,{modelValue:e.form.remark,"onUpdate:modelValue":o[4]||(o[4]=n=>e.form.remark=n),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as _,W as d,X as e,Q as g}; |
|||
import{v as i,g as M,i as O,r as a,k as T,o as b,h as q,w as t,a as c,d as l,e as V,l as P,c as R,p as v}from"./index-CI8aco7-.js";function Q(d){return i({url:"/api/dataDict/paged",method:"post",data:d})}function z(){return i({url:"/api/dataDict/maxSort",method:"get"})}function W(d){return i({url:"/api/dataDict/delete",method:"post",data:d})}function A(d){return i({url:"/api/dataDict/add",method:"post",data:d})}function G(d){return i({url:"/api/dataDict/update",method:"post",data:d})}function H(d){return i({url:"/api/dataDict/detail",method:"get",params:{id:d}})}const I={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},K={__name:"editDialog",emits:["onClose"],setup(d,{expose:w,emit:y}){const _=y,e=M({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),m=O(),C={dictName:[{required:!0,message:"请输入字典类型名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入字典类型编码!",trigger:"blur"}]};function k(s){e.loading=!0,x(),s?H(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):z().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function x(){var s;e.form={id:null,dictName:"",formCode:"",sort:0,status:1,remark:""},(s=m.value)==null||s.resetFields()}function S(){m.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?G(o).then(()=>{_("onClose"),v({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):A(o).then(()=>{_("onClose"),v({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return w({openDialog:k}),(s,o)=>{const h=a("Edit"),N=a("el-icon"),f=a("el-input"),r=a("el-form-item"),u=a("el-col"),p=a("el-row"),U=a("el-input-number"),g=a("el-radio"),B=a("el-radio-group"),E=a("el-form"),D=a("el-button"),F=a("el-dialog"),j=T("loading");return b(),q(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[6]||(o[6]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[c("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(h)]),_:1}),o[7]||(o[7]=c("span",null,"字典类型信息",-1))])]),footer:t(()=>[c("div",J,[l(D,{type:"primary",onClick:S,disabled:e.loading},{default:t(()=>o[8]||(o[8]=[V("确定")])),_:1},8,["disabled"]),l(D,{onClick:o[5]||(o[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[9]||(o[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",I,[l(E,{ref_key:"elFormRef",ref:m,model:e.form,rules:C,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"字典类型",prop:"dictName"},{default:t(()=>[l(f,{modelValue:e.form.dictName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.dictName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"排序"},{default:t(()=>[l(U,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"状态"},{default:t(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(g,{label:"启用",value:1}),l(g,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:24},{default:t(()=>[l(r,{label:"备注"},{default:t(()=>[l(f,{modelValue:e.form.remark,"onUpdate:modelValue":o[4]||(o[4]=n=>e.form.remark=n),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as _,W as d,X as e,Q as g}; |
@ -1 +0,0 @@ |
|||
import{b as M,c as O,u as h,d as q}from"./orgApi-B9lfoxVb.js";import $ from"./userSelect-BFC1XVSc.js";import T from"./orgCascader-5ynAr5qi.js";import{g as j,i as b,r as n,k as z,o as I,h as A,w as a,a as f,d as l,e as v,l as G,c as H,E as U}from"./index-CL0IOL6c.js";const J={class:"app-container"},K={class:"el-custom-dialog-footer"},Y={__name:"editDialog",emits:["onClose"],setup(L,{expose:w,emit:C}){const _=C,e=j({isShowDialog:!1,parentIds:[],form:{id:0},loading:!1}),p=b(),g=b(),D={orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}]};function N(s){e.loading=!0,y(),s?M(s).then(o=>{var i;e.form=o.data,o.data.parentId&&o.data.parentId!=="0"&&(e.parentIds=[o.data.parentId]),(i=g.value)==null||i.setDefaultValue(o.data.principalUserId)}).finally(()=>e.loading=!1):O().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,parentId:0,orgName:"",formCode:"",shortName:"",telephone:"",sort:0,email:"",status:1,principalUserId:null},e.parentIds=[],(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{s&&(e.loading=!0,e.form.parentId=e.parentIds&&e.parentIds.length>0?e.parentIds[0]:"0",e.form.id?h(e.form).then(()=>{_("onClose"),U({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):q(e.form).then(()=>{_("onClose"),U({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1))})}return w({openDialog:N}),(s,o)=>{const i=n("Edit"),k=n("el-icon"),d=n("el-form-item"),r=n("el-col"),u=n("el-row"),m=n("el-input"),x=n("el-input-number"),V=n("el-radio"),E=n("el-radio-group"),B=n("el-form"),c=n("el-button"),F=n("el-dialog"),R=z("loading");return I(),A(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[10]||(o[10]=t=>e.isShowDialog=t),draggable:"","close-on-click-modal":!1,width:"700px"},{header:a(()=>[f("div",null,[l(k,{class:"el-custom-dialog-icon"},{default:a(()=>[l(i)]),_:1}),o[11]||(o[11]=f("span",null,"机构信息",-1))])]),footer:a(()=>[f("div",K,[l(c,{type:"primary",onClick:S,disabled:e.loading},{default:a(()=>o[12]||(o[12]=[v("确定")])),_:1},8,["disabled"]),l(c,{onClick:o[9]||(o[9]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>o[13]||(o[13]=[v(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[G((I(),H("div",J,[l(B,{ref_key:"elFormRef",ref:p,model:e.form,rules:D,"label-width":"90px"},{default:a(()=>[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"父级",prop:"parentId"},{default:a(()=>[l(T,{modelValue:e.parentIds,"onUpdate:modelValue":o[0]||(o[0]=t=>e.parentIds=t),checkStrictly:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f("div",null,[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"机构名称",prop:"orgName"},{default:a(()=>[l(m,{modelValue:e.form.orgName,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.orgName=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"简称",prop:"shortName"},{default:a(()=>[l(m,{modelValue:e.form.shortName,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.shortName=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"编码",prop:"formCode"},{default:a(()=>[l(m,{modelValue:e.form.formCode,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.formCode=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"联系方式",prop:"telephone"},{default:a(()=>[l(m,{modelValue:e.form.telephone,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.telephone=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"排序"},{default:a(()=>[l(x,{modelValue:e.form.sort,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sort=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"邮箱",prop:"email"},{default:a(()=>[l(m,{modelValue:e.form.email,"onUpdate:modelValue":o[6]||(o[6]=t=>e.form.email=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"负责人",prop:"principalUserId"},{default:a(()=>[l($,{ref_key:"userSelectRef",ref:g,modelValue:e.form.principalUserId,"onUpdate:modelValue":o[7]||(o[7]=t=>e.form.principalUserId=t),isMultiple:!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"状态"},{default:a(()=>[l(E,{modelValue:e.form.status,"onUpdate:modelValue":o[8]||(o[8]=t=>e.form.status=t)},{default:a(()=>[l(V,{label:"启用",value:1}),l(V,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])]),_:1},8,["model"])])),[[R,e.loading]])]),_:1},8,["modelValue"])}}};export{Y as default}; |
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{l as m,g as B,z as E,r as n,i as M,o as b,k as O,w as t,a as g,d as e,e as V,j as z,c as P,A as R}from"./index-CsSGZIOI.js";function K(r){return m({url:"/api/tenant/paged",method:"post",data:r})}function L(r){return m({url:"/api/tenant/delete",method:"post",data:r})}function A(r){return m({url:"/api/tenant/add",method:"post",data:r})}function Q(r){return m({url:"/api/tenant/open",method:"get",params:{id:r}})}function W(r){return m({url:"/api/tenant/close",method:"get",params:{id:r}})}function h(){return m({url:"/api/tenant/maxSort",method:"get"})}const G={class:"app-container",style:{"min-height":"150px"}},H={class:"el-custom-dialog-footer"},I={__name:"editDialog",emits:["onClose"],setup(r,{expose:N,emit:v}){const w=v,o=B({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=E(),D={tenantName:[{required:!0,message:"请输入租户名称!",trigger:"blur"}],orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],orgFormCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}],userName:[{required:!0,message:"请输入租管账号!",trigger:"blur"}],realName:[{required:!0,message:"请输入租管姓名!",trigger:"blur"}]};function C(){o.loading=!0,x(),h().then(s=>{o.form.sort=s.data}).finally(()=>o.loading=!1),o.isShowDialog=!0}function x(){var s;o.form={id:null,tenantName:"",orgName:"",orgFormCode:"",userName:"",realName:"",sort:0,status:1},(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{if(s){o.loading=!0;let l=Object.assign({},o.form);A(l).then(()=>{w("onClose"),R({message:"新增成功",type:"success"}),o.isShowDialog=!1}).finally(()=>o.loading=!1)}})}return N({openDialog:C}),(s,l)=>{const y=n("Edit"),F=n("el-icon"),i=n("el-input"),u=n("el-form-item"),d=n("el-col"),k=n("el-input-number"),f=n("el-row"),_=n("el-radio"),U=n("el-radio-group"),T=n("el-form"),c=n("el-button"),q=n("el-dialog"),j=M("loading");return b(),O(q,{modelValue:o.isShowDialog,"onUpdate:modelValue":l[8]||(l[8]=a=>o.isShowDialog=a),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[g("div",null,[e(F,{class:"el-custom-dialog-icon"},{default:t(()=>[e(y)]),_:1}),l[9]||(l[9]=g("span",null,"职位信息",-1))])]),footer:t(()=>[g("div",H,[e(c,{type:"primary",onClick:S,disabled:o.loading},{default:t(()=>l[10]||(l[10]=[V("确定")])),_:1},8,["disabled"]),e(c,{onClick:l[7]||(l[7]=()=>o.isShowDialog=!1),disabled:o.loading},{default:t(()=>l[11]||(l[11]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[z((b(),P("div",G,[e(T,{ref_key:"elFormRef",ref:p,model:o.form,rules:D,"label-width":"90px"},{default:t(()=>[e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租户名称",prop:"tenantName"},{default:t(()=>[e(i,{modelValue:o.form.tenantName,"onUpdate:modelValue":l[0]||(l[0]=a=>o.form.tenantName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"排序"},{default:t(()=>[e(k,{modelValue:o.form.sort,"onUpdate:modelValue":l[1]||(l[1]=a=>o.form.sort=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"机构名称",prop:"orgName"},{default:t(()=>[e(i,{modelValue:o.form.orgName,"onUpdate:modelValue":l[2]||(l[2]=a=>o.form.orgName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"机构编码",prop:"orgFormCode"},{default:t(()=>[e(i,{modelValue:o.form.orgFormCode,"onUpdate:modelValue":l[3]||(l[3]=a=>o.form.orgFormCode=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租管账户",prop:"userName"},{default:t(()=>[e(i,{modelValue:o.form.userName,"onUpdate:modelValue":l[4]||(l[4]=a=>o.form.userName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"租管姓名",prop:"realName"},{default:t(()=>[e(i,{modelValue:o.form.realName,"onUpdate:modelValue":l[5]||(l[5]=a=>o.form.realName=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"状态"},{default:t(()=>[e(U,{modelValue:o.form.status,"onUpdate:modelValue":l[6]||(l[6]=a=>o.form.status=a)},{default:t(()=>[e(_,{label:"启用",value:1}),e(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,o.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as _,W as c,L as d,X as e,K as g,Q as o}; |
@ -1 +0,0 @@ |
|||
import{b as M,c as O,u as q,d as $}from"./orgApi-B5ceIBmm.js";import h from"./userSelect-BybsSFqg.js";import j from"./orgCascader-C9DGNPnu.js";import{g as z,z as b,r as n,i as A,o as I,k as T,w as a,a as f,d as l,e as v,j as G,c as H,A as U}from"./index-CsSGZIOI.js";const J={class:"app-container"},K={class:"el-custom-dialog-footer"},Y={__name:"editDialog",emits:["onClose"],setup(L,{expose:w,emit:C}){const _=C,e=z({isShowDialog:!1,parentIds:[],form:{id:0},loading:!1}),p=b(),g=b(),D={orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}]};function N(s){e.loading=!0,y(),s?M(s).then(o=>{var i;e.form=o.data,o.data.parentId&&o.data.parentId!=="0"&&(e.parentIds=[o.data.parentId]),(i=g.value)==null||i.setDefaultValue(o.data.principalUserId)}).finally(()=>e.loading=!1):O().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,parentId:0,orgName:"",formCode:"",shortName:"",telephone:"",sort:0,email:"",status:1,principalUserId:null},e.parentIds=[],(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{s&&(e.loading=!0,e.form.parentId=e.parentIds&&e.parentIds.length>0?e.parentIds[0]:"0",e.form.id?q(e.form).then(()=>{_("onClose"),U({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):$(e.form).then(()=>{_("onClose"),U({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1))})}return w({openDialog:N}),(s,o)=>{const i=n("Edit"),k=n("el-icon"),d=n("el-form-item"),r=n("el-col"),u=n("el-row"),m=n("el-input"),x=n("el-input-number"),V=n("el-radio"),B=n("el-radio-group"),E=n("el-form"),c=n("el-button"),F=n("el-dialog"),R=A("loading");return I(),T(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[10]||(o[10]=t=>e.isShowDialog=t),draggable:"","close-on-click-modal":!1,width:"700px"},{header:a(()=>[f("div",null,[l(k,{class:"el-custom-dialog-icon"},{default:a(()=>[l(i)]),_:1}),o[11]||(o[11]=f("span",null,"机构信息",-1))])]),footer:a(()=>[f("div",K,[l(c,{type:"primary",onClick:S,disabled:e.loading},{default:a(()=>o[12]||(o[12]=[v("确定")])),_:1},8,["disabled"]),l(c,{onClick:o[9]||(o[9]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>o[13]||(o[13]=[v(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[G((I(),H("div",J,[l(E,{ref_key:"elFormRef",ref:p,model:e.form,rules:D,"label-width":"90px"},{default:a(()=>[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"父级",prop:"parentId"},{default:a(()=>[l(j,{modelValue:e.parentIds,"onUpdate:modelValue":o[0]||(o[0]=t=>e.parentIds=t),checkStrictly:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f("div",null,[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"机构名称",prop:"orgName"},{default:a(()=>[l(m,{modelValue:e.form.orgName,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.orgName=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"简称",prop:"shortName"},{default:a(()=>[l(m,{modelValue:e.form.shortName,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.shortName=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"编码",prop:"formCode"},{default:a(()=>[l(m,{modelValue:e.form.formCode,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.formCode=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"联系方式",prop:"telephone"},{default:a(()=>[l(m,{modelValue:e.form.telephone,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.telephone=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"排序"},{default:a(()=>[l(x,{modelValue:e.form.sort,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sort=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"邮箱",prop:"email"},{default:a(()=>[l(m,{modelValue:e.form.email,"onUpdate:modelValue":o[6]||(o[6]=t=>e.form.email=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"负责人",prop:"principalUserId"},{default:a(()=>[l(h,{ref_key:"userSelectRef",ref:g,modelValue:e.form.principalUserId,"onUpdate:modelValue":o[7]||(o[7]=t=>e.form.principalUserId=t),isMultiple:!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"状态"},{default:a(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[8]||(o[8]=t=>e.form.status=t)},{default:a(()=>[l(V,{label:"启用",value:1}),l(V,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])]),_:1},8,["model"])])),[[R,e.loading]])]),_:1},8,["modelValue"])}}};export{Y as default}; |
@ -1 +0,0 @@ |
|||
import{g as q,a as z,b as H,c as I}from"./roleApi-BDJCNzzM.js";import{e as L}from"./menuApi-DA2os7CJ.js";import{_ as O,g as A,i as C,j as G,r as t,k as J,o as V,h as P,w as a,a as f,d as o,e as h,l as Q,c as W,ah as X,t as Y,E as c}from"./index-CL0IOL6c.js";const Z={class:"app-container"},$={class:"el-custom-dialog-footer"},ee={__name:"editDialog",emits:["onClose"],setup(le,{expose:D,emit:k}){const g=k,e=A({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=C(),i=C(),x={roleName:[{required:!0,message:"请输入角色名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入角色编码!",trigger:"blur"}]};G(()=>{L({}).then(s=>{e.menuTreeData=s.data})});function N(s){e.loading=!0,S(),s?q(s).then(l=>{var d;e.form=l.data,(d=i.value)==null||d.setCheckedKeys(e.form.btns)}).finally(()=>e.loading=!1):z().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var s,l;e.form={id:null,roleName:"",formCode:"",sort:0,status:1,dataScopeType:2},(s=i.value)==null||s.setCheckedKeys([]),(l=p.value)==null||l.resetFields()}function R(){p.value.validate(s=>{var l,d;if(s){let r=Object.assign({},e.form);if(r.menus=[...(l=i.value)==null?void 0:l.getHalfCheckedKeys(),...(d=i.value)==null?void 0:d.getCheckedKeys()],r.menus.length===0){c({message:"请选择菜单权限!",type:"warning"});return}e.loading=!0,e.form.id?H(r).then(()=>{g("onClose"),c({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):I(r).then(()=>{g("onClose"),c({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}function T(s,l){return l.type===3?s.parent.childNodes[0].id===s.id?"is-leaf-node-first-child":"is-leaf-node":"not-leaf-node"}return D({openDialog:N}),(s,l)=>{const d=t("Edit"),r=t("el-icon"),b=t("el-input"),u=t("el-form-item"),m=t("el-col"),_=t("el-row"),E=t("el-input-number"),y=t("el-radio"),U=t("el-radio-group"),B=t("el-tree"),F=t("el-scrollbar"),K=t("el-form"),v=t("el-button"),M=t("el-dialog"),j=J("loading");return V(),P(M,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[5]||(l[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"850px"},{header:a(()=>[f("div",null,[o(r,{class:"el-custom-dialog-icon"},{default:a(()=>[o(d)]),_:1}),l[6]||(l[6]=f("span",null,"角色信息",-1))])]),footer:a(()=>[f("div",$,[o(v,{type:"primary",onClick:R,disabled:e.loading},{default:a(()=>l[7]||(l[7]=[h("确定")])),_:1},8,["disabled"]),o(v,{onClick:l[4]||(l[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>l[8]||(l[8]=[h(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[Q((V(),W("div",Z,[o(K,{ref_key:"elFormRef",ref:p,model:e.form,rules:x,"label-width":"90px"},{default:a(()=>[o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"角色名称",prop:"roleName"},{default:a(()=>[o(b,{modelValue:e.form.roleName,"onUpdate:modelValue":l[0]||(l[0]=n=>e.form.roleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"编码",prop:"formCode"},{default:a(()=>[o(b,{modelValue:e.form.formCode,"onUpdate:modelValue":l[1]||(l[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"排序"},{default:a(()=>[o(E,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"状态"},{default:a(()=>[o(U,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=n=>e.form.status=n)},{default:a(()=>[o(y,{label:"启用",value:1}),o(y,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:24},{default:a(()=>[o(u,{label:"权限"},{default:a(()=>[o(F,{"max-height":"500px",style:{width:"100%"}},{default:a(()=>[o(B,{style:{width:"100%"},data:e.menuTreeData,"default-expand-all":"","show-checkbox":"","node-key":"id",ref_key:"elTreeRef",ref:i},{default:a(({node:n,data:w})=>[f("span",{class:X(T(n,w))},[f("span",null,Y(w.label),1)],2)]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},se=O(ee,[["__scopeId","data-v-7f16df5c"]]);export{se as default}; |
@ -1 +1 @@ |
|||
import{a as F,b as T,u as M,c as P}from"./positionApi-E2jeCHgp.js";import{e as j}from"./menuApi-BO9rjdXH.js";import{g as q,i as R,j as L,r as a,k as O,o as c,h as z,w as t,a as m,d as l,e as b,l as A,c as G,p as V}from"./index-DVN0Hxy1.js";const H={class:"app-container",style:{"min-height":"150px"}},I={class:"el-custom-dialog-footer"},X={__name:"editDialog",emits:["onClose"],setup(J,{expose:v,emit:w}){const u=w,e=q({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=R(),D={positionName:[{required:!0,message:"请输入职位名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入职位编码!",trigger:"blur"}]};L(()=>{j({}).then(s=>{e.menuTreeData=s.data})});function C(s){e.loading=!0,y(),s?F(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):T().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,positionName:"",formCode:"",sort:0,status:1},(s=r.value)==null||s.resetFields()}function x(){r.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?M(o).then(()=>{u("onClose"),V({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):P(o).then(()=>{u("onClose"),V({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return v({openDialog:C}),(s,o)=>{const k=a("Edit"),N=a("el-icon"),f=a("el-input"),i=a("el-form-item"),d=a("el-col"),p=a("el-row"),S=a("el-input-number"),_=a("el-radio"),h=a("el-radio-group"),E=a("el-form"),g=a("el-button"),U=a("el-dialog"),B=O("loading");return c(),z(U,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[5]||(o[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[m("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(k)]),_:1}),o[6]||(o[6]=m("span",null,"职位信息",-1))])]),footer:t(()=>[m("div",I,[l(g,{type:"primary",onClick:x,disabled:e.loading},{default:t(()=>o[7]||(o[7]=[b("确定")])),_:1},8,["disabled"]),l(g,{onClick:o[4]||(o[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[8]||(o[8]=[b("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((c(),G("div",H,[l(E,{ref_key:"elFormRef",ref:r,model:e.form,rules:D,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"职位名称",prop:"positionName"},{default:t(()=>[l(f,{modelValue:e.form.positionName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.positionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"排序"},{default:t(()=>[l(S,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"状态"},{default:t(()=>[l(h,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(_,{label:"启用",value:1}),l(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,e.loading]])]),_:1},8,["modelValue"])}}};export{X as default}; |
|||
import{a as F,b as T,u as M,c as P}from"./positionApi-B85FoYvP.js";import{e as j}from"./menuApi-F2PSxiN_.js";import{g as q,i as R,j as L,r as a,k as O,o as c,h as z,w as t,a as m,d as l,e as b,l as A,c as G,p as V}from"./index-CI8aco7-.js";const H={class:"app-container",style:{"min-height":"150px"}},I={class:"el-custom-dialog-footer"},X={__name:"editDialog",emits:["onClose"],setup(J,{expose:v,emit:w}){const u=w,e=q({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=R(),D={positionName:[{required:!0,message:"请输入职位名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入职位编码!",trigger:"blur"}]};L(()=>{j({}).then(s=>{e.menuTreeData=s.data})});function C(s){e.loading=!0,y(),s?F(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):T().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,positionName:"",formCode:"",sort:0,status:1},(s=r.value)==null||s.resetFields()}function x(){r.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?M(o).then(()=>{u("onClose"),V({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):P(o).then(()=>{u("onClose"),V({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return v({openDialog:C}),(s,o)=>{const k=a("Edit"),N=a("el-icon"),f=a("el-input"),i=a("el-form-item"),d=a("el-col"),p=a("el-row"),S=a("el-input-number"),_=a("el-radio"),h=a("el-radio-group"),E=a("el-form"),g=a("el-button"),U=a("el-dialog"),B=O("loading");return c(),z(U,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[5]||(o[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[m("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(k)]),_:1}),o[6]||(o[6]=m("span",null,"职位信息",-1))])]),footer:t(()=>[m("div",I,[l(g,{type:"primary",onClick:x,disabled:e.loading},{default:t(()=>o[7]||(o[7]=[b("确定")])),_:1},8,["disabled"]),l(g,{onClick:o[4]||(o[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[8]||(o[8]=[b("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((c(),G("div",H,[l(E,{ref_key:"elFormRef",ref:r,model:e.form,rules:D,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"职位名称",prop:"positionName"},{default:t(()=>[l(f,{modelValue:e.form.positionName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.positionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"排序"},{default:t(()=>[l(S,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"状态"},{default:t(()=>[l(h,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(_,{label:"启用",value:1}),l(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,e.loading]])]),_:1},8,["modelValue"])}}};export{X as default}; |
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{v as i,g as M,i as O,r as a,k as T,o as b,h as q,w as t,a as c,d as l,e as V,l as P,c as R,p as v}from"./index-BO1j28mb.js";function Q(d){return i({url:"/api/dataDict/paged",method:"post",data:d})}function z(){return i({url:"/api/dataDict/maxSort",method:"get"})}function W(d){return i({url:"/api/dataDict/delete",method:"post",data:d})}function A(d){return i({url:"/api/dataDict/add",method:"post",data:d})}function G(d){return i({url:"/api/dataDict/update",method:"post",data:d})}function H(d){return i({url:"/api/dataDict/detail",method:"get",params:{id:d}})}const I={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},K={__name:"editDialog",emits:["onClose"],setup(d,{expose:w,emit:y}){const _=y,e=M({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),m=O(),C={dictName:[{required:!0,message:"请输入字典类型名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入字典类型编码!",trigger:"blur"}]};function k(s){e.loading=!0,x(),s?H(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):z().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function x(){var s;e.form={id:null,dictName:"",formCode:"",sort:0,status:1,remark:""},(s=m.value)==null||s.resetFields()}function S(){m.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?G(o).then(()=>{_("onClose"),v({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):A(o).then(()=>{_("onClose"),v({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return w({openDialog:k}),(s,o)=>{const h=a("Edit"),N=a("el-icon"),f=a("el-input"),r=a("el-form-item"),u=a("el-col"),p=a("el-row"),U=a("el-input-number"),g=a("el-radio"),B=a("el-radio-group"),E=a("el-form"),D=a("el-button"),F=a("el-dialog"),j=T("loading");return b(),q(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[6]||(o[6]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[c("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(h)]),_:1}),o[7]||(o[7]=c("span",null,"字典类型信息",-1))])]),footer:t(()=>[c("div",J,[l(D,{type:"primary",onClick:S,disabled:e.loading},{default:t(()=>o[8]||(o[8]=[V("确定")])),_:1},8,["disabled"]),l(D,{onClick:o[5]||(o[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[9]||(o[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",I,[l(E,{ref_key:"elFormRef",ref:m,model:e.form,rules:C,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"字典类型",prop:"dictName"},{default:t(()=>[l(f,{modelValue:e.form.dictName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.dictName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"排序"},{default:t(()=>[l(U,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"状态"},{default:t(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(g,{label:"启用",value:1}),l(g,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:24},{default:t(()=>[l(r,{label:"备注"},{default:t(()=>[l(f,{modelValue:e.form.remark,"onUpdate:modelValue":o[4]||(o[4]=n=>e.form.remark=n),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as _,W as d,X as e,Q as g}; |
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{b as M,c as O,u as h,d as q}from"./orgApi-Bv6Iw9r1.js";import $ from"./userSelect-XlSQH_JQ.js";import T from"./orgCascader-C5LP6YCL.js";import{g as j,i as b,r as n,k as z,o as I,h as A,w as a,a as f,d as l,e as v,l as G,c as H,p as U}from"./index-DVN0Hxy1.js";const J={class:"app-container"},K={class:"el-custom-dialog-footer"},Y={__name:"editDialog",emits:["onClose"],setup(L,{expose:w,emit:C}){const _=C,e=j({isShowDialog:!1,parentIds:[],form:{id:0},loading:!1}),p=b(),g=b(),D={orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}]};function N(s){e.loading=!0,y(),s?M(s).then(o=>{var i;e.form=o.data,o.data.parentId&&o.data.parentId!=="0"&&(e.parentIds=[o.data.parentId]),(i=g.value)==null||i.setDefaultValue(o.data.principalUserId)}).finally(()=>e.loading=!1):O().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,parentId:0,orgName:"",formCode:"",shortName:"",telephone:"",sort:0,email:"",status:1,principalUserId:null},e.parentIds=[],(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{s&&(e.loading=!0,e.form.parentId=e.parentIds&&e.parentIds.length>0?e.parentIds[0]:"0",e.form.id?h(e.form).then(()=>{_("onClose"),U({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):q(e.form).then(()=>{_("onClose"),U({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1))})}return w({openDialog:N}),(s,o)=>{const i=n("Edit"),k=n("el-icon"),d=n("el-form-item"),r=n("el-col"),u=n("el-row"),m=n("el-input"),x=n("el-input-number"),V=n("el-radio"),B=n("el-radio-group"),E=n("el-form"),c=n("el-button"),F=n("el-dialog"),R=z("loading");return I(),A(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[10]||(o[10]=t=>e.isShowDialog=t),draggable:"","close-on-click-modal":!1,width:"700px"},{header:a(()=>[f("div",null,[l(k,{class:"el-custom-dialog-icon"},{default:a(()=>[l(i)]),_:1}),o[11]||(o[11]=f("span",null,"机构信息",-1))])]),footer:a(()=>[f("div",K,[l(c,{type:"primary",onClick:S,disabled:e.loading},{default:a(()=>o[12]||(o[12]=[v("确定")])),_:1},8,["disabled"]),l(c,{onClick:o[9]||(o[9]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>o[13]||(o[13]=[v(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[G((I(),H("div",J,[l(E,{ref_key:"elFormRef",ref:p,model:e.form,rules:D,"label-width":"90px"},{default:a(()=>[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"父级",prop:"parentId"},{default:a(()=>[l(T,{modelValue:e.parentIds,"onUpdate:modelValue":o[0]||(o[0]=t=>e.parentIds=t),checkStrictly:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f("div",null,[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"机构名称",prop:"orgName"},{default:a(()=>[l(m,{modelValue:e.form.orgName,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.orgName=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"简称",prop:"shortName"},{default:a(()=>[l(m,{modelValue:e.form.shortName,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.shortName=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"编码",prop:"formCode"},{default:a(()=>[l(m,{modelValue:e.form.formCode,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.formCode=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"联系方式",prop:"telephone"},{default:a(()=>[l(m,{modelValue:e.form.telephone,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.telephone=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"排序"},{default:a(()=>[l(x,{modelValue:e.form.sort,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sort=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"邮箱",prop:"email"},{default:a(()=>[l(m,{modelValue:e.form.email,"onUpdate:modelValue":o[6]||(o[6]=t=>e.form.email=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"负责人",prop:"principalUserId"},{default:a(()=>[l($,{ref_key:"userSelectRef",ref:g,modelValue:e.form.principalUserId,"onUpdate:modelValue":o[7]||(o[7]=t=>e.form.principalUserId=t),isMultiple:!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"状态"},{default:a(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[8]||(o[8]=t=>e.form.status=t)},{default:a(()=>[l(V,{label:"启用",value:1}),l(V,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])]),_:1},8,["model"])])),[[R,e.loading]])]),_:1},8,["modelValue"])}}};export{Y as default}; |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{l as i,g as M,z as O,r as a,i as T,o as b,k as q,w as t,a as c,d as l,e as V,j as z,c as P,A as v}from"./index-CsSGZIOI.js";function Q(d){return i({url:"/api/dataDict/paged",method:"post",data:d})}function R(){return i({url:"/api/dataDict/maxSort",method:"get"})}function W(d){return i({url:"/api/dataDict/delete",method:"post",data:d})}function A(d){return i({url:"/api/dataDict/add",method:"post",data:d})}function G(d){return i({url:"/api/dataDict/update",method:"post",data:d})}function H(d){return i({url:"/api/dataDict/detail",method:"get",params:{id:d}})}const I={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},K={__name:"editDialog",emits:["onClose"],setup(d,{expose:w,emit:y}){const _=y,e=M({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),m=O(),C={dictName:[{required:!0,message:"请输入字典类型名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入字典类型编码!",trigger:"blur"}]};function k(s){e.loading=!0,x(),s?H(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):R().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function x(){var s;e.form={id:null,dictName:"",formCode:"",sort:0,status:1,remark:""},(s=m.value)==null||s.resetFields()}function S(){m.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?G(o).then(()=>{_("onClose"),v({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):A(o).then(()=>{_("onClose"),v({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return w({openDialog:k}),(s,o)=>{const N=a("Edit"),h=a("el-icon"),f=a("el-input"),r=a("el-form-item"),u=a("el-col"),p=a("el-row"),U=a("el-input-number"),g=a("el-radio"),j=a("el-radio-group"),B=a("el-form"),D=a("el-button"),E=a("el-dialog"),F=T("loading");return b(),q(E,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[6]||(o[6]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[c("div",null,[l(h,{class:"el-custom-dialog-icon"},{default:t(()=>[l(N)]),_:1}),o[7]||(o[7]=c("span",null,"字典类型信息",-1))])]),footer:t(()=>[c("div",J,[l(D,{type:"primary",onClick:S,disabled:e.loading},{default:t(()=>o[8]||(o[8]=[V("确定")])),_:1},8,["disabled"]),l(D,{onClick:o[5]||(o[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[9]||(o[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[z((b(),P("div",I,[l(B,{ref_key:"elFormRef",ref:m,model:e.form,rules:C,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"字典类型",prop:"dictName"},{default:t(()=>[l(f,{modelValue:e.form.dictName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.dictName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"排序"},{default:t(()=>[l(U,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"状态"},{default:t(()=>[l(j,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(g,{label:"启用",value:1}),l(g,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:24},{default:t(()=>[l(r,{label:"备注"},{default:t(()=>[l(f,{modelValue:e.form.remark,"onUpdate:modelValue":o[4]||(o[4]=n=>e.form.remark=n),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[F,e.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as _,W as d,X as e,Q as g}; |
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{g as q,a as z,b as H,c as I}from"./roleApi-C4DOuyXi.js";import{e as L}from"./menuApi-BO9rjdXH.js";import{_ as O,g as A,i as C,j as G,r as t,k as J,o as V,h as P,w as a,a as f,d as o,e as h,l as Q,c as W,ah as X,t as Y,p as c}from"./index-DVN0Hxy1.js";const Z={class:"app-container"},$={class:"el-custom-dialog-footer"},ee={__name:"editDialog",emits:["onClose"],setup(le,{expose:D,emit:k}){const g=k,e=A({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=C(),i=C(),x={roleName:[{required:!0,message:"请输入角色名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入角色编码!",trigger:"blur"}]};G(()=>{L({}).then(s=>{e.menuTreeData=s.data})});function N(s){e.loading=!0,S(),s?q(s).then(l=>{var d;e.form=l.data,(d=i.value)==null||d.setCheckedKeys(e.form.btns)}).finally(()=>e.loading=!1):z().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var s,l;e.form={id:null,roleName:"",formCode:"",sort:0,status:1,dataScopeType:2},(s=i.value)==null||s.setCheckedKeys([]),(l=p.value)==null||l.resetFields()}function R(){p.value.validate(s=>{var l,d;if(s){let r=Object.assign({},e.form);if(r.menus=[...(l=i.value)==null?void 0:l.getHalfCheckedKeys(),...(d=i.value)==null?void 0:d.getCheckedKeys()],r.menus.length===0){c({message:"请选择菜单权限!",type:"warning"});return}e.loading=!0,e.form.id?H(r).then(()=>{g("onClose"),c({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):I(r).then(()=>{g("onClose"),c({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}function T(s,l){return l.type===3?s.parent.childNodes[0].id===s.id?"is-leaf-node-first-child":"is-leaf-node":"not-leaf-node"}return D({openDialog:N}),(s,l)=>{const d=t("Edit"),r=t("el-icon"),b=t("el-input"),u=t("el-form-item"),m=t("el-col"),_=t("el-row"),E=t("el-input-number"),y=t("el-radio"),U=t("el-radio-group"),B=t("el-tree"),F=t("el-scrollbar"),K=t("el-form"),v=t("el-button"),M=t("el-dialog"),j=J("loading");return V(),P(M,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[5]||(l[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"850px"},{header:a(()=>[f("div",null,[o(r,{class:"el-custom-dialog-icon"},{default:a(()=>[o(d)]),_:1}),l[6]||(l[6]=f("span",null,"角色信息",-1))])]),footer:a(()=>[f("div",$,[o(v,{type:"primary",onClick:R,disabled:e.loading},{default:a(()=>l[7]||(l[7]=[h("确定")])),_:1},8,["disabled"]),o(v,{onClick:l[4]||(l[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>l[8]||(l[8]=[h(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[Q((V(),W("div",Z,[o(K,{ref_key:"elFormRef",ref:p,model:e.form,rules:x,"label-width":"90px"},{default:a(()=>[o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"角色名称",prop:"roleName"},{default:a(()=>[o(b,{modelValue:e.form.roleName,"onUpdate:modelValue":l[0]||(l[0]=n=>e.form.roleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"编码",prop:"formCode"},{default:a(()=>[o(b,{modelValue:e.form.formCode,"onUpdate:modelValue":l[1]||(l[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"排序"},{default:a(()=>[o(E,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"状态"},{default:a(()=>[o(U,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=n=>e.form.status=n)},{default:a(()=>[o(y,{label:"启用",value:1}),o(y,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:24},{default:a(()=>[o(u,{label:"权限"},{default:a(()=>[o(F,{"max-height":"500px",style:{width:"100%"}},{default:a(()=>[o(B,{style:{width:"100%"},data:e.menuTreeData,"default-expand-all":"","show-checkbox":"","node-key":"id",ref_key:"elTreeRef",ref:i},{default:a(({node:n,data:w})=>[f("span",{class:X(T(n,w))},[f("span",null,Y(w.label),1)],2)]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},se=O(ee,[["__scopeId","data-v-7f16df5c"]]);export{se as default}; |
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||
import{b as M,c as O,u as h,d as q}from"./orgApi-BlXck7vw.js";import $ from"./userSelect-BUJMb5lo.js";import T from"./orgCascader-CYfOdxRE.js";import{g as j,i as b,r as n,k as z,o as I,h as A,w as a,a as f,d as l,e as v,l as G,c as H,p as U}from"./index-BO1j28mb.js";const J={class:"app-container"},K={class:"el-custom-dialog-footer"},Y={__name:"editDialog",emits:["onClose"],setup(L,{expose:w,emit:C}){const _=C,e=j({isShowDialog:!1,parentIds:[],form:{id:0},loading:!1}),p=b(),g=b(),D={orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}]};function N(s){e.loading=!0,y(),s?M(s).then(o=>{var i;e.form=o.data,o.data.parentId&&o.data.parentId!=="0"&&(e.parentIds=[o.data.parentId]),(i=g.value)==null||i.setDefaultValue(o.data.principalUserId)}).finally(()=>e.loading=!1):O().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,parentId:0,orgName:"",formCode:"",shortName:"",telephone:"",sort:0,email:"",status:1,principalUserId:null},e.parentIds=[],(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{s&&(e.loading=!0,e.form.parentId=e.parentIds&&e.parentIds.length>0?e.parentIds[0]:"0",e.form.id?h(e.form).then(()=>{_("onClose"),U({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):q(e.form).then(()=>{_("onClose"),U({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1))})}return w({openDialog:N}),(s,o)=>{const i=n("Edit"),k=n("el-icon"),d=n("el-form-item"),r=n("el-col"),u=n("el-row"),m=n("el-input"),x=n("el-input-number"),V=n("el-radio"),B=n("el-radio-group"),E=n("el-form"),c=n("el-button"),F=n("el-dialog"),R=z("loading");return I(),A(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[10]||(o[10]=t=>e.isShowDialog=t),draggable:"","close-on-click-modal":!1,width:"700px"},{header:a(()=>[f("div",null,[l(k,{class:"el-custom-dialog-icon"},{default:a(()=>[l(i)]),_:1}),o[11]||(o[11]=f("span",null,"机构信息",-1))])]),footer:a(()=>[f("div",K,[l(c,{type:"primary",onClick:S,disabled:e.loading},{default:a(()=>o[12]||(o[12]=[v("确定")])),_:1},8,["disabled"]),l(c,{onClick:o[9]||(o[9]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>o[13]||(o[13]=[v(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[G((I(),H("div",J,[l(E,{ref_key:"elFormRef",ref:p,model:e.form,rules:D,"label-width":"90px"},{default:a(()=>[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"父级",prop:"parentId"},{default:a(()=>[l(T,{modelValue:e.parentIds,"onUpdate:modelValue":o[0]||(o[0]=t=>e.parentIds=t),checkStrictly:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f("div",null,[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"机构名称",prop:"orgName"},{default:a(()=>[l(m,{modelValue:e.form.orgName,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.orgName=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"简称",prop:"shortName"},{default:a(()=>[l(m,{modelValue:e.form.shortName,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.shortName=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"编码",prop:"formCode"},{default:a(()=>[l(m,{modelValue:e.form.formCode,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.formCode=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"联系方式",prop:"telephone"},{default:a(()=>[l(m,{modelValue:e.form.telephone,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.telephone=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"排序"},{default:a(()=>[l(x,{modelValue:e.form.sort,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sort=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"邮箱",prop:"email"},{default:a(()=>[l(m,{modelValue:e.form.email,"onUpdate:modelValue":o[6]||(o[6]=t=>e.form.email=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"负责人",prop:"principalUserId"},{default:a(()=>[l($,{ref_key:"userSelectRef",ref:g,modelValue:e.form.principalUserId,"onUpdate:modelValue":o[7]||(o[7]=t=>e.form.principalUserId=t),isMultiple:!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"状态"},{default:a(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[8]||(o[8]=t=>e.form.status=t)},{default:a(()=>[l(V,{label:"启用",value:1}),l(V,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])]),_:1},8,["model"])])),[[R,e.loading]])]),_:1},8,["modelValue"])}}};export{Y as default}; |
|||
import{b as M,c as O,u as h,d as q}from"./orgApi-v6vhSMlI.js";import $ from"./userSelect-DPNw5LLI.js";import T from"./orgCascader-D3R_voqP.js";import{g as j,i as b,r as n,k as z,o as I,h as A,w as a,a as f,d as l,e as v,l as G,c as H,p as U}from"./index-CI8aco7-.js";const J={class:"app-container"},K={class:"el-custom-dialog-footer"},Y={__name:"editDialog",emits:["onClose"],setup(L,{expose:w,emit:C}){const _=C,e=j({isShowDialog:!1,parentIds:[],form:{id:0},loading:!1}),p=b(),g=b(),D={orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}]};function N(s){e.loading=!0,y(),s?M(s).then(o=>{var i;e.form=o.data,o.data.parentId&&o.data.parentId!=="0"&&(e.parentIds=[o.data.parentId]),(i=g.value)==null||i.setDefaultValue(o.data.principalUserId)}).finally(()=>e.loading=!1):O().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,parentId:0,orgName:"",formCode:"",shortName:"",telephone:"",sort:0,email:"",status:1,principalUserId:null},e.parentIds=[],(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{s&&(e.loading=!0,e.form.parentId=e.parentIds&&e.parentIds.length>0?e.parentIds[0]:"0",e.form.id?h(e.form).then(()=>{_("onClose"),U({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):q(e.form).then(()=>{_("onClose"),U({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1))})}return w({openDialog:N}),(s,o)=>{const i=n("Edit"),k=n("el-icon"),d=n("el-form-item"),r=n("el-col"),u=n("el-row"),m=n("el-input"),x=n("el-input-number"),V=n("el-radio"),B=n("el-radio-group"),E=n("el-form"),c=n("el-button"),F=n("el-dialog"),R=z("loading");return I(),A(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[10]||(o[10]=t=>e.isShowDialog=t),draggable:"","close-on-click-modal":!1,width:"700px"},{header:a(()=>[f("div",null,[l(k,{class:"el-custom-dialog-icon"},{default:a(()=>[l(i)]),_:1}),o[11]||(o[11]=f("span",null,"机构信息",-1))])]),footer:a(()=>[f("div",K,[l(c,{type:"primary",onClick:S,disabled:e.loading},{default:a(()=>o[12]||(o[12]=[v("确定")])),_:1},8,["disabled"]),l(c,{onClick:o[9]||(o[9]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>o[13]||(o[13]=[v(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[G((I(),H("div",J,[l(E,{ref_key:"elFormRef",ref:p,model:e.form,rules:D,"label-width":"90px"},{default:a(()=>[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"父级",prop:"parentId"},{default:a(()=>[l(T,{modelValue:e.parentIds,"onUpdate:modelValue":o[0]||(o[0]=t=>e.parentIds=t),checkStrictly:!0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f("div",null,[l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"机构名称",prop:"orgName"},{default:a(()=>[l(m,{modelValue:e.form.orgName,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.orgName=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"简称",prop:"shortName"},{default:a(()=>[l(m,{modelValue:e.form.shortName,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.shortName=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"编码",prop:"formCode"},{default:a(()=>[l(m,{modelValue:e.form.formCode,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.formCode=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"联系方式",prop:"telephone"},{default:a(()=>[l(m,{modelValue:e.form.telephone,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.telephone=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"排序"},{default:a(()=>[l(x,{modelValue:e.form.sort,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sort=t)},null,8,["modelValue"])]),_:1})]),_:1}),l(r,{span:12},{default:a(()=>[l(d,{label:"邮箱",prop:"email"},{default:a(()=>[l(m,{modelValue:e.form.email,"onUpdate:modelValue":o[6]||(o[6]=t=>e.form.email=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"负责人",prop:"principalUserId"},{default:a(()=>[l($,{ref_key:"userSelectRef",ref:g,modelValue:e.form.principalUserId,"onUpdate:modelValue":o[7]||(o[7]=t=>e.form.principalUserId=t),isMultiple:!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(u,null,{default:a(()=>[l(r,{span:12},{default:a(()=>[l(d,{label:"状态"},{default:a(()=>[l(B,{modelValue:e.form.status,"onUpdate:modelValue":o[8]||(o[8]=t=>e.form.status=t)},{default:a(()=>[l(V,{label:"启用",value:1}),l(V,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])]),_:1},8,["model"])])),[[R,e.loading]])]),_:1},8,["modelValue"])}}};export{Y as default}; |
@ -1 +1 @@ |
|||
import{g as q,a as z,b as H,c as I}from"./roleApi-5o7N_hM7.js";import{e as L}from"./menuApi-CQ0yfEMP.js";import{_ as O,g as A,i as C,j as G,r as t,k as J,o as V,h as P,w as a,a as f,d as o,e as h,l as Q,c as W,ah as X,t as Y,p as c}from"./index-BO1j28mb.js";const Z={class:"app-container"},$={class:"el-custom-dialog-footer"},ee={__name:"editDialog",emits:["onClose"],setup(le,{expose:D,emit:k}){const g=k,e=A({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=C(),i=C(),x={roleName:[{required:!0,message:"请输入角色名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入角色编码!",trigger:"blur"}]};G(()=>{L({}).then(s=>{e.menuTreeData=s.data})});function N(s){e.loading=!0,S(),s?q(s).then(l=>{var d;e.form=l.data,(d=i.value)==null||d.setCheckedKeys(e.form.btns)}).finally(()=>e.loading=!1):z().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var s,l;e.form={id:null,roleName:"",formCode:"",sort:0,status:1,dataScopeType:2},(s=i.value)==null||s.setCheckedKeys([]),(l=p.value)==null||l.resetFields()}function R(){p.value.validate(s=>{var l,d;if(s){let r=Object.assign({},e.form);if(r.menus=[...(l=i.value)==null?void 0:l.getHalfCheckedKeys(),...(d=i.value)==null?void 0:d.getCheckedKeys()],r.menus.length===0){c({message:"请选择菜单权限!",type:"warning"});return}e.loading=!0,e.form.id?H(r).then(()=>{g("onClose"),c({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):I(r).then(()=>{g("onClose"),c({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}function T(s,l){return l.type===3?s.parent.childNodes[0].id===s.id?"is-leaf-node-first-child":"is-leaf-node":"not-leaf-node"}return D({openDialog:N}),(s,l)=>{const d=t("Edit"),r=t("el-icon"),b=t("el-input"),u=t("el-form-item"),m=t("el-col"),_=t("el-row"),E=t("el-input-number"),y=t("el-radio"),U=t("el-radio-group"),B=t("el-tree"),F=t("el-scrollbar"),K=t("el-form"),v=t("el-button"),M=t("el-dialog"),j=J("loading");return V(),P(M,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[5]||(l[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"850px"},{header:a(()=>[f("div",null,[o(r,{class:"el-custom-dialog-icon"},{default:a(()=>[o(d)]),_:1}),l[6]||(l[6]=f("span",null,"角色信息",-1))])]),footer:a(()=>[f("div",$,[o(v,{type:"primary",onClick:R,disabled:e.loading},{default:a(()=>l[7]||(l[7]=[h("确定")])),_:1},8,["disabled"]),o(v,{onClick:l[4]||(l[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>l[8]||(l[8]=[h(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[Q((V(),W("div",Z,[o(K,{ref_key:"elFormRef",ref:p,model:e.form,rules:x,"label-width":"90px"},{default:a(()=>[o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"角色名称",prop:"roleName"},{default:a(()=>[o(b,{modelValue:e.form.roleName,"onUpdate:modelValue":l[0]||(l[0]=n=>e.form.roleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"编码",prop:"formCode"},{default:a(()=>[o(b,{modelValue:e.form.formCode,"onUpdate:modelValue":l[1]||(l[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"排序"},{default:a(()=>[o(E,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"状态"},{default:a(()=>[o(U,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=n=>e.form.status=n)},{default:a(()=>[o(y,{label:"启用",value:1}),o(y,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:24},{default:a(()=>[o(u,{label:"权限"},{default:a(()=>[o(F,{"max-height":"500px",style:{width:"100%"}},{default:a(()=>[o(B,{style:{width:"100%"},data:e.menuTreeData,"default-expand-all":"","show-checkbox":"","node-key":"id",ref_key:"elTreeRef",ref:i},{default:a(({node:n,data:w})=>[f("span",{class:X(T(n,w))},[f("span",null,Y(w.label),1)],2)]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},se=O(ee,[["__scopeId","data-v-7f16df5c"]]);export{se as default}; |
|||
import{g as q,a as z,b as H,c as I}from"./roleApi-D1CvLHy6.js";import{e as L}from"./menuApi-F2PSxiN_.js";import{_ as O,g as A,i as C,j as G,r as t,k as J,o as V,h as P,w as a,a as f,d as o,e as h,l as Q,c as W,ah as X,t as Y,p as c}from"./index-CI8aco7-.js";const Z={class:"app-container"},$={class:"el-custom-dialog-footer"},ee={__name:"editDialog",emits:["onClose"],setup(le,{expose:D,emit:k}){const g=k,e=A({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=C(),i=C(),x={roleName:[{required:!0,message:"请输入角色名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入角色编码!",trigger:"blur"}]};G(()=>{L({}).then(s=>{e.menuTreeData=s.data})});function N(s){e.loading=!0,S(),s?q(s).then(l=>{var d;e.form=l.data,(d=i.value)==null||d.setCheckedKeys(e.form.btns)}).finally(()=>e.loading=!1):z().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var s,l;e.form={id:null,roleName:"",formCode:"",sort:0,status:1,dataScopeType:2},(s=i.value)==null||s.setCheckedKeys([]),(l=p.value)==null||l.resetFields()}function R(){p.value.validate(s=>{var l,d;if(s){let r=Object.assign({},e.form);if(r.menus=[...(l=i.value)==null?void 0:l.getHalfCheckedKeys(),...(d=i.value)==null?void 0:d.getCheckedKeys()],r.menus.length===0){c({message:"请选择菜单权限!",type:"warning"});return}e.loading=!0,e.form.id?H(r).then(()=>{g("onClose"),c({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):I(r).then(()=>{g("onClose"),c({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}function T(s,l){return l.type===3?s.parent.childNodes[0].id===s.id?"is-leaf-node-first-child":"is-leaf-node":"not-leaf-node"}return D({openDialog:N}),(s,l)=>{const d=t("Edit"),r=t("el-icon"),b=t("el-input"),u=t("el-form-item"),m=t("el-col"),_=t("el-row"),E=t("el-input-number"),y=t("el-radio"),U=t("el-radio-group"),B=t("el-tree"),F=t("el-scrollbar"),K=t("el-form"),v=t("el-button"),M=t("el-dialog"),j=J("loading");return V(),P(M,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[5]||(l[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"850px"},{header:a(()=>[f("div",null,[o(r,{class:"el-custom-dialog-icon"},{default:a(()=>[o(d)]),_:1}),l[6]||(l[6]=f("span",null,"角色信息",-1))])]),footer:a(()=>[f("div",$,[o(v,{type:"primary",onClick:R,disabled:e.loading},{default:a(()=>l[7]||(l[7]=[h("确定")])),_:1},8,["disabled"]),o(v,{onClick:l[4]||(l[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>l[8]||(l[8]=[h(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[Q((V(),W("div",Z,[o(K,{ref_key:"elFormRef",ref:p,model:e.form,rules:x,"label-width":"90px"},{default:a(()=>[o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"角色名称",prop:"roleName"},{default:a(()=>[o(b,{modelValue:e.form.roleName,"onUpdate:modelValue":l[0]||(l[0]=n=>e.form.roleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"编码",prop:"formCode"},{default:a(()=>[o(b,{modelValue:e.form.formCode,"onUpdate:modelValue":l[1]||(l[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"排序"},{default:a(()=>[o(E,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"状态"},{default:a(()=>[o(U,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=n=>e.form.status=n)},{default:a(()=>[o(y,{label:"启用",value:1}),o(y,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:24},{default:a(()=>[o(u,{label:"权限"},{default:a(()=>[o(F,{"max-height":"500px",style:{width:"100%"}},{default:a(()=>[o(B,{style:{width:"100%"},data:e.menuTreeData,"default-expand-all":"","show-checkbox":"","node-key":"id",ref_key:"elTreeRef",ref:i},{default:a(({node:n,data:w})=>[f("span",{class:X(T(n,w))},[f("span",null,Y(w.label),1)],2)]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},se=O(ee,[["__scopeId","data-v-7f16df5c"]]);export{se as default}; |
@ -1 +0,0 @@ |
|||
import{a as F,b as T,u as M,c as P}from"./positionApi-LSxcuq5K.js";import{e as j}from"./menuApi-DA2os7CJ.js";import{g as q,i as R,j as L,r as a,k as O,o as c,h as z,w as t,a as m,d as l,e as b,l as A,c as G,E as V}from"./index-CL0IOL6c.js";const H={class:"app-container",style:{"min-height":"150px"}},I={class:"el-custom-dialog-footer"},X={__name:"editDialog",emits:["onClose"],setup(J,{expose:v,emit:w}){const u=w,e=q({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=R(),D={positionName:[{required:!0,message:"请输入职位名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入职位编码!",trigger:"blur"}]};L(()=>{j({}).then(s=>{e.menuTreeData=s.data})});function C(s){e.loading=!0,y(),s?F(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):T().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,positionName:"",formCode:"",sort:0,status:1},(s=r.value)==null||s.resetFields()}function x(){r.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?M(o).then(()=>{u("onClose"),V({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):P(o).then(()=>{u("onClose"),V({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return v({openDialog:C}),(s,o)=>{const k=a("Edit"),N=a("el-icon"),f=a("el-input"),i=a("el-form-item"),d=a("el-col"),p=a("el-row"),S=a("el-input-number"),_=a("el-radio"),E=a("el-radio-group"),h=a("el-form"),g=a("el-button"),U=a("el-dialog"),B=O("loading");return c(),z(U,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[5]||(o[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[m("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(k)]),_:1}),o[6]||(o[6]=m("span",null,"职位信息",-1))])]),footer:t(()=>[m("div",I,[l(g,{type:"primary",onClick:x,disabled:e.loading},{default:t(()=>o[7]||(o[7]=[b("确定")])),_:1},8,["disabled"]),l(g,{onClick:o[4]||(o[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[8]||(o[8]=[b("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((c(),G("div",H,[l(h,{ref_key:"elFormRef",ref:r,model:e.form,rules:D,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"职位名称",prop:"positionName"},{default:t(()=>[l(f,{modelValue:e.form.positionName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.positionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"排序"},{default:t(()=>[l(S,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"状态"},{default:t(()=>[l(E,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(_,{label:"启用",value:1}),l(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,e.loading]])]),_:1},8,["modelValue"])}}};export{X as default}; |
@ -1 +0,0 @@ |
|||
import{m as i,g as M,i as O,r as a,k as T,o as b,h as q,w as t,a as c,d as l,e as V,l as P,c as R,E as v}from"./index-CL0IOL6c.js";function Q(d){return i({url:"/api/dataDict/paged",method:"post",data:d})}function z(){return i({url:"/api/dataDict/maxSort",method:"get"})}function W(d){return i({url:"/api/dataDict/delete",method:"post",data:d})}function A(d){return i({url:"/api/dataDict/add",method:"post",data:d})}function G(d){return i({url:"/api/dataDict/update",method:"post",data:d})}function H(d){return i({url:"/api/dataDict/detail",method:"get",params:{id:d}})}const I={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},K={__name:"editDialog",emits:["onClose"],setup(d,{expose:w,emit:y}){const _=y,e=M({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),m=O(),C={dictName:[{required:!0,message:"请输入字典类型名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入字典类型编码!",trigger:"blur"}]};function k(s){e.loading=!0,x(),s?H(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):z().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function x(){var s;e.form={id:null,dictName:"",formCode:"",sort:0,status:1,remark:""},(s=m.value)==null||s.resetFields()}function S(){m.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?G(o).then(()=>{_("onClose"),v({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):A(o).then(()=>{_("onClose"),v({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return w({openDialog:k}),(s,o)=>{const h=a("Edit"),N=a("el-icon"),f=a("el-input"),r=a("el-form-item"),u=a("el-col"),p=a("el-row"),U=a("el-input-number"),g=a("el-radio"),E=a("el-radio-group"),B=a("el-form"),D=a("el-button"),F=a("el-dialog"),j=T("loading");return b(),q(F,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[6]||(o[6]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[c("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(h)]),_:1}),o[7]||(o[7]=c("span",null,"字典类型信息",-1))])]),footer:t(()=>[c("div",J,[l(D,{type:"primary",onClick:S,disabled:e.loading},{default:t(()=>o[8]||(o[8]=[V("确定")])),_:1},8,["disabled"]),l(D,{onClick:o[5]||(o[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[9]||(o[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",I,[l(B,{ref_key:"elFormRef",ref:m,model:e.form,rules:C,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"字典类型",prop:"dictName"},{default:t(()=>[l(f,{modelValue:e.form.dictName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.dictName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:12},{default:t(()=>[l(r,{label:"排序"},{default:t(()=>[l(U,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:t(()=>[l(r,{label:"状态"},{default:t(()=>[l(E,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(g,{label:"启用",value:1}),l(g,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(u,{span:24},{default:t(()=>[l(r,{label:"备注"},{default:t(()=>[l(f,{modelValue:e.form.remark,"onUpdate:modelValue":o[4]||(o[4]=n=>e.form.remark=n),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as _,W as d,X as e,Q as g}; |
@ -1 +0,0 @@ |
|||
import{a as F,b as T,u as M,c as P}from"./positionApi-Dfua49rq.js";import{e as j}from"./menuApi-CQ0yfEMP.js";import{g as q,i as R,j as L,r as a,k as O,o as c,h as z,w as t,a as m,d as l,e as b,l as A,c as G,p as V}from"./index-BO1j28mb.js";const H={class:"app-container",style:{"min-height":"150px"}},I={class:"el-custom-dialog-footer"},X={__name:"editDialog",emits:["onClose"],setup(J,{expose:v,emit:w}){const u=w,e=q({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=R(),D={positionName:[{required:!0,message:"请输入职位名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入职位编码!",trigger:"blur"}]};L(()=>{j({}).then(s=>{e.menuTreeData=s.data})});function C(s){e.loading=!0,y(),s?F(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):T().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,positionName:"",formCode:"",sort:0,status:1},(s=r.value)==null||s.resetFields()}function x(){r.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?M(o).then(()=>{u("onClose"),V({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):P(o).then(()=>{u("onClose"),V({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return v({openDialog:C}),(s,o)=>{const k=a("Edit"),N=a("el-icon"),f=a("el-input"),i=a("el-form-item"),d=a("el-col"),p=a("el-row"),S=a("el-input-number"),_=a("el-radio"),h=a("el-radio-group"),E=a("el-form"),g=a("el-button"),U=a("el-dialog"),B=O("loading");return c(),z(U,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[5]||(o[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[m("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(k)]),_:1}),o[6]||(o[6]=m("span",null,"职位信息",-1))])]),footer:t(()=>[m("div",I,[l(g,{type:"primary",onClick:x,disabled:e.loading},{default:t(()=>o[7]||(o[7]=[b("确定")])),_:1},8,["disabled"]),l(g,{onClick:o[4]||(o[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[8]||(o[8]=[b("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((c(),G("div",H,[l(E,{ref_key:"elFormRef",ref:r,model:e.form,rules:D,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"职位名称",prop:"positionName"},{default:t(()=>[l(f,{modelValue:e.form.positionName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.positionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"排序"},{default:t(()=>[l(S,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"状态"},{default:t(()=>[l(h,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(_,{label:"启用",value:1}),l(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,e.loading]])]),_:1},8,["modelValue"])}}};export{X as default}; |
@ -1 +0,0 @@ |
|||
import{v as m,g as E,i as j,r as n,k as M,o as b,h as O,w as t,a as g,d as e,e as V,l as P,c as R,p as h}from"./index-DVN0Hxy1.js";function K(r){return m({url:"/api/tenant/paged",method:"post",data:r})}function L(r){return m({url:"/api/tenant/delete",method:"post",data:r})}function z(r){return m({url:"/api/tenant/add",method:"post",data:r})}function Q(r){return m({url:"/api/tenant/open",method:"get",params:{id:r}})}function W(r){return m({url:"/api/tenant/close",method:"get",params:{id:r}})}function A(){return m({url:"/api/tenant/maxSort",method:"get"})}const G={class:"app-container",style:{"min-height":"150px"}},H={class:"el-custom-dialog-footer"},I={__name:"editDialog",emits:["onClose"],setup(r,{expose:N,emit:v}){const w=v,o=E({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),f=j(),D={tenantName:[{required:!0,message:"请输入租户名称!",trigger:"blur"}],orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],orgFormCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}],userName:[{required:!0,message:"请输入租管账号!",trigger:"blur"}],realName:[{required:!0,message:"请输入租管姓名!",trigger:"blur"}]};function C(){o.loading=!0,x(),A().then(s=>{o.form.sort=s.data}).finally(()=>o.loading=!1),o.isShowDialog=!0}function x(){var s;o.form={id:null,tenantName:"",orgName:"",orgFormCode:"",userName:"",realName:"",sort:0,status:1},(s=f.value)==null||s.resetFields()}function S(){f.value.validate(s=>{if(s){o.loading=!0;let l=Object.assign({},o.form);z(l).then(()=>{w("onClose"),h({message:"新增成功",type:"success"}),o.isShowDialog=!1}).finally(()=>o.loading=!1)}})}return N({openDialog:C}),(s,l)=>{const y=n("Edit"),F=n("el-icon"),i=n("el-input"),u=n("el-form-item"),d=n("el-col"),k=n("el-input-number"),p=n("el-row"),_=n("el-radio"),U=n("el-radio-group"),T=n("el-form"),c=n("el-button"),q=n("el-dialog"),B=M("loading");return b(),O(q,{modelValue:o.isShowDialog,"onUpdate:modelValue":l[8]||(l[8]=a=>o.isShowDialog=a),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[g("div",null,[e(F,{class:"el-custom-dialog-icon"},{default:t(()=>[e(y)]),_:1}),l[9]||(l[9]=g("span",null,"职位信息",-1))])]),footer:t(()=>[g("div",H,[e(c,{type:"primary",onClick:S,disabled:o.loading},{default:t(()=>l[10]||(l[10]=[V("确定")])),_:1},8,["disabled"]),e(c,{onClick:l[7]||(l[7]=()=>o.isShowDialog=!1),disabled:o.loading},{default:t(()=>l[11]||(l[11]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",G,[e(T,{ref_key:"elFormRef",ref:f,model:o.form,rules:D,"label-width":"90px"},{default:t(()=>[e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租户名称",prop:"tenantName"},{default:t(()=>[e(i,{modelValue:o.form.tenantName,"onUpdate:modelValue":l[0]||(l[0]=a=>o.form.tenantName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"排序"},{default:t(()=>[e(k,{modelValue:o.form.sort,"onUpdate:modelValue":l[1]||(l[1]=a=>o.form.sort=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"机构名称",prop:"orgName"},{default:t(()=>[e(i,{modelValue:o.form.orgName,"onUpdate:modelValue":l[2]||(l[2]=a=>o.form.orgName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"机构编码",prop:"orgFormCode"},{default:t(()=>[e(i,{modelValue:o.form.orgFormCode,"onUpdate:modelValue":l[3]||(l[3]=a=>o.form.orgFormCode=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租管账户",prop:"userName"},{default:t(()=>[e(i,{modelValue:o.form.userName,"onUpdate:modelValue":l[4]||(l[4]=a=>o.form.userName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"租管姓名",prop:"realName"},{default:t(()=>[e(i,{modelValue:o.form.realName,"onUpdate:modelValue":l[5]||(l[5]=a=>o.form.realName=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"状态"},{default:t(()=>[e(U,{modelValue:o.form.status,"onUpdate:modelValue":l[6]||(l[6]=a=>o.form.status=a)},{default:t(()=>[e(_,{label:"启用",value:1}),e(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,o.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as _,W as c,L as d,X as e,K as g,Q as o}; |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{m,g as B,i as j,r as n,k as M,o as b,h as O,w as t,a as g,d as e,e as V,l as P,c as R,E as h}from"./index-CL0IOL6c.js";function K(r){return m({url:"/api/tenant/paged",method:"post",data:r})}function L(r){return m({url:"/api/tenant/delete",method:"post",data:r})}function z(r){return m({url:"/api/tenant/add",method:"post",data:r})}function Q(r){return m({url:"/api/tenant/open",method:"get",params:{id:r}})}function W(r){return m({url:"/api/tenant/close",method:"get",params:{id:r}})}function A(){return m({url:"/api/tenant/maxSort",method:"get"})}const G={class:"app-container",style:{"min-height":"150px"}},H={class:"el-custom-dialog-footer"},I={__name:"editDialog",emits:["onClose"],setup(r,{expose:N,emit:v}){const w=v,o=B({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=j(),D={tenantName:[{required:!0,message:"请输入租户名称!",trigger:"blur"}],orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],orgFormCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}],userName:[{required:!0,message:"请输入租管账号!",trigger:"blur"}],realName:[{required:!0,message:"请输入租管姓名!",trigger:"blur"}]};function C(){o.loading=!0,x(),A().then(s=>{o.form.sort=s.data}).finally(()=>o.loading=!1),o.isShowDialog=!0}function x(){var s;o.form={id:null,tenantName:"",orgName:"",orgFormCode:"",userName:"",realName:"",sort:0,status:1},(s=p.value)==null||s.resetFields()}function S(){p.value.validate(s=>{if(s){o.loading=!0;let l=Object.assign({},o.form);z(l).then(()=>{w("onClose"),h({message:"新增成功",type:"success"}),o.isShowDialog=!1}).finally(()=>o.loading=!1)}})}return N({openDialog:C}),(s,l)=>{const y=n("Edit"),F=n("el-icon"),i=n("el-input"),u=n("el-form-item"),d=n("el-col"),k=n("el-input-number"),f=n("el-row"),_=n("el-radio"),U=n("el-radio-group"),T=n("el-form"),c=n("el-button"),q=n("el-dialog"),E=M("loading");return b(),O(q,{modelValue:o.isShowDialog,"onUpdate:modelValue":l[8]||(l[8]=a=>o.isShowDialog=a),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[g("div",null,[e(F,{class:"el-custom-dialog-icon"},{default:t(()=>[e(y)]),_:1}),l[9]||(l[9]=g("span",null,"职位信息",-1))])]),footer:t(()=>[g("div",H,[e(c,{type:"primary",onClick:S,disabled:o.loading},{default:t(()=>l[10]||(l[10]=[V("确定")])),_:1},8,["disabled"]),e(c,{onClick:l[7]||(l[7]=()=>o.isShowDialog=!1),disabled:o.loading},{default:t(()=>l[11]||(l[11]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",G,[e(T,{ref_key:"elFormRef",ref:p,model:o.form,rules:D,"label-width":"90px"},{default:t(()=>[e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租户名称",prop:"tenantName"},{default:t(()=>[e(i,{modelValue:o.form.tenantName,"onUpdate:modelValue":l[0]||(l[0]=a=>o.form.tenantName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"排序"},{default:t(()=>[e(k,{modelValue:o.form.sort,"onUpdate:modelValue":l[1]||(l[1]=a=>o.form.sort=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"机构名称",prop:"orgName"},{default:t(()=>[e(i,{modelValue:o.form.orgName,"onUpdate:modelValue":l[2]||(l[2]=a=>o.form.orgName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"机构编码",prop:"orgFormCode"},{default:t(()=>[e(i,{modelValue:o.form.orgFormCode,"onUpdate:modelValue":l[3]||(l[3]=a=>o.form.orgFormCode=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租管账户",prop:"userName"},{default:t(()=>[e(i,{modelValue:o.form.userName,"onUpdate:modelValue":l[4]||(l[4]=a=>o.form.userName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"租管姓名",prop:"realName"},{default:t(()=>[e(i,{modelValue:o.form.realName,"onUpdate:modelValue":l[5]||(l[5]=a=>o.form.realName=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"状态"},{default:t(()=>[e(U,{modelValue:o.form.status,"onUpdate:modelValue":l[6]||(l[6]=a=>o.form.status=a)},{default:t(()=>[e(_,{label:"启用",value:1}),e(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[E,o.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as _,W as c,L as d,X as e,K as g,Q as o}; |
@ -1 +0,0 @@ |
|||
import{a as F,b as T,u as M,c as P}from"./positionApi-qXMSI60M.js";import{e as j}from"./menuApi-CUqEKPWz.js";import{g as q,z as R,h as z,r as a,i as A,o as c,k as L,w as t,a as m,d as l,e as b,j as O,c as G,A as V}from"./index-CsSGZIOI.js";const H={class:"app-container",style:{"min-height":"150px"}},I={class:"el-custom-dialog-footer"},X={__name:"editDialog",emits:["onClose"],setup(J,{expose:v,emit:w}){const u=w,e=q({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=R(),D={positionName:[{required:!0,message:"请输入职位名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入职位编码!",trigger:"blur"}]};z(()=>{j({}).then(s=>{e.menuTreeData=s.data})});function C(s){e.loading=!0,y(),s?F(s).then(o=>{e.form=o.data}).finally(()=>e.loading=!1):T().then(o=>{e.form.sort=o.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function y(){var s;e.form={id:null,positionName:"",formCode:"",sort:0,status:1},(s=r.value)==null||s.resetFields()}function x(){r.value.validate(s=>{if(s){e.loading=!0;let o=Object.assign({},e.form);e.form.id?M(o).then(()=>{u("onClose"),V({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):P(o).then(()=>{u("onClose"),V({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return v({openDialog:C}),(s,o)=>{const k=a("Edit"),N=a("el-icon"),f=a("el-input"),i=a("el-form-item"),d=a("el-col"),p=a("el-row"),S=a("el-input-number"),_=a("el-radio"),h=a("el-radio-group"),E=a("el-form"),g=a("el-button"),U=a("el-dialog"),B=A("loading");return c(),L(U,{modelValue:e.isShowDialog,"onUpdate:modelValue":o[5]||(o[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[m("div",null,[l(N,{class:"el-custom-dialog-icon"},{default:t(()=>[l(k)]),_:1}),o[6]||(o[6]=m("span",null,"职位信息",-1))])]),footer:t(()=>[m("div",I,[l(g,{type:"primary",onClick:x,disabled:e.loading},{default:t(()=>o[7]||(o[7]=[b("确定")])),_:1},8,["disabled"]),l(g,{onClick:o[4]||(o[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>o[8]||(o[8]=[b("取消")])),_:1},8,["disabled"])])]),default:t(()=>[O((c(),G("div",H,[l(E,{ref_key:"elFormRef",ref:r,model:e.form,rules:D,"label-width":"90px"},{default:t(()=>[l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"职位名称",prop:"positionName"},{default:t(()=>[l(f,{modelValue:e.form.positionName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.form.positionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"编码",prop:"formCode"},{default:t(()=>[l(f,{modelValue:e.form.formCode,"onUpdate:modelValue":o[1]||(o[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(p,null,{default:t(()=>[l(d,{span:12},{default:t(()=>[l(i,{label:"排序"},{default:t(()=>[l(S,{modelValue:e.form.sort,"onUpdate:modelValue":o[2]||(o[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),l(d,{span:12},{default:t(()=>[l(i,{label:"状态"},{default:t(()=>[l(h,{modelValue:e.form.status,"onUpdate:modelValue":o[3]||(o[3]=n=>e.form.status=n)},{default:t(()=>[l(_,{label:"启用",value:1}),l(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,e.loading]])]),_:1},8,["modelValue"])}}};export{X as default}; |
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{g as q,a as z,b as A,c as H}from"./roleApi-TOST4PBa.js";import{e as I}from"./menuApi-CUqEKPWz.js";import{_ as L,g as O,z as C,h as G,r as t,i as J,o as V,k as P,w as a,a as f,d as o,e as D,j as Q,c as W,ag as X,t as Y,A as c}from"./index-CsSGZIOI.js";const Z={class:"app-container"},$={class:"el-custom-dialog-footer"},ee={__name:"editDialog",emits:["onClose"],setup(le,{expose:h,emit:k}){const g=k,e=O({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),p=C(),i=C(),x={roleName:[{required:!0,message:"请输入角色名称!",trigger:"blur"}],formCode:[{required:!0,message:"请输入角色编码!",trigger:"blur"}]};G(()=>{I({}).then(s=>{e.menuTreeData=s.data})});function N(s){e.loading=!0,S(),s?q(s).then(l=>{var d;e.form=l.data,(d=i.value)==null||d.setCheckedKeys(e.form.btns)}).finally(()=>e.loading=!1):z().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var s,l;e.form={id:null,roleName:"",formCode:"",sort:0,status:1,dataScopeType:2},(s=i.value)==null||s.setCheckedKeys([]),(l=p.value)==null||l.resetFields()}function R(){p.value.validate(s=>{var l,d;if(s){let r=Object.assign({},e.form);if(r.menus=[...(l=i.value)==null?void 0:l.getHalfCheckedKeys(),...(d=i.value)==null?void 0:d.getCheckedKeys()],r.menus.length===0){c({message:"请选择菜单权限!",type:"warning"});return}e.loading=!0,e.form.id?A(r).then(()=>{g("onClose"),c({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):H(r).then(()=>{g("onClose"),c({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}function T(s,l){return l.type===3?s.parent.childNodes[0].id===s.id?"is-leaf-node-first-child":"is-leaf-node":"not-leaf-node"}return h({openDialog:N}),(s,l)=>{const d=t("Edit"),r=t("el-icon"),b=t("el-input"),u=t("el-form-item"),m=t("el-col"),_=t("el-row"),E=t("el-input-number"),y=t("el-radio"),U=t("el-radio-group"),B=t("el-tree"),F=t("el-scrollbar"),K=t("el-form"),v=t("el-button"),M=t("el-dialog"),j=J("loading");return V(),P(M,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[5]||(l[5]=n=>e.isShowDialog=n),draggable:"","close-on-click-modal":!1,width:"850px"},{header:a(()=>[f("div",null,[o(r,{class:"el-custom-dialog-icon"},{default:a(()=>[o(d)]),_:1}),l[6]||(l[6]=f("span",null,"角色信息",-1))])]),footer:a(()=>[f("div",$,[o(v,{type:"primary",onClick:R,disabled:e.loading},{default:a(()=>l[7]||(l[7]=[D("确定")])),_:1},8,["disabled"]),o(v,{onClick:l[4]||(l[4]=()=>e.isShowDialog=!1),disabled:e.loading},{default:a(()=>l[8]||(l[8]=[D(" 取消 ")])),_:1},8,["disabled"])])]),default:a(()=>[Q((V(),W("div",Z,[o(K,{ref_key:"elFormRef",ref:p,model:e.form,rules:x,"label-width":"90px"},{default:a(()=>[o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"角色名称",prop:"roleName"},{default:a(()=>[o(b,{modelValue:e.form.roleName,"onUpdate:modelValue":l[0]||(l[0]=n=>e.form.roleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"编码",prop:"formCode"},{default:a(()=>[o(b,{modelValue:e.form.formCode,"onUpdate:modelValue":l[1]||(l[1]=n=>e.form.formCode=n)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:12},{default:a(()=>[o(u,{label:"排序"},{default:a(()=>[o(E,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=n=>e.form.sort=n)},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:12},{default:a(()=>[o(u,{label:"状态"},{default:a(()=>[o(U,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=n=>e.form.status=n)},{default:a(()=>[o(y,{label:"启用",value:1}),o(y,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(_,null,{default:a(()=>[o(m,{span:24},{default:a(()=>[o(u,{label:"权限"},{default:a(()=>[o(F,{"max-height":"500px",style:{width:"100%"}},{default:a(()=>[o(B,{style:{width:"100%"},data:e.menuTreeData,"default-expand-all":"","show-checkbox":"","node-key":"id",ref_key:"elTreeRef",ref:i},{default:a(({node:n,data:w})=>[f("span",{class:X(T(n,w))},[f("span",null,Y(w.label),1)],2)]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[j,e.loading]])]),_:1},8,["modelValue"])}}},se=L(ee,[["__scopeId","data-v-7f16df5c"]]);export{se as default}; |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||
import{v as m,g as E,i as j,r as n,k as M,o as b,h as O,w as t,a as g,d as e,e as V,l as P,c as R,p as h}from"./index-BO1j28mb.js";function K(r){return m({url:"/api/tenant/paged",method:"post",data:r})}function L(r){return m({url:"/api/tenant/delete",method:"post",data:r})}function z(r){return m({url:"/api/tenant/add",method:"post",data:r})}function Q(r){return m({url:"/api/tenant/open",method:"get",params:{id:r}})}function W(r){return m({url:"/api/tenant/close",method:"get",params:{id:r}})}function A(){return m({url:"/api/tenant/maxSort",method:"get"})}const G={class:"app-container",style:{"min-height":"150px"}},H={class:"el-custom-dialog-footer"},I={__name:"editDialog",emits:["onClose"],setup(r,{expose:N,emit:v}){const w=v,o=E({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),f=j(),D={tenantName:[{required:!0,message:"请输入租户名称!",trigger:"blur"}],orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],orgFormCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}],userName:[{required:!0,message:"请输入租管账号!",trigger:"blur"}],realName:[{required:!0,message:"请输入租管姓名!",trigger:"blur"}]};function C(){o.loading=!0,x(),A().then(s=>{o.form.sort=s.data}).finally(()=>o.loading=!1),o.isShowDialog=!0}function x(){var s;o.form={id:null,tenantName:"",orgName:"",orgFormCode:"",userName:"",realName:"",sort:0,status:1},(s=f.value)==null||s.resetFields()}function S(){f.value.validate(s=>{if(s){o.loading=!0;let l=Object.assign({},o.form);z(l).then(()=>{w("onClose"),h({message:"新增成功",type:"success"}),o.isShowDialog=!1}).finally(()=>o.loading=!1)}})}return N({openDialog:C}),(s,l)=>{const y=n("Edit"),F=n("el-icon"),i=n("el-input"),u=n("el-form-item"),d=n("el-col"),k=n("el-input-number"),p=n("el-row"),_=n("el-radio"),U=n("el-radio-group"),T=n("el-form"),c=n("el-button"),q=n("el-dialog"),B=M("loading");return b(),O(q,{modelValue:o.isShowDialog,"onUpdate:modelValue":l[8]||(l[8]=a=>o.isShowDialog=a),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[g("div",null,[e(F,{class:"el-custom-dialog-icon"},{default:t(()=>[e(y)]),_:1}),l[9]||(l[9]=g("span",null,"职位信息",-1))])]),footer:t(()=>[g("div",H,[e(c,{type:"primary",onClick:S,disabled:o.loading},{default:t(()=>l[10]||(l[10]=[V("确定")])),_:1},8,["disabled"]),e(c,{onClick:l[7]||(l[7]=()=>o.isShowDialog=!1),disabled:o.loading},{default:t(()=>l[11]||(l[11]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",G,[e(T,{ref_key:"elFormRef",ref:f,model:o.form,rules:D,"label-width":"90px"},{default:t(()=>[e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租户名称",prop:"tenantName"},{default:t(()=>[e(i,{modelValue:o.form.tenantName,"onUpdate:modelValue":l[0]||(l[0]=a=>o.form.tenantName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"排序"},{default:t(()=>[e(k,{modelValue:o.form.sort,"onUpdate:modelValue":l[1]||(l[1]=a=>o.form.sort=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"机构名称",prop:"orgName"},{default:t(()=>[e(i,{modelValue:o.form.orgName,"onUpdate:modelValue":l[2]||(l[2]=a=>o.form.orgName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"机构编码",prop:"orgFormCode"},{default:t(()=>[e(i,{modelValue:o.form.orgFormCode,"onUpdate:modelValue":l[3]||(l[3]=a=>o.form.orgFormCode=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租管账户",prop:"userName"},{default:t(()=>[e(i,{modelValue:o.form.userName,"onUpdate:modelValue":l[4]||(l[4]=a=>o.form.userName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"租管姓名",prop:"realName"},{default:t(()=>[e(i,{modelValue:o.form.realName,"onUpdate:modelValue":l[5]||(l[5]=a=>o.form.realName=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"状态"},{default:t(()=>[e(U,{modelValue:o.form.status,"onUpdate:modelValue":l[6]||(l[6]=a=>o.form.status=a)},{default:t(()=>[e(_,{label:"启用",value:1}),e(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,o.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as _,W as c,L as d,X as e,K as g,Q as o}; |
|||
import{v as m,g as E,i as j,r as n,k as M,o as b,h as O,w as t,a as g,d as e,e as V,l as P,c as R,p as h}from"./index-CI8aco7-.js";function K(r){return m({url:"/api/tenant/paged",method:"post",data:r})}function L(r){return m({url:"/api/tenant/delete",method:"post",data:r})}function z(r){return m({url:"/api/tenant/add",method:"post",data:r})}function Q(r){return m({url:"/api/tenant/open",method:"get",params:{id:r}})}function W(r){return m({url:"/api/tenant/close",method:"get",params:{id:r}})}function A(){return m({url:"/api/tenant/maxSort",method:"get"})}const G={class:"app-container",style:{"min-height":"150px"}},H={class:"el-custom-dialog-footer"},I={__name:"editDialog",emits:["onClose"],setup(r,{expose:N,emit:v}){const w=v,o=E({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),f=j(),D={tenantName:[{required:!0,message:"请输入租户名称!",trigger:"blur"}],orgName:[{required:!0,message:"请输入机构名称!",trigger:"blur"}],orgFormCode:[{required:!0,message:"请输入机构编码!",trigger:"blur"}],userName:[{required:!0,message:"请输入租管账号!",trigger:"blur"}],realName:[{required:!0,message:"请输入租管姓名!",trigger:"blur"}]};function C(){o.loading=!0,x(),A().then(s=>{o.form.sort=s.data}).finally(()=>o.loading=!1),o.isShowDialog=!0}function x(){var s;o.form={id:null,tenantName:"",orgName:"",orgFormCode:"",userName:"",realName:"",sort:0,status:1},(s=f.value)==null||s.resetFields()}function S(){f.value.validate(s=>{if(s){o.loading=!0;let l=Object.assign({},o.form);z(l).then(()=>{w("onClose"),h({message:"新增成功",type:"success"}),o.isShowDialog=!1}).finally(()=>o.loading=!1)}})}return N({openDialog:C}),(s,l)=>{const y=n("Edit"),F=n("el-icon"),i=n("el-input"),u=n("el-form-item"),d=n("el-col"),k=n("el-input-number"),p=n("el-row"),_=n("el-radio"),U=n("el-radio-group"),T=n("el-form"),c=n("el-button"),q=n("el-dialog"),B=M("loading");return b(),O(q,{modelValue:o.isShowDialog,"onUpdate:modelValue":l[8]||(l[8]=a=>o.isShowDialog=a),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[g("div",null,[e(F,{class:"el-custom-dialog-icon"},{default:t(()=>[e(y)]),_:1}),l[9]||(l[9]=g("span",null,"职位信息",-1))])]),footer:t(()=>[g("div",H,[e(c,{type:"primary",onClick:S,disabled:o.loading},{default:t(()=>l[10]||(l[10]=[V("确定")])),_:1},8,["disabled"]),e(c,{onClick:l[7]||(l[7]=()=>o.isShowDialog=!1),disabled:o.loading},{default:t(()=>l[11]||(l[11]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[P((b(),R("div",G,[e(T,{ref_key:"elFormRef",ref:f,model:o.form,rules:D,"label-width":"90px"},{default:t(()=>[e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租户名称",prop:"tenantName"},{default:t(()=>[e(i,{modelValue:o.form.tenantName,"onUpdate:modelValue":l[0]||(l[0]=a=>o.form.tenantName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"排序"},{default:t(()=>[e(k,{modelValue:o.form.sort,"onUpdate:modelValue":l[1]||(l[1]=a=>o.form.sort=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"机构名称",prop:"orgName"},{default:t(()=>[e(i,{modelValue:o.form.orgName,"onUpdate:modelValue":l[2]||(l[2]=a=>o.form.orgName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"机构编码",prop:"orgFormCode"},{default:t(()=>[e(i,{modelValue:o.form.orgFormCode,"onUpdate:modelValue":l[3]||(l[3]=a=>o.form.orgFormCode=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"租管账户",prop:"userName"},{default:t(()=>[e(i,{modelValue:o.form.userName,"onUpdate:modelValue":l[4]||(l[4]=a=>o.form.userName=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(u,{label:"租管姓名",prop:"realName"},{default:t(()=>[e(i,{modelValue:o.form.realName,"onUpdate:modelValue":l[5]||(l[5]=a=>o.form.realName=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(u,{label:"状态"},{default:t(()=>[e(U,{modelValue:o.form.status,"onUpdate:modelValue":l[6]||(l[6]=a=>o.form.status=a)},{default:t(()=>[e(_,{label:"启用",value:1}),e(_,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[B,o.loading]])]),_:1},8,["modelValue"])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"}));export{I as _,W as c,L as d,X as e,K as g,Q as o}; |
@ -1 +0,0 @@ |
|||
import{b as T,c as h,u as q,e as M}from"./dataDictDetailApi-CT6MIz2g.js";import{g as R,i as j,r as a,k as O,o as g,h as z,w as t,a as f,d as o,e as V,l as A,c as G,E as D}from"./index-CL0IOL6c.js";const H={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},Q={__name:"editDictDetailDialog",props:{dictId:{type:String,default:""}},emits:["onClose"],setup(b,{expose:y,emit:v}){const p=v,w=b,e=R({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=j(),k={dictKey:[{required:!0,message:"请输入字典键!",trigger:"blur"}],dictValue:[{required:!0,message:"请输入字典值!",trigger:"blur"}]};function x(n){e.loading=!0,S(),n?T(n).then(l=>{e.form=l.data}).finally(()=>e.loading=!1):h().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var n;e.form={id:null,dictTypeId:w.dictId,dictKey:"",dictValue:"",sort:0,status:1,remark:""},(n=r.value)==null||n.resetFields()}function C(){r.value.validate(n=>{if(n){e.loading=!0;let l=Object.assign({},e.form);e.form.id?q(l).then(()=>{p("onClose"),D({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):M(l).then(()=>{p("onClose"),D({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return y({openDialog:x}),(n,l)=>{const U=a("Edit"),E=a("el-icon"),u=a("el-input"),i=a("el-form-item"),d=a("el-col"),m=a("el-row"),K=a("el-input-number"),c=a("el-radio"),B=a("el-radio-group"),F=a("el-form"),_=a("el-button"),I=a("el-dialog"),N=O("loading");return g(),z(I,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[6]||(l[6]=s=>e.isShowDialog=s),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[f("div",null,[o(E,{class:"el-custom-dialog-icon"},{default:t(()=>[o(U)]),_:1}),l[7]||(l[7]=f("span",null,"字典信息",-1))])]),footer:t(()=>[f("div",J,[o(_,{type:"primary",onClick:C,disabled:e.loading},{default:t(()=>l[8]||(l[8]=[V("确定")])),_:1},8,["disabled"]),o(_,{onClick:l[5]||(l[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>l[9]||(l[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((g(),G("div",H,[o(F,{ref_key:"elFormRef",ref:r,model:e.form,rules:k,"label-width":"90px"},{default:t(()=>[o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"字典键",prop:"dictKey"},{default:t(()=>[o(u,{modelValue:e.form.dictKey,"onUpdate:modelValue":l[0]||(l[0]=s=>e.form.dictKey=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"字典值",prop:"dictValue"},{default:t(()=>[o(u,{modelValue:e.form.dictValue,"onUpdate:modelValue":l[1]||(l[1]=s=>e.form.dictValue=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"排序"},{default:t(()=>[o(K,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=s=>e.form.sort=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"状态"},{default:t(()=>[o(B,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=s=>e.form.status=s)},{default:t(()=>[o(c,{label:"启用",value:1}),o(c,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:24},{default:t(()=>[o(i,{label:"备注"},{default:t(()=>[o(u,{modelValue:e.form.remark,"onUpdate:modelValue":l[4]||(l[4]=s=>e.form.remark=s),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[N,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +0,0 @@ |
|||
import{b as T,c as h,u as q,e as M}from"./dataDictDetailApi-C-i4OK3W.js";import{g as R,i as j,r as a,k as O,o as g,h as z,w as t,a as f,d as o,e as V,l as A,c as G,p as D}from"./index-BO1j28mb.js";const H={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},Q={__name:"editDictDetailDialog",props:{dictId:{type:String,default:""}},emits:["onClose"],setup(b,{expose:y,emit:v}){const p=v,w=b,e=R({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=j(),k={dictKey:[{required:!0,message:"请输入字典键!",trigger:"blur"}],dictValue:[{required:!0,message:"请输入字典值!",trigger:"blur"}]};function x(n){e.loading=!0,S(),n?T(n).then(l=>{e.form=l.data}).finally(()=>e.loading=!1):h().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var n;e.form={id:null,dictTypeId:w.dictId,dictKey:"",dictValue:"",sort:0,status:1,remark:""},(n=r.value)==null||n.resetFields()}function C(){r.value.validate(n=>{if(n){e.loading=!0;let l=Object.assign({},e.form);e.form.id?q(l).then(()=>{p("onClose"),D({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):M(l).then(()=>{p("onClose"),D({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return y({openDialog:x}),(n,l)=>{const U=a("Edit"),K=a("el-icon"),u=a("el-input"),i=a("el-form-item"),d=a("el-col"),m=a("el-row"),B=a("el-input-number"),c=a("el-radio"),E=a("el-radio-group"),F=a("el-form"),_=a("el-button"),I=a("el-dialog"),N=O("loading");return g(),z(I,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[6]||(l[6]=s=>e.isShowDialog=s),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[f("div",null,[o(K,{class:"el-custom-dialog-icon"},{default:t(()=>[o(U)]),_:1}),l[7]||(l[7]=f("span",null,"字典信息",-1))])]),footer:t(()=>[f("div",J,[o(_,{type:"primary",onClick:C,disabled:e.loading},{default:t(()=>l[8]||(l[8]=[V("确定")])),_:1},8,["disabled"]),o(_,{onClick:l[5]||(l[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>l[9]||(l[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((g(),G("div",H,[o(F,{ref_key:"elFormRef",ref:r,model:e.form,rules:k,"label-width":"90px"},{default:t(()=>[o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"字典键",prop:"dictKey"},{default:t(()=>[o(u,{modelValue:e.form.dictKey,"onUpdate:modelValue":l[0]||(l[0]=s=>e.form.dictKey=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"字典值",prop:"dictValue"},{default:t(()=>[o(u,{modelValue:e.form.dictValue,"onUpdate:modelValue":l[1]||(l[1]=s=>e.form.dictValue=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"排序"},{default:t(()=>[o(B,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=s=>e.form.sort=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"状态"},{default:t(()=>[o(E,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=s=>e.form.status=s)},{default:t(()=>[o(c,{label:"启用",value:1}),o(c,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:24},{default:t(()=>[o(i,{label:"备注"},{default:t(()=>[o(u,{modelValue:e.form.remark,"onUpdate:modelValue":l[4]||(l[4]=s=>e.form.remark=s),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[N,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +0,0 @@ |
|||
import{b as T,c as j,u as q,e as M}from"./dataDictDetailApi-vfLmp7YF.js";import{g as R,z as h,r as a,i as z,o as g,k as A,w as t,a as f,d as o,e as V,j as O,c as G,A as D}from"./index-CsSGZIOI.js";const H={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},Q={__name:"editDictDetailDialog",props:{dictId:{type:String,default:""}},emits:["onClose"],setup(b,{expose:y,emit:v}){const p=v,w=b,e=R({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=h(),k={dictKey:[{required:!0,message:"请输入字典键!",trigger:"blur"}],dictValue:[{required:!0,message:"请输入字典值!",trigger:"blur"}]};function x(n){e.loading=!0,S(),n?T(n).then(l=>{e.form=l.data}).finally(()=>e.loading=!1):j().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var n;e.form={id:null,dictTypeId:w.dictId,dictKey:"",dictValue:"",sort:0,status:1,remark:""},(n=r.value)==null||n.resetFields()}function C(){r.value.validate(n=>{if(n){e.loading=!0;let l=Object.assign({},e.form);e.form.id?q(l).then(()=>{p("onClose"),D({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):M(l).then(()=>{p("onClose"),D({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return y({openDialog:x}),(n,l)=>{const U=a("Edit"),K=a("el-icon"),u=a("el-input"),i=a("el-form-item"),d=a("el-col"),m=a("el-row"),B=a("el-input-number"),c=a("el-radio"),E=a("el-radio-group"),F=a("el-form"),_=a("el-button"),I=a("el-dialog"),N=z("loading");return g(),A(I,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[6]||(l[6]=s=>e.isShowDialog=s),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[f("div",null,[o(K,{class:"el-custom-dialog-icon"},{default:t(()=>[o(U)]),_:1}),l[7]||(l[7]=f("span",null,"字典信息",-1))])]),footer:t(()=>[f("div",J,[o(_,{type:"primary",onClick:C,disabled:e.loading},{default:t(()=>l[8]||(l[8]=[V("确定")])),_:1},8,["disabled"]),o(_,{onClick:l[5]||(l[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>l[9]||(l[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[O((g(),G("div",H,[o(F,{ref_key:"elFormRef",ref:r,model:e.form,rules:k,"label-width":"90px"},{default:t(()=>[o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"字典键",prop:"dictKey"},{default:t(()=>[o(u,{modelValue:e.form.dictKey,"onUpdate:modelValue":l[0]||(l[0]=s=>e.form.dictKey=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"字典值",prop:"dictValue"},{default:t(()=>[o(u,{modelValue:e.form.dictValue,"onUpdate:modelValue":l[1]||(l[1]=s=>e.form.dictValue=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"排序"},{default:t(()=>[o(B,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=s=>e.form.sort=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"状态"},{default:t(()=>[o(E,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=s=>e.form.status=s)},{default:t(()=>[o(c,{label:"启用",value:1}),o(c,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:24},{default:t(()=>[o(i,{label:"备注"},{default:t(()=>[o(u,{modelValue:e.form.remark,"onUpdate:modelValue":l[4]||(l[4]=s=>e.form.remark=s),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[N,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +1 @@ |
|||
import{b as T,c as h,u as q,e as M}from"./dataDictDetailApi-dfKtNhjz.js";import{g as R,i as j,r as a,k as O,o as g,h as z,w as t,a as f,d as o,e as V,l as A,c as G,p as D}from"./index-DVN0Hxy1.js";const H={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},Q={__name:"editDictDetailDialog",props:{dictId:{type:String,default:""}},emits:["onClose"],setup(b,{expose:y,emit:v}){const p=v,w=b,e=R({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=j(),k={dictKey:[{required:!0,message:"请输入字典键!",trigger:"blur"}],dictValue:[{required:!0,message:"请输入字典值!",trigger:"blur"}]};function x(n){e.loading=!0,S(),n?T(n).then(l=>{e.form=l.data}).finally(()=>e.loading=!1):h().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var n;e.form={id:null,dictTypeId:w.dictId,dictKey:"",dictValue:"",sort:0,status:1,remark:""},(n=r.value)==null||n.resetFields()}function C(){r.value.validate(n=>{if(n){e.loading=!0;let l=Object.assign({},e.form);e.form.id?q(l).then(()=>{p("onClose"),D({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):M(l).then(()=>{p("onClose"),D({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return y({openDialog:x}),(n,l)=>{const U=a("Edit"),K=a("el-icon"),u=a("el-input"),i=a("el-form-item"),d=a("el-col"),m=a("el-row"),B=a("el-input-number"),c=a("el-radio"),E=a("el-radio-group"),F=a("el-form"),_=a("el-button"),I=a("el-dialog"),N=O("loading");return g(),z(I,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[6]||(l[6]=s=>e.isShowDialog=s),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[f("div",null,[o(K,{class:"el-custom-dialog-icon"},{default:t(()=>[o(U)]),_:1}),l[7]||(l[7]=f("span",null,"字典信息",-1))])]),footer:t(()=>[f("div",J,[o(_,{type:"primary",onClick:C,disabled:e.loading},{default:t(()=>l[8]||(l[8]=[V("确定")])),_:1},8,["disabled"]),o(_,{onClick:l[5]||(l[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>l[9]||(l[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((g(),G("div",H,[o(F,{ref_key:"elFormRef",ref:r,model:e.form,rules:k,"label-width":"90px"},{default:t(()=>[o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"字典键",prop:"dictKey"},{default:t(()=>[o(u,{modelValue:e.form.dictKey,"onUpdate:modelValue":l[0]||(l[0]=s=>e.form.dictKey=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"字典值",prop:"dictValue"},{default:t(()=>[o(u,{modelValue:e.form.dictValue,"onUpdate:modelValue":l[1]||(l[1]=s=>e.form.dictValue=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"排序"},{default:t(()=>[o(B,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=s=>e.form.sort=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"状态"},{default:t(()=>[o(E,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=s=>e.form.status=s)},{default:t(()=>[o(c,{label:"启用",value:1}),o(c,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:24},{default:t(()=>[o(i,{label:"备注"},{default:t(()=>[o(u,{modelValue:e.form.remark,"onUpdate:modelValue":l[4]||(l[4]=s=>e.form.remark=s),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[N,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
|||
import{b as T,c as h,u as q,e as M}from"./dataDictDetailApi-Kg01d_jj.js";import{g as R,i as j,r as a,k as O,o as g,h as z,w as t,a as f,d as o,e as V,l as A,c as G,p as D}from"./index-CI8aco7-.js";const H={class:"app-container",style:{"min-height":"200px"}},J={class:"el-custom-dialog-footer"},Q={__name:"editDictDetailDialog",props:{dictId:{type:String,default:""}},emits:["onClose"],setup(b,{expose:y,emit:v}){const p=v,w=b,e=R({isShowDialog:!1,form:{},loading:!1,menuTreeData:[]}),r=j(),k={dictKey:[{required:!0,message:"请输入字典键!",trigger:"blur"}],dictValue:[{required:!0,message:"请输入字典值!",trigger:"blur"}]};function x(n){e.loading=!0,S(),n?T(n).then(l=>{e.form=l.data}).finally(()=>e.loading=!1):h().then(l=>{e.form.sort=l.data}).finally(()=>e.loading=!1),e.isShowDialog=!0}function S(){var n;e.form={id:null,dictTypeId:w.dictId,dictKey:"",dictValue:"",sort:0,status:1,remark:""},(n=r.value)==null||n.resetFields()}function C(){r.value.validate(n=>{if(n){e.loading=!0;let l=Object.assign({},e.form);e.form.id?q(l).then(()=>{p("onClose"),D({message:"更新成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1):M(l).then(()=>{p("onClose"),D({message:"新增成功",type:"success"}),e.isShowDialog=!1}).finally(()=>e.loading=!1)}})}return y({openDialog:x}),(n,l)=>{const U=a("Edit"),K=a("el-icon"),u=a("el-input"),i=a("el-form-item"),d=a("el-col"),m=a("el-row"),B=a("el-input-number"),c=a("el-radio"),E=a("el-radio-group"),F=a("el-form"),_=a("el-button"),I=a("el-dialog"),N=O("loading");return g(),z(I,{modelValue:e.isShowDialog,"onUpdate:modelValue":l[6]||(l[6]=s=>e.isShowDialog=s),draggable:"","close-on-click-modal":!1,width:"700px"},{header:t(()=>[f("div",null,[o(K,{class:"el-custom-dialog-icon"},{default:t(()=>[o(U)]),_:1}),l[7]||(l[7]=f("span",null,"字典信息",-1))])]),footer:t(()=>[f("div",J,[o(_,{type:"primary",onClick:C,disabled:e.loading},{default:t(()=>l[8]||(l[8]=[V("确定")])),_:1},8,["disabled"]),o(_,{onClick:l[5]||(l[5]=()=>e.isShowDialog=!1),disabled:e.loading},{default:t(()=>l[9]||(l[9]=[V("取消")])),_:1},8,["disabled"])])]),default:t(()=>[A((g(),G("div",H,[o(F,{ref_key:"elFormRef",ref:r,model:e.form,rules:k,"label-width":"90px"},{default:t(()=>[o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"字典键",prop:"dictKey"},{default:t(()=>[o(u,{modelValue:e.form.dictKey,"onUpdate:modelValue":l[0]||(l[0]=s=>e.form.dictKey=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"字典值",prop:"dictValue"},{default:t(()=>[o(u,{modelValue:e.form.dictValue,"onUpdate:modelValue":l[1]||(l[1]=s=>e.form.dictValue=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:12},{default:t(()=>[o(i,{label:"排序"},{default:t(()=>[o(B,{modelValue:e.form.sort,"onUpdate:modelValue":l[2]||(l[2]=s=>e.form.sort=s)},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:t(()=>[o(i,{label:"状态"},{default:t(()=>[o(E,{modelValue:e.form.status,"onUpdate:modelValue":l[3]||(l[3]=s=>e.form.status=s)},{default:t(()=>[o(c,{label:"启用",value:1}),o(c,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(m,null,{default:t(()=>[o(d,{span:24},{default:t(()=>[o(i,{label:"备注"},{default:t(()=>[o(u,{modelValue:e.form.remark,"onUpdate:modelValue":l[4]||(l[4]=s=>e.form.remark=s),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])),[[N,e.loading]])]),_:1},8,["modelValue"])}}};export{Q as default}; |
@ -1 +1 @@ |
|||
import{_ as a,i as c,j as l,U as r,o,c as t,F as i,m as _,d as u,T as p}from"./index-DVN0Hxy1.js";const d={style:{display:"flex","flex-wrap":"wrap","max-height":"130px","overflow-y":"auto"}},f=["onClick"],m={__name:"elIconList",emits:["change"],setup(h){const n=c([]);return l(()=>{for(const[e]of Object.entries(r))n.value.push("el-"+e)}),(e,v)=>(o(),t("div",d,[(o(!0),t(i,null,_(n.value,s=>(o(),t("div",{key:s,class:"icon-item",onClick:k=>e.$emit("change",s)},[u(p,{icon:s},null,8,["icon"])],8,f))),128))]))}},y=a(m,[["__scopeId","data-v-fc3e4a22"]]);export{y as default}; |
|||
import{_ as a,i as c,j as l,U as r,o,c as t,F as i,m as _,d as u,T as p}from"./index-CI8aco7-.js";const d={style:{display:"flex","flex-wrap":"wrap","max-height":"130px","overflow-y":"auto"}},f=["onClick"],m={__name:"elIconList",emits:["change"],setup(h){const n=c([]);return l(()=>{for(const[e]of Object.entries(r))n.value.push("el-"+e)}),(e,v)=>(o(),t("div",d,[(o(!0),t(i,null,_(n.value,s=>(o(),t("div",{key:s,class:"icon-item",onClick:k=>e.$emit("change",s)},[u(p,{icon:s},null,8,["icon"])],8,f))),128))]))}},y=a(m,[["__scopeId","data-v-fc3e4a22"]]);export{y as default}; |
@ -1 +0,0 @@ |
|||
import{_ as a,i as c,j as l,U as r,o,c as t,F as i,m as _,d as u,T as p}from"./index-BO1j28mb.js";const d={style:{display:"flex","flex-wrap":"wrap","max-height":"130px","overflow-y":"auto"}},f=["onClick"],m={__name:"elIconList",emits:["change"],setup(h){const n=c([]);return l(()=>{for(const[e]of Object.entries(r))n.value.push("el-"+e)}),(e,v)=>(o(),t("div",d,[(o(!0),t(i,null,_(n.value,s=>(o(),t("div",{key:s,class:"icon-item",onClick:k=>e.$emit("change",s)},[u(p,{icon:s},null,8,["icon"])],8,f))),128))]))}},y=a(m,[["__scopeId","data-v-fc3e4a22"]]);export{y as default}; |
@ -1 +0,0 @@ |
|||
import{_ as a,z as c,h as l,R as r,o,c as t,F as i,m as _,d as u,Q as p}from"./index-CsSGZIOI.js";const d={style:{display:"flex","flex-wrap":"wrap","max-height":"130px","overflow-y":"auto"}},f=["onClick"],m={__name:"elIconList",emits:["change"],setup(h){const n=c([]);return l(()=>{for(const[e]of Object.entries(r))n.value.push("el-"+e)}),(e,v)=>(o(),t("div",d,[(o(!0),t(i,null,_(n.value,s=>(o(),t("div",{key:s,class:"icon-item",onClick:k=>e.$emit("change",s)},[u(p,{icon:s},null,8,["icon"])],8,f))),128))]))}},y=a(m,[["__scopeId","data-v-fc3e4a22"]]);export{y as default}; |
@ -1 +0,0 @@ |
|||
import{_ as a,i as c,j as l,T as r,o,c as t,F as i,p as _,d as u,S as p}from"./index-CL0IOL6c.js";const d={style:{display:"flex","flex-wrap":"wrap","max-height":"130px","overflow-y":"auto"}},f=["onClick"],m={__name:"elIconList",emits:["change"],setup(h){const n=c([]);return l(()=>{for(const[e]of Object.entries(r))n.value.push("el-"+e)}),(e,v)=>(o(),t("div",d,[(o(!0),t(i,null,_(n.value,s=>(o(),t("div",{key:s,class:"icon-item",onClick:k=>e.$emit("change",s)},[u(p,{icon:s},null,8,["icon"])],8,f))),128))]))}},y=a(m,[["__scopeId","data-v-fc3e4a22"]]);export{y as default}; |
@ -1 +0,0 @@ |
|||
import{m as p,n as i,u as v,i as _,j as f,r as u,o as t,h as r,w as k,c as V,F as g,p as y}from"./index-CL0IOL6c.js";function M(l){return p({url:"/api/system/enumOptions",method:"get",params:{name:l}})}const x={__name:"enumSelect",props:i({enum:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=v(l,"modelValue"),a=_([]),m=l;return f(()=>{M(m.enum).then(n=>{a.value=n.data})}),(n,s)=>{const c=u("el-option"),d=u("el-select");return t(),r(d,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},{default:k(()=>[(t(!0),V(g,null,y(a.value,e=>(t(),r(c,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{x as default}; |
@ -1 +0,0 @@ |
|||
import{l as p,B as i,C as v,z as _,h as f,r as u,o as t,k as r,w as k,c as V,F as g,m as y}from"./index-CsSGZIOI.js";function B(l){return p({url:"/api/system/enumOptions",method:"get",params:{name:l}})}const h={__name:"enumSelect",props:i({enum:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=v(l,"modelValue"),a=_([]),m=l;return f(()=>{B(m.enum).then(n=>{a.value=n.data})}),(n,s)=>{const c=u("el-option"),d=u("el-select");return t(),r(d,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},{default:k(()=>[(t(!0),V(g,null,y(a.value,e=>(t(),r(c,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{h as default}; |
@ -1 +1 @@ |
|||
import{v as p,I as i,J as v,i as _,j as f,r as u,o as t,h as r,w as k,c as V,F as g,m as y}from"./index-BO1j28mb.js";function M(l){return p({url:"/api/system/enumOptions",method:"get",params:{name:l}})}const x={__name:"enumSelect",props:i({enum:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=v(l,"modelValue"),a=_([]),m=l;return f(()=>{M(m.enum).then(n=>{a.value=n.data})}),(n,s)=>{const c=u("el-option"),d=u("el-select");return t(),r(d,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},{default:k(()=>[(t(!0),V(g,null,y(a.value,e=>(t(),r(c,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{x as default}; |
|||
import{v as p,I as i,J as v,i as _,j as f,r as u,o as t,h as r,w as k,c as V,F as g,m as y}from"./index-CI8aco7-.js";function M(l){return p({url:"/api/system/enumOptions",method:"get",params:{name:l}})}const x={__name:"enumSelect",props:i({enum:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=v(l,"modelValue"),a=_([]),m=l;return f(()=>{M(m.enum).then(n=>{a.value=n.data})}),(n,s)=>{const c=u("el-option"),d=u("el-select");return t(),r(d,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},{default:k(()=>[(t(!0),V(g,null,y(a.value,e=>(t(),r(c,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{x as default}; |
@ -1 +0,0 @@ |
|||
import{v as p,I as i,J as v,i as _,j as f,r as u,o as t,h as r,w as k,c as V,F as g,m as y}from"./index-DVN0Hxy1.js";function M(l){return p({url:"/api/system/enumOptions",method:"get",params:{name:l}})}const x={__name:"enumSelect",props:i({enum:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=v(l,"modelValue"),a=_([]),m=l;return f(()=>{M(m.enum).then(n=>{a.value=n.data})}),(n,s)=>{const c=u("el-option"),d=u("el-select");return t(),r(d,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},{default:k(()=>[(t(!0),V(g,null,y(a.value,e=>(t(),r(c,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}};export{x as default}; |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{l as t}from"./index-CsSGZIOI.js";function l(){return{local:"http://192.168.1.228:7629/api/file/upload"}}function i(e){return t({url:"/api/file/filesByCode",method:"get",params:{code:e}})}function o(e){return t({url:"/api/file/upload",method:"post",data:e})}export{i as a,l as g,o as u}; |
@ -1 +0,0 @@ |
|||
import{v as t}from"./index-DVN0Hxy1.js";function i(){return{local:"http://192.168.1.228:7629/api/file/upload"}}function l(e){return t({url:"/api/file/filesByCode",method:"get",params:{code:e}})}function o(e){return t({url:"/api/file/upload",method:"post",data:e})}export{l as a,i as g,o as u}; |
@ -1 +1 @@ |
|||
import{v as t}from"./index-BO1j28mb.js";function i(){return{local:"http://192.168.1.228:7629/api/file/upload"}}function l(e){return t({url:"/api/file/filesByCode",method:"get",params:{code:e}})}function o(e){return t({url:"/api/file/upload",method:"post",data:e})}export{l as a,i as g,o as u}; |
|||
import{v as t}from"./index-CI8aco7-.js";function i(){return{local:"http://192.168.1.228:7629/api/file/upload"}}function l(e){return t({url:"/api/file/filesByCode",method:"get",params:{code:e}})}function o(e){return t({url:"/api/file/upload",method:"post",data:e})}export{l as a,i as g,o as u}; |
@ -1 +0,0 @@ |
|||
import{m as t}from"./index-CL0IOL6c.js";function i(){return{local:"http://192.168.1.228:7629/api/file/upload"}}function l(e){return t({url:"/api/file/filesByCode",method:"get",params:{code:e}})}function o(e){return t({url:"/api/file/upload",method:"post",data:e})}export{l as a,i as g,o as u}; |
@ -1 +0,0 @@ |
|||
import{E as x,g as D,a as c,_ as w,p as N}from"./index-BkJoNt0J.js";import{d as k}from"./download-DA4MPZiT.js";import{u as q,g as B,h as E,r as l,i as _,j as r,o as s,c as V,d as a,w as o,k as f,e as y}from"./index-CsSGZIOI.js";const j={class:"app-container"},U=Object.assign({name:"supplierProPlaning"},{__name:"index copy",setup(T){const b=q(),e=B({apiName:"supplierproplaning",loading:!1,pageParams:{page:1,pageSize:10,total:1,filters:{materialCode:null}},tableColumns:[{prop:"releaseEdition",title:"需求发布版次",width:120},{prop:"models",title:"车型"},{prop:"salseDepartment",title:"销售单位"},{prop:"type",title:"类型"},{prop:"assembly",title:"动力总成"},{prop:"pattern",title:"版型"},{prop:"omterior",title:"内饰"},{prop:"materialCode",title:"物料号"},{prop:"startMonth",title:"起始月份"},{prop:"quantity1",title:"数量1"},{prop:"quantity2",title:"数量2"},{prop:"quantity3",title:"数量3"},{prop:"quantity4",title:"数量4"},{prop:"quantity5",title:"数量5"},{prop:"quantity6",title:"数量6"},{prop:"plant",title:"工厂"},{prop:"createByUser",title:"创建人"},{prop:"createTime",title:"创建时间",type:"datetime",width:180},{prop:"updateByUser",title:"修改人"},{prop:"updateTime",title:"修改时间",type:"datetime",width:180},{prop:"isDelete",title:"是否删除",type:"tagFilter",options:x.whether},{prop:"version",title:"版本号"}],tableData:[]});E(()=>{i(1)});function i(n){e.loading=!0,e.pageParams.page=n,D(e.apiName,Object.assign({},c(e.pageParams))).then(t=>{e.tableData=t.data.data,e.pageParams.total=t.data.totalPages}).finally(()=>e.loading=!1)}function P(){e.loading=!0,N(e.apiName,Object.assign({},c(e.pageParams))).then(n=>{k(n.data,b.meta.title+".xlsx")}).finally(()=>e.loading=!1)}return(n,t)=>{const C=l("el-input"),m=l("el-form-item"),d=l("el-button"),h=l("el-form"),u=l("el-card"),g=_("auth"),v=_("loading");return r((s(),V("div",j,[a(u,{class:"search-container"},{default:o(()=>[a(h,{inline:!0},{default:o(()=>[a(m,{label:"零件号"},{default:o(()=>[a(C,{modelValue:e.pageParams.filters.materialCode,"onUpdate:modelValue":t[0]||(t[0]=p=>e.pageParams.filters.materialCode=p),placeholder:"零件号",clearable:""},null,8,["modelValue"])]),_:1}),a(m,null,{default:o(()=>[r((s(),f(d,{onClick:t[1]||(t[1]=p=>i(1)),icon:"Search"},{default:o(()=>t[3]||(t[3]=[y("查询")])),_:1})),[[g,e.apiName+":page"]]),r((s(),f(d,{onClick:t[2]||(t[2]=p=>P()),icon:"TopRight",type:"success"},{default:o(()=>t[4]||(t[4]=[y("导出")])),_:1})),[[g,e.apiName+":export"]])]),_:1})]),_:1})]),_:1}),a(u,{class:"paged-table-container"},{default:o(()=>[a(w,{tableData:e.tableData,tableColumns:e.tableColumns,pageParams:e.pageParams,onPageSizeChange:i,onPageCurrentChange:i},null,8,["tableData","tableColumns","pageParams"])]),_:1})])),[[v,e.loading]])}}});export{U as default}; |
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@ |
|||
import{_ as e}from"./index-Dk4mkaLm.js";import{g as t,o as r,h as s}from"./index-CL0IOL6c.js";import"./download-DA4MPZiT.js";const m=Object.assign({name:"supplierInvData"},{__name:"index",setup(p){const a=t({apiName:"supplierinvdata",searchFilter:{plantId:null},searchOptions:[{type:"input",prop:"plantId",label:"工厂代码"}]});return(i,n)=>(r(),s(e,{apiName:a.apiName,searchOptions:a.searchOptions,searchFilter:a.searchFilter},null,8,["apiName","searchOptions","searchFilter"]))}});export{m as default}; |
@ -1 +0,0 @@ |
|||
import{g as a,s as t,o as r,h as i}from"./index-BO1j28mb.js";import{e as p}from"./index--Tj-XwdR.js";import"./apiServeNames-DYIwj4Di.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierConMmrp"},{__name:"index",setup(s){const e=a({apiName:"cherysupplierconmmrp",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],auths:t.permissionStore()});return(o,l)=>(r(),i(p,{columnWidth:200,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,detailColumName:"cherysupplierconmmrpDetail",searchButtons:["search","export","outputMany"],multipleTable:e.auths.hasPermission(e.apiName+":outputMany")},null,8,["apiName","searchOptions","searchFilter","rightOperation","multipleTable"]))}});export{h as default}; |
@ -1 +1 @@ |
|||
import{g as a,s as t,o as r,h as i}from"./index-DVN0Hxy1.js";import{e as p}from"./index-BURCpbm7.js";import"./index-BugyrskO.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierConPo"},{__name:"index",setup(o){const e=a({apiName:"cherysupplierconpo",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],auths:t.permissionStore()});return(s,l)=>(r(),i(p,{columnWidth:200,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,detailColumName:"cherysupplierconPoDetail",searchButtons:["search","export","outputMany"],multipleTable:e.auths.hasPermission(e.apiName+":outputMany")},null,8,["apiName","searchOptions","searchFilter","rightOperation","multipleTable"]))}});export{h as default}; |
|||
import{g as a,s as t,o as r,h as i}from"./index-CI8aco7-.js";import{e as p}from"./index-WBFEuq-o.js";import"./index-Dt44Wo52.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierConPo"},{__name:"index",setup(o){const e=a({apiName:"cherysupplierconpo",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],auths:t.permissionStore()});return(s,l)=>(r(),i(p,{columnWidth:200,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,detailColumName:"cherysupplierconpoDetail",searchButtons:["search","export","outputMany"],multipleTable:e.auths.hasPermission(e.apiName+":outputMany")},null,8,["apiName","searchOptions","searchFilter","rightOperation","multipleTable"]))}});export{h as default}; |
@ -1 +0,0 @@ |
|||
import{_ as o}from"./index-CNVK2GTe.js";import{q as d}from"./index-BugyrskO.js";import{v as f,g as h,i as g,r as b,o as k,c as _,d as n,w,a as N,p as s,H as O,E as y}from"./index-DVN0Hxy1.js";import"./download-DA4MPZiT.js";function T(l){return f({url:"/api/tasksub/canceltask",method:"get",params:{taskId:l}})}const v={class:"taskSubPage"},C={style:{height:"100%",display:"flex"}},I=Object.assign({name:"taskSub"},{__name:"index",setup(l){const e=h({apiName:"tasksub",searchFilter:{taskName:null,creationTime:null},searchOptions:[{type:"input",prop:"taskName",label:"任务名称"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],leftOperation:[{label:"查看详情",name:"showInfo",link:!0,type:"primary"}],drawerShow:!1,infoTableColumns:null,infoSearchFilter:[],rightOperation:[]});e.rightOperation=[{label:"撤销",name:"canceltask",link:!0,type:"danger",auth:e.apiName+":canceltask",hide:(t,a)=>c(t)}];function c(t){return!(["M+6月物料需求计划风险确认","日物料需求计划风险确认","采购订单风险确认"].indexOf(t.taskName)>=0&&t.failedCount>0)}function m(t,a){if(t.name=="showInfo"){if(e.infoTableColumns=d(a.row.tableName,"tableName"),!e.infoTableColumns){s.error(`不支持的表名: ${a.row.tableName}`);return}e.infoSearchFilter=[{logic:"And",column:"TableName",action:"==",value:a.row.tableName},{logic:"And",column:"TaskId",action:"==",value:a.row.taskId}],O(()=>{e.drawerShow=!0})}}const r=g(null);function p(t,a){t.name=="canceltask"&&y.confirm("是否确定撤销?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{r.value.state.loading=!0,T(a.row.taskId).then(i=>{s.success("操作成功!"),r.value.getTableData()}).finally(()=>{r.value.state.loading=!1})})}return(t,a)=>{const i=b("el-drawer");return k(),_("div",v,[n(o,{ref_key:"tablePageRef",ref:r,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,onLeftOperationHadel:m,leftOperation:e.leftOperation,rightOperation:e.rightOperation,onRightOperationHadel:p},null,8,["apiName","searchOptions","searchFilter","leftOperation","rightOperation"]),n(i,{modelValue:e.drawerShow,"onUpdate:modelValue":a[0]||(a[0]=u=>e.drawerShow=u),title:"详情",direction:"rtl","destroy-on-close":"",size:"80%"},{default:w(()=>[N("div",C,[n(o,{apiName:e.apiName,tableColumns:e.infoTableColumns,searchFilter:e.infoSearchFilter,hideSearch:!0,apiType:"detailApi"},null,8,["apiName","tableColumns","searchFilter"])])]),_:1},8,["modelValue"])])}}});export{I as default}; |
@ -1 +0,0 @@ |
|||
import{_ as r}from"./index-BfAqPjcb.js";import{g as t,o as a,h as i}from"./index-BO1j28mb.js";import"./apiServeNames-DYIwj4Di.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierEmployee"},{__name:"index",setup(p){const e=t({apiName:"cherysupplieremployee",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],rightOperation:"apiUpdate,apiDelete"});return(o,s)=>(a(),i(r,{columnWidth:150,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,searchButtons:["search","create","import","export"]},null,8,["apiName","searchOptions","searchFilter","rightOperation"]))}});export{h as default}; |
@ -1 +0,0 @@ |
|||
import{_ as r}from"./index-Dk4mkaLm.js";import{g as a,o as s,h as t}from"./index-CL0IOL6c.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierProHschedul"},{__name:"index",setup(i){const e=a({apiName:"cherysupplierporhschedul",searchFilter:{productionLineId:null},searchOptions:[{type:"input",prop:"productionLineId",label:"产线代码"}]});return(p,c)=>(s(),t(r,{apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter},null,8,["apiName","searchOptions","searchFilter"]))}});export{h as default}; |
@ -1 +1 @@ |
|||
import{_ as r}from"./index-CNVK2GTe.js";import{g as a,o as t,h as i}from"./index-DVN0Hxy1.js";import"./index-BugyrskO.js";import"./download-DA4MPZiT.js";const u=Object.assign({name:"supplierReturn"},{__name:"index",setup(p){const e=a({apiName:"cherysupplierreturn",searchFilter:{returnNumber:null,creationTime:null},searchOptions:[{type:"input",prop:"returnNumber",label:"退货单号"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}]});return(s,n)=>(t(),i(r,{apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter},null,8,["apiName","searchOptions","searchFilter"]))}});export{u as default}; |
|||
import{t as r}from"./index-BgzJOy7i.js";import{g as a,o as t,h as i}from"./index-CI8aco7-.js";import"./index-Dt44Wo52.js";import"./download-DA4MPZiT.js";const u=Object.assign({name:"supplierReturn"},{__name:"index",setup(p){const e=a({apiName:"cherysupplierreturn",searchFilter:{returnNumber:null,creationTime:null},searchOptions:[{type:"input",prop:"returnNumber",label:"退货单号"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}]});return(s,n)=>(t(),i(r,{apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter},null,8,["apiName","searchOptions","searchFilter"]))}});export{u as default}; |
@ -1 +0,0 @@ |
|||
import{_ as r}from"./index-CNVK2GTe.js";import{g as t,o as a,h as i}from"./index-DVN0Hxy1.js";import"./index-BugyrskO.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierEmployee"},{__name:"index",setup(p){const e=t({apiName:"cherysupplieremployee",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],rightOperation:"apiUpdate,apiDelete"});return(o,s)=>(a(),i(r,{columnWidth:150,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,searchButtons:["search","create","import","export"]},null,8,["apiName","searchOptions","searchFilter","rightOperation"]))}});export{h as default}; |
@ -1 +0,0 @@ |
|||
import{g as a,s as t,o as r,h as i}from"./index-BO1j28mb.js";import{e as p}from"./index--Tj-XwdR.js";import"./apiServeNames-DYIwj4Di.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierConDate"},{__name:"index",setup(s){const e=a({apiName:"cherysuppliercondate",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],auths:t.permissionStore()});return(o,l)=>(r(),i(p,{columnWidth:200,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,detailColumName:"cherysuppliercondateDetail",searchButtons:["search","export","outputMany"],multipleTable:e.auths.hasPermission(e.apiName+":outputMany")},null,8,["apiName","searchOptions","searchFilter","rightOperation","multipleTable"]))}});export{h as default}; |
@ -1 +0,0 @@ |
|||
import{g as T,_ as B,d as E}from"./editDialog-CjP6uUVs.js";import R from"./dictDetailDialog-CxEBL5FR.js";import{g as V,i as k,j as q,r as o,k as _,l as p,o as i,c as $,d as t,w as n,h as r,e as d,t as j,E as M,p as N}from"./index-DVN0Hxy1.js";import"./dataDictDetailApi-dfKtNhjz.js";import"./editDictDetailDialog-B1eYBIuP.js";const O={class:"app-container"},J=Object.assign({name:"dataDictIndex"},{__name:"index",setup(U){const a=V({loading:!1,queryParams:{name:""},pageParams:{Page:1,PageSize:10,Total:0},tableData:[]}),f=k(),y=k();q(()=>{g()});function g(){a.loading=!0,T(Object.assign({},a.queryParams,a.pageParams)).then(u=>{a.tableData=u.data.data,a.pageParams.Total=u.data.total}).finally(()=>a.loading=!1)}function x(u){M.confirm("是否删除该字典?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{a.loading=!0,E({ids:u}).then(()=>{N({message:"删除成功",type:"success"}),g()}).finally(()=>a.loading=!1)})}return(u,e)=>{const v=o("el-input"),D=o("el-form-item"),m=o("el-button"),C=o("el-form"),P=o("el-card"),s=o("el-table-column"),b=o("el-tag"),w=o("el-table"),z=o("el-pagination"),c=_("auth"),I=_("auth-any"),S=_("loading");return p((i(),$("div",O,[t(P,{class:"search-container"},{default:n(()=>[t(C,{inline:!0},{default:n(()=>[t(D,{label:"字典名称"},{default:n(()=>[t(v,{modelValue:a.queryParams.name,"onUpdate:modelValue":e[0]||(e[0]=l=>a.queryParams.name=l),placeholder:"名称/编码",clearable:""},null,8,["modelValue"])]),_:1}),t(D,null,{default:n(()=>[p((i(),r(m,{onClick:g,icon:"Search"},{default:n(()=>e[4]||(e[4]=[d("查询")])),_:1})),[[c,"dataDictIndex:page"]]),p((i(),r(m,{type:"primary",onClick:e[1]||(e[1]=()=>f.value.openDialog())},{default:n(()=>e[5]||(e[5]=[d("新增")])),_:1})),[[c,"dataDictIndex:add"]])]),_:1})]),_:1})]),_:1}),t(P,{class:"paged-table-container"},{default:n(()=>[t(w,{ref:"tableRef","row-key":"id",data:a.tableData,border:""},{default:n(()=>[t(s,{type:"index",width:"50"},{default:n(l=>[d(j(l.$index+1+(a.pageParams.Page-1)*a.pageParams.PageSize),1)]),_:1}),t(s,{prop:"dictName",label:"字典类型"}),t(s,{prop:"formCode",label:"编码"}),t(s,{prop:"sort",label:"序号"}),t(s,{prop:"status",label:"状态"},{default:n(l=>[l.row.status===1?(i(),r(b,{key:0,type:"success","disable-transitions":""},{default:n(()=>e[6]||(e[6]=[d("正常")])),_:1})):(i(),r(b,{key:1,type:"danger","disable-transitions":""},{default:n(()=>e[7]||(e[7]=[d("禁用")])),_:1}))]),_:1}),t(s,{prop:"remark",label:"备注"}),p((i(),r(s,{label:"操作",align:"left",width:"260","show-overflow-tooltip":""},{default:n(l=>[p((i(),r(m,{link:"",icon:"Edit",type:"primary",onClick:()=>f.value.openDialog(l.row.id)},{default:n(()=>e[8]||(e[8]=[d(" 编辑 ")])),_:2},1032,["onClick"])),[[c,"dataDictIndex:edit"]]),p((i(),r(m,{link:"",icon:"Edit",type:"primary",onClick:()=>y.value.openDialog(l.row.id)},{default:n(()=>e[9]||(e[9]=[d(" 编辑字典 ")])),_:2},1032,["onClick"])),[[c,"dataDictIndex:edit_dict"]]),p((i(),r(m,{link:"",icon:"Delete",type:"danger",onClick:h=>x([l.row.id])},{default:n(()=>e[10]||(e[10]=[d(" 删除 ")])),_:2},1032,["onClick"])),[[c,"dataDictIndex:delete"]])]),_:1})),[[I,["dataDictIndex:edit","dataDictIndex:delete","dataDictIndex:edit_dict"]]])]),_:1},8,["data"]),t(z,{style:{"margin-top":"15px",float:"right"},currentPage:a.pageParams.Page,"onUpdate:currentPage":e[2]||(e[2]=l=>a.pageParams.Page=l),"page-size":a.pageParams.PageSize,"onUpdate:pageSize":e[3]||(e[3]=l=>a.pageParams.PageSize=l),total:a.pageParams.Total,background:"",layout:"total, sizes,prev, pager, next",onSizeChange:g,onCurrentChange:g,"page-sizes":[10,20,50,100]},null,8,["currentPage","page-size","total"])]),_:1}),t(B,{ref_key:"dictTypeDialogRef",ref:f,onOnClose:g},null,512),t(R,{ref_key:"dictDetailDialogRef",ref:y},null,512)])),[[S,a.loading]])}}});export{J as default}; |
@ -1 +1 @@ |
|||
import{_ as a}from"./index-CNVK2GTe.js";import{g as r,o as t,h as s}from"./index-DVN0Hxy1.js";import"./index-BugyrskO.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierSaWeek"},{__name:"index",setup(i){const e=r({apiName:"cherysuppliersaweek",searchFilter:{scheduleAgreement:null,creationTime:null},searchOptions:[{type:"input",prop:"scheduleAgreement",label:"计划协议号"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}]});return(p,c)=>(t(),s(a,{apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter},null,8,["apiName","searchOptions","searchFilter"]))}});export{h as default}; |
|||
import{t as a}from"./index-BgzJOy7i.js";import{g as r,o as t,h as s}from"./index-CI8aco7-.js";import"./index-Dt44Wo52.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierSaWeek"},{__name:"index",setup(i){const e=r({apiName:"cherysuppliersaweek",searchFilter:{scheduleAgreement:null,creationTime:null},searchOptions:[{type:"input",prop:"scheduleAgreement",label:"计划协议号"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}]});return(p,c)=>(t(),s(a,{apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter},null,8,["apiName","searchOptions","searchFilter"]))}});export{h as default}; |
@ -1 +1 @@ |
|||
import{_ as r}from"./index-CNVK2GTe.js";import{g as a,o as t,h as i}from"./index-DVN0Hxy1.js";import"./index-BugyrskO.js";import"./download-DA4MPZiT.js";const h=Object.assign({name:"supplierProFlaw"},{__name:"index",setup(p){const e=a({apiName:"cherysupplierproflaw",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],rightOperation:"apiUpdate"});return(o,s)=>(t(),i(r,{columnWidth:150,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,searchButtons:["search","export","custominvoke"]},null,8,["apiName","searchOptions","searchFilter","rightOperation"]))}});export{h as default}; |
|||
import{t as r}from"./index-BgzJOy7i.js";import{g as a,o as t,h as i}from"./index-CI8aco7-.js";import"./index-Dt44Wo52.js";import"./download-DA4MPZiT.js";const m=Object.assign({name:"supplierProFlaw"},{__name:"index",setup(p){const e=a({apiName:"cherysupplierproflaw",searchFilter:{supplierCode:null,creationTime:null},searchOptions:[{type:"input",prop:"supplierCode",label:"供应商代码"},{type:"datetimerange",prop:"creationTime",label:"创建时间"}],rightOperation:"apiUpdate"});return(o,s)=>(t(),i(r,{columnWidth:150,apiName:e.apiName,searchOptions:e.searchOptions,searchFilter:e.searchFilter,rightOperation:e.rightOperation,searchButtons:["search","export","custominvoke"]},null,8,["apiName","searchOptions","searchFilter","rightOperation"]))}});export{m as default}; |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue