webpackJsonp([37],{Gq4G:function(t,e){},TPCG:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),r={name:"entrance",props:["entranceObj"],data:function(){return{activeName:"news_user",form:{msg:""},form2:{msg:""},thisList:{},thisList2:{},goodsList:[]}},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(i._30)({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(i._37)({limit:100}).then(function(e){t.goodsList=e.list,Object(i._30)({key:"share_goods_id"}).then(function(e){var s=e.list[0];t.form2.msg=s.value,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(i._95)(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.form2.msg,desc:e.thisList2.desc},s=e.thisList2.id;Object(i._95)(s,t).then(function(t){e.$message({type:"success",message:"修改成功!"})})})})}}},n={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":"120px"}},[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":"120px"}},[s("el-form-item",{attrs:{label:"打卡商品ID",prop:"msg",rules:[{required:!0,message:"配置信息不能为空"}]}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form2.msg,callback:function(e){t.$set(t.form2,"msg",e)},expression:"form2.msg"}},t._l(t.goodsList,function(t){return s("el-option",{key:t.id,attrs:{label:"【"+t.id+"】"+t.name,value:t.id.toString()}})}))],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")(r,n,!1,function(t){s("Gq4G")},"data-v-b6eeae80",null);e.default=o.exports}});