1 |
- webpackJsonp([18],{"9HlP":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{dataForm:{key:""},dataList:[{name:"testGetPigInfo",for:"获取年猪信息",type:0},{name:"testGetImage",for:"获取年猪图片",type:0},{name:"testGetListByBreed",for:"根据品种获取年猪信息",type:1},{name:"testGetIndoorEnv",for:"获取室内环境",type:0},{name:"testAdopt",for:"获取认养情况",type:0},{name:"testOutFence",for:"获取出栏情况",type:0}],pageIndex:1,pageSize:10,totalPage:0,visible:!1,form0:{pigEarTagNo:""},form1:{breedName:"",currentPage:"",pageSize:""},row:[],api:""}},methods:{sizeChangeHandle:function(n){this.pageSize=n,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(n){this.pageIndex=n,this.getDataList()},addOrUpdateHandle:function(n){this.visible=!0,this.form0={},this.form1={},this.row=n},formSubmit:function(){var n=this,e={};e=0===this.row.type?this.form0:this.form1,this.$http({url:this.$http.adornUrl("/management/localTest/"+this.row.name),method:"get",params:this.$http.adornParams(e)}).then(function(e){n.$confirm(e.data.msg,"返回信息",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("接口测试"),n.visible=!1}).catch(function(){})})},resetForm:function(){this.form={},this.row=[],this.api=""},cancel:function(){this.visible=!1,this.resetForm()}}},r={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"branch"},[t("el-table",{staticStyle:{width:"100%"},attrs:{height:"670",data:n.dataList}},[t("el-table-column",{attrs:{prop:"name","header-align":"left",align:"left",label:"接口名称"}}),n._v(" "),t("el-table-column",{attrs:{prop:"for","header-align":"left",align:"left",label:"用途"}}),n._v(" "),t("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",label:"操作"},scopedSlots:n._u([{key:"default",fn:function(e){return[n.isAuth("sys:user:update")?t("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){n.addOrUpdateHandle(e.row)}}},[n._v("测试")]):n._e()]}}])})],1),n._v(" "),t("div",{staticClass:"block"},[t("el-pagination",{attrs:{"current-page":n.pageIndex,"page-sizes":[10,20,30,50,100],"page-size":n.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:n.totalPage},on:{"size-change":n.sizeChangeHandle,"current-change":n.currentChangeHandle}})],1),n._v(" "),t("el-dialog",{attrs:{title:"测试","close-on-click-modal":!1,visible:n.visible},on:{"update:visible":function(e){n.visible=e},close:n.cancel}},[0===n.row.type?[t("el-form",{ref:"form",attrs:{model:n.form0,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&n._k(e.keyCode,"enter",13,e.key,"Enter"))return null;n.formSubmit()}}},[t("el-form-item",{attrs:{label:"耳标号",prop:"pigEarTagNo"}},[t("el-input",{attrs:{placeholder:"年猪耳标号"},model:{value:n.form0.pigEarTagNo,callback:function(e){n.$set(n.form0,"pigEarTagNo",e)},expression:"form0.pigEarTagNo"}})],1)],1)]:[t("el-form",{ref:"form",attrs:{model:n.form1,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&n._k(e.keyCode,"enter",13,e.key,"Enter"))return null;n.formSubmit()}}},[t("el-form-item",{attrs:{label:"品种",prop:"breedName"}},[t("el-input",{attrs:{placeholder:"品种名称"},model:{value:n.form1.breedName,callback:function(e){n.$set(n.form1,"breedName",e)},expression:"form1.breedName"}})],1)],1)],n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:n.cancel}},[n._v("取消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.formSubmit()}}},[n._v("确定")])],1)],2)],1)},staticRenderFns:[]};var o=t("VU/8")(a,r,!1,function(n){t("rnWX")},"data-v-73dcc518",null);e.default=o.exports},rnWX:function(n,e,t){var a=t("xoNX");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("c9085f3a",a,!0)},xoNX:function(n,e,t){(n.exports=t("FZ+f")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])}});
|