engineering/public/admin/assets/index.9c5e359d.js
2024-03-04 15:04:21 +08:00

2 lines
4.7 KiB
JavaScript

import{D as N,C as R,w as A,L as j,M as q,N as O}from"./element-plus.258bf9e7.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as z,a as G}from"./index.ec401e3b.js";import{u as H}from"./usePaging.f6660143.js";import{u as I}from"./useDictOptions.c644f395.js";import{c as J,d as K}from"./supervision_material_parallel_testing.3821d6d0.js";import"./lodash.1d82ee7c.js";import{_ as Q}from"./edit.vue_vue_type_script_setup_true_name_supervisionWitnessSamplingEdit_lang.c29bcb37.js";import{d as F,s as W,r as b,a0 as X,a5 as Y,ai as Z,o as l,c as ee,V as e,M as o,O as m,u as r,L as n,S as te,a as E,k as oe,T as c,n as y}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.94cc562b.js";import"./supervision_material_entry.3634dd35.js";import"./index.vue_vue_type_script_setup_true_lang.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const ae=c(" \u65B0\u589E "),ie=c(" \u5220\u9664 "),se={class:"mt-4"},le=c(" \u7F16\u8F91 "),re=c(" \u5220\u9664 "),ne=c(" \u660E\u7EC6 "),pe={class:"flex mt-4 justify-end"},ue=F({name:"supervisionMaterialParallelTestingLists"}),it=F({...ue,setup(me){const d=W(),_=b(!1),k=X({}),w=b([]),D=a=>{w.value=a.map(({id:t})=>t)},{dictData:x}=I(""),{pager:p,getLists:f,resetParams:ce,resetPage:de}=H({fetchFun:J,params:k}),B=async()=>{var a;_.value=!0,await y(),(a=d.value)==null||a.open("add")},P=async a=>{var t,v;_.value=!0,await y(),(t=d.value)==null||t.open("edit"),(v=d.value)==null||v.setFormData(a)},g=async a=>{await z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await K({id:a}),f()};return f(),(a,t)=>{const v=N,C=R,T=G,u=A,i=j,V=Y("router-link"),S=q,$=U,h=Z("perms"),L=O;return l(),ee("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(v,{class:"mb-[-16px]",model:k,inline:""},null,8,["model"])]),_:1}),m((l(),n(C,{class:"!border-none",shadow:"never"},{default:o(()=>[m((l(),n(u,{type:"primary",onClick:B},{icon:o(()=>[e(T,{name:"el-icon-Plus"})]),default:o(()=>[ae]),_:1})),[[h,["supervision_work.supervision_material_parallel_testing/add"]]]),m((l(),n(u,{disabled:!w.value.length,onClick:t[0]||(t[0]=s=>g(w.value))},{default:o(()=>[ie]),_:1},8,["disabled"])),[[h,["supervision_work.supervision_material_parallel_testing/delete"]]]),E("div",se,[e(S,{data:r(p).lists,onSelectionChange:D},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(i,{label:"\u6765\u6E90\u5355\u636E",prop:"theme","show-overflow-tooltip":""}),e(i,{label:"\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(i,{label:"\u9001\u68C0\u4EBA",prop:"inspector","show-overflow-tooltip":""}),e(i,{label:"\u9001\u68C0\u65E5\u671F",prop:"inspection_date","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:s})=>[m((l(),n(u,{type:"primary",link:"",onClick:M=>P(s)},{default:o(()=>[le]),_:2},1032,["onClick"])),[[h,["supervision_work.supervision_material_parallel_testing/edit"]]]),m((l(),n(u,{type:"danger",link:"",onClick:M=>g(s.id)},{default:o(()=>[re]),_:2},1032,["onClick"])),[[h,["supervision_work.supervision_material_parallel_testing/delete"]]]),e(V,{to:{path:"/supervision/supervision_work/supervision_material_parallel_testing_detail",query:{id:s.id}}},{default:o(()=>[e(u,{type:"primary",link:""},{default:o(()=>[ne]),_:1})]),_:2},1032,["to"])]),_:1})]),_:1},8,["data"])]),E("div",pe,[e($,{modelValue:r(p),"onUpdate:modelValue":t[1]||(t[1]=s=>oe(p)?p.value=s:null),onChange:r(f)},null,8,["modelValue","onChange"])])]),_:1})),[[L,r(p).loading]]),_.value?(l(),n(Q,{key:0,ref_key:"editRef",ref:d,"dict-data":r(x),onSuccess:r(f),onClose:t[2]||(t[2]=s=>_.value=!1)},null,8,["dict-data","onSuccess"])):te("",!0)])}}});export{it as default};