text: webpackJsonp([15],{Ic1o:function(a,t,e){var i=e("yUcZ");"string"==typeof i&&(i=[[a.i,i,""]]),i.locals&&(a.exports=i.locals);e("FIqI")("3686808b",i,!0,{})},gw7B:function(a,t,e){"use strict";function i(a){e("Ic1o")}Object.defineProperty(t,"__esModule",{value:!0});var o=e("QmSG"),n=e.n(o),s=e("U/9I"),l={name:"role",data:function(){return{msg:"role",arr:[{name:"role",value:"role"}],Authorization:s.a.getData("token"),formData:{id:"",mobile:""},addFormData:{jkid:"",jkName:"",jkms:""},editFormData:{jkid:"",jkName:"",jkms:""},layData:{search:"搜索输入"},searchData:{msg:""}}},methods:{add_ad:function(a){var t=this;a.preventDefault(),layer.open({type:1,area:["550px","350px"],title:"新增接口",closeBtn:1,shadeClose:!0,skin:"layui-layer-molv",btn:["确定添加","取消"],end:function(){$("#api_popup").css("display","none")},yes:function(){var a={jkId:t.addFormData.jkid,jkName:t.addFormData.jkName,jkms:t.addFormData.jkms};a=n.a.urlTransition("AddApiInfo",a),console.log(a);t.$http.apiPost("http://192.168.8.74/carauditapi/api",a).then(function(a){200==a.code&&(layer.msg("添加成功"),setTimeout(function(){layer.closeAll(),t.tableRender()},1500))})},content:$("#api_popup")})},reset:function(a){a.preventDefault(),this.searchData.msg=""},tableRender:function(){var a=this,t="GetApiInfoData",e={type:t};layui.use(["table","form","laydate"],function(){var i=layui.table,o=layui.form;layui.laydate;o.on("select(adtype)",function(t){var e=t.value;a.addFormData.adtype=e});var s=i.render({elem:"#ad_table",url:"http://192.168.8.82:80/carAuditApiTest/api",loading:!0,even:!0,where:e,limit:20,limits:[20,40,50,60,80],response:{statusCode:200},headers:{Authorization:a.Authorization},text:{none:"暂无相关数据"},cols:[[{field:"id",title:"#",width:80},{field:"jkId",title:"接口标识",width:100},{field:"jkName",title:"接口名称",width:300},{field:"jkms",title:"接口描述"},{field:"operate",title:"操作",width:140,templet:function(a){return'<button jkid="'+a.jkId+'"  id="'+a.id+'" jkName="'+a.jkName+'" jkms="'+a.jkms+'" class="layui-btn-sm layui-btn api-operate-edit">编辑</button><button  standard="'+a.id+'" class="layui-btn-sm layui-btn layui-btn-danger api-operate-del">删除</button>'}}]],page:!0,done:function(e){$("#role_search").click(function(e){e.preventDefault();var i={adcode:a.adFormData.code,adcorp:a.adFormData.adcorp,name:a.adFormData.name,type:t};s.reload({where:i,page:{curr:1}})}),$(".api-operate-edit").click(function(){a.editFormData.id=$(this).attr("id"),a.editFormData.jkid=$(this).attr("jkid"),a.editFormData.jkName=$(this).attr("jkName"),a.editFormData.jkms=$(this).attr("jkms"),o.render(),layer.open({type:1,shadeClose:!0,closeBtn:1,skin:a.$store.state.skin,area:["550px","480px"],title:"编辑接口",content:$("#api_edit_popup"),success:function(){},end:function(){$("#api_edit_popup").css({display:"none"})},btn:["确认修改","取消"],yes:function(){var t={id:a.editFormData.id,jkid:a.editFormData.jkid,jkName:a.editFormData.jkName,jkms:a.editFormData.jkms};t=n.a.urlTransition("EditApiInfo",t),console.log(t);a.$http.apiPost("http://192.168.8.82:80/carAuditApiTest/api",t).then(function(t){200==t.code&&(layer.msg("修改成功"),setTimeout(function(){layer.closeAll(),a.tableRender()},1500))})}})}),$(".api-operate-del").click(function(){var t=$(this).attr("standard"),e={id:t};e=n.a.deleteUrlTrans("ApiInfoDel",e),layer.load(1),layer.confirm("确定要删除该条数据？",{btn:["确定","取消"],skin:a.$store.state.skin},function(){a.$http.apiDelete("http://192.168.8.82:80/carAuditApiTest/api",e).then(function(t){200==t.code?(layer.msg("删除成功"),setTimeout(function(){layer.closeAll()},1500)):(layer.msg(t.message),layer.closeAll()),a.tableRender()})},function(a){layer.closeAll()})})}})})},edit_ad:function(a){a.preventDefault(),layer.open({type:1,area:["550px","440px"],title:"新增接口",closeBtn:1,shadeClose:!0,skin:"layui-layer-molv",btn:["确定添加","取消"],end:function(){$("#edit_popup").css("display","none")},yes:function(){},content:$("#edit_popup")})}},computed:{showNum:function(){},layerSet:function(a){}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var a=this;layui.use(["form","layer","laydate","element"],function(){var t=(layui.form,layui.layer,layui.laydate);layui.element;t.render({elem:"#api_add_stime",value:a.addFormData.stime,theme:"grid",calendar:!0,mark:{"0-12-31":"跨年"},max:0,done:function(t){a.addFormData.stime=t}}),t.render({elem:"#api_add_etime",value:a.addFormData.etime,theme:"grid",calendar:!0,mark:{"0-12-31":"跨年"},max:0,done:function(t){a.addFormData.etime=t}}),a.tableRender()})},beforeUpdate:function(){},updated:function(){this.$nextTick(function(){layui.use("form",function(){layui.form.render()})})}},r=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"main-content"},[e("div",{staticClass:"main-content-header"},[e("form",{staticClass:"layui-form layui-form-pane pl20 clearfix",attrs:{action:""}},[e("div",{staticClass:"layui-form-item mr-10"},[e("label",{staticClass:"layui-form-label"},[a._v("接口ID")]),a._v(" "),e("div",{staticClass:"layui-input-block w-auto"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.formData.id,expression:"formData.id"}],staticClass:"layui-input",attrs:{type:"text",name:"user_code",placeholder:"接口id",id:"api_id",autocomplete:"off"},domProps:{value:a.formData.id},on:{input:function(t){t.target.composing||a.$set(a.formData,"id",t.target.value)}}})])]),a._v(" "),e("div",{staticClass:"layui-form-item mr-10"},[e("label",{staticClass:"layui-form-label"},[a._v("联系电话")]),a._v(" "),e("div",{staticClass:"layui-input-block w-auto"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.formData.mobile,expression:"formData.mobile"}],staticClass:"layui-input",attrs:{type:"text",name:"user_code",placeholder:"联系电话",autocomplete:"off"},domProps:{value:a.formData.mobile},on:{input:function(t){t.target.composing||a.$set(a.formData,"mobile",t.target.value)}}})])]),a._v(" "),a._m(0)])]),a._v(" "),e("div",{staticClass:"middle-space"}),a._v(" "),e("div",{staticClass:"main-content-body"},[e("div",{staticClass:"main-content-body-right"},[a._m(1),a._v(" "),e("div",{staticClass:"main-content-right-bottom"},[e("div",{staticClass:"layui-btn-container pore"},[e("button",{staticClass:"layui-btn layui-btn-sm add-users-btn",on:{click:function(t){return t.stopPropagation(),a.add_ad(t)}}},[e("i",{staticClass:"layui-icon layui-icon-add-circle"}),a._v("新增接口\n          ")])]),a._v(" "),e("table",{staticClass:"layui-hide",attrs:{id:"ad_table","lay-filter":"ad_table"}})])])]),a._v(" "),e("div",{staticStyle:{display:"none"},attrs:{id:"api_popup"}},[e("form",{staticClass:"layui-form layui-form-pane",attrs:{action:""}},[e("div",{staticClass:"layui-form-item display_block"},[e("label",{staticClass:"layui-form-label"},[a._v("接口ID")]),a._v(" "),e("div",{staticClass:"layui-input-block w-auto"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.addFormData.jkid,expression:"addFormData.jkid"}],staticClass:"layui-input",attrs:{type:"text",name:"username",placeholder:"输入接口ID",id:"api_add_id",autocomplete:"off"},domProps:{value:a.addFormData.jkid},on:{input:function(t){t.target.composing||a.$set(a.addFormData,"jkid",t.target.value)}}})])]),a._v(" "),e("div",{staticClass:"layui-form-item display_block"},[e("label",{staticClass:"layui-form-label"},[a._v("接口名称")]),a._v(" "),e("div",{staticClass:"layui-input-block w-auto"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.addFormData.jkName,expression:"addFormData.jkName"}],staticClass:"layui-input",attrs:{type:"text",name:"account",placeholder:"输入接口名",autocomplete:"off"},domProps:{value:a.addFormData.jkName},on:{input:function(t){t.target.composing||a.$set(a.addFormData,"jkName",t.target.value)}}})])]),a._v(" "),e("div",{staticClass:"layui-form-item layui-form-text display_block"},[e("label",{staticClass:"layui-form-label pl20",attrs:{for:""}},[a._v("备注(可选)")]),a._v(" "),e("div",{staticClass:"layui-input-block w-auto"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:a.addFormData.jkms,expression:"addFormData.jkms"}],staticClass:"layui-textarea",attrs:{rows:"2",placeholder:"请输入备注(可填可不填)"},domProps:{value:a.addFormData.jkms},on:{input:function(t){t.target.composing||a.$set(a.addFormData,"jkms",t.target.value)}}})])])])]),a._v(" "),e("div",{staticStyle:{display:"none"},attrs:{id:"api_edit_popup"}},[e("form",{staticClass:"layui-form layui-form-pane",attrs:{action:""}},[e("div",{staticClass:"layui-form-item d_i_b"},[e("label",{staticClass:"layui-form-label"},[a._v("接口ID")]),a._v(" "),e("div",{staticClass:"layui-input-block w-160"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.editFormData.jkid,expression:"editFormData.jkid"}],staticClass:"layui-input",attrs:{type:"text",name:"username",placeholder:"输入接口ID",id:"api_edit_id"},domProps:{value:a.editFormData.jkid},on:{input:function(t){t.target.composing||a.$set(a.editFormData,"jkid",t.target.value)}}})])]),a._v(" "),e("div",{staticClass:"layui-form-item d_i_b"},[e("label",{staticClass:"layui-form-label"},[a._v("接口名称")]),a._v(" "),e("div",{staticClass:"layui-input-block w-160"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.editFormData.jkName,expression:"editFormData.jkName"}],staticClass:"layui-input",attrs:{type:"text",name:"account",placeholder:"输入接口名称",autocomplete:"off"},domProps:{value:a.editFormData.jkName},on:{input:function(t){t.target.composing||a.$set(a.editFormData,"jkName",t.target.value)}}})])]),a._v(" "),e("div",{staticClass:"layui-form-item layui-form-text display_block"},[e("label",{staticClass:"layui-form-label pl20",attrs:{for:""}},[a._v("备注")]),a._v(" "),e("div",{staticClass:"layui-input-block w-auto"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:a.editFormData.jkms,expression:"editFormData.jkms"}],staticClass:"layui-textarea",attrs:{rows:"2",placeholder:"请输入备注(可填可不填)"},domProps:{value:a.editFormData.jkms},on:{input:function(t){t.target.composing||a.$set(a.editFormData,"jkms",t.target.value)}}})])])])])])},d=[function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"layui-form-item port-search"},[e("button",{staticClass:"layui-btn layui-btn-sm"},[a._v("查询")])])},function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"main-content-body-right-top"},[e("p",[e("i",{staticClass:"iconfont mr-6"},[a._v("")]),a._v("广告列表")])])}],m={render:r,staticRenderFns:d},p=m,c=e("C7Lr"),u=i,f=c(l,p,!1,u,"data-v-7daa87b3",null);t.default=f.exports},yUcZ:function(a,t,e){t=a.exports=e("UTlt")(!0),t.push([a.i,".layui-btn-sm i[data-v-7daa87b3]{font-size:12px}.main-content-header[data-v-7daa87b3]{height:auto;background-color:#fff;padding-top:15px;padding-right:30px;-webkit-box-shadow:0 1px 6px -1px rgba(0,0,0,.15);box-shadow:0 1px 6px -1px rgba(0,0,0,.15)}.main-content-body[data-v-7daa87b3]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-shadow:0 1px 4px 1px rgba(29,29,39,.15);box-shadow:0 1px 4px 1px rgba(29,29,39,.15)}.main-content-body-left[data-v-7daa87b3]{width:14%}.main-content-body-left[data-v-7daa87b3],.main-content-body-right[data-v-7daa87b3]{min-height:380px;background-color:#fff;-webkit-box-shadow:0 1px 6px -1px rgba(0,0,0,.15);box-shadow:0 1px 6px -1px rgba(0,0,0,.15)}.main-content-body-right[data-v-7daa87b3]{width:100%}.layui-btn-sm i.iconfont[data-v-7daa87b3]{font-size:12px!important}.main-content-right-bottom[data-v-7daa87b3]{padding:15px}.layui-form-checkbox span[data-v-7daa87b3]{font-size:12px}","",{version:3,sources:["C:/Users/Administrator/Desktop/project/fs-master/trunk/code/src/pages/port/portManger.vue"],names:[],mappings:"AACA,iCACE,cAAgB,CACjB,AACD,sCACE,YAAa,AACb,sBAAuB,AACvB,iBAAkB,AAClB,mBAAoB,AACpB,kDAAuD,AAC/C,yCAA+C,CACxD,AACD,oCACE,oBAAqB,AACrB,oBAAqB,AACrB,aAAc,AACd,qBAAsB,AAClB,iBAAkB,AACtB,8BAA+B,AAC/B,6BAA8B,AAC1B,uBAAwB,AACpB,mBAAoB,AAC5B,yBAA0B,AACtB,sBAAuB,AACnB,8BAA+B,AACvC,oDAAwD,AAChD,2CAA+C,CACxD,AACD,yCACE,SAAW,CAKZ,AACD,mFALE,iBAAkB,AAClB,sBAAuB,AACvB,kDAAuD,AAC/C,yCAA+C,CAQxD,AAND,0CACE,UAAY,CAKb,AACD,0CACE,wBAA2B,CAC5B,AACD,4CACE,YAAc,CACf,AACD,2CACE,cAAgB,CACjB",file:"portManger.vue",sourcesContent:["\n.layui-btn-sm i[data-v-7daa87b3] {\n  font-size: 12px;\n}\n.main-content-header[data-v-7daa87b3] {\n  height: auto;\n  background-color: #fff;\n  padding-top: 15px;\n  padding-right: 30px;\n  -webkit-box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.15);\n          box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.15);\n}\n.main-content-body[data-v-7daa87b3] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: nowrap;\n      flex-wrap: nowrap;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: row;\n          flex-direction: row;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n  -webkit-box-shadow:0 1px 4px 1px rgba(29, 29, 39, 0.15);\n          box-shadow:0 1px 4px 1px rgba(29, 29, 39, 0.15)\n}\n.main-content-body-left[data-v-7daa87b3] {\n  width: 14%;\n  min-height: 380px;\n  background-color: #fff;\n  -webkit-box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.15);\n          box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.15);\n}\n.main-content-body-right[data-v-7daa87b3] {\n  width: 100%;\n  min-height: 380px;\n  background-color: #fff;\n  -webkit-box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.15);\n          box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.15);\n}\n.layui-btn-sm i.iconfont[data-v-7daa87b3] {\n  font-size: 12px !important;\n}\n.main-content-right-bottom[data-v-7daa87b3] {\n  padding: 15px;\n}\n.layui-form-checkbox span[data-v-7daa87b3] {\n  font-size: 12px;\n}\n"],sourceRoot:""}])}});