王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
2.9 KiB

webpackJsonp([61],{OyaQ:function(e,t){},ilyg:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r("mvHQ"),n=r.n(s),o=r("Xxa5"),a=r.n(o),i=r("exGp"),u=r.n(i),c={data:function(){return{subForm:{short_id:"",short_secret:""},subFormRules:{short_id:{required:!0,validator:this.$reg.isNotNull,text:"阿里云ID",reg_type:2,trigger:"blur"},short_secret:{required:!0,validator:this.$reg.isNotNull,text:"阿里云密匙",reg_type:2,trigger:"blur"}}}},created:function(){var e=this;return u()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getDetail();case 2:case"end":return t.stop()}},t,e)}))()},methods:{getDetail:function(){var e=this;return u()(a.a.mark(function t(){var r,s,n,o;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$api.system.configInfo();case 2:if(r=t.sent,s=r.code,n=r.data,200===s){t.next=7;break}return t.abrupt("return");case 7:for(o in e.subForm)e.subForm[o]=n[o];case 8:case"end":return t.stop()}},t,e)}))()},submitFormInfo:function(e){var t=this;this.$refs[e].validate(function(e){if(e){var r=JSON.parse(n()(t.subForm));t.$api.system.configUpdate(r).then(function(e){200===e.code&&t.$message.success(t.$t("tips.successSub"))})}})}}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"lb-group-news"},[r("top-nav"),e._v(" "),r("div",{staticClass:"page-main"},[r("el-form",{ref:"subForm",attrs:{model:e.subForm,rules:e.subFormRules,"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{label:"阿里云ID",prop:"short_id"}},[r("el-input",{attrs:{placeholder:"请输入阿里云ID"},model:{value:e.subForm.short_id,callback:function(t){e.$set(e.subForm,"short_id",t)},expression:"subForm.short_id"}}),e._v(" "),r("lb-tool-tips",[e._v("此处应填写自己的阿里云AccessKey ID, 登录自己的阿里云账号,\n 鼠标放到自己的头像处, 会展示出一个列表,\n 点击列表中的accesskeys就能查看到信息")])],1),e._v(" "),r("el-form-item",{attrs:{label:"阿里云密匙",prop:"short_secret"}},[r("el-input",{attrs:{placeholder:"请输入阿里云密匙"},model:{value:e.subForm.short_secret,callback:function(t){e.$set(e.subForm,"short_secret",t)},expression:"subForm.short_secret"}}),e._v(" "),r("lb-tool-tips",[e._v("此处应填写自己的阿里云Access Key Secret, 登录自己的阿里云账号,\n 鼠标放到自己的头像处, 会展示出一个列表,\n 点击列表中的accesskeys就能查看到信息")])],1),e._v(" "),r("el-form-item",[r("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:function(t){return e.submitFormInfo("subForm")}}},[e._v(e._s(e.$t("action.submit")))])],1)],1)],1)],1)},staticRenderFns:[]};var m=r("VU/8")(c,l,!1,function(e){r("OyaQ")},"data-v-5ff89624",null);t.default=m.exports}});