mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
4f79e10bd6
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
1 line
3.7 KiB
JavaScript
1 line
3.7 KiB
JavaScript
webpackJsonp([181],{KTmg:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),n=a.n(r),o=a("04W7"),i=a("xT6B"),u={data:function(){return{formateDate:i.a,searchForm:{groupName:"",algorithmSubType:this.$route.query.algorithmSubType,groupId:"",pageSize:10,pageNum:1},tableData:[],loading:!1,total:0}},created:function(){this.fetchData()},activated:function(){this.searchForm=n()({},this.searchForm,{algorithmSubType:this.$route.query.algorithmSubType}),this.fetchData()},methods:{handleSearch:function(){this.searchForm.pageNum=1,this.fetchData()},resetSearch:function(){this.searchForm={pageSize:10,algorithmSubType:this.$route.query.algorithmSubType,pageNum:1},this.fetchData()},fetchData:function(){var e=this;this.loading=!0,o.a.groupList(n()({},this.searchForm)).then(function(t){e.loading=!1,e.total=t.total,e.tableData=t.data}).catch(function(t){e.loading=!1})},handleSizeChange:function(e){this.searchForm.pageSize=e,this.fetchData()},handleCurrentChange:function(e){this.searchForm.pageNum=e,this.fetchData()}},components:{searchPage:a("vMX1").a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",[a("search-page",{attrs:{pageSize:e.searchForm.pageSize,pageNum:e.searchForm.pageNum,total:e.total},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"pageNum",t)},"update:page-num":function(t){return e.$set(e.searchForm,"pageNum",t)},change:e.fetchData}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"底库编码"}},[a("el-input",{attrs:{placeholder:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.searchForm.groupId,callback:function(t){e.$set(e.searchForm,"groupId","string"==typeof t?t.trim():t)},expression:"searchForm.groupId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"底库名称"}},[a("el-input",{attrs:{placeholder:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.searchForm.groupName,callback:function(t){e.$set(e.searchForm,"groupName","string"==typeof t?t.trim():t)},expression:"searchForm.groupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"warning"},on:{click:e.handleSearch}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:e.resetSearch}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("返回 ")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"groupName",label:"底库名称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupId",label:"底库编码",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"modelVersionName",label:"模型版本号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.$router.push({path:"/groupManage/subGroup",query:{groupId:t.row.groupId}})}}},[e._v("详情")])]}}])})],1)],1)],1)],1)},staticRenderFns:[]};var c=a("VU/8")(u,l,!1,function(e){a("fF2v")},"data-v-41c1cddb",null);t.default=c.exports},fF2v:function(e,t,a){var r=a("jHLl");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("329ef45b",r,!0)},jHLl:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"",""])}}); |