2 lines
7.0 KiB
JavaScript
2 lines
7.0 KiB
JavaScript
import{I as J,y as K,w as Q,D as X,C as Y,L as Z,_ as ee,M as oe,N as te}from"./element-plus.517d4382.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as le,a as ue}from"./index.8b1962e9.js";import{u as ne}from"./usePaging.f6660143.js";import{u as se}from"./useDictOptions.b5854a9e.js";import{a as ie,b as A,e as me}from"./customer_demand_solution.7b6f5501.js";import{d as P,s as $,r as D,a0 as re,ai as de,o as l,c as h,V as e,M as a,O as _,u as r,L as d,S as L,a as j,W as pe,a8 as ce,k as _e,T as p,n as y,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_customerDemandSolutionEdit_lang.7685acf3.js";import he from"./detail.98e8bf19.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.vue_vue_type_script_setup_true_lang.6688b044.js";import"./customer_demand.ccb61d2f.js";import"./index.e6dda1f5.js";import"./custom.99349afc.js";const Ee=p("\u67E5\u8BE2"),Ce=p("\u91CD\u7F6E"),Fe=p(" \u65B0\u589E "),be=p(" \u5220\u9664 "),we={class:"mt-4"},Be={key:0},ke={key:1},De=p(" \u7F16\u8F91 "),ye=p(" \u5220\u9664 "),ge=p(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},xe=P({name:"customerDemandSolutionLists"}),yo=P({...xe,setup(Se){const w=$(),E=$(),C=D(!1),B=D(!1),i=re({theme:"",customer_demand_name:"",custom_name:"",project_name:""}),k=D([]),R=u=>{k.value=u.map(({id:o})=>o)},{dictData:g}=se(""),{pager:f,getLists:F,resetParams:U,resetPage:N}=ne({fetchFun:ie,params:i}),T=async()=>{var u;C.value=!0,await y(),(u=E.value)==null||u.open("add")},I=async u=>{var m,n;let o=await A({id:u.id});C.value=!0,await y(),(m=E.value)==null||m.open("edit"),(n=E.value)==null||n.setFormData(o)},V=async u=>{await le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:u}),F()},M=async u=>{var m,n;let o=await A({id:u.id});B.value=!0,await y(),(m=w.value)==null||m.open(),(n=w.value)==null||n.setFormData(o)};return F(),(u,o)=>{const m=J,n=K,c=Q,q=X,x=Y,O=ue,s=Z,W=ee,z=oe,G=ae,v=de("perms"),H=te;return l(),h("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(q,{class:"mb-[-16px]",model:i,inline:""},{default:a(()=>[e(n,{label:"\u89E3\u51B3\u65B9\u6848\u4E3B\u9898",prop:"theme"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.theme,"onUpdate:modelValue":o[0]||(o[0]=t=>i.theme=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89E3\u51B3\u65B9\u6848\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.project_name,"onUpdate:modelValue":o[1]||(o[1]=t=>i.project_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.custom_name,"onUpdate:modelValue":o[2]||(o[2]=t=>i.custom_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u6237\u9700\u6C42\u4E3B\u9898",prop:"customer_demand_name"},{default:a(()=>[e(m,{class:"w-[250px]",modelValue:i.customer_demand_name,"onUpdate:modelValue":o[3]||(o[3]=t=>i.customer_demand_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u9700\u6C42\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[e(c,{type:"primary",onClick:r(N)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(c,{onClick:r(U)},{default:a(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((l(),d(x,{class:"!border-none",shadow:"never"},{default:a(()=>[_((l(),d(c,{type:"primary",onClick:T},{icon:a(()=>[e(O,{name:"el-icon-Plus"})]),default:a(()=>[Fe]),_:1})),[[v,["custom.customer_demand_solution/add"]]]),_((l(),d(c,{disabled:!k.value.length,onClick:o[4]||(o[4]=t=>V(k.value))},{default:a(()=>[be]),_:1},8,["disabled"])),[[v,["custom.customer_demand_solution/delete"]]]),j("div",we,[e(z,{data:r(f).lists,onSelectionChange:R},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(s,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(s,{label:"\u9700\u6C42\u540D\u79F0",prop:"customer_demand_name","show-overflow-tooltip":""}),e(s,{label:"\u89E3\u51B3\u65B9\u6848\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),e(s,{label:"\u63D0\u4EA4\u65F6\u95F4",prop:"submission_time","show-overflow-tooltip":""}),e(s,{label:"\u65B9\u6848\u5185\u5BB9",prop:"solution_content","show-overflow-tooltip":""}),e(s,{label:"\u5BA2\u6237\u53CD\u9988",prop:"customer_feedback","show-overflow-tooltip":""}),e(s,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:a(({row:t})=>[t.annex&&t.annex.length>0?(l(),h("div",Be,[(l(!0),h(pe,null,ce(t.annex,(b,S)=>(l(),h("div",{key:S},[e(W,{href:b,target:"_blank"},{default:a(()=>[p("\u6587\u4EF6"+fe(S+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),h("div",ke," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[_((l(),d(c,{type:"primary",link:"",onClick:b=>I(t)},{default:a(()=>[De]),_:2},1032,["onClick"])),[[v,["custom.customer_demand_solution/edit"]]]),_((l(),d(c,{type:"danger",link:"",onClick:b=>V(t.id)},{default:a(()=>[ye]),_:2},1032,["onClick"])),[[v,["custom.customer_demand_solution/delete"]]]),_((l(),d(c,{link:"",onClick:b=>M(t)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[v,["custom.customer_demand_solution/detail"]]])]),_:1})]),_:1},8,["data"])]),j("div",Ve,[e(G,{modelValue:r(f),"onUpdate:modelValue":o[5]||(o[5]=t=>_e(f)?f.value=t:null),onChange:r(F)},null,8,["modelValue","onChange"])])]),_:1})),[[H,r(f).loading]]),C.value?(l(),d(ve,{key:0,ref_key:"editRef",ref:E,"dict-data":r(g),onSuccess:r(F),onClose:o[6]||(o[6]=t=>C.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),B.value?(l(),d(he,{key:1,ref_key:"detailRef",ref:w,"dict-data":r(g),onClose:o[7]||(o[7]=t=>B.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{yo as default};
|