UNPKG

@bee-hole/server

Version:

www.bee-hole.com

1 lines 66.4 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-417d8ae8"],{"0953":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.handleClick}},[e._v(e._s(e.$t("view.order.list.ship.list.shippings")))]),t("ant-modal",{attrs:{visible:e.visable,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"800"},on:{cancel:function(t){return e.closeModal()}}},[t("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[t("a-form-model",e._b({ref:"form",attrs:{model:e.shipForm}},"a-form-model",e.itemLayout,!1),[t("a-form-model-item",{attrs:{"has-feedback":"",label:"",prop:"shipment_id"}},[t("div",[e._v(e._s(e.$t("view.order.list.ship.list.label")))]),t("a-textarea",{attrs:{rows:10,placeholder:e.$t("view.order.list.ship.list.placeholder")},model:{value:e.shipForm.ships,callback:function(t){e.$set(e.shipForm,"ships",t)},expression:"shipForm.ships"}}),t("template",{slot:"help"},[e._v(" "+e._s(e.$t("view.order.list.ship.list.ships.help"))+" ")])],2),t("a-form-model-item",{attrs:{"has-feedback":"",label:"",prop:"shipment_id"}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"200px"}},[t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange1},model:{value:e.shipForm.logistics_name,callback:function(t){e.$set(e.shipForm,"logistics_name",t)},expression:"shipForm.logistics_name"}},e._l(e.options,(function(a,o){return t("a-select-opt-group",{key:o},[t("span",{attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"user"}}),e._v(e._s(a.key))],1),e._l(a.option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.key}},[e._v(" "+e._s(a.value)+" ")])}))],2)})),1)],1),t("div",{staticStyle:{"margin-left":"20px"}},[e._v(" "+e._s(e.$t("view.express.logistics_code")+": ")+" "+e._s(e.shipForm.logistics_name)+" ")])])])],1),t("a-form-model-item",{attrs:{"has-feedback":""}},[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("component.artilce.save.button"))+" ")])],1)],1),t("template",{slot:"footer"},[t("a-button",{on:{click:e.closeModal}},[e._v(e._s(e.$t("component.artilce.close.button")))])],1)],2)],1)},i=[],n=a("5530"),s=(a("d81d"),a("2dd7")),r=a("3a10"),l=a("1b6c"),c={name:"ordersShips",data:function(){return{visable:!1,formTitle:"",forms:[],rules:{logistics_name:[{required:!0,trigger:"change"}],shipment_id:[{required:!0,trigger:"change"}]},itemLayout:{labelCol:{lg:2},wrapperCol:{lg:22}},shipForm:{ships:"",logistics_name:""}}},props:{options:{type:Array,default:function(){return[{key:Object(l["b"])("view.express.foreign_express1"),label:"GJWL",option:[{key:"SFGJ",value:"顺丰国际"},{key:"DHWL",value:"ヤマト運輸"},{key:"ZCJB",value:"佐川急便"},{key:"RBYZ",value:"日本郵便"}]},{key:Object(l["b"])("view.express.foreign_express2"),label:"GNWL",option:[{key:"SFEXPRESS",value:"顺丰"},{key:"STO",value:"申通"},{key:"YTO",value:"申通"},{key:"ZTO",value:"申通"},{key:"HTKY",value:"百世快递"},{key:"BSKY",value:"百世快运"},{key:"YUNDA",value:"韵达"},{key:"JD",value:"京东"},{key:"EMS",value:"EMS"},{key:"ZTO56",value:"中通快运"},{key:"AAEWEB",value:"AAE"},{key:"ARAMEX",value:"Aramex"},{key:"DHL",value:"内件DHL"},{key:"DPEX",value:"DPEX"},{key:"DEXP",value:"D速"},{key:"EWE",value:"EWE"},{key:"FEDEX",value:"FedEx"},{key:"PCA",value:"PCA"},{key:"TNT",value:"TNT"},{key:"UPS",value:"UPS"},{key:"ANJELEX",value:"安捷"},{key:"ANE",value:"安能"},{key:"ANEEX",value:"安能快递"},{key:"ANXINDA",value:"安信达"},{key:"EES",value:"百福东方"},{key:"FLYWAYEX",value:"程光"},{key:"DTW",value:"大田"},{key:"DEPPON",value:"德邦"},{key:"GCE",value:"飞洋"},{key:"PHOENIXEXP",value:"凤凰"},{key:"FTD",value:"富腾达"},{key:"GSD",value:"共速达"},{key:"GTO",value:"国通"},{key:"BLACKDOG",value:"黑狗"},{key:"HENGLU",value:"恒路"},{key:"HYE",value:"鸿远"},{key:"HQKY",value:"华企"},{key:"JOUST",value:"急先达"},{key:"TMS",value:"加运美"},{key:"JIAJI",value:"佳吉"},{key:"JIAYI",value:"佳怡"},{key:"KERRY",value:"嘉里物流"},{key:"HREX",value:"锦程快递"},{key:"PEWKEE",value:"晋越"},{key:"KKE",value:"京广"},{key:"JIUYESCM",value:"九曳"},{key:"KYEXPRESS",value:"跨越速运"},{key:"FASTEXPRESS",value:"快捷"},{key:"LTS",value:"联昊通"},{key:"LBEX",value:"龙邦"},{key:"YIMIDIDA",value:"壹米滴答"},{key:"RRS",value:"日日顺物流"},{key:"YXWL",value:"宇鑫物流"},{key:"DJ56",value:"东骏快捷"},{key:"AYCA",value:"澳邮专线"},{key:"CITY100",value:"城市100"},{key:"D4PX",value:"递四方速递"},{key:"GTSD",value:"广通"},{key:"JTKD",value:"捷特快递"},{key:"MB",value:"民邦快递"},{key:"MLWL",value:"明亮物流"},{key:"PANEX",value:"泛捷快递"},{key:"QXT",value:"全信通"},{key:"SAD",value:'赛澳递"'},{key:"SDWL",value:"上大物流"},{key:"STWL",value:"速腾快递"},{key:"WJK",value:"万家康"},{key:"ZENY",value:"增益快递"},{key:"CAE",value:"民航"},{key:"ND56",value:"能达"},{key:"EFSPOST",value:"平安快递"},{key:"CHINZ56",value:"秦远物流"},{key:"QCKD",value:"全晨"},{key:"QFKD",value:"全峰"},{key:"APEX",value:"全一"},{key:"RFD",value:"如风达"},{key:"SFC",value:"三态"},{key:"SFWL",value:"盛丰"},{key:"SHENGHUI",value:"盛辉"},{key:"SDEX",value:"顺达快递"},{key:"SUNING",value:"苏宁"},{key:"SURE",value:"速尔"},{key:"HOAU",value:"天地华宇"},{key:"TTKDEX",value:"天天"},{key:"VANGEN",value:"万庚"},{key:"WANJIA",value:"万家物流"},{key:"EWINSHINE",value:"万象"},{key:"GZWENJIE",value:"文捷航空"},{key:"XBWL",value:"新邦"},{key:"XFEXPRESS",value:"信丰"},{key:"BROADASIA",value:"亚风"},{key:"YIEXPRESS",value:"宜送"},{key:"QEXPRESS",value:"易达通"},{key:"ETD",value:"易通达"},{key:"UC56",value:"优速"},{key:"CHINAPOST",value:"邮政包裹"},{key:"YFHEX",value:"原飞航"},{key:"YADEX",value:"源安达"},{key:"YCGWL",value:"远成"},{key:"YFEXPRESS",value:"越丰"},{key:"YTEXPRESS",value:"运通"},{key:"ZJS",value:"宅急送"},{key:"ZMKMEX",value:"芝麻开门"},{key:"COE",value:"中国东方"},{key:"CRE",value:"中铁快运"},{key:"ZTKY",value:"中铁物流"},{key:"CNPL",value:"中邮"},{key:"PEISI",value:"配思航宇"},{key:"BDT",value:"八达通"},{key:"CJKD",value:"城际快递"},{key:"FKD",value:"飞康达"},{key:"HQSY",value:"环球速运"},{key:"JAD",value:"捷安达"},{key:"JGWL",value:"景光物流"},{key:"MK",value:"美快"},{key:"PADTF",value:"平安达腾飞快递"},{key:"QRT",value:"全日通速递"},{key:"RFEX",value:"瑞丰速递"},{key:"SAWL",value:"圣安物流"},{key:"ST",value:"速通物流"},{key:"SUBIDA",value:"速必达物流"},{key:"XJ",value:"新洁物流"},{key:"ZYWL",value:"中邮物流"}]}]}},orders:{type:Array,default:function(){return[]}}},components:{AntModal:s["default"]},methods:{getOption:function(){var e=this,t={};Object(r["i"])({page:1,limit:150}).then((function(a){for(var o=a.list,i=0;i<o.length;i++){var n=o[i],s=n.foreign_express;t[s]||(t[s]=[]),t[s].push({key:n.logistics_code,value:n.logistics_name})}return e.options[0].option=t[2],e.options[1].option=t[1],e.options}))},closeModal:function(){this.visable=!1},handleClick:function(){this.formTitle=this.$t("view.order.list.ship.list.shippings"),this.visable=!0},handleChange1:function(e){this.shipForm.logistics_name=e},handleChange:function(e,t){this.forms[t].logistics_name=e},submitForm:function(){var e=this,t=[],a=this.shipForm.ships.split("\n");a.map((function(e){var a=e.split(",");t.push({order_id:a[0],logistics_name:a[1],shipment_id:a[2]})})),t&&t.length>0&&Object(r["C"])({chosen:t}).then((function(t){0===t.code&&(e.$message.success(e.$t("view.order.list.ship.list.success")),e.visable=!1,e.$emit("ok"))}))}}},d=Object(n["a"])({},c),u=d,m=a("2877"),p=Object(m["a"])(u,o,i,!1,null,null,null);t["default"]=p.exports},2408:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("a-row",{staticClass:"module-list",attrs:{gutter:[24,24]}},[t("a-col",{attrs:{span:24}},[t("div",{staticClass:"module-in module-in01 modlule-show",staticStyle:{"min-height":"120px",height:"auto"}},[t("a-page-header",{attrs:{ghost:!1,title:e.$t("view.seo.baidu.table.domain.title")}},[t("template",{slot:"extra"},[t("domain-list",{on:{changedomain:e.getChangeDomain}})],1)],2),t("p",{staticStyle:{"padding-left":"20px","padding-right":"20px"}},[e._v(" "+e._s(e.$t("domain.list.msg"))),t("br"),t("span",{staticStyle:{color:"#bf0000"}},[t("a",{attrs:{href:e.main_domain.type+"://"+e.main_domain.domain,target:"_blank"}},[e._v(" "+e._s(e.main_domain.domain?e.main_domain.type+"://"+e.main_domain.domain:"暂无主域名,请及时设置")+" ")])])]),t("div",[e.domainContent&&e.domainContent.content?t("div",{staticStyle:{"margin-top":"10px","padding-left":"20px","padding-right":"20px","margin-bottom":"10px"},domProps:{innerHTML:e._s(e.domainContent.content)}}):e._e()])],1)])],1)],1),t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:e.$t("domain.form.domain")}},[t("a-input",{attrs:{placeholder:"","allow-clear":""},model:{value:e.queryParam.domain,callback:function(t){e.$set(e.queryParam,"domain",t)},expression:"queryParam.domain"}})],1)],1),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.article.list.article.query")))],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(" "+e._s(e.$t("view.article.list.article.reset")))],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e.showAddModal?t("domain-add-form",{ref:"domainAddForm",attrs:{shop_id:e.shopId},on:{ok:e.getList,close:function(t){e.showAddModal=!1}}}):e._e(),e.showEditModal?t("domain-edit-form",{ref:"domainEditForm",on:{ok:e.getList,close:function(t){e.showEditModal=!1}}}):e._e(),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:e.$t("domain.list.table.title"),loading:e.loading,rowKey:"id",size:"middle",tableKey:"system-notic-NoticIndex-table","format-conditions":!0,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,a){return e.$t("view.article.list.article.table.num",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"domain",fn:function(a){var o=a.record;return t("span",{},[t("a",{attrs:{href:o.type+"://"+o.domain,target:"_blank"}},[e._v(e._s(o.type+"://"+o.domain))])])}},{key:"is_main",fn:function(a){var o=a.text,i=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("noticeTypeFilter")(o)}},[e._v(" "+e._s(1==i.is_main?e.$t("paypal.setting.is_sand_box.true"):e.$t("paypal.setting.is_sand_box.false"))+" ")])],1)}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:domain:edit"],expression:"['system:domain:edit']"}],on:{click:function(t){return e.handleUpdate(o)}}},[e._v(" "+e._s(e.$t("view.article.list.article.update"))+" ")]),t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleDelete(o)}}},[e._v(" "+e._s(e.$t("src.views.member.grade.table.operation.delete"))+" ")])],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:add"],expression:"['system:notice:add']"}],attrs:{type:"primary"},on:{click:e.handleAdd}},[t("a-icon",{attrs:{type:"plus"}}),e._v(e._s(e.$t("view.article.list.article.add"))+" ")],1)],1)])],1)],1)},i=[],n=a("5530"),s=(a("d81d"),a("5d9e")),r=a("8f91"),l=a("2f62"),c=a("473fd"),d=a("b318"),u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"attachList"},[e.hiddenBtn?e._e():t("a-button",{staticStyle:{color:"#1858db","font-size":"14px"},attrs:{type:"link"},on:{click:e.openGoodsList}},[e._v(" "+e._s(e.$t("domain.list.change.btn"))+" ")]),t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"500",modalWidth:"600"},on:{cancel:e.cancel,ok:e.backChecked}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("advance-table",{attrs:{loading:e.loading,size:"middle","row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:"radio"},"format-conditions":!0,columns:e.columns,"data-source":e.List,rowKey:"domain_id",tableKey:"test-cat-catlist-table",pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.attach.list.table.num",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},title:e.$t("components.memberCheckbox.table.list")},scopedSlots:e._u([{key:"domain",fn:function(a){var o=a.record;return t("span",{},[t("a",{attrs:{href:o.type+"://"+o.domain,target:"_blank"}},[e._v(e._s(o.type+"://"+o.domain))])])}}])})],1)])],1)},m=[],p=a("2dd7"),h=a("1b6c"),f={name:"domainList",components:{AntModal:p["default"],AdvanceTable:s["default"]},created:function(){this.initColunmns()},computed:Object(n["a"])({},Object(l["c"])({shop_id:"shopId"})),props:{type:{default:"radio"},hiddenBtn:!1,value:""},data:function(){return{open:!1,formTitle:this.$t("domain.list.change.btn"),loading:!1,queryParam:{shop_id:0,page:1,limit:10},selectedRowKeys:[],List:[],total:0,columns:[],multiple:!0}},methods:{openGoodsList:function(){this.open=!0,this.getList()},cancel:function(){this.open=!1},changeShop:function(e){this.queryParam.shop_id=e,this.getList()},resetQuery:function(){this.queryParam.page=1,this.queryParam.limit=10,this.getList()},getList:function(){var e=this;this.shop_id&&(this.queryParam.shop_id=this.shop_id),this.loading=!0,Object(r["d"])(this.queryParam).then((function(t){e.List=t.list,e.total=t.total_count,e.loading=!1})),Object(r["c"])(this.queryParam.shop_id).then((function(t){t&&(e.selectedRowKeys=[t.domain_id])}))},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t[0]},changeSize:function(e,t){this.queryParam.page=e,this.queryParam.limit=t,this.getList()},onShowSizeChange:function(e,t){this.queryParam.limit=t,this.getList()},backChecked:function(){this.$emit("changedomain",this.selectedRows),this.cancel()},initColunmns:function(){this.columns=[{title:Object(h["a"])("domain.form.domain"),dataIndex:"domain",width:"200px",scopedSlots:{customRender:"domain"}}],this.getList()}}},b=Object(n["a"])({},f),v=b,y=a("2877"),g=Object(y["a"])(v,u,m,!1,null,null,null),_=g.exports,k=a("c7a1"),w={name:"Domain",components:{AdvanceTable:s["default"],DomainAddForm:c["default"],DomainEditForm:d["default"],DomainList:_},data:function(){return{list:[],main_domain:{},advanced:!1,loading:!1,sunloading:!1,total:0,labelCol:{span:6},wrapperCol:{span:18},queryParam:{page:1,limit:10,domain:""},addModalRefName:"addModal",columns:[{title:this.$t("domain.form.domain"),dataIndex:"domain",scopedSlots:{customRender:"domain"},width:"30%"},{title:this.$t("view.seo.baidu.table.domain.title"),dataIndex:"is_main",scopedSlots:{customRender:"is_main"},align:"center"},{title:this.$t("view.public.cat.oprate.title"),dataIndex:"operation",width:"200",scopedSlots:{customRender:"operation"}}],showAddModal:!1,showEditModal:!1,domainContent:null}},filters:{noticeTypeFilter:function(e){var t="blue";return"1"===e&&(t="orange"),t}},created:function(){this.getMainDomain(),this.getList(),this.getDomainContent()},computed:Object(n["a"])({},Object(l["c"])(["shopId"])),watch:{},methods:{getDomainContent:function(){var e=this;Object(k["k"])({key:"domainContent"}).then((function(t){t.value&&"string"===typeof t.value&&(t.value=JSON.parse(t.value)),e.domainContent=t.value}))},getList:function(){var e=this;this.loading=!0,this.shopId&&(this.queryParam.shop_id=this.shopId),Object(r["d"])(this.queryParam).then((function(t){e.list=t.list,e.total=t.total_count,e.loading=!1}))},getMainDomain:function(){var e=this;Object(r["c"])(this.shopId).then((function(t){e.main_domain=t,t.domain&&(e.domain=t.domain)}))},handleQuery:function(){this.queryParam.page=1,this.getList()},resetQuery:function(){this.queryParam={page:1,limit:10,domain:""},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.limit=t,this.getList()},onSizeChange:function(e,t){this.queryParam.page=1,this.queryParam.limit=t,this.getList()},changeSize:function(e,t){this.queryParam.page=e,this.queryParam.limit=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleAdd:function(){var e=this;this.showAddModal=!0,this.$nextTick((function(){return e.$refs.domainAddForm.handleAdd()}))},handleUpdate:function(e){var t=this;this.showEditModal=!0,this.$nextTick((function(){return t.$refs.domainEditForm.handleUpdate(e)}))},getChangeDomain:function(e){var t=this;e&&(e.is_main=1,Object(r["e"])(e).then((function(e){t.$message.success("主域名变更成功",3),t.getMainDomain(),t.getList()})))},handleDelete:function(e){var t=this;this.$confirm({title:this.$t("view.item.skulist.message.modal.delete.title"),onOk:function(){return Object(r["a"])(e.domain_id).then((function(){t.getList(),t.$message.success(t.$t("view.item.skulist.message.delete.suceess"),3)}))},onCancel:function(){}})}}},S=w,x=Object(y["a"])(S,o,i,!1,null,null,null);t["default"]=x.exports},3521:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a4d3"),a("e01a");var o=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.openModal}},[e._v(e._s(e.$t("components.bigcommerceGoods.open.button")))]),e.open?t("ant-modal",{attrs:{visible:e.open,"modal-title":e.modalTitle,"adjust-size":!0,modalHeight:"680",modalWidth:"820"},on:{cancel:e.cancelEditGoodInfo,ok:e.okEditGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form-model",{ref:"googleForm",attrs:{model:e.formData,rules:e.rules}},[t("a-row",{attrs:{gutter:12}},[t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.list.itemTitle"),prop:"name",required:""}},[t("a-input",{model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("components.dyProduct.dyProduct.bran"),prop:"brand_id",required:""}},[t("a-select",{staticStyle:{width:"100%"},on:{change:e.changeBrand},model:{value:e.formData.brand_id,callback:function(t){e.$set(e.formData,"brand_id",t)},expression:"formData.brand_id"}},e._l(e.brandList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("table.mall_cats"),prop:"categories",required:""}},[t("a-select",{staticStyle:{width:"100%"},attrs:{mode:"multiple"},on:{change:e.changeBrand},model:{value:e.formData.categories,callback:function(t){e.$set(e.formData,"categories",t)},expression:"formData.categories"}},e._l(e.shopCatList,(function(a){return t("a-select-option",{key:a.category_id,attrs:{value:a.category_id}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.list.price"),prop:"price",required:""}},[t("a-input",{model:{value:e.formData.price,callback:function(t){e.$set(e.formData,"price",t)},expression:"formData.price"}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("components.bigcommerce.weight"),prop:"weight",required:""}},[t("a-input",{attrs:{suffix:"kg"},model:{value:e.formData.weight,callback:function(t){e.$set(e.formData,"weight",t)},expression:"formData.weight"}})],1)],1),t("a-col",{attrs:{lg:24}},[t("a-row",{attrs:{gutter:[12,12]}},e._l(e.formData.images,(function(e,a){return t("a-col",{key:a,attrs:{lg:4}},[t("div",{staticStyle:{width:"100%",height:"100%"}},[t("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.image_url}})])])})),1)],1),t("a-col",{attrs:{lg:24}},[t("a-table",{attrs:{columns:e.stockColumns,"data-source":e.formData.variants,pagination:!1},scopedSlots:e._u([{key:"image",fn:function(e,a){return t("span",{},[t("div",[t("img",{staticStyle:{height:"80px"},attrs:{src:a.image_url}})])])}},{key:"calculated_price",fn:function(a,o){return t("span",{},[t("div",[t("a-input-number",{model:{value:o.calculated_price,callback:function(t){e.$set(o,"calculated_price",t)},expression:"record.calculated_price"}})],1)])}},{key:"sku",fn:function(a,o){return t("span",{},[t("div",[t("a-input-number",{model:{value:o.sku,callback:function(t){e.$set(o,"sku",t)},expression:"record.sku"}})],1)])}},{key:"option_values",fn:function(a,o){return t("span",{},[o.option_values?t("div",e._l(o.option_values,(function(a,i){return t("div",{key:o.sku_id+"---"+i,staticStyle:{display:"flex"}},[t("div",{staticStyle:{"margin-right":"5px"}},[t("a-input",{staticStyle:{width:"100px"},model:{value:a.option_display_name,callback:function(t){e.$set(a,"option_display_name",t)},expression:"option.option_display_name"}})],1),t("div",[t("a-input",{model:{value:a.label,callback:function(t){e.$set(a,"label",t)},expression:"option.label"}})],1)])})),0):e._e()])}}],null,!1,1698425115)})],1),t("a-col",{attrs:{lg:24}},[t("v-ditor",{ref:"ComDitor",attrs:{good_id:e.goods.good_id,value:e.formData.description,updateStatus:e.aiTsUpdate},on:{"update:value":function(t){return e.$set(e.formData,"description",t)},"update:updateStatus":function(t){e.aiTsUpdate=t},"update:update-status":function(t){e.aiTsUpdate=t}}})],1)],1)],1)],1)]):e._e()],1)},i=[],n=a("5530"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("a15b"),a("7db0"),a("a026")),r=a("1b6c"),l=a("b775"),c={brandGet:"/bigcommerce/brands",shopCat:"/bigcommerce/categories",goodAdd:"/bigcommerce/products/adding",goodList:"/bigcommerce/products/listing"};function d(e){return Object(l["b"])({url:c.brandGet,method:"get",params:e})}function u(e){return Object(l["b"])({url:c.shopCat,method:"get",params:e})}function m(e){return Object(l["b"])({url:c.goodAdd,method:"post",data:e})}var p=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),h=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"1605"))})),f=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"68dd"))})),b=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"5ac8"))})),v={name:"bigcommerceGoods",data:function(){return{open:!1,modalTitle:"",formData:{},channelList:[{name:Object(r["b"])("components.googleGoods.channel.local"),value:"local"},{name:Object(r["b"])("components.googleGoods.channel.online"),value:"online"}],rules:{},brandQuery:{page:1,limit:10},shopCatQuery:{page:1,limit:10},brandList:[],shopCatList:[],stockColumns:[{title:Object(r["b"])("components.bigcommerce.skulist.image"),dataIndex:"image",scopedSlots:{customRender:"image"}},{title:Object(r["b"])("components.bigcommerce.skulist.option_values"),dataIndex:"option_values",scopedSlots:{customRender:"option_values"}},{title:Object(r["b"])("components.bigcommerce.skulist.calculated_price"),dataIndex:"calculated_price",scopedSlots:{customRender:"calculated_price"}}],aiTsUpdate:!1}},props:{goods:null,sellerId:{type:String,default:""}},methods:{openModal:function(e){this.initData(this.goods),this.brandGet(),this.shopCatGet(),this.open=!0},saveInit:function(){this.initData(this.goods),this.okEditGoodInfo()},brandGet:function(){var e=this;d(this.brandQuery).then((function(t){e.brandList=t.list}))},shopCatGet:function(){var e=this;u(this.shopCatQuery).then((function(t){t.list&&(e.shopCatList=t.list)}))},initData:function(e){var t=this;this.goods=e,this.modalTitle=this.$t("components.bigcommerce.modal.title"),this.pathList=[],this.formData={target_country:"",goods_id:e.good_id,content_language:""},m({bee_hole_goods_id:e.good_id}).then((function(e){e.payload&&(t.formData=e.payload,t.formData.categories||(t.formData.categories=[]),t.formData=JSON.parse(JSON.stringify(t.formData)))}))},backLang:function(e){this.formData.content_language=e},okEditGoodInfo:function(){var e=this,t={payload:JSON.parse(JSON.stringify(this.formData)),bee_hole_goods_id:this.goods.good_id};t.payload.variants=t.payload.variants.map((function(e){if(!e.sku){var t=e.option_values.map((function(e){return e.option_display_name+"-"+e.label}));e.sku=t.join(";")}return e})),m(t).then((function(t){0===t.code&&(e.cancelEditGoodInfo(),e.$message.success(e.$t("components.google.modal.success")),e.$emit("ok",t))}))},cancelEditGoodInfo:function(){this.open=!1},changeBrand:function(e){var t=this.brandList.find((function(t){return t.id===e}));t&&(this.formData.brand_id=t.id,this.formData.brand_name=t.name)}},components:{AntModal:p,PsCountrySelect:h,ViewSelect:f,VDitor:b}},y=Object(n["a"])({},v),g=y,_=a("2877"),k=Object(_["a"])(g,o,i,!1,null,null,null);t["default"]=k.exports},"3eac":function(e,t,a){"use strict";a.r(t);a("99af");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"任务名称"}},[t("a-input",{attrs:{placeholder:"请输入任务名称","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.jobName,callback:function(t){e.$set(e.queryParam,"jobName",t)},expression:"queryParam.jobName"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"任务组名"}},[t("a-input",{attrs:{placeholder:"请选择任务组名","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.jobGroup,callback:function(t){e.$set(e.queryParam,"jobGroup",t)},expression:"queryParam.jobGroup"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"\n 任务状态"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择任务状态","allow-clear":""},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},e._l(e.statusOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("view-form",{ref:"viewForm",attrs:{jobGroupOptions:e.jobGroupOptions}}),t("create-form",{ref:"createForm",attrs:{statusOptions:e.statusOptions,jobGroupOptions:e.jobGroupOptions},on:{ok:e.getList}}),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"定时任务",loading:e.loading,rowKey:"jobId",tableKey:"monitor-job-index-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"jobGroup",fn:function(a){a.text;var o=a.record;return t("span",{},[e._v(" "+e._s(e.jobGroupFormat(o))+" ")])}},{key:"status",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a-popconfirm",{attrs:{"ok-text":"是","cancel-text":"否"},on:{confirm:function(t){return e.confirmHandleStatus(o)},cancel:function(t){return e.cancelHandleStatus(o)}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("确认"),t("b",[e._v(e._s("1"===o.status?"开启":"关闭"))]),e._v(e._s(o.jobName)+"的任务吗?")]),t("a-switch",{attrs:{"checked-children":"开","un-checked-children":"关",checked:0==o.status}})],1)],1)}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a-popconfirm",{attrs:{"ok-text":"是","cancel-text":"否"},on:{confirm:function(t){return e.confirmHandleRun(o)},cancel:function(t){return e.cancelHandleRun(o)}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("确认执行一次"+e._s(o.jobName)+"的任务吗?")]),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:changeStatus"],expression:"['monitor:job:changeStatus']"}]},[t("a-icon",{attrs:{type:"caret-right"}}),e._v(" 执行一次 ")],1)]),t("a-divider",{attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:edit"],expression:"['monitor:job:edit']"}],on:{click:function(t){return e.$refs.createForm.handleUpdate(o)}}},[t("a-icon",{attrs:{type:"eye"}}),e._v("修改 ")],1),t("a-divider",{attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:query"],expression:"['monitor:job:query']"}],on:{click:function(t){return e.$refs.viewForm.handleView(o)}}},[t("a-icon",{attrs:{type:"eye"}}),e._v("详细 ")],1)],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:add"],expression:"['monitor:job:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.$refs.createForm.handleAdd()}}},[t("a-icon",{attrs:{type:"plus"}}),e._v("新增 ")],1),e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:export"],expression:"['monitor:job:export']"}],attrs:{type:"primary"},on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:query"],expression:"['monitor:job:query']"}],attrs:{type:"dashed"},on:{click:e.handleJobLog}},[t("a-icon",{attrs:{type:"snippets"}}),e._v("日志 ")],1)],1)])],1)],1)},i=[],n=(a("d81d"),a("a159")),s=a("4da9"),r=a("bad6"),l=a("5d9e"),c={name:"Job",components:{CreateForm:s["default"],ViewForm:r["default"],AdvanceTable:l["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],labelCol:{span:6},wrapperCol:{span:18},advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,total:0,statusOptions:[],jobGroupOptions:[],dateRange:[],queryParam:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0},columns:[{title:"任务编号",dataIndex:"jobId",width:"70px",align:"center"},{title:"任务名称",dataIndex:"jobName",ellipsis:!0,align:"center"},{title:"任务组名",dataIndex:"jobGroup",scopedSlots:{customRender:"jobGroup"},align:"center"},{title:"调用目标字符串",dataIndex:"invokeTarget",ellipsis:!0,align:"center"},{title:"cron执行表达式",dataIndex:"cronExpression",ellipsis:!0,align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"备注",dataIndex:"remark",ellipsis:!0},{title:"操作",dataIndex:"operation",width:"250px",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data}))},computed:{},watch:{},methods:{getList:function(){var e=this;this.loading=!0,Object(n["f"])(this.queryParam).then((function(t){e.list=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e){return this.selectDictLabel(this.statusOptions,e.status)},jobGroupFormat:function(e){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.jobId})),this.single=1!==e.length,this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleJobLog:function(){this.$router.push({path:"/log/joblog"})},confirmHandleStatus:function(e){var t=this,a="1"===e.status?"启用":"停用";e.status="0"===e.status?"1":"0",Object(n["b"])(e.jobId,e.status).then((function(){t.$message.success(a+"成功",3)})).catch((function(){this.$message.error(a+"发生异常",3)}))},cancelHandleStatus:function(e){},confirmHandleRun:function(e){var t=this;Object(n["g"])(e.jobId,e.jobGroup).then((function(){t.$message.success("执行成功",3)})).catch((function(){this.$message.error("发生异常",3)}))},cancelHandleRun:function(e){},handleDelete:function(e){var t=this;this.ids=this.selectedRows.map((function(e){return e.jobId}));var a=e.jobId||this.ids;this.$confirm({title:"确认删除所选中数据?",content:"当前选中定时任务编号为"+a+"的数据",onOk:function(){return Object(n["c"])(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(n["d"])(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})}}},d=c,u=a("2877"),m=Object(u["a"])(d,o,i,!1,null,null,null);t["default"]=m.exports},"473fd":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalWidth:"500",modalHeight:"300"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.form,rules:e.rules,layout:"vertical"},slot:"content"},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:24,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("domain.form.domain"),prop:"domain"}},[t("a-input-group",{attrs:{compact:""}},[t("a-select",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[t("a-select-option",{attrs:{value:"https"}},[e._v("https")]),t("a-select-option",{attrs:{value:"http"}},[e._v("http")])],1),t("a-input",{staticStyle:{width:"80%"},attrs:{"addon-before":"://",placeholder:e.$t("domain.form.domain.placeholder")},model:{value:e.form.domain,callback:function(t){e.$set(e.form,"domain",t)},expression:"form.domain"}})],1)],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$t("compoent.oauth.modal.close")))]),t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("compoent.oauth.form.button"))+" ")])],1)],2)},i=[],n=a("5530"),s=a("9722"),r=Object(n["a"])({},s["default"]),l=r,c=(a("aa29"),a("2877")),d=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=d.exports},"4da9":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"750px","label-col":4,title:e.formTitle,"body-style":{height:"calc(100vh - 100px)",overflow:"auto"},"wrapper-col":14,visible:e.open},on:{close:e.onClose}},[t("a-form-model",{ref:"form",attrs:{model:e.form,rules:e.rules}},[t("a-form-model-item",{attrs:{label:"任务名称",prop:"jobName"}},[t("a-input",{attrs:{placeholder:"请输入任务名称"},model:{value:e.form.jobName,callback:function(t){e.$set(e.form,"jobName",t)},expression:"form.jobName"}})],1),t("a-form-model-item",{attrs:{label:"任务分组",prop:"jobGroup"}},[t("a-select",{attrs:{placeholder:"请选择"},model:{value:e.form.jobGroup,callback:function(t){e.$set(e.form,"jobGroup",t)},expression:"form.jobGroup"}},e._l(e.jobGroupOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1),t("a-form-model-item",{attrs:{prop:"invokeTarget"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 调用方法  "),t("a-popover",{attrs:{placement:"topLeft"}},[t("template",{slot:"content"},[t("p",[e._v("Class类调用示例:"),t("code",[e._v("com.aidex.quartz.task.RyTask.ryParams('ry')")])]),t("p",[e._v("参数说明:支持字符串,布尔类型,长整型,浮点型,整型")])]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(" Bean调用示例:"),t("code",[e._v("ryTask.ryParams('ry')")])]),t("a-icon",{attrs:{type:"question-circle-o"}})],2)],1),t("a-input",{attrs:{placeholder:"请输入调用目标字符串"},model:{value:e.form.invokeTarget,callback:function(t){e.$set(e.form,"invokeTarget",t)},expression:"form.invokeTarget"}})],1),t("a-form-model-item",{attrs:{label:"cron表达式",prop:"cronExpression"}},[t("a-input",{attrs:{placeholder:"请输入cron执行表达式"},model:{value:e.form.cronExpression,callback:function(t){e.$set(e.form,"cronExpression",t)},expression:"form.cronExpression"}})],1),t("a-form-model-item",{attrs:{label:"是否并发",prop:"concurrent"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.concurrent,callback:function(t){e.$set(e.form,"concurrent",t)},expression:"form.concurrent"}},[t("a-radio-button",{attrs:{value:"0"}},[e._v("允许")]),t("a-radio-button",{attrs:{value:"1"}},[e._v("禁止")])],1)],1),t("a-form-model-item",{attrs:{label:"错误策略",prop:"misfirePolicy"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.misfirePolicy,callback:function(t){e.$set(e.form,"misfirePolicy",t)},expression:"form.misfirePolicy"}},[t("a-radio-button",{attrs:{value:"1"}},[e._v("立即执行")]),t("a-radio-button",{attrs:{value:"2"}},[e._v("执行一次")]),t("a-radio-button",{attrs:{value:"3"}},[e._v("放弃执行")])],1)],1),t("a-form-model-item",{attrs:{label:"状态",prop:"status"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(a,o){return t("a-radio",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1),t("a-form-model-item",{attrs:{label:"备注",prop:"remark"}},[t("a-input",{attrs:{placeholder:"请输入备注",type:"textarea","allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),t("div",{staticClass:"bottom-control"},[t("a-space",[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")]),t("a-button",{attrs:{type:"dashed"},on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)],1)],1)},i=[],n=a("a159"),s={name:"CreateForm",props:{statusOptions:{type:Array,required:!0},jobGroupOptions:{type:Array,required:!0}},data:function(){return{loading:!1,formTitle:"",form:{jobId:void 0,jobName:void 0,jobGroup:void 0,invokeTarget:void 0,cronExpression:void 0,misfirePolicy:"1",concurrent:"1",status:"0"},open:!1,openView:!1,rules:{jobName:[{required:!0,message:"任务名称不能为空",trigger:"blur"}],invokeTarget:[{required:!0,message:"调用目标字符串不能为空",trigger:"blur"}],cronExpression:[{required:!0,message:"cron执行表达式不能为空",trigger:"blur"}]}}},filters:{},created:function(){},computed:{},watch:{},methods:{handleView:function(e){var t=this;Object(n["e"])(e.jobId).then((function(e){t.form=e.data,t.openView=!0}))},onCloseView:function(){this.openView=!1},onClose:function(){this.open=!1},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={jobId:void 0,jobName:void 0,jobGroup:void 0,invokeTarget:void 0,cronExpression:void 0,misfirePolicy:"1",concurrent:"1",status:"0"}},handleAdd:function(){this.reset(),this.open=!0,this.formTitle="添加任务"},handleUpdate:function(e,t){var a=this;this.reset();var o=e?e.jobId:t;Object(n["e"])(o).then((function(e){a.form=e.data,a.open=!0,a.formTitle="修改任务"}))},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;void 0!==e.form.jobId?Object(n["h"])(e.form).then((function(t){e.$message.success("修改成功",3),e.open=!1,e.$emit("ok")})):Object(n["a"])(e.form).then((function(t){e.$message.success("新增成功",3),e.open=!1,e.$emit("ok")}))}))}}},r=s,l=a("2877"),c=Object(l["a"])(r,o,i,!1,null,null,null);t["default"]=c.exports},"51ee":function(e,t,a){"use strict";a("953b")},5911:function(e,t,a){"use strict";a.r(t);a("b680");var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"padding-card"},[t("a-spin",{attrs:{tip:"正在加载缓存监控数据,请稍后!",spinning:e.loading}},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:24}},[t("a-card",{attrs:{title:"基本信息",bordered:!1}},[t("a-descriptions",{attrs:{column:5}},[t("a-descriptions-item",{attrs:{label:"Redis版本"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.redis_version))]):e._e()]),t("a-descriptions-item",{attrs:{label:"运行模式"}},[e.cache.info?t("span",[e._v(e._s("standalone"==e.cache.info.redis_mode?"单机":"集群"))]):e._e()]),t("a-descriptions-item",{attrs:{label:"端口"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.tcp_port))]):e._e()]),t("a-descriptions-item",{attrs:{label:"客户端数"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.connected_clients))]):e._e()]),t("a-descriptions-item",{attrs:{label:"运行时间(天)"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.uptime_in_days))]):e._e()]),t("a-descriptions-item",{attrs:{label:"使用内存"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.used_memory_human))]):e._e()]),t("a-descriptions-item",{attrs:{label:"使用CPU"}},[e.cache.info?t("span",[e._v(e._s(parseFloat(e.cache.info.used_cpu_user_children).toFixed(2)))]):e._e()]),t("a-descriptions-item",{attrs:{label:"内存配置"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.maxmemory_human))]):e._e()]),t("a-descriptions-item",{attrs:{label:"AOF是否开启"}},[e.cache.info?t("span",[e._v(e._s("0"==e.cache.info.aof_enabled?"否":"是"))]):e._e()]),t("a-descriptions-item",{attrs:{label:"RDB是否成功"}},[e.cache.info?t("span",[e._v(e._s(e.cache.info.rdb_last_bgsave_status))]):e._e()]),t("a-descriptions-item",{attrs:{label:"Key数量"}},[e.cache.dbSize?t("span",[e._v(e._s(e.cache.dbSize))]):e._e()]),t("a-descriptions-item",{attrs:{label:"系统架构"}},[e.cache.info?t("span",[e._v(" "+e._s(e.cache.info.instantaneous_input_kbps)+"kps/"+e._s(e.cache.info.instantaneous_output_kbps)+"kps")]):e._e()])],1)],1)],1)],1),t("a-row",{staticStyle:{"margin-top":"16px"},attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-card",{attrs:{title:"命令统计",bordered:!1}},[t("div",{ref:"commandstats",staticStyle:{height:"380px","z-index":"2"}})])],1),t("a-col",{attrs:{span:12}},[t("a-card",{attrs:{title:"内存信息",bordered:!1}},[t("div",{ref:"usedmemory",staticStyle:{height:"380px"}})])],1)],1)],1)],1)},i=[],n=(a("d3b7"),a("159b"),a("b0c0"),a("ceee")),s=a("313e"),r={name:"Cache",data:function(){return{loading:!0,commandstats:null,usedmemory:null,cache:[]}},filters:{},created:function(){this.getList("0")},mounted:function(){var e=this;window.addEventListener("resize",(function(){e.commandstats.resize(),e.usedmemory.resize()}))},computed:{},watch:{},methods:{getList:function(e){var t=this;"0"===e&&(this.loading=!0),Object(n["c"])().then((function(a){var o=a.data;t.cache=o,"0"===e&&(t.loading=!1),t.$nextTick((function(){var e=a.data.commandStats,o=[],i=[];e.forEach((function(e){return o.push(e.name)})),e.forEach((function(e){return i.push(e.value)})),t.commandstats=s["b"](t.$refs.commandstats,"macarons"),t.commandstats.setOption({title:{textStyle:{fontSize:16,fontWeight:"600",color:"#333"},left:8,top:8},tooltip:{trigger:"axis"},grid:{left:"2%",right:"2%",bottom:"2%",top:"8%",containLabel:!0},xAxis:[{type:"category",data:o,axisTick:{alignWithLabel:!0},axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#666",fontSize:"14"}},axisLine:{lineStyle:{color:"#dfe6ff",width:1}}}],yAxis:[{type:"value"}],series:[{name:"使用次数",type:"bar",barWidth:"20%",itemStyle:{barBorderRadius:[4,4,0,0],color:new s["a"].LinearGradient(0,0,0,1,[{offset:0,color:"#2881e6"},{offset:.5,color:"#308bf2"},{offset:1,color:"#3693fb"}])},data:i}]}),t.usedmemory=s["b"](t.$refs.usedmemory,"macarons"),t.usedmemory.setOption({tooltip:{formatter:"{b} <br/>{a} : "+t.cache.info.used_memory_human},series:[{name:"峰值",type:"gauge",progress:{show:!0,width:14},color:new s["a"].LinearGradient(0,0,0,1,[{offset:0,color:"#2881e6"},{offset:.5,color:"#308bf2"},{offset:1,color:"#3693fb"}]),axisLine:{lineStyle:{width:14}},axisTick:{show:!1},splitLine:{length:4,lineStyle:{width:2,color:"#999"}},anchor:{show:!0,showAbove:!0,size:20,itemStyle:{borderWidth:4,borderColor:new s["a"].LinearGradient(0,0,0,1,[{offset:0,color:"#2881e6"},{offset:.5,color:"#308bf2"},{offset:1,color:"#3693fb"}])}},axisLabel:{distance:25,color:"#999",fontSize:14},radius:"90%",center:["50%","56%"],min:0,max:1e3,detail:{fontSize:24,valueAnimation:!0,formatter:t.cache.info.used_memory_human},data:[{value:parseFloat(t.cache.info.used_memory_human),name:"内存消耗"}]}]})}))}))}}},l=r,c=(a("51ee"),a("2877")),d=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=d.exports},"5f9b":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",[t("a-row",{attrs:{type:"flex",gutter:10}},[t("a-col",{attrs:{span:8}},[t("a-card",{staticStyle:{height:"calc(100vh - 125px)"},attrs:{bordered:!1}},[t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"缓存列表",loading:e.loading,scroll:{y:"calc(100vh - 125px)"},rowKey:"cacheId",size:"middle",isTableConfig:!1,isShowSetBtn:!1,tableKey:"monitor-cache-cache-name-list-table",customRow:e.onClickRow,"format-conditions":!0},on:{refresh:e.getList},scopedSlots:e._u([{key:"indexRender",fn:function(a){a.text,a.record;var o=a.index;return t("span",{},[e._v(" "+e._s(o+1)+" ")])}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:cache:list"],expression:"['monitor:cache:list']"}],on:{click:function(t){return e.handleClear(o)}}},[e._v(" 删除 ")])])}}])})],1)],1),t("a-col",{attrs:{span:8}},[t("a-card",{staticStyle:{height:"calc(100vh - 125px)"},attrs:{bordered:!1}},[t("advance-table",{attrs:{columns:e.cacheKeysColumns,"data-source":e.subList,title:"键名列表",scroll:{y:"calc(100vh - 125px)"},loading:e.subLoading,rowKey:"cacheKey",size:"middle",customRow:e.onClickSubRow,isTableConfig:!1,isShowSetBtn:!1,tableKey:"monitor-cache-cache-key-list-table","format-conditions":!0},on:{refresh:e.getCacheKeyList},scopedSlots:e._u([{key:"indexSubRender",fn:function(a){a.text,a.record;var o=a.index;return t("span",{},[e._v(" "+e._s(o+1)+" ")])}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:cache:list"],expression:"['monitor:cache:list']"}],on:{click:function(t){return t.stopPropagation(),e.handleClearByKey(o)}}},[e._v(" 删除 ")])])}}])})],1)],1),t("a-col",{attrs:{span:8}},[t("a-card",{staticStyle:{height:"calc(100vh - 125px)","overflow-y":"auto","overflow-x":"hidden"},attrs:{bordered:!1}},[t("a-form-model",{ref:"form",attrs:{model:e.form,layout:"vertical"}},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{offset:1,span:22}},[t("a-form-model-item",{attrs:{label:"缓存名称:",prop:"cacheName"}},[t("a-input",{attrs:{readOnly:!0},model:{value:e.form.cacheName,callback:function(t){e.$set(e.form,"cacheName",t)},expression:"form.cacheName"}})],1)],1),t("a-col",{attrs:{offset:1,span:22}},[t("a-form-model-item",{attrs:{label:"缓存键名:",prop:"cacheKey"}},[t("a-input",{attrs:{readOnly:!0},model:{value:e.form.cacheKey,callback:function(t){e.$set(e.form,"cacheKey",t)},expression:"form.cacheKey"}})],1)],1),t("a-col",{attrs:{offset:1,span:22}},[t("a-form-model-item",{attrs:{label:"缓存内容:",prop:"cacheValue"}},[t("a-textarea",{attrs:{rows:16,readOnly:!0},model:{value:e.form.cacheValue,callback:function(t){e.$set(e.form,"cacheValue",t)},expression:"form.cacheValue"}})],1)],1)],1)],1)],1)],1)],1)],1)},i=[],n=a("2909"),s=(a("7db0"),a("d3b7"),a("ceee")),r=a("5d9e"),l={name:"CacheName",components:{AdvanceTable:r["default"]},data:function(){return{list:[],cacheData:[],subList:[],selectedRowKeys:[],selectedSubRowKeys:[],selectedRows:[],selectedSubRows:[],advanced:!1,single:!0,multiple:!0,subMultiple:!0,currentSelectCacheId:"",selectItem:{},selectSubItem:{},subLoading:!1,form:{},total:0,subTotal:0,labelCol:{span:6},wrapperCol:{span:18},columns:[{title:"序号",width:"20%",align:"center",scopedSlots:{customRender:"indexRender"}},{title:"缓存名称",dataIndex:"cacheName",ellipsis:!0},{title:"备注",dataIndex:"remarks",ellipsis:!0},{title:"操作",dataIndex:"operation",width:"80px",scopedSlots:{customRender:"operation"}}],cacheKeysColumns:[{title:"序号",width:"20%",align:"center",scopedSlots:{customRender:"indexSubRender"}},{title:"缓存键名",dataIndex:"cacheKey",ellipsis:!0},{title:"操作",dataIndex:"operation",width:"100px",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){this.form={cacheName:void 0,cacheId:void 0,cacheKey:void 0,cacheValue:void 0,fileType:void 0,fileUrl:void 0,fileCreateTime:void 0,methodName:void 0,dtoValue:void 0,dto:void 0,serviceBean:void 0,status:void 0},this.getList()},computed:{},watch:{selectItem:function(e){this.renderStyle(e,"main"),this.getCacheKeyList(e.cacheId)},selectSubItem:function(e){this.renderStyle(e,"sub")}},methods:{getList:function(){var e=this;this.loading=!0,Object(s["f"])().then((function(t){e.list=t.data,e.loading=!1,e.list.length>0&&e.$nextTick((function(){return e.selectItem=e.list[0]}))}))},handleClear:function(e){var t=this;this.$confirm({title:"确认清除所选中数据的缓存吗?",onOk:function(){return Object(s["a"])(e.cacheId).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("缓存清除成功",3)}))},onCancel:function(){}})},handleClearByKey:function(e){var t=this;this.$confirm({title:"确认清除所选中数据的缓存吗?",onOk:function(){return Object(s["b"])(e.cacheId,e.cacheKey).then((function(){t.$message.success("缓存清除成功",3),Object(s["e"])(e.cacheId).then((function(e){t.subList=e.data,t.subLoading=!1}))}))},onCancel:function(){}})},getCacheKeyList:function(e){var t=this;"string"===typeof e?null===e||""===e||void 0===e?e=this.currentSelectCacheId:this.currentSelectCacheId=e:e=this.currentSelectCacheId,this.subLoading=!0,Ob