(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e5232"],{"92cf":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top"},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),a("form-generator",{ref:"basicForm",attrs:{"form-config":t.formConfig,"show-footer":!0,showCancel:!0,cancelText:"返回"},on:{submit:t.handleBasicSubmit,cancel:t.handleCancel},model:{value:t.formData,callback:function(e){t.formData=e},expression:"formData"}},[a("div",{attrs:{slot:"status_tip"},slot:"status_tip"},[t._v(" 图片合规检测暂时仅支持通用基线检测服务[baselineCheck], "),a("a",{staticStyle:{color:"#409eff","text-decoration":"underline"},attrs:{href:"https://common-buy.aliyun.com/?spm=a2c4g.11186623.0.0.6bf914a6dLzNVF&commodityCode=lvwang_cip_public_cn",target:"_blank"}},[t._v("开通服务")])])])],1)])])},s=[],c=a("7f70"),n=(a("e8d6"),a("8327")),o={name:"ImageCheck",data:function(){return{formData:{status:1}}},computed:Object(c["a"])(Object(c["a"])({},Object(n["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"status",width:"400px",tipType:"info",options:[{label:"开启",value:1},{label:"关闭",value:0}]}];return 1==this.formData.status&&t.push({type:"input",label:"阿里云accessKeyId",prop:"accessKeyId",required:!0,width:"400px"},{type:"input",InputType:"password",label:"阿里云accessKeySecret",prop:"accessKeySecret",required:!0,width:"400px"}),t}}),created:function(){this.init()},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){this.config.image_check&&(this.formData=this.$util.restJson(this.config.image_check))},handleBasicSubmit:function(t){var e=this;this.api.post("image_check/config/set",t).then((function(t){1==t.code?(e.$util.success(t.message),e.$store.dispatch("settings/getSetting")):e.$util.error(t.message)}))},handleCancel:function(){this.$router.back()}}},r=o,l=a("3d7a"),p=Object(l["a"])(r,i,s,!1,null,"7bdee3a4",null);e["default"]=p.exports}}]);