1"use strict";(self["webpackChunkhicc_vue"]=self["webpackChunkhicc_vue"]||[]).push([[4516],{90983:function(e,t,a){a.d(t,{A:function(){return d}});var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"toastification"},[a("div",{staticClass:"d-flex align-items-start"},[a("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[a("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),a("div",{staticClass:"d-flex flex-grow-1"},[a("div",[e.title?a("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:"text-"+e.variant,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?a("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),a("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto ",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():a("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],s=a(53950),i={components:{BAvatar:s.Cq},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i,l=a(81656),c=(0,l.A)(n,r,o,!1,null,"55dd3057",null),d=c.exports},31355:function(e,t,a){a.d(t,{A:function(){return k}});var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("b-modal",{ref:"reset-modal",attrs:{id:"modal-prevent-closing",title:"åæ¶å
³æ³¨","ok-title":"ç¡®å®","cancel-title":"åæ¶","cancel-variant":"outline-secondary",size:"lg"},on:{ok:e.delObservingObject},model:{value:e.FoucsmodalConfirmFlag,callback:function(t){e.FoucsmodalConfirmFlag=t},expression:"FoucsmodalConfirmFlag"}},[a("b-row",[a("b-col",[a("label",{style:{fontSize:"14px"}},[e._v("以䏿¯ä¸æ¬ä¿¡æ¯ç¸å
³çå
³æ³¨å
容ï¼éæ©â确认âåä¸åå
³æ³¨")])])],1),a("b-table",{ref:"refReportListTable",staticClass:"position-relative",attrs:{items:e.riskyList,responsive:"",fields:e.ModelColumns,"primary-key":"id","sort-by":e.sortBy,"show-empty":"","empty-text":"æªæ¾å°ä»»ä½è®°å½","sort-desc":e.isSortDirDesc},on:{"update:sortBy":function(t){e.sortBy=t},"update:sort-by":function(t){e.sortBy=t},"update:sortDesc":function(t){e.isSortDirDesc=t},"update:sort-desc":function(t){e.isSortDirDesc=t}},scopedSlots:e._u([{key:"cell(reference_object_name)",fn:function(t){return[a("b-col",{attrs:{lg:"12",sm:"6"}},[a("span",{staticStyle:{display:"block"}},[e._v(e._s(t.item.reference_object_name))]),"éæ±"!==t.item.reference_object_category&&6!==t.item.reference_object_type&&"ç¨ä¾"!==t.item.reference_object_category&&"çæ¬"!==t.item.reference_object_category&&"项ç®"!==t.item.reference_object_category?a("span",{staticStyle:{display:"block"}},[e._v("/"+e._s(t.item.base_name))]):e._e()])]}},{key:"cell(coverageType_text)",fn:function(t){return["ç¨ä¾"===t.item.reference_object_category?a("span",[e._v("N/A")]):e._e(
1),"ç¨ä¾"!==t.item.reference_object_category?a("span",[e._v(" "+e._s(t.item.coverageType_text)+" ")]):e._e()]}},{key:"cell(line_coverage)",fn:function(t){return["ç¨ä¾"===t.item.reference_object_category?a("span",{staticClass:"ml-1"},[e._v("N/A")]):e._e(),"ç¨ä¾"!==t.item.reference_object_category?a("span",[a("b-col",{attrs:{lg:"12",sm:"6"},on:{click:function(a){return e.queryCoverage(t.item)}}},[a("small",[e._v(e._s(t.item.line_covered)+"/"+e._s(t.item.line_total))]),a("b-progress",{staticClass:"progress-bar-danger cursor-pointer",attrs:{value:100*t.item.line_coverage,max:"100",variant:e.getColor(100*t.item.line_coverage),"show-value":""}})],1)],1):e._e()]}},{key:"cell(case_passrate)",fn:function(t){return["éæ±"!==t.item.reference_object_category&&"项ç®"!==t.item.reference_object_category&&"çæ¬"!==t.item.reference_object_category?a("span",{staticClass:"ml-2"},[e._v("N/A")]):a("span",[a("b-col",{attrs:{lg:"12",sm:"6"},on:{click:function(a){return e.queryCaseList(t.item)}}},[a("small",[e._v(e._s(t.item.case_pass_num)+"/"+e._s(t.item.case_total))]),a("b-progress",{staticClass:"progress-bar-danger cursor-pointer",attrs:{value:100*t.item.case_passrate,max:"100",variant:e.getColor(100*t.item.case_passrate),"show-value":""}})],1)],1)]}},{key:"cell(performance_warning_counter)",fn:function(t){return["éæ±"!==t.item.reference_object_category&&"ç¨ä¾"!==t.item.reference_object_category&&"çæ¬"!==t.item.reference_object_category&&"项ç®"!==t.item.reference_object_category?a("span",{staticClass:" ml-2"}
1,[e._v("N/A")]):e._e(),a("b-col",{staticClass:"cursor-pointer ml-1",on:{click:function(a){return e.queryWarningTraceList(t.item)}}},[a("small",[e._v(" "+e._s(t.item.performance_warning_counter))])])]}}])}),a("BranchCoverageComponent",{attrs:{uuid:e.itemuuid,"report-id":e.reportId,title:e.reference_object_name,"parent-id":e.parent_id,"env-id":e.env_id,appObserve:e.appObserve,"coverage-type":e.coverage_type,"requirement-id":e.requirement_id,version_id:e.version_id,"app-id":e.app_id,"project-id":e.project_id}}),a("CaseListComponent",{attrs:{module_uuid:e.module_uuid,module_id:e.module_id,module_name:e.module_name,version:e.version_name,project_title:e.project_title}}),a("TracesWarningComponent",{attrs:{uuid:e.case_uuid,reference_object_category:e.reference_object_category,environment:e.environment,caseId:e.case_id}})],1)},o=[],s=a(99542),i=a(28028),n=a(25361),l=a(73125),c=a(9656),d=a(32274),m=a(51130),u=a(15627),p=a(76101),b=a(95738),f=a(70874),_=a(84059),h=a(692),v=a(44526),g=a(26493),y=a(14095),j={components:{TracesWarningComponent:y.A,CaseListComponent:g.A,BranchCoverageComponent:h.A,BCol:s.T,BRow:i.L,showTraceSource:f.A,BModal:n.i,BTable:l.B,reportDetail:u.A,BDropdownItem:c.H,BProgress:d.i,BDropdown:m.U},props:{referenceObjectId:{type:String,default:""},uuid:{type:String,default:""},queryData:{type:Function,default:null}},setup(){const e="risky";return p.A.hasModule(e)||p.A.registerModule(e,_.A),(0,b.hi)(()=>{}),{}},watch:{referenceObjectIdAndUuid(){this.delFoucsModal()}},data(){return{isChecked:!0,coverageReportLists:[],sortBy:null,isSortDirDesc:null,modalTitle:"",modalShowFlag:!1,reportName:"",showReportFlag:!1,reportBundleId:"",frameName:"",showSourceFlag:!1,reportUrl:"",FoucsmodalConfirmFlag:!1,riskyList:[],reportId:"",reference_object_name:"",itemuuid:"",env_id:"",coverage_type:2,a
1pp_id:"",parent_id:"",keyword:"",appObserve:"",requirement_id:"",module_name:"",module_uuid:"",module_id:"",ModelColumns:[{key:"reference_object_name",sortable:!0,label:"åç§°"},{key:"environment",sortable:!0,label:"ç¯å¢"},{key:"coverageType_text",sortable:!0,label:"å¢éç±»å"},{key:"line_coverage",sortable:!0,label:"è¦çç"},{key:"performance_warning_counter",sortable:!0,label:"æ§è½åå¼å¸¸(个)"},{key:"case_passrate",sortable:!0,label:"æµè¯éè¿ç"}],case_uuid:"",case_id:"",reference_object_category:"",version_id:"",version_name:"",environment:"",project_id:"",project_title:"",case_name:""}},computed:{referenceObjectIdAndUuid(){return this.referenceObjectId+this.uuid}},mounted(){this.isShowTraceModule()||this.ModelColumns.splice(4,2)},methods:{delObservingObject(){let e=this;p.A.dispatch("risky/delRisksItem",{reference_object_id:this.referenceObjectId,isChecked:e.isChecked}).then(t=>{200==t.data.code?(e.showToast(t.data.msg,"æç¤º","success"),e.queryData()):e.showToast("æä½å¤±è´¥ï¼"+t.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},delFoucsModal(){this.FoucsmodalConfirmFlag=!0,this.queryRisksItemList()},queryRisksItemList(){let e=this;p.A.dispatch("risky/queryRisksItemList",{reference_object_id:this.referenceObjectId}).then(t=>{e.riskyList=t.data.data.records}).catch(e=>{console.log(e)})},queryCoverage(e){6===e.reference_object_type&&(this.app_id=e.reference_object_id,this.appObserve="åºç¨å
³æ³¨"),"忝"===e.reference_object_category&&(this.reportId=e.report_id),"éæ±"===e.reference_object_category&&(this.requirement_id=e.reference_object_id),"çæ¬"===e.reference_object_category&&(this.version_id=e.reference_object_id),"项ç®"===e.reference_object_category&&(this.project_id=e.reference_object_id),this.reference_object_name=e.reference_object_name,this.itemuuid=(0,v.A)().replace(/-/g,""),this.env_id=e.env_id,this.coverage_type=e.coverage_type,this.parent_id=""},queryCaseList(e){this.module_uuid="",this.module_name="",this.version_name="",this.module_id="",this.project_title="",this.module_uuid=(0,v.A)().replace(/-/g,""),"éæ±"===e.reference_object_category&&(this.module_name=e.reference_object_name,this.module_id=e.reference_object_id),"çæ¬"===e.reference_object_category&&(this.version_name=e.reference_object_name),"项ç®"===e.reference_object_category&&(this.project_title=e.reference_object_name)},showToast(e,t,a){this.$bvToast.toast(e,{title:t,variant:a,solid:!0})},queryWarningTraceList(e){this.case_id=e.reference_object_id,this.case_uuid=(0,v.A)().replace(/-/g,""),this.reference_object_category=e.reference_object_category,this.environment=e.environment}}},w=j,D=a(81656),C=(0,D.A)(w,r,o,!1,null,null,null),k=C.exports},94516:function(e,t,a){a.r(t),a.d(t,{default:function(){return V}});var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("b-card",{attrs:{title:"çæ¬/è¿ä»£ç®¡ç"}},[a("b-row",[a("b-col",{attrs:{lg:"8",sm:"4"}},[a("div",{staticClass:"d-flex"},[a("b-col",{attrs:{lg:"3",sm:"2"}},[a("b-form-group",{attrs:{label:"ç¼å·","label-for":"versionNum"}},[a("b-form-input",{attrs:{id:"versionNum"},model:{value:e.versionNum,callback:function(t){e.versionNum=t},expression:"versionNum"}})],1)],1),a("b-col",{attrs:{lg:"3",sm:"2"}},[a("b-form-group",{attrs:{label:"åç§°","label-for":"versionName"}},[a("b-form-input",{attrs:{id:"versionName"},model:{value:e.versionName,callback:function(t){e.versionName=t},expression:"versionName"}})],1)],1),a("b-col",{attrs:{lg:"2",sm:"2"}},[a("b-form-group",{attrs:{label:"æå±é¡¹ç®","label-for":"projectName"}},[a("b-form-input",{attrs:{id:"projectName"},model:{value:e.projectName,callback:function(t){e.projectName=t},expression:"projectName "}})],1)],1),a("b-col",{attrs:{lg:"2",sm:"2"}},[a("b-form-group",{attrs:{label:"ç±»å","label-for":"riskItemTypeSelect"}},[a("b-form-select",{attrs:{id:"riskItemTypeSelect",options:e.versionTypes},model:{value:e.versionType,callback:function(t){e.versionType=t},expression:"versionType"}})],1)],1),a("b-col",{attrs:{lg:"2"}},[a("b-button",{staticClass:"mt-2",attrs:{variant:"primary"},on:{click:e.queryData}},[a("feather-icon",{staticClass:"mr-50",attrs:{icon:"SearchIcon"}}),e._v(" æ¥è¯¢ ")],1)],1)],1)]),a("b-col",[a("div",{staticClass:"d-flex align-items-center justify-content-center justify-content-sm-end"},[a("b-button",{staticClass:"mt-2 mr-1",attrs:{variant:"primary",disabled:!e.checkResource("06000901")},on:{click:function(t){return e.editData(null)}}},[a("feather-icon",{staticClass:"mr-25",attrs:{icon:"PlusIcon"}}
1),e._v(" æ·»å ")],1),a("b-dropdown",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-2 mt-2",attrs:{text:"æ´å¤æä½",variant:"primary"}},[a("b-dropdown-item",{attrs:{disabled:!e.checkResource("06000901")},on:{click:e.importVersion}},[a("feather-icon",{staticClass:"mr-25",attrs:{icon:"UploadIcon"}}),a("span",[e._v("导å
¥")])],1),a("b-dropdown-item",{on:{click:function(t){return e.exportVersion(null)}}},[a("feather-icon",{staticClass:"mr-25",attrs:{icon:"DownloadIcon"}}),a("span",[e._v("导åº")])],1),a("b-dropdown-item",{on:{click:e.downloadVersionTemplate}},[a("feather-icon",{staticClass:"mr-25",attrs:{icon:"DownloadIcon"}}),e._v(" ä¸è½½æ¨¡ç ")],1)],1)],1)])],1),a("b-row",[a("b-col",{staticClass:"d-flex align-items-center justify-content-center",attrs:{lg:"12"}},[a("b-table",{ref:"refListTable",staticClass:"position-relative",attrs:{items:e.dataLists,responsive:"",fields:e.tableColumns,"primary-key":"id","sort-by":e.sortBy,"show-empty":"","empty-text":"æªæ¾å°ä»»ä½è®°å½","sort-desc":e.isSortDirDesc},on:{"update:sortBy":function(t){e.sortBy=t},"update:sort-by":function(t){e.sortBy=t},"update:sortDesc":function(t){e.isSortDirDesc=t},"update:sort-desc":function(t){e.isSortDirDesc=t}},scopedSlots:e._u([{key:"cell(actions)",fn:function(t){return[a("b-dropdown",{attrs:{variant:"link","no-caret":"",right:e.$store.state.appConfig.isRTL},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}],null,!0)},[a("b-dropdown-item",{on:{click:function(a){return e.editData(t.item)}}},[a("feather-icon",{attrs:{icon:"FileTextIcon"}}),a("span",{staticClass:"align-middle ml-50"},[e._v("ç¼è¾")])],1),a("b-dropdown-item",{attrs:{disabled:!(e.checkResource("06000902")&&e.isOwener(t.item.creatorid))},on:{click:function(a){return e.delModal(t.item)}}},[a("feather-icon",{attrs:{icon:"DeleteIcon"}}),a("span",{staticClass:"align-middle ml-50"},[e._v("å é¤")])],1),a("b-dropdown-item",{on:{click:function(a){return e.FoucsModal(t.item)}}},[a("feather-icon",{attrs:{icon:"StarIcon"}}),a("span",{staticClass:"align-middle ml-50"},[e._v(e._s(t.item.observing_text))])],1)],1)]}}])})],1)],1),a("b-row",[a("b-col",{staticClass:"d-flex align-items-center justify-content-center justify-content-sm-start",attrs:{cols:"6",sm:"6"}},[a("span",{staticClass:"text-muted"},[e._v("æ¾ç¤º "+e._s((e.filterData.current-1)*e.filterData.size+1)+" è³ "+e._s(e.filterData.current*e.filterData.size>e.filterData.totals?e.filterData.totals:e.filterData.current*e.filterData.size)+" æ¡ï¼å
± "+e._s(e.filterData.totals)+" æ¡")])]),a("b-col",{staticClass:"d-flex align-items-center justify-content-center justify-content-sm-end",attrs:{cols:"6",sm:"6"}},[a("b-pagination",{staticClass:"mb-0 mt-1 mt-sm-0",attrs:{"total-rows":e.filterData.totals,"per-page":e.filterData.size,"first-number":"","last-number":"","prev-class":"prev-item","next-class":"next-item"},scopedSlots:e._u([{key:"prev-text",fn:function(){return[a("feather-icon",{attrs:{icon:"ChevronLeftIcon",size:"18"}})]},proxy:!0},{key:"next-text",fn:function(){return[a("feather-icon",{attrs:{icon:"ChevronRightIcon",size:"18"}})]},proxy:!0}]),model:{value:e.filterData.current,callback:function(t){e.$set(e.filterData,"current",t)},expression:"filterData.current"}})],1)],1)],1),a("b-modal",{attrs:{id:"modal-detal",scrollable:"",title:e.modalTitle,size:"xl"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("div",{staticClass:"modal-footer"},[a("b-button",{attrs:{variant:"secondary"},on:{click:function(t){e.modalShowFlag=!1}}},[e._v(" åæ¶ ")]),a("b-button",{attrs:{variant:"primary",type:"submit",disabled:!(e.checkResource("06000903")&&e.isOwener(e.rowData.creatorid))},on:{click:function(t){return t.preventDefault(),e.validationForm.apply(null,arguments)}}},[a("feather-icon",{staticClass:"mr-25",attrs:{icon:"SaveIcon"}}),e._v(" ä¿å ")],1)],1)]},proxy:!0}]),model:{value:e.modalShowFlag,callback:function(t){e.modalShowFlag=t},expression:"modalShowFlag"}}
1,[a("div",[a("validation-observer",{ref:"formRules"},[a("b-form",[a("b-row",[a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"åç§°","label-for":"nameInput"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" åç§° "),a("span",{staticClass:"text-danger"},[e._v("*")])]},proxy:!0}])},[a("validation-provider",{attrs:{name:"åç§°",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[a("b-form-input",{attrs:{id:"nameInput",placeholder:"请è¾å
¥åç§°"},model:{value:e.rowData.version_name,callback:function(t){e.$set(e.rowData,"version_name",t)},expression:"rowData.version_name"}}),a("small",{staticClass:"text-danger"},[e._v(e._s(r[0]))])]}}])})],1)],1),a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"ç¼å·","label-for":"versionNumInput"}},[a("b-form-input",{attrs:{id:"versionNumInput"},model:{value:e.rowData.version_num,callback:function(t){e.$set(e.rowData,"version_num",t)},expression:"rowData.version_num"}})],1)],1)],1),a("b-row",[a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"ç±»å","label-for":"typeInput"}},[a("validation-provider",{attrs:{name:"ç±»å",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[a("b-form-select",{attrs:{id:"typeInput",options:e.versionTypes},model:{value:e.rowData.type,callback:function(t){e.$set(e.rowData,"type",t)},expression:"rowData.type"}}),a("small",{staticClass:"text-danger"},[e._v(e._s(r[0]))])]}}])})],1)],1),a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"å½å±çæ¬","label-for":"fatherVersionSelect"}},[a("v-select",{attrs:{id:"fatherVersionSelect",dir:e.$store.state.appConfig.isRTL?"rtl":"ltr",label:"version_name",options:e.versionInfos,disabled:e.isVersion},on:{search:e.searchVersionInfos,"option:selected":e.selProjectOption},model:{value:e.versionObj,callback:function(t){e.versionObj=t},expression:"versionObj"}})],1)],1)],1),a("b-row",[a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"é¶å±é¡¹ç®","label-for":"appSelect"}},[a("v-select",{attrs:{id:"projectSelect",dir:e.$store.state.appConfig.isRTL?"rtl":"ltr",label:"project_name",options:e.projectInfos},on:{search:e.searchProjectInfos},model:{value:e.projectObj,callback:function(t){e.projectObj=t},expression:"projectObj"}})],1)],1),a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"é¶æ®µ","label-for":"stageSelect"}},[a("validation-provider",{attrs:{name:"é¶æ®µ",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[a("b-form-select",{attrs:{id:"stageSelect",dir:e.$store.state.appConfig.isRTL?"rtl":"ltr",label:"name",options:e.stageOptions},model:{value:e.rowData.stage,callback:function(t){e.$set(e.rowData,"stage",t)},expression:"rowData.stage"}}),a("small",{staticClass:"text-danger"},[e._v(e._s(r[0]))])]}}])})],1)],1)],1),a("b-row",[a("b-col",{staticClass:"mb-1",attrs:{cols:"6",md:"6"}},[a("label",[e._v("å¼å§æ¥æ")]),a("div",{staticClass:"d-flex align-items-center"},[a("flat-pickr",{staticClass:"form-control ",attrs:{id:"dateRange",config:{enableTime:!1,time_24hr:!1,enableSeconds:!1,dateFormat:"Y-m-d",locale:"zh"}},model:{value:e.rowData.start_date,callback:function(t){e.$set(e.rowData,"start_date",t)},expression:"rowData.start_date"}})],1)]),a("b-col",{staticClass:"mb-1",attrs:{cols:"6",md:"6"}},[a("label",[e._v("ç»ææ¥æ")]),a("div",{staticClass:"d-flex align-items-center"},[a("flat-pickr",{staticClass:"form-control ",attrs:{id:"dateRange",config:{enableTime:!1,time_24hr:!1,enableSeconds:!1,dateFormat:"Y-m-d",locale:"zh"}},model:{value:e.rowData.end_date,callback:function(t){e.$set(e.rowData,"end_date",t)},expression:"rowData.end_date"}})],1)])],1),a("b-row",[a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"æè¿°","label-for":"describeInput"}},[a("b-form-textarea",{staticClass:"char-textarea",attrs:{id:"describeInput"},model:{value:e.rowData.version_describe,callback:function(t){e.$set(e.rowData,"version_describe",t)},expression:"rowData.version_describe"}})],1)],1),a("b-col",{attrs:{lg:"6",sm:"2"}},[a("b-form-group",{attrs:{label:"å¯ç¨/ç¦ç¨","label-for":"enabledChk"}},[a("b-form-checkbox",{staticClass:"custom-control-success mt-0",staticStyle:{"margin-top":"-40px"},attrs:{id:"enabledChk",name:"check-button",switch:""},model:{value:e.rowData.enabledFlag,callback:function(t){e.$set(e.rowData,"enabledFlag",t)},expression:"rowData.enabledFlag"}})],1)],1)],1),e.rowData.id?a("b-row",{staticClass:"mt-1"},[a("b-col",{attrs:{lg:"6",sm:"2"}},[a("label",[e._v("å建æ¶é´ï¼"+e._s(e.rowData.create_time))])]),a("b-col",{attrs:{lg:"6",sm:"2"}},[a("label",[e._v("æ´æ°æ¶é´ï¼"+e._s(e.rowData.update_time))])])],1
1):e._e()],1)],1)],1)]),a("b-modal",{ref:"reset-modal",attrs:{id:"modal-prevent-closing",title:"å é¤åæ¯","ok-title":"ç¡®å®","cancel-title":"åæ¶","cancel-variant":"outline-secondary"},on:{ok:e.delVersionInfo},model:{value:e.modalConfirmFlag,callback:function(t){e.modalConfirmFlag=t},expression:"modalConfirmFlag"}},[a("label",[e._v("â"+e._s(e.delData.version_name)+"â å°è¢«å é¤ï¼æ¯å¦ç»§ç»ï¼")])]),a("RiskyItemListComponent",{attrs:{uuid:e.uuid,"query-data":e.queryData,"reference-object-id":e.reference_object_id}}),a("b-modal",{attrs:{id:"modal-detal","ok-only":"",scrollable:"",title:e.importModalTitle,"ok-title":"å
³é",size:"sm"},model:{value:e.importModalShowFlag,callback:function(t){e.importModalShowFlag=t},expression:"importModalShowFlag"}},[a("b-row",[a("div",{staticClass:"d-flex justify-content-center"},[a("b-col",[a("b-form-file",{staticClass:"mt-2 ml-2",attrs:{size:"sm",placeholder:"è¯·éæ©æä»¶",variant:"outline-primary"},on:{change:e.handleFileChange}})],1),a("b-col",[a("b-button",{staticClass:"ml-2 mt-2",attrs:{size:"sm",variant:"primary"},on:{click:e.uploadVersionFile}},[e._v(" ç¡®å® ")])],1)],1)]),a("b-col",{staticClass:"mt-3 ml-1 d-flex align-items-center",attrs:{lg:"10",sm:"1"}},[a("span",{staticClass:"mt-2 mb-1"},[e._v("æç¤ºä¿¡æ¯: ")]),a("label",{staticClass:"mt-2 mb-1",class:{"text-danger":"æä½æå"!==e.importMsg,"text-success":"æä½æå"===e.importMsg}},[e._v(" "+e._s(e.importMsg))])])],1)],1)},o=[],s=(a(44114),a(8986)),i=a(84307),n=a(28028),l=a(99542),c=a(96243),d=a(25361),m=a(73125),u=a(32274),p=a(77163),b=a(88776),f=a(75532),_=a(51130),h=a(9656),v=a(66704),g=a(11442),y=a(26282),j=a(75691),w=a(93210),D=(a(84158),a(95738)),C=a(76101),k=a(85153),x=(a(90983),a(6804)),O=a.n(x),T=a(15261),I=(a(53233),a(44526)),S=a(692),F=a(31355),B=a(84059),A=a(69222),M=a.n(A),N={components:{BFormFile:s.H,BFormTextarea:i.b,RiskyItemListComponent:F.A,BranchCoverageComponent:S.A,ValidationProvider:T.LW,ValidationObserver:T.Ce,BRow:n.L,BCol:l.T,BCard:c.v,BModal:d.i,BTable:m.B,BProgress:u.i,BFormGroup:p.a,BButtonGroup:b.M,BButton:f.P,BDropdown:_.U,BDropdownItem:h.H,BForm:v.Z,vSelect:O(),BFormInput:g.b,BFormSelect:y.J,BFormCheckbox:j.G,BPagination:w.H,flatPickr:M()},setup(){const e="systemconfig",t="risky";C.A.hasModule(e)||C.A.registerModule(e,k.A),C.A.hasModule(t)||C.A.registerModule(t,B.A),(0,D.hi)(()=>{C.A.hasModule(e)&&C.A.unregisterModule(e),C.A.hasModule(t)&&C.A.unregisterModule(t)});const a=[{key:"version_name",sortable:!0,label:"åç§°"},{key:"version_num",sortable:!0,label:"ç¼å·"},{key:"type_text",sortable:!0,label:"ç±»å"},{key:"parent_name",sortable:!0,label:"å½å±"},{key:"project_name",sortable:!0,label:"æå±é¡¹ç®"},{key:"enabled_text",sortable:!0,label:"ç¶æ"},{key:"version_describe",sortable:!0,label:"æè¿°"},{key:"create_time",sortable:!0,label:"å建æ¶é´"},{key:"update_time",sortable:!0,label:"æ´æ°æ¶é´"},{key:"actions",label:"æä½"}];return{tableColumns:a}},watch:{"filterData.current"(){this.queryData()},"rowData.type"(){this.judgeVersionType()}},data(){return{userData:JSON.parse(localStorage.getItem("userData")),filterData:{current:1,size:10,totals:0},reportId:"",uuid:"",CaseLists:[],isChecked:!0,dataLists:[],observing_text:"",sortBy:null,isSortDirDesc:null,modalTitle:"",modalShowFlag:!1,modalConfirmFlag:!1,FoucsmodalConfirmFlag:!1,projectObj:{id:"",project_name:""},appInfos:[],rowData:{},initData:{version_name:"",version_num:"",project_name:"",project_id:"",version_describe:"",type_text:"",type:0,parent_id:"",parent_name:"",start_date:"",end_date:"",stage:0,enabledFlag:!0,enabled:1},delData:{id:"",version_name:""},riskyList:[],isFouce:"å
³æ³¨",reference_object_name:"",reference_object_id:"",versionName:"",versionNum:"",projectName:"",keyword:"",projectInfos:[],versionType:"",versionTypes:[{text:"è¯·éæ©",value:""},{text:"çæ¬",value:0},{text:"è¿ä»£",value:1}],versionObj:{id:"",version_name:""},versionInfos:[],isVersion:!1,stageOptions:[{text:"æªå¼å§",value:0},{text:"å¼åæµè¯",value:1},{text:"SITæµè¯",value:2},{text:"UATæµè¯",value:3},{text:"å·²åå¸",value:9}
1],stageObj:0,importModalTitle:"",importModalShowFlag:!1,importMsg:""}},mounted(){this.checkResource("06000900")?(this.queryApps(),this.queryData()):this.$router.push("/").then(()=>{this.showToast("没ææé","é误æç¤º","danger")}),(0,T.kg)("zh_CN"),C.A.dispatch("systemconfig/addLog",{log_type:"çæ¬ç®¡ç",log_level:"",module:"é
置管ç",log_info:"çæ¬ä¿¡æ¯æµè§"})},methods:{queryData(){this.queryVersionInfosByPage()},queryApps(){let e=this;C.A.dispatch("systemconfig/listApps",{...this.filterData}).then(t=>{200==t.data.code?e.appInfos=t.data.data.records:e.showToast("æä½å¤±è´¥ï¼"+t.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},queryVersionInfosByPage(){let e=this;C.A.dispatch("systemconfig/queryVersionInfosByPage",{...this.filterData,versionName:this.versionName,versionNum:this.versionNum,projectName:this.projectName,type:this.versionType}).then(t=>{200==t.data.code?(e.dataLists=t.data.data.records,this.filterData.totals=t.data.data.total):e.showToast("æä½å¤±è´¥ï¼"+t.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},FoucsModal(e){"å
³æ³¨"===e.observing_text?this.addMyObservingObjects(e):this.delFoucsModal(e)},addMyObservingObjects(e){let t=this;C.A.dispatch("risky/addMyObservingObjects",{reference_type:2,reference_object_id:e.id,reference_object_name:e.version_name}).then(e=>{200==e.data.code?(t.showToast("å
³æ³¨æåï¼","æç¤º","success"),t.queryVersionInfosByPage()):t.showToast("æä½å¤±è´¥ï¼"+e.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},searchProjectInfos(e){if(console.log(e),!e)return;let t=this,a={keyword:e};C.A.dispatch("systemconfig/listProjects",{...a}).then(e=>{200==e.data.code?t.projectInfos=e.data.data.records:t.showToast("æä½å¤±è´¥ï¼"+e.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},editData(e){this.modalTitle="æ·»å çæ¬/è¿ä»£",this.projectObj={},this.versionObj={id:"",version_name:""},null!=e?(this.modalTitle="ç¼è¾çæ¬/è¿ä»£ï¼"+e.version_name,this.rowData={...e},this.versionObj.id=e.parent_id,this.versionObj.version_name=e.parent_name,this.rowData.type="çæ¬"===e.type_text?0:1,this.stageObj=this.rowData.stage,this.projectObj&&(this.projectObj.id=e.project_id,this.projectObj.project_name=e.project_name),this.rowData.enabledFlag=1==this.rowData.enabled):(this.rowData={...this.initData},this.rowData.creatorid=this.userData.userid,this.rowData.parent_id="",this.rowData.parent_name=""),this.modalShowFlag=!0},validationForm(){this.$refs.formRules.validate().then(e=>{e&&this.saveData()})},saveData(){let e=this;this.rowData.enabled=this.rowData.enabledFlag?1:0,this.projectObj&&this.projectObj.id?(this.rowData.project_id=this.projectObj.id,this.rowData.project_name=this.projectObj.project_name,1===this.rowData.type&&this.versionObj&&this.versionObj.id?this.rowData.parent_id=this.versionObj.id:(this.rowData.parent_id="",this.rowData.parent_name=""),console.log("å¼å§æ¥æ:",this.rowData.start_date),null!==this.rowData.start_date&&""!==this.rowData.start_date&&void 0!==this.rowData.start_date?null!==this.rowData.end_date&&""!==this.rowData.end_date&&void 0!==this.rowData.end_date?C.A.dispatch("systemconfig/editVersionInfo",{...this.rowData}).then(t=>{200==t.data.code?(e.showToast(t.data.msg,"æç¤º","success"),e.queryData(),e.modalShowFlag=!1):e.showToast("æä½å¤±è´¥ï¼"+t.data.msg,"é误","danger")}).catch(e=>{console.log(e)}):e.showToast("æä½å¤±è´¥ï¼ç»ææ¥æä¸è½ä¸ºç©ºï¼è¯·éæ©ï¼","é误","danger"):e.showToast("æä½å¤±è´¥ï¼å¼å§æ¥æä¸è½ä¸ºç©ºï¼è¯·éæ©ï¼","é误","danger")):e.showToast("æä½å¤±è´¥ï¼é¶å±é¡¹ç®ä¸è½ä¸ºç©ºï¼è¯·éæ©ï¼","é误","danger")},delModal(e){this.delData={...e},this.modalConfirmFlag=!0},delFoucsModal(e){this.delData={...e},this.reference_object_id=this.delData.id,this.uuid=(0,I.A)().replace(/-/g,"")},delVersionInfo(){let e=this,t=this.delData;C.A.dispatch("systemconfig/delVersionInfo",{id:t.id}).then(t=>{200==t.data.code?(e.showToast(t.data.msg,"æç¤º","success"),e.queryData()):e.showToast("æä½å¤±è´¥ï¼"+t.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},showToast(e,t,a){this.$bvToast.toast(e,{title:t,variant:a,solid:!0})},searchVersionInfos(e){if(console.log(e),!e)return;let t=this,a={keyword:e,type:0};C.A.dispatch("systemconfig/listVersions",{...a}).then(e=>{200==e.data.code?t.versionInfos=e.data.data.records:t.showToast("æä½å¤±è´¥ï¼"+e.data.msg,"é误","danger")}).catch(e=>{console.log(e)})},judgeVersionType(){this.isVersion=0===this.rowData.type,this.isVersion&&(this.versionObj={id:"",version_name:""})},selProjectOption(e){let t=this;console.log(e),e&&(t.projectObj={id:"",project_name:""},C.A.dispatch("systemconfig/queryProjectInfosByPage",{project_id:e.project_id}).then(e=>{if(200===e.data.code){let a=e.data.data.records;t.projectObj.project_name=a[0].project_name,t.projectObj.id=a[0].id}else t.showToast("æä½å¤±è´¥ï¼"+e.data.msg,"é误","danger")}).catch(e=>{console.log(e)}))},importVersion(){let e=this;e.importModalTitle="导å
¥çæ¬/è¿ä»£",e.importModalShowFlag=!0},handleFileChange(e){this.file=e.target.files[0]},uploadVersionFile(){let e=this;this.file?C.A.dispatch("systemconfig/uploadVersionFile",this.file).then(t=>{501===t.data.code&&(this.importMsg=t.data.msg),200===t.data.code&&(this.importMsg=t.data.msg,setTimeout(()=>{this.importModalShowFlag=!1},2e3)),e.queryVersionInfosByPage()}).catch(e=>{console.error("Error uploading file:",e)}):e.importMsg="è¯·éæ©è¦ä¸ä¼ çæä»¶"},exportVersion(){let e=this;e.$http({url:"/exportVersionData",responseType:"blob",data:{keyword:e.filterData.keyword,versionNum:e.versionNum,versionName:e.versionName,projectName:e.projectName,versionType:e.versionType,sortBy:"updatetime",sortDesc:!0},method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{var t=e.headers["content-disposition"],a=decodeURI(t.substring(t.indexOf("filename=")+9,t.length));let r=new Blob([e.data],{type:"application/vnd.ms-excel"});if(window.navigator&&window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,a);else{const e=document.createElement("a");e.style.display="none";var o=URL.createObjectURL(r);e.href=o,e.setAttribute("download",a),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}).catch(e=>{console.log(e)})},downloadVersionTemplate(){let e=this;e.$http({url:"/downloadTemplate?name=edition",responseType:"blob",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{var t=e.headers["content-disposition"],a=decodeURI(t.substring(t.indexOf("filename=")+9,t.length));let r=new Blob([e.data],{type:"application/vnd.ms-excel"});if(window.navigator&&window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,a);else{const e=document.createElement("a");e.style.display="none";var o=URL.createObjectURL(r);e.href=o,e.setAttribute("download",a),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}).catch(e=>{console.log(e)})}}},q=N,L=a(81656),R=(0,L.A)(q,r,o,!1,null,null,null),V=R.exports},88776:function(e,t,a){a.d(t,{M:function(){return b}});var r=a(85471),o=a(58722),s=a(49800),i=a(80072),n=a(91671),l=a(1340),c=a(75532);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function m(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(a),!0).forEach(function(t){u(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var p=(0,l.sC)((0,n.di)(m(m({},(0,n.Up)(c.x,["size"])),{},{ariaRole:(0,l.Yg)(i.vq,"group"),size:(0,l.Yg)(i.vq),tag:(0,l.Yg)(i.vq,"div"),vertical:(0,l.Yg)(i.Ye,!1)})),s.$W),b=r["default"].extend({name:s.$W,functional:!0,props:p,render:function(e,t){var a=t.props,r=t.data,s=t.children;return e(a.tag,(0,o.L)(r,{class:u({"btn-group":!a.vertical,"btn-group-vertical":a.vertical},"btn-group-".concat(a.size),a.size),attrs:{role:a.ariaRole}}),s)}})},66704:function(e,t,a){a.d(t,{Z:function(){return c},x:function(){return l}});var r=a(85471),o=a(58722),s=a(49800),i=a(80072),n=a(1340),l=(0,n.sC)({id:(0,n.Yg)(i.vq),inline:(0,n.Yg)(i.Ye,!1),novalidate:(0,n.Yg)(i.Ye,!1),validated:(0,n.Yg)(i.Ye,!1)},s.PR),c=r["default"].extend({name:s.PR,functional:!0,props:l,render:function(e,t){var a=t.props,r=t.data,s=t.children;return e("form",(0,o.L)(r,{class:{"form-inline":a.inline,"was-validated":a.validated},attrs:{id:a.id,novalidate:a.novalidate}}),s)}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.