2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
|
import{C as I,D as L,w as N,F as S,J as $,P as U,Q as j,R as Q}from"./element-plus.ff90c99c.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{u as J}from"./usePaging.bd7a7dec.js";import{u as W}from"./useDictOptions.d306a433.js";import{a as z}from"./task_template.4111892f.js";import{d as F,s as G,r,$ as w,o as p,c as H,W as o,Q as e,u as t,U as E,R as K,P as C,a as u,V as M,j as O,T as X}from"./@vue.f8dfc830.js";import"./lodash.3e731b89.js";import{d as Y}from"./index.71302537.js";import{_ as Z}from"./edit.vue_vue_type_style_index_0_lang.aa3ebd6b.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";import"./index.422d920b.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.218b6135.js";import"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.d19943e6.js";import"./role.101a1b11.js";const oo={class:"mt-4"},to={class:"flex justify-end mt-4"},eo=F({name:"taskTemplateLists"}),ao=F({...eo,props:["company_id"],emits:["customEvent"],setup(y,{emit:h}){const c=y,B=G();r([]);const d=r(!1),i=w({title:"",admin_id:"",money:"",type:"",status:"",content:"",company_id:""});c.company_id&&(i.company_id=c.company_id),w([{id:1,name:"\u663E\u793A"},{id:2,name:"\u9690\u85CF"}]),r([]);const g=_=>{h("customEvent",_)},{dictData:D}=W(""),{pager:n,getLists:m,resetParams:k,resetPage:x}=J({fetchFun:z,params:i});return m(),(_,a)=>{const V=I,f=L,b=N,A=S,v=$,l=U,T=j,P=q,R=Q;return p(),H("div",null,[o(v,{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(b,{class:"el-btn",type:"primary",onClick:t(x)},{default:e(()=>[E("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(b,{onClick:t(k)},{default:e(()=>[E("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),K((p(),C(v,{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,M(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(P,{modelValue:t(n),"onUpdate:modelValue":a[1]||(a[1]=s=>O(n)?n.value=s:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),
|