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

2 lines
6.0 KiB
JavaScript

import{I as M,y as O,G as q,H as G,w as H,D as z,C as J,L as K,M as Q,N as W}from"./element-plus.258bf9e7.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{u as ee}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.c644f395.js";import{_ as te,a as le,b as ae}from"./edit.vue_vue_type_script_setup_true_name_supervisionEntityParallelTestingEdit_lang.d6c442f9.js";import"./lodash.1d82ee7c.js";import{d as V,s as ie,r as g,a0 as se,ai as ue,o as n,c as ne,V as e,M as t,O as f,u,L as m,S as re,a as y,k as pe,T as d,n as D}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.7fd4f51b.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";import"./supervision_inspection.84905332.js";const me=d("\u67E5\u8BE2"),de=d("\u91CD\u7F6E"),_e=d(" \u65B0\u589E "),ce=d(" \u5220\u9664 "),fe={class:"mt-4"},ve=d(" \u7F16\u8F91 "),Ce=d(" \u5220\u9664 "),we={class:"flex justify-end mt-4"},Ee=V({name:"supervisionEntityParallelTestingLists"}),po=V({...Ee,setup(Fe){const v=ie(),C=g(!1),i=se({project_id:"",theme:"",code:"",position:"",result:""}),F=g([]),B=s=>{F.value=s.map(({id:o})=>o)},{dictData:x}=oe("problem_cate"),{pager:_,getLists:w,resetParams:A,resetPage:P}=ee({fetchFun:le,params:i}),S=async()=>{var s;C.value=!0,await D(),(s=v.value)==null||s.open("add")},T=async s=>{var o,r;C.value=!0,await D(),(o=v.value)==null||o.open("edit"),(r=v.value)==null||r.setFormData(s)},b=async s=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:s}),w()};return w(),(s,o)=>{const r=M,c=O,h=q,$=G,p=H,L=z,k=J,N=Z,a=K,U=Q,R=X,E=ue("perms"),j=W;return n(),ne("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:i,inline:""},{default:t(()=>[e(c,{label:"\u68C0\u9A8C\u4E3B\u9898",prop:"theme"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:i.theme,"onUpdate:modelValue":o[0]||(o[0]=l=>i.theme=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u9A8C\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u7F16\u53F7",prop:"code"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:i.code,"onUpdate:modelValue":o[1]||(o[1]=l=>i.code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u68C0\u9A8C\u90E8\u4F4D",prop:"position"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:i.position,"onUpdate:modelValue":o[2]||(o[2]=l=>i.position=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u68C0\u9A8C\u90E8\u4F4D"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u68C0\u9A8C\u7ED3\u679C",prop:"result"},{default:t(()=>[e($,{modelValue:i.result,"onUpdate:modelValue":o[3]||(o[3]=l=>i.result=l)},{default:t(()=>[e(h,{lable:"0",value:"\u7B26\u5408\u6807\u51C6"}),e(h,{lable:"1",value:"\u4E0D\u7B26\u5408\u6807\u51C6"})]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(p,{type:"primary",onClick:u(P)},{default:t(()=>[me]),_:1},8,["onClick"]),e(p,{onClick:u(A)},{default:t(()=>[de]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),m(k,{class:"!border-none",shadow:"never"},{default:t(()=>[f((n(),m(p,{type:"primary",onClick:S},{icon:t(()=>[e(N,{name:"el-icon-Plus"})]),default:t(()=>[_e]),_:1})),[[E,["supervision_work.supervision_entity_parallel_testing/add"]]]),f((n(),m(p,{disabled:!F.value.length,onClick:o[4]||(o[4]=l=>b(F.value))},{default:t(()=>[ce]),_:1},8,["disabled"])),[[E,["supervision_work.supervision_entity_parallel_testing/delete"]]]),y("div",fe,[e(U,{data:u(_).lists,onSelectionChange:B},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u9A8C\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),e(a,{label:"\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(a,{label:"\u5DE5\u7A0B\u5355\u4F4D",prop:"check_item_name","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u9A8C\u90E8\u4F4D",prop:"position","show-overflow-tooltip":""}),e(a,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"start_time","show-overflow-tooltip":""}),e(a,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"end_time","show-overflow-tooltip":""}),e(a,{label:"\u68C0\u9A8C\u7ED3\u679C",prop:"result_text","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((n(),m(p,{type:"primary",link:"",onClick:I=>T(l)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[E,["supervision_work.supervision_entity_parallel_testing/edit"]]]),f((n(),m(p,{type:"danger",link:"",onClick:I=>b(l.id)},{default:t(()=>[Ce]),_:2},1032,["onClick"])),[[E,["supervision_work.supervision_entity_parallel_testing/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",we,[e(R,{modelValue:u(_),"onUpdate:modelValue":o[5]||(o[5]=l=>pe(_)?_.value=l:null),onChange:u(w)},null,8,["modelValue","onChange"])])]),_:1})),[[j,u(_).loading]]),C.value?(n(),m(te,{key:0,ref_key:"editRef",ref:v,"dict-data":u(x),onSuccess:u(w),onClose:o[6]||(o[6]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{po as default};