2 lines
6.9 KiB
JavaScript
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.ff90c99c.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.a844fe51.js";import{f as ae,b as ue}from"./index.71302537.js";import{u as re}from"./usePaging.bd7a7dec.js";import{u as se}from"./useDictOptions.d306a433.js";import{e as ne,f as pe,g as ie}from"./create_task_template.e5ad3e04.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.240dc5b1.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";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}
|