"use strict";(self["webpackChunkplugin_request_market"]=self["webpackChunkplugin_request_market"]||[]).push([[4173],{4173:function(e,t,l){l.r(t),l.d(t,{default:function(){return R}});var a=l(3693),r=(l(6422),l(1554),l(6091)),o=(l(9134),l(6735)),p=(l(2109),l(1857)),s=(l(9303),l(7390),l(641)),i=l(33),n=l(953),u=l(7711),c=l(5148),b=l(7298);const d={class:"request-check-rule-list"},v={class:"flex flex-row items-center justify-start"},h={style:{display:"flex","justify-content":"right","margin-top":"10px"}};var y=(0,s.pM)({__name:"RequestCheckRuleList",setup(e){const t=(0,n.Kh)({currentPage:1,pageSize:10,total:0}),l=(0,n.KR)([]),y=(0,n.KR)(!1),k=async()=>{l.value=[];const e="",a="",r="",{currentPage:o,pageSize:p}=t;y.value=!0;try{const s=await(0,u.LK)({checkRequestItemClass:e,checkRequestItemProperty:a,checkType:r,isPaging:!0,page:o,size:p});l.value=s?.data||[],t.total=s?.total||0}catch(s){(0,b.iU)({type:"error",message:s?.message||"获取数据失败！"})}y.value=!1};(0,s.sV)((()=>{k()}));const g=(0,n.Kh)({visible:!1,openType:"add",row:null,targetType:"demand"}),R=(e,t)=>{g.visible=!0,g.openType=e,g.row=t,g.targetType=/^gx-(pc|mobile)-/.test(t?.checkRequestItemClass||"")?"ui-controller":"demand"},m={checkType:[{label:"子对象缺失",value:"CHILD_OBJECT_MISSING"},{label:"引用对象缺失",value:"REFERENCE_MISSING"},{label:"被引用缺失",value:"MISSING_REFERENCE"},{label:"内容检查",value:"CONTENT_CHECK"},{label:"分布检查",value:"DISTRIBUTION_CHECK"},{label:"其他",value:"OTHER"}],repairType:[{label:"程序修复",value:"PROGRAM_REPAIR"},{label:"程序建议",value:"PROGRAM_SUGGESTION"},{label:"ai修复",value:"AI_REPAIR"},{label:"ai建议",value:"AI_SUGGESTION"},{label:"无",value:"NONE"}],repairMethod:[{label:"新增对象",value:"NEW_OBJECT"},{label:"删除对象",value:"DELETE_OBJECT"},{label:"修改对象",value:"EDIT_PROPERTY_VALUE"},{label:"无",value:"NONE"}]},w=(0,s.EW)((()=>{const e=new Map;return Object.keys(m).forEach((t=>{const l=m[t];l.forEach((t=>{e.set(t.value,t.label)}))})),e})),_=(e,t,l,a)=>{const r=t.property,o=e?e[r]:"";return o&&w.value.get(o)||""};return(e,n)=>{const u=o.o8,b=p.S2,w=o.Up,f=r.aQ,C=a.A;return(0,s.uX)(),(0,s.CE)("div",d,[(0,s.bo)(((0,s.uX)(),(0,s.Wv)(w,{ref:"tableRef",data:l.value,style:{width:"100%"},stripe:""},{default:(0,s.k6)((()=>[(0,s.bF)(u,{prop:"checkRuleNo",label:"编号",width:"80"}),(0,s.bF)(u,{prop:"checkType",label:"检查类型",width:"100",formatter:_,"show-overflow-tooltip":""}),(0,s.bF)(u,{prop:"checkRequestItemClassCn",label:"需求项","min-width":"120","show-overflow-tooltip":""},{default:(0,s.k6)((({row:e})=>[(0,s.Lk)("span",null,(0,i.v_)(`${e.checkRequestItemClassCn}`),1)])),_:1}),(0,s.bF)(u,{prop:"checkRequestItemPropertyCn",label:"需求项属性","show-overflow-tooltip":"",width:"120"},{default:(0,s.k6)((({row:e})=>[(0,s.Lk)("span",null,(0,i.v_)(`${e.checkRequestItemPropertyCn||e.checkRequestItemProperty||""}`),1)])),_:1}),(0,s.bF)(u,{prop:"relationalRequestItemClassCn",label:"关联需求项","show-overflow-tooltip":"",width:"120"}),(0,s.bF)(u,{prop:"relationalRequestItemPropertyCn",label:"关联需求项属性",width:"130"},{default:(0,s.k6)((({row:e})=>[(0,s.Lk)("span",null,(0,i.v_)(`${e.relationalRequestItemProperty||e.relationalRequestItemPropertyCn||""}`),1)])),_:1}),(0,s.bF)(u,{prop:"repairType",label:"修复类型",formatter:_,"min-width":"100"}),(0,s.bF)(u,{prop:"repairMethod",label:"修复方式",formatter:_,"min-width":"100"}),(0,s.bF)(u,{prop:"abnormalDesc",label:"描述","show-overflow-tooltip":"","min-width":"120"}),(0,s.bF)(u,{label:"操作",fixed:"right","min-width":"100"},{default:(0,s.k6)((({row:e})=>[(0,s.Lk)("div",v,[(0,s.bF)(b,{style:{padding:"0"},onClick:t=>R("edit",e),link:"",type:"primary"},{default:(0,s.k6)((()=>n[3]||(n[3]=[(0,s.eW)("修改")]))),_:2,__:[3]},1032,["onClick"])])])),_:1})])),_:1},8,["data"])),[[C,y.value]]),(0,s.Lk)("div",h,[(0,s.bF)(f,{class:"pt-3 justify-end","current-page":t.currentPage,"onUpdate:currentPage":n[0]||(n[0]=e=>t.currentPage=e),"page-size":t.pageSize,"onUpdate:pageSize":n[1]||(n[1]=e=>t.pageSize=e),"page-sizes":[10,20,50,100],background:!0,teleported:!1,layout:"total, sizes, prev, pager, next, jumper",total:t.total,onSizeChange:k,onCurrentChange:k},null,8,["current-page","page-size","total"])]),(0,s.bF)(c.A,{visible:g.visible,"onUpdate:visible":n[2]||(n[2]=e=>g.visible=e),openType:g.openType,checkRequestItem:null,checkRequestItemProperty:null,row:g.row,isPropertyRule:!1,options:m,onUpdateList:k,"target-type":g.targetType},null,8,["visible","openType","row","target-type"])])}}}),k=l(6262);const g=(0,k.A)(y,[["__scopeId","data-v-0ff9e8a6"]]);var R=g}}]);
//# sourceMappingURL=4173.2df8b690.js.map