confirmFileConflict-f55d2a2b.js 2.4 KB

1
  1. import{s as t}from"./store-5ff6cbac.js";import{d as D}from"./index-0ec044bf.js";import{h as F,p as i,l as m,o as u,k as n,T as g,V as d,q as l,N as a,a4 as p,a6 as C,M as h,W as $,t as s,a7 as B}from"./vue-a39e6937.js";import{_ as N}from"./index-ba596ae9.js";const T={class:"confirm-file-conflict"},U={class:"conflict-title"},z={class:"conflict-title"},I={key:0},q={class:"center-buttons"},E=F({__name:"confirmFileConflict",setup(M){const w=()=>{t.dialog.common=!1,t.goodsInfo.enable=!0};return(e,r)=>{const y=s("el-alert"),c=s("el-table-column"),_=s("el-table"),f=s("el-option"),k=s("el-select"),b=s("el-button"),v=B("blur");return i(),m("div",null,[u("div",T,[n(t).common.disableConflictFile.length?(i(),m(g,{key:0},[u("div",U,d(e.$t("module.File conflict")),1),l(y,{closable:!1,center:!0,title:e.$t("module.Update warning"),class:"alert-warning",type:"warning"},null,8,["title"]),l(_,{data:n(t).common.disableConflictFile,stripe:"",border:"",style:{width:"100%",marginBottom:"20px"}},{default:a(()=>[l(c,{prop:"file",label:e.$t("module.Conflict file")},null,8,["label"])]),_:1},8,["data"])],64)):p("",!0),n(t).common.disableDependConflict.length>0?(i(),m(g,{key:1},[u("div",z,d(e.$t("module.The module declares the added dependencies")),1),l(_,{data:n(t).common.disableDependConflict,stripe:"",border:"",style:{width:"100%"}},{default:a(()=>[l(c,{prop:"env",label:e.$t("module.environment")},{default:a(o=>[o.row.env?(i(),m("span",I,d(e.$t("module.env "+o.row.env)),1)):p("",!0)]),_:1},8,["label"]),l(c,{prop:"dependTitle",label:e.$t("module.Dependencies")},null,8,["label"]),l(c,{prop:"solution",width:"200",label:e.$t("module.Treatment scheme"),align:"center"},{default:a(o=>[l(k,{modelValue:o.row.solution,"onUpdate:modelValue":V=>o.row.solution=V},{default:a(()=>[l(f,{label:e.$t("delete"),value:"delete"},null,8,["label"]),l(f,{label:e.$t("module.retain"),value:"retain"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"])]),_:1},8,["data"])],64)):p("",!0)]),u("div",q,[C((i(),h(b,{class:"center-button",loading:n(t).loading.common,disabled:n(t).loading.common,size:"large",type:"primary",onClick:r[0]||(r[0]=o=>n(D)(!0))},{default:a(()=>[$(d(e.$t("module.Confirm to disable the module")),1)]),_:1},8,["loading","disabled"])),[[v]]),C((i(),h(b,{class:"center-button",size:"large",onClick:r[1]||(r[1]=o=>w())},{default:a(()=>[$(d(e.$t("Cancel")),1)]),_:1})),[[v]])])])}}});const G=N(E,[["__scopeId","data-v-f0984403"]]);export{G as default};