data_center/public/admin/assets/list_two.06cab31a.js

2 lines
4.2 KiB
JavaScript
Raw Normal View History

2023-11-22 13:29:04 +08:00
import{B as R,C as S,w as N,D as $,I as U,O as Q,P as j,Q as q}from"./element-plus.9c2fdfa8.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as M}from"./usePaging.c22e2b6f.js";import{u as O}from"./useDictOptions.773276bb.js";import{a as z}from"./task_template.9de5142a.js";import{d as F,s as G,r,$ as E,o as p,c as H,U as o,L as e,M as J,u as t,K as b,Q as W,R as C,a as u,S as X,k as Y}from"./@vue.53f8d7c3.js";import"./lodash.5512e984.js";import{d as Z}from"./index.b57b84f0.js";import{_ as oo}from"./edit.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.0d3b23db.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.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"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./index.3fc23cf2.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.437ca914.js";import"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.a3c547b1.js";import"./role.38f9c5c3.js";const to={class:"mt-4"},eo={class:"flex mt-4 justify-end"},ao=F({name:"taskTemplateLists"}),lo=F({...ao,props:["company_id"],emits:["customEvent"],setup(y,{emit:B}){const h=G();r([]);const c=r(!1),i=E({title:"",admin_id:"",money:"",type:"",status:"",content:"",company_id:""}),d=y;d.company_id&&(i.company_id=d.company_id),E([{id:1,name:"\u663E\u793A"},{id:2,name:"\u9690\u85CF"}]),r([]);const g=B,k=_=>{g("customEvent",_)},{dictData:D}=O(""),{pager:n,getLists:m,resetParams:x,resetPage:V}=M({fetchFun:z,params:i});return m(),(_,a)=>{const A=R,f=S,v=N,T=$,w=U,l=Q,I=j,L=K,P=q;return p(),H("div",null,[o(w,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(T,{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(A,{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(V)},{default:e(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(v,{onClick:t(x)},{default:e(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),J((p(),b(w,{class:"!border-none",shadow:"never"},{default:e(()=>[u("div",to,[o(I,{data:t(n).lists,onCellClick:k},{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,X(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",eo,[o(L,{modelValue:t(n),"onUpdate:modelValue":a[1]||(a[1]=s=>Y(n)?n.value=s:null),onChange:t(m)},null,8,["modelValue","onChange"])])]),_:1})),[[P,t(n).loading]]),t(c)?(p(),b