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

2 lines
6.0 KiB
JavaScript

import{I as U,y as R,w as I,D as q,C as O,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_supervisionDangerousEngineeringMonitoringEdit_lang.b3be79c8.js";import"./lodash.1d82ee7c.js";import{d as k,s as oe,r as h,a0 as te,ai as le,o as r,c as ae,V as e,M as t,O as f,u,L as d,S as ie,a as C,k as ne,T as m,n as F}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.9492d03b.js";const ue=m("\u67E5\u8BE2"),se=m("\u91CD\u7F6E"),re=m(" \u65B0\u589E "),pe=m(" \u5220\u9664 "),de={class:"mt-4"},me=m(" \u7F16\u8F91 "),ce=m(" \u5220\u9664 "),_e={class:"flex mt-4 justify-end"},fe=k({name:"supervisionDangerousEngineeringMonitoringLists"}),oo=k({...fe,setup(ge){const g=oe(),v=h(!1),i=te({project_id:"",type:"",partial_project:"",position:""}),w=h([]),y=n=>{w.value=n.map(({id:o})=>o)},{dictData:V}=X(""),{pager:c,getLists:E,resetParams:A,resetPage:j}=W({fetchFun:Z,params:i}),x=async()=>{var n;v.value=!0,await F(),(n=g.value)==null||n.open("add")},S=async n=>{var o,s;v.value=!0,await F(),(o=g.value)==null||o.open("edit"),(s=g.value)==null||s.setFormData(n)},B=async n=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:n}),E()};return E(),(n,o)=>{const s=U,_=R,p=I,$=q,b=O,L=Q,a=z,M=G,N=J,D=le("perms"),P=H;return r(),ae("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:i,inline:""},{default:t(()=>[e(_,{label:"\u9879\u76EEid",prop:"project_id"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:i.project_id,"onUpdate:modelValue":o[0]||(o[0]=l=>i.project_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EEid"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u5371\u5927\u5DE5\u7A0B\u7C7B\u578B",prop:"type"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:i.type,"onUpdate:modelValue":o[1]||(o[1]=l=>i.type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5371\u5927\u5DE5\u7A0B\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u5206\u90E8\u5206\u9879\u5DE5\u7A0B",prop:"partial_project"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:i.partial_project,"onUpdate:modelValue":o[2]||(o[2]=l=>i.partial_project=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5206\u90E8\u5206\u9879\u5DE5\u7A0B"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u65BD\u5DE5\u90E8\u4F4D",prop:"position"},{default:t(()=>[e(s,{class:"w-[280px]",modelValue:i.position,"onUpdate:modelValue":o[3]||(o[3]=l=>i.position=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u65BD\u5DE5\u90E8\u4F4D"},null,8,["modelValue"])]),_:1}),e(_,null,{default:t(()=>[e(p,{type:"primary",onClick:u(j)},{default:t(()=>[ue]),_:1},8,["onClick"]),e(p,{onClick:u(A)},{default:t(()=>[se]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),d(b,{class:"!border-none",shadow:"never"},{default:t(()=>[f((r(),d(p,{type:"primary",onClick:x},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[re]),_:1})),[[D,["supervision_dangerous.supervision_dangerous_engineering_monitoring/add"]]]),f((r(),d(p,{disabled:!w.value.length,onClick:o[4]||(o[4]=l=>B(w.value))},{default:t(()=>[pe]),_:1},8,["disabled"])),[[D,["supervision_dangerous.supervision_dangerous_engineering_monitoring/delete"]]]),C("div",de,[e(M,{data:u(c).lists,onSelectionChange:y},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u9879\u76EEid",prop:"project_id","show-overflow-tooltip":""}),e(a,{label:"\u5371\u5927\u5DE5\u7A0B\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(a,{label:"\u5206\u90E8\u5206\u9879\u5DE5\u7A0B",prop:"partial_project","show-overflow-tooltip":""}),e(a,{label:"\u8BA1\u5212\u65BD\u5DE5\u65F6\u95F4",prop:"planned_construction_time","show-overflow-tooltip":""}),e(a,{label:"\u5355\u4F4D\u5DE5\u7A0B",prop:"check_item_id","show-overflow-tooltip":""}),e(a,{label:"\u65BD\u5DE5\u90E8\u4F4D",prop:"position","show-overflow-tooltip":""}),e(a,{label:"\u672C\u9879\u76EE\u7279\u5F81",prop:"project_characteristics","show-overflow-tooltip":""}),e(a,{label:"\u4E0A\u7EA7\u76D1\u7BA1\u4EBA\u5458",prop:"supervisor","show-overflow-tooltip":""}),e(a,{label:"\u8D1F\u8D23\u4EBA",prop:"responsible_person","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((r(),d(p,{type:"primary",link:"",onClick:T=>S(l)},{default:t(()=>[me]),_:2},1032,["onClick"])),[[D,["supervision_dangerous.supervision_dangerous_engineering_monitoring/edit"]]]),f((r(),d(p,{type:"danger",link:"",onClick:T=>B(l.id)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[D,["supervision_dangerous.supervision_dangerous_engineering_monitoring/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",_e,[e(N,{modelValue:u(c),"onUpdate:modelValue":o[5]||(o[5]=l=>ne(c)?c.value=l:null),onChange:u(E)},null,8,["modelValue","onChange"])])]),_:1})),[[P,u(c).loading]]),v.value?(r(),d(Y,{key:0,ref_key:"editRef",ref:g,"dict-data":u(V),onSuccess:u(E),onClose:o[6]||(o[6]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{oo as default};