webpackJsonp([41],{TPCG:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s("CCn6"),n={name:"entrance",props:["entranceObj"],data:function(){return{activeName:"news_user",form:{msg:""},form2:{msg:""},thisList:{},thisList2:{}}},mounted:function(){this.first()},filters:{},methods:{handleClick:function(t){this.activeName=t.name,"news_user"===t.name?this.first():this.second()},first:function(){var t=this;Object(r._24)({key:"new_user_redirect"}).then(function(e){var s=e.list[0];t.form.msg=s.desc,t.thisList=s})},second:function(){var t=this;Object(r._24)({key:"share_goods_id"}).then(function(e){var s=e.list[0];t.form2.msg=s.desc,t.thisList2=s})},submitForm:function(t){var e=this;this.$refs[t].validate(function(s){if(!s)return console.log("error submit!!"),!1;"form"==t?e.$confirm("确认修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={key:e.thisList.key,value:e.thisList.value,desc:e.form.msg},s=e.thisList.id;console.log(s,t),Object(r._88)(s,t).then(function(t){e.$message({type:"success",message:"修改成功!"})})}):e.$confirm("确认修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={key:e.thisList2.key,value:e.thisList2.value,desc:e.form2.msg},s=e.thisList2.id;Object(r._88)(s,t).then(function(t){e.$message({type:"success",message:"修改成功!"})})})})}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticStyle:{"margin-top":"30px"}}),t._v(" "),s("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"新用户跳转链接",name:"news_user"}},[s("el-form",{ref:"form",staticClass:"demo-ruleForm",staticStyle:{width:"600px"},attrs:{model:t.form,"label-width":"100px"}},[s("el-form-item",{attrs:{label:"配置信息",prop:"msg",rules:[{required:!0,message:"配置信息不能为空"}]}},[s("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.form.msg,callback:function(e){t.$set(t.form,"msg",t._n(e))},expression:"form.msg"}})],1),t._v(" "),s("el-form-item",[t.$store.state.readonly?t._e():s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("form")}}},[t._v("修改")])],1)],1)],1),t._v(" "),s("el-tab-pane",{attrs:{label:"分享商品ID",name:"share_goods"}},[s("el-form",{ref:"form2",staticClass:"demo-ruleForm",staticStyle:{width:"600px"},attrs:{model:t.form2,"label-width":"150px"}},[s("el-form-item",{attrs:{label:"分享商品ID",prop:"msg",rules:[{required:!0,message:"配置信息不能为空"}]}},[s("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.form2.msg,callback:function(e){t.$set(t.form2,"msg",t._n(e))},expression:"form2.msg"}})],1),t._v(" "),s("el-form-item",[t.$store.state.readonly?t._e():s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("form2")}}},[t._v("修改")])],1)],1)],1)],1)],1)},staticRenderFns:[]};var o=s("VU/8")(n,i,!1,function(t){s("UOtN")},"data-v-4911cad8",null);e.default=o.exports},UOtN:function(t,e){}});