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

2 lines
5.3 KiB
JavaScript

import{I as U,y as A,w as I,D as M,C as j,L as q,M as O,N as z}from"./element-plus.258bf9e7.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{u as H}from"./usePaging.f6660143.js";import{u as J}from"./useDictOptions.c644f395.js";import{_ as K,a as Q,b as W}from"./edit.vue_vue_type_script_setup_true_name_supervisionProblemEdit_lang.6802b732.js";import"./lodash.1d82ee7c.js";import{f as X}from"./index.ec401e3b.js";import{d as V,s as Y,r as k,a0 as Z,ai as ee,o as n,c as oe,V as e,M as t,O as b,u as r,L as d,S as g,a as B,k as te,T as c,n as le}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"./index.a7758114.js";import"./index.9492d03b.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";const ae=c("\u67E5\u8BE2"),ie=c("\u91CD\u7F6E"),re=c(" \u5220\u9664 "),se={class:"mt-4"},ue=c(" \u68C0\u67E5\u9A8C\u6536 "),ne=c(" \u5220\u9664 "),pe={class:"flex justify-end mt-4"},me=V({name:"supervisionProblemLists"}),Ye=V({...me,setup(de){const v=Y(),E=k(!1),i=Z({data_id:"",data_type:"",problem_cate:"",problem_description:"",problem_name:""}),w=k([]),D=s=>{w.value=s.map(({id:o})=>o)},{dictData:y}=J(""),{pager:p,getLists:_,resetParams:x,resetPage:P}=H({fetchFun:Q,params:i}),S=async s=>{var o,u;E.value=!0,await le(),(o=v.value)==null||o.open("edit"),(u=v.value)==null||u.setFormData(s)},h=async s=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await W({id:s}),_()};return _(),(s,o)=>{const u=U,f=A,m=I,L=M,F=j,a=q,$=O,N=G,C=ee("perms"),T=z;return n(),oe("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:i,inline:""},{default:t(()=>[e(f,{label:"\u95EE\u9898\u5206\u7C7B",prop:"problem_cate"},{default:t(()=>[e(u,{class:"w-[280px]",modelValue:i.problem_cate,"onUpdate:modelValue":o[0]||(o[0]=l=>i.problem_cate=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u5206\u7C7B"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u95EE\u9898\u8BF4\u660E",prop:"problem_description"},{default:t(()=>[e(u,{class:"w-[280px]",modelValue:i.problem_description,"onUpdate:modelValue":o[1]||(o[1]=l=>i.problem_description=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u8BF4\u660E"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u95EE\u9898\u540D\u79F0",prop:"problem_name"},{default:t(()=>[e(u,{class:"w-[280px]",modelValue:i.problem_name,"onUpdate:modelValue":o[2]||(o[2]=l=>i.problem_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(f,null,{default:t(()=>[e(m,{type:"primary",onClick:r(P)},{default:t(()=>[ae]),_:1},8,["onClick"]),e(m,{onClick:r(x)},{default:t(()=>[ie]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),b((n(),d(F,{class:"!border-none",shadow:"never"},{default:t(()=>[b((n(),d(m,{disabled:!w.value.length,onClick:o[3]||(o[3]=l=>h(w.value))},{default:t(()=>[re]),_:1},8,["disabled"])),[[C,["supervision_work.supervision_problem/delete"]]]),B("div",se,[e($,{data:r(p).lists,onSelectionChange:D},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u95EE\u9898\u5206\u7C7B",prop:"problem_cate_text","show-overflow-tooltip":""}),e(a,{label:"\u95EE\u9898\u8BF4\u660E",prop:"problem_description","show-overflow-tooltip":""}),e(a,{label:"\u95EE\u9898\u540D\u79F0",prop:"problem_name","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u65F6\u95F4",prop:"rectification_time","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u4EBA",prop:"rectification_user","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u7ED3\u679C",prop:"rectification_result_text","show-overflow-tooltip":""}),e(a,{label:"\u6574\u6539\u610F\u89C1",prop:"rectification_opinion","show-overflow-tooltip":""}),e(a,{label:"\u662F\u5426\u6574\u6539",prop:"is_rectification_text","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"200",fixed:"right",align:"center"},{default:t(({row:l})=>[l.is_rectification==0?b((n(),d(m,{key:0,type:"primary",link:"",onClick:R=>S(l)},{default:t(()=>[ue]),_:2},1032,["onClick"])),[[C,["supervision_work.supervision_problem/edit"]]]):g("",!0),b((n(),d(m,{type:"danger",link:"",onClick:R=>h(l.id)},{default:t(()=>[ne]),_:2},1032,["onClick"])),[[C,["supervision_work.supervision_problem/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",pe,[e(N,{modelValue:r(p),"onUpdate:modelValue":o[4]||(o[4]=l=>te(p)?p.value=l:null),onChange:r(_)},null,8,["modelValue","onChange"])])]),_:1})),[[T,r(p).loading]]),E.value?(n(),d(K,{key:0,ref_key:"editRef",ref:v,"dict-data":r(y),onSuccess:r(_),onClose:o[5]||(o[5]=l=>E.value=!1)},null,8,["dict-data","onSuccess"])):g("",!0)])}}});export{Ye as default};