WokerTask/public/admin/assets/list_two.a92f2c9e.js

2 lines
4.2 KiB
JavaScript

import{B as P,C as R,w as S,D as N,I as $,O as U,P as Q,Q as j}from"./element-plus.9816852d.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{u as K}from"./usePaging.2ad8e1e6.js";import{u as M}from"./useDictOptions.a2448547.js";import{a as O}from"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.dd6833e8.js";import{d as F,s as z,r,$ as E,o as p,c as G,U as o,L as e,u as t,R as b,M as H,K as C,a as u,S as J,k as W,Q as X}from"./@vue.51d7f2d8.js";import"./lodash.675f209e.js";import{d as Y}from"./index.4eaf9bd5.js";import{_ as Z}from"./edit.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.9a119849.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"./index.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.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"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.02428d4c.js";import"./role.873a2bd3.js";const oo={class:"mt-4"},to={class:"flex mt-4 justify-end"},eo=F({name:"taskTemplateLists"}),ao=F({...eo,props:["company_id"],emits:["customEvent"],setup(y,{emit:B}){const c=y,h=z();r([]);const d=r(!1),i=E({title:"",admin_id:"",money:"",type:"",status:"",content:"",company_id:""});c.company_id&&(i.company_id=c.company_id),E([{id:1,name:"\u663E\u793A"},{id:2,name:"\u9690\u85CF"}]),r([]);const g=_=>{B("customEvent",_)},{dictData:k}=M(""),{pager:n,getLists:m,resetParams:D,resetPage:x}=K({fetchFun:O,params:i});return m(),(_,a)=>{const V=P,f=R,v=S,A=N,w=$,l=U,T=Q,I=q,L=j;return p(),G("div",null,[o(w,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(A,{class:"mb-[-16px] formtabel",model:t(i),inline:""},{default:e(()=>[o(f,{"label-width":"100px",label:"\u4EFB\u52A1\u540D\u79F0",prop:"title"},{default:e(()=>[o(V,{class:"w-[280px]",modelValue:t(i).title,"onUpdate:modelValue":a[0]||(a[0]=s=>t(i).title=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(f,{"label-width":"100px",label:""},{default:e(()=>[o(v,{class:"el-btn",type:"primary",onClick:t(x)},{default:e(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(v,{onClick:t(D)},{default:e(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),H((p(),C(w,{class:"!border-none",shadow:"never"},{default:e(()=>[u("div",oo,[o(T,{data:t(n).lists,onCellClick:g},{default:e(()=>[o(l,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),o(l,{label:"\u521B\u5EFA\u4EBA",prop:"admin_name","show-overflow-tooltip":""}),o(l,{label:"\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),o(l,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),o(l,{label:"\u72B6\u6001","show-overflow-tooltip":""},{default:e(({row:s})=>[u("span",null,J(s.status==1?"\u663E\u793A":"\u9690\u85CF"),1)]),_:1}),o(l,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"content","show-overflow-tooltip":""})]),_:1},8,["data"])]),u("div",to,[o(I,{modelValue:t(n),"onUpdate:modelValue":a[1]||(a[1]=s=>W(n)?n.value=s:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[L,t(n).loading]]),t(d)?(p(),C(Z,{key:0,ref_key:"editRef",ref:h,"dict-data":t(k),onSuccess:t(m),onClose:a[2]||(a[2]=s=>d.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});const Jo=Y(ao,[["__scopeId","data-v-f50a47c2"]]);export{Jo as default};