WokerTask/public/admin/assets/index.afd71a65.js

2 lines
7.5 KiB
JavaScript

import{B as Y,C as Z,M as ee,N as te,w as le,D as ae,I as oe,O as ue,P as ne,Q as se}from"./element-plus.9816852d.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{f as pe,b as de,d as re}from"./index.fdc772f5.js";import{u as me}from"./vue-router.9f65afb1.js";import{u as ce}from"./usePaging.2ad8e1e6.js";import{u as _e}from"./useDictOptions.da699b22.js";import{f as fe,a as be}from"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.3d21b7ab.js";import{d as P,s as Fe,r as w,$ as L,af as ye,o as n,c as E,U as l,L as o,u as e,T as R,a7 as q,K as p,R as f,M as v,a as C,S as ve,k as Be,Q as we,n as I}from"./@vue.51d7f2d8.js";import"./lodash.675f209e.js";import{_ as ke}from"./edit.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.daadeb26.js";import{_ as Ee}from"./edit_admin.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.0db55d75.js";import{d as Ce}from"./dict.3a310f15.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.ed3dbb0f.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.1ffb6637.js";import"./role.a0fcdbf8.js";const De={class:"mt-4"},Ve={class:"flex mt-4 justify-end"},he=P({name:"taskTemplateLists"}),xe=P({...he,setup(ge){var g,A,T;const m=Fe(),D=w([]),c=w(!1),b=me(),u=L({id:"",company_id:"",title:"",admin_id:"",money:"",type:"",status:"",content:""}),V=w(10);(g=b.query)!=null&&g.id&&(u.id=b.query.id),(A=b.query)!=null&&A.company_id&&(u.company_id=b.query.company_id),((T=b.query)==null?void 0:T.company_type)==41&&(V.value=15);const N=L([{id:1,name:"\u663E\u793A"},{id:2,name:"\u9690\u85CF"}]),k=w([]),M=s=>{k.value=s.map(({id:a})=>a)},{dictData:h}=_e(""),{pager:F,getLists:y,resetParams:O,resetPage:Q}=ce({fetchFun:be,params:u}),j=async()=>{var s,a;c.value=!0,await I(),(s=m.value)==null||s.open("add"),(a=m.value)==null||a.setFormData({company_id:u.company_id})},K=async s=>{var a,d;c.value=!0,await I(),(a=m.value)==null||a.open("edit"),(d=m.value)==null||d.setFormData(s)},x=async s=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:s}),y()};return Ce({type_id:10}).then(s=>{D.value=s.lists}),y(),(s,a)=>{const d=Y,r=Z,$=ee,S=te,_=le,z=ae,U=oe,G=de,i=ue,H=ne,J=ie,B=ye("perms"),W=se;return n(),E("div",null,[l(U,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[l(z,{class:"mb-[-16px] formtabel",model:e(u),inline:""},{default:o(()=>[l(r,{"label-width":"100px",label:"\u4EFB\u52A1\u540D\u79F0",prop:"title"},{default:o(()=>[l(d,{class:"w-[280px]",modelValue:e(u).title,"onUpdate:modelValue":a[0]||(a[0]=t=>e(u).title=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),l(r,{"label-width":"100px",label:"\u521B\u5EFA\u4EBA",prop:"admin_id"},{default:o(()=>[l(d,{class:"w-[280px]",modelValue:e(u).admin_id,"onUpdate:modelValue":a[1]||(a[1]=t=>e(u).admin_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u4EBA"},null,8,["modelValue"])]),_:1}),l(r,{"label-width":"100px",label:"\u91D1\u989D",prop:"money"},{default:o(()=>[l(d,{class:"w-[280px]",modelValue:e(u).money,"onUpdate:modelValue":a[2]||(a[2]=t=>e(u).money=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D"},null,8,["modelValue"])]),_:1}),l(r,{"label-width":"100px",label:"\u4EFB\u52A1\u7C7B\u578B",prop:"type"},{default:o(()=>[l(S,{modelValue:e(u).type,"onUpdate:modelValue":a[3]||(a[3]=t=>e(u).type=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u7C7B\u578B"},{default:o(()=>[(n(!0),E(R,null,q(e(D),t=>(n(),p($,{key:t.label,value:t.id,label:t.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(r,{"label-width":"100px",label:"\u72B6\u6001",prop:"status"},{default:o(()=>[l(S,{modelValue:e(u).status,"onUpdate:modelValue":a[4]||(a[4]=t=>e(u).status=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:o(()=>[(n(!0),E(R,null,q(e(N),t=>(n(),p($,{key:t.label,value:t.id,label:t.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(r,{"label-width":"100px",label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"content"},{default:o(()=>[l(d,{class:"w-[280px]",modelValue:e(u).content,"onUpdate:modelValue":a[5]||(a[5]=t=>e(u).content=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0"},null,8,["modelValue"])]),_:1}),l(r,{"label-width":"100px",label:""},{default:o(()=>[l(_,{class:"el-btn",type:"primary",onClick:e(Q)},{default:o(()=>[f("\u67E5\u8BE2")]),_:1},8,["onClick"]),l(_,{onClick:e(O)},{default:o(()=>[f("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((n(),p(U,{class:"!border-none",shadow:"never"},{default:o(()=>[v((n(),p(_,{type:"primary",onClick:j},{icon:o(()=>[l(G,{name:"el-icon-Plus"})]),default:o(()=>[f(" \u65B0\u589E ")]),_:1})),[[B,["task_template.task_template/add"]]]),v((n(),p(_,{disabled:!e(k).length,onClick:a[6]||(a[6]=t=>x(e(k)))},{default:o(()=>[f(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[B,["task_template.task_template/delete"]]]),C("div",De,[l(H,{data:e(F).lists,onSelectionChange:M},{default:o(()=>[l(i,{type:"selection",width:"55"}),l(i,{label:"ID",width:"80",prop:"id","show-overflow-tooltip":""}),l(i,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),l(i,{label:"\u521B\u5EFA\u4EBA",prop:"admin_name","show-overflow-tooltip":""}),l(i,{label:"\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),l(i,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),l(i,{label:"\u72B6\u6001","show-overflow-tooltip":""},{default:o(({row:t})=>[C("span",null,ve(t.status==1?"\u663E\u793A":"\u9690\u85CF"),1)]),_:1}),l(i,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"content","show-overflow-tooltip":""}),l(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:t})=>[v((n(),p(_,{type:"primary",link:"",onClick:X=>K(t)},{default:o(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[B,["task_template.task_template/edit"]]]),v((n(),p(_,{type:"danger",link:"",onClick:X=>x(t.id)},{default:o(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[B,["task_template.task_template/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",Ve,[l(J,{modelValue:e(F),"onUpdate:modelValue":a[7]||(a[7]=t=>Be(F)?F.value=t:null),onChange:e(y)},null,8,["modelValue","onChange"])])]),_:1})),[[W,e(F).loading]]),e(c)&&e(V)!=15?(n(),p(ke,{key:0,ref_key:"editRef",ref:m,"dict-data":e(h),onSuccess:e(y),onClose:a[8]||(a[8]=t=>c.value=!1)},null,8,["dict-data","onSuccess"])):e(c)?(n(),p(Ee,{key:1,ref_key:"editRef",ref:m,"dict-data":e(h),onSuccess:e(y),onClose:a[9]||(a[9]=t=>c.value=!1)},null,8,["dict-data","onSuccess"])):we("",!0)])}}});const kt=re(xe,[["__scopeId","data-v-aefc32bd"]]);export{kt as default};