WokerTask/public/admin/assets/index.396472d0.js

2 lines
6.9 KiB
JavaScript

import{C as z,D as G,N as H,O as K,w as M,F as X,J as Y,P as Z,Q as ee,R as te}from"./element-plus.74337649.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.ffdfb4a0.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.a844fe51.js";import{f as ae,b as ue}from"./index.59d2be02.js";import{u as re}from"./usePaging.bd7a7dec.js";import{u as se}from"./useDictOptions.649aea57.js";import{e as ne,f as pe,g as ie}from"./create_task_template.ef7539f3.js";import{d as P,s as me,r as g,$ as V,aq as _e,o as s,c as T,W as e,Q as a,u as o,F as de,a9 as ce,P as i,U as p,R as c,a as A,V as x,j as fe,T as we,n as $}from"./@vue.f8dfc830.js";import"./lodash.3e731b89.js";import{_ as Be}from"./edit.vue_vue_type_script_setup_true_name_createTaskTemplateEdit_lang.0d016808.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.3b74a81e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const ve={class:"mt-4"},ke={class:"flex mt-4 justify-end"},be=P({name:"createTaskTemplateLists"}),dt=P({...be,setup(Ce){const f=me(),w=g(!1),n=V({title:"",task_role_id:"",type:""}),b=g([]),L=r=>{b.value=r.map(({id:l})=>l)},{dictData:C}=se("create_task_template_select_role"),{pager:_,getLists:B,resetParams:R,resetPage:S}=re({fetchFun:ie,params:n}),N=async()=>{var r;w.value=!0,await $(),(r=f.value)==null||r.open("add")},U=async r=>{var l,d;w.value=!0,await $(),(l=f.value)==null||l.open("edit"),(d=f.value)==null||d.setFormData(r)},F=async r=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:r}),B()},y=V({});return ne().then(r=>{for(let l in r)y[l]=r[l]}),B(),(r,l)=>{const d=z,v=G,h=H,I=K,m=M,j=X,D=Y,q=ue,u=Z,O=le,Q=ee,J=oe,k=_e("perms"),W=te;return s(),T("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(j,{class:"mb-[-16px]",model:o(n),inline:""},{default:a(()=>[e(v,{label:"\u4E3B\u9898",prop:"title"},{default:a(()=>[e(d,{class:"w-[280px]",modelValue:o(n).title,"onUpdate:modelValue":l[0]||(l[0]=t=>o(n).title=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(v,{label:"\u4EFB\u52A1\u89D2\u8272"},{default:a(()=>[e(I,{modelValue:o(n).task_role_id,"onUpdate:modelValue":l[1]||(l[1]=t=>o(n).task_role_id=t)},{default:a(()=>[e(h,{label:"\u5168\u90E8",value:""}),(s(!0),T(de,null,ce(o(C).create_task_template_select_role,(t,E)=>(s(),i(h,{key:E,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(v,{label:"\u4EFB\u52A1\u7C7B\u578B",prop:"type"},{default:a(()=>[e(d,{class:"w-[280px]",modelValue:o(n).type,"onUpdate:modelValue":l[2]||(l[2]=t=>o(n).type=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(v,null,{default:a(()=>[e(m,{type:"primary",onClick:o(S)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:o(R)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((s(),i(D,{class:"!border-none",shadow:"never"},{default:a(()=>[c((s(),i(m,{type:"primary",onClick:N},{icon:a(()=>[e(q,{name:"el-icon-Plus"})]),default:a(()=>[p(" \u65B0\u589E ")]),_:1})),[[k,["create_task_template.create_task_template/add"]]]),c((s(),i(m,{disabled:!o(b).length,onClick:l[3]||(l[3]=t=>F(o(b)))},{default:a(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[k,["create_task_template.create_task_template/delete"]]]),A("div",ve,[e(Q,{data:o(_).lists,onSelectionChange:L},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u4E3B\u9898",prop:"title","show-overflow-tooltip":""}),e(u,{label:"\u521B\u5EFA\u4EBA",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u4EFB\u52A1\u89D2\u8272",prop:"task_role_id"},{default:a(({row:t})=>[e(O,{options:o(C).create_task_template_select_role,value:t.task_role_id},null,8,["options","value"])]),_:1}),e(u,{label:"\u4EFB\u52A1\u7C7B\u578B","show-overflow-tooltip":""},{default:a(({row:t})=>[p(x(o(y)[t.type]),1)]),_:1}),e(u,{label:"\u4E00\u9636\u5929\u6570",prop:"stage_day_one","show-overflow-tooltip":""}),e(u,{label:"\u7B2C\u4E00\u9636\u6BB5\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(u,{label:"\u4E00\u9636\u6BD4\u4F8B",prop:"proportion_one","show-overflow-tooltip":""}),e(u,{label:"\u4E8C\u9636\u5929\u6570",prop:"stage_day_two","show-overflow-tooltip":""}),e(u,{label:"\u4E8C\u9636\u6BD4\u4F8B",prop:"proportion_two","show-overflow-tooltip":""}),e(u,{label:"\u4E8C\u9636\u6BB5\u91D1\u989D",prop:"money_two","show-overflow-tooltip":""}),e(u,{label:"\u4E09\u9636\u6BB5\u5929\u6570",prop:"stage_day_three","show-overflow-tooltip":""}),e(u,{label:"\u4E09\u9636\u6BB5\u91D1\u989D",prop:"new_money_three","show-overflow-tooltip":""}),e(u,{label:"\u957F\u671F\u91D1\u989D",prop:"money_longtime","show-overflow-tooltip":""}),e(u,{label:"\u9636\u6BB5\u7C7B\u578B","show-overflow-tooltip":""},{default:a(({row:t})=>[p(x(t.types==1?"\u5FAA\u574F":t.types==2?"\u957F\u671F":"\u5355\u6B21"),1)]),_:1}),e(u,{label:"\u6269\u5C55\u5B57\u6BB5",prop:"extend","show-overflow-tooltip":""}),e(u,{label:"\u5145\u503C\u91D1\u989D",prop:"recharge","show-overflow-tooltip":""}),e(u,{label:"\u4EFB\u52A1\u63CF\u8FF0",prop:"content","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[c((s(),i(m,{type:"primary",link:"",onClick:E=>U(t)},{default:a(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["create_task_template.create_task_template/edit"]]]),c((s(),i(m,{type:"danger",link:"",onClick:E=>F(t.id)},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["create_task_template.create_task_template/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",ke,[e(J,{modelValue:o(_),"onUpdate:modelValue":l[4]||(l[4]=t=>fe(_)?_.value=t:null),onChange:o(B)},null,8,["modelValue","onChange"])])]),_:1})),[[W,o(_).loading]]),o(w)?(s(),i(Be,{key:0,ref_key:"editRef",ref:f,"dict-data":o(C),onSuccess:o(B),onClose:l[5]||(l[5]=t=>w.value=!1)},null,8,["dict-data","onSuccess"])):we("",!0)])}}});export{dt as default};