"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[78101],{78101:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"g-pa-md g-bg-white"},[t("h2",[e._v("实验管理")]),t("el-form",{attrs:{inline:!0,model:e.form}},[t("el-form-item",{attrs:{label:"实验名称"}},[t("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),t("el-form-item",{attrs:{label:"创建时间范围"}},[t("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:e.form.createTime,callback:function(t){e.$set(e.form,"createTime",t)},expression:"form.createTime"}})],1),e.exLayerId?t("el-form-item",{attrs:{label:"层ID"}},[t("span",[e._v(e._s(e.exLayerId))])]):e._e(),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查询")])],1)],1),t("el-table",{attrs:{data:e.dataSource.records}},[t("el-table-column",{attrs:{prop:"groupCode",align:"center",label:"分组"}}),t("el-table-column",{attrs:{prop:"sceneCode",align:"center",label:"场景"}}),t("el-table-column",{attrs:{prop:"domainCode",align:"center",label:"域"}}),t("el-table-column",{attrs:{prop:"createTime",align:"center",label:"创建时间"}}),t("el-table-column",{attrs:{prop:"updateTime",align:"center",label:"修改时间"}}),t("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.doDel(a.row)}}},[e._v("删除")])]}}])}),t("el-table-column",{attrs:{align:"center",label:"查看"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.doCheckExperimentBucket(a.row)}}},[e._v("查看实验分桶")])]}}])})],1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[10,50],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.doPageChange(null,t)},"current-change":function(t){return e.doPageChange(t)}}})],1)],1)},o=[],n=(a(44114),{data(){return{dataSource:{records:[]},form:{},pageNow:1,pageSize:20}},computed:{exLayerId(){return this.$route.query.exLayerId||""}},mounted(){this.doSearch()},methods:{doSearch(){this.pageNow=1,this.getList()},getList(){const{createTime:e,name:t}=this.form,[a,r]=e||[],o={pageNow:this.pageNow,pageSize:this.pageSize,startTime:a,endTime:r,name:t};this.exLayerId&&(o.layerId=this.exLayerId),this.$store.dispatch({type:"abplatform/queryExperimentList",payload:o}).then((e=>{this.dataSource=e}))},doDel(e){const{id:t}=e;this.$store.dispatch({type:"abplatform/deleteExperiment",payload:{id:t}}).then((e=>{e&&this.getList()}))},doPageChange(e,t){e&&(this.pageNow=e),t&&(this.pageSize=t),this.getList()},doCheckExperimentBucket(e){const{layerId:t}=e;this.$store.dispatch({type:"abplatform/queryActive",payload:{layerId:t}}).then((e=>{const{id:t}=e||{};this.$router.push({name:"分桶管理",params:{...e,experimentId:t}})}))}}}),l=n,i=a(81656),s=(0,i.A)(l,r,o,!1,null,"6992594a",null),c=s.exports}}]);