2 lines
4.1 KiB
JavaScript
2 lines
4.1 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.b0ecf6ae.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.ebbecf1a.js";import{u as K}from"./usePaging.2ad8e1e6.js";import{u as M}from"./useDictOptions.adeec031.js";import{a as O}from"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.02744322.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.ffb5376d.js";import{d as Y}from"./index.9e5a9063.js";import{_ as Z}from"./edit.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.4a487502.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.3a572f9b.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./axios.f9df025a.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.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.00b4c8b3.js";import"./role.988dab1c.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),n=E({title:"",admin_id:"",money:"",type:"",status:"",content:"",company_id:""});c.company_id&&(n.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:i,getLists:m,resetParams:D,resetPage:x}=K({fetchFun:O,params:n});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(n),inline:""},{default:e(()=>[o(f,{"label-width":"100px",label:"\u4EFB\u52A1\u540D\u79F0",prop:"title"},{default:e(()=>[o(V,{class:"w-[280px]",modelValue:t(n).title,"onUpdate:modelValue":a[0]||(a[0]=s=>t(n).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(i).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(i),"onUpdate:modelValue":a[1]||(a[1]=s=>W(i)?i.value=s:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[L,t(i).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","onSucces
|