WokerTask/public/admin/assets/index.3e7ce15e.js

2 lines
7.9 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{B as Y,C as Z,M as ee,N as te,w as ae,D as le,I as oe,O as ue,P as ne,Q as se}from"./element-plus.10e48c93.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import{f as pe,b as de,d as re}from"./index.5a613cc5.js";import{u as me}from"./vue-router.9f65afb1.js";import{u as ce}from"./usePaging.60d02673.js";import{u as _e}from"./useDictOptions.d46d4fb9.js";import{g as fe,a as ye}from"./task_template.b3a5d82b.js";import{d as I,s as be,r as w,$ as U,af as Fe,o as n,c as D,U as l,L as o,u as e,T as q,a7 as L,K as i,R as b,M as v,a as V,S as ve,k as Be,Q as we,n as P}from"./@vue.51d7f2d8.js";import"./lodash.08438971.js";import{_ as ke}from"./edit.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.fdca5330.js";import{_ as Ee}from"./edit_admin.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.487c6501.js";import{_ as Ce}from"./edit_village.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.2adc3ffa.js";import{d as De}from"./dict.8e36f67c.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"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.105476b3.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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.40d5feba.js";import"./index.cfb3fa32.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.63bf64bd.js";import"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.01569d93.js";import"./role.f3a07ff0.js";import"./dialog_commodity.vue_vue_type_script_setup_true_name_companyLists_lang.5673f0c1.js";const Ve={class:"mt-4"},xe={class:"flex justify-end mt-4"},he=I({name:"taskTemplateLists"}),ge=I({...he,setup(Ae){var g,A,$;const r=be(),x=w([]),d=w(!1),_=me(),u=U({id:"",company_id:"",title:"",admin_id:"",money:"",type:"",status:"",content:""}),k=w(10);(g=_.query)!=null&&g.id&&(u.id=_.query.id),(A=_.query)!=null&&A.company_id&&(u.company_id=_.query.company_id),($=_.query)!=null&&$.company_type&&(k.value=_.query.company_type);const N=U([{id:1,name:"\u663E\u793A"},{id:2,name:"\u9690\u85CF"}]),E=w([]),M=s=>{E.value=s.map(({id:t})=>t)},{dictData:C}=_e(""),{pager:F,getLists:f,resetParams:O,resetPage:Q}=ce({fetchFun:ye,params:u}),j=async()=>{var s,t;d.value=!0,await P(),(s=r.value)==null||s.open("add"),(t=r.value)==null||t.setFormData({company_id:u.company_id})},K=async s=>{var t,m;d.value=!0,await P(),(t=r.value)==null||t.open("edit"),(m=r.value)==null||m.setFormData(s)},h=async s=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:s}),f()};return De({type_id:10}).then(s=>{x.value=s.lists}),f(),(s,t)=>{const m=Y,c=Z,S=ee,T=te,y=ae,z=le,R=oe,G=de,p=ue,H=ne,J=ie,B=Fe("perms"),W=se;return n(),D("div",null,[l(R,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[l(z,{class:"mb-[-16px] formtabel",model:e(u),inline:""},{default:o(()=>[l(c,{"label-width":"100px",label:"\u4EFB\u52A1\u540D\u79F0",prop:"title"},{default:o(()=>[l(m,{class:"w-[280px]",modelValue:e(u).title,"onUpdate:modelValue":t[0]||(t[0]=a=>e(u).title=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),l(c,{"label-width":"100px",label:"\u521B\u5EFA\u4EBA",prop:"admin_id"},{default:o(()=>[l(m,{class:"w-[280px]",modelValue:e(u).admin_id,"onUpdate:modelValue":t[1]||(t[1]=a=>e(u).admin_id=a),c