解释以下代码<template>
  <div>
    <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
			<el-form :inline="true" :model="filters">
				<!-- <el-form-item>
					<el-input size="small" v-model="filters.name" placeholder="名称"></el-input>
				</el-form-item> -->
				<el-form-item>
					<el-button size="small" type="primary" icon="el-icon-search" v-on:click="getData">查询</el-button>
				</el-form-item>
			</el-form>
		</el-col>

		<el-table
	    :data="list.slice((currentPage-1)*pageSize,currentPage*pageSize)"
	    border
	    stripe
	    size="medium"
	    style="width: 100%"
	    v-loading="loading"
      >
	    <el-table-column prop="username" label="下单人">
	    </el-table-column>
      <el-table-column prop="createTime" label="下单时间">
	    </el-table-column>
      <el-table-column prop="payTime" label="支付时间">
	    </el-table-column>
      <el-table-column prop="totalPrice" label="订单总价">
	    </el-table-column>
      <el-table-column label="操作">
	    	<template slot-scope="scope">
          <el-button  @click="watchDetail(scope.row)" type="text" size="small">查看详情</el-button>
	      </template>
	    </el-table-column>
	  </el-table>

    <detail
      v-if="d_visible"
      :d_visible.sync="d_visible"
      :dataList="detailList"
    ></detail>

		<div class="block">
	    <el-pagination
	      @size-change="handleSizeChange"
	      @current-change="handleCurrentChange"
	      :current-page.sync="currentPage"
	      :page-sizes="[5, 10, 15, 20]"
	      :page-size="pageSize"
	      layout="total, sizes, prev, pager, next, jumper"
	      :total="this.list.length">
	    </el-pagination>
	  </div>
  </div>
</template>

<script>
import axios from 'axios'
import _ from "lodash"
import { mapState } from 'vuex'
import detail from './detail.vue'
export default {
  data() {
    return {
      loading: false,
      filters: {
				name: ''
			},
			list: [],
			loading: false,
			currentPage: 1,
      pageSize: 10,
      nodes: [],
      node: {},
      visibleChild: false,
      dataList: [],
      detailList: [],
      d_visible:false
    }
  },
  components: {
    detail
  },
  computed: {
		...mapState(['nickName'])
  },
  mounted() { 
    this.getData()
  },
  methods: {
    getData() {
			this.loading = true
      axios.get("/admin/orders").then((response) => {
        let res = response.data;
        
				this.list = res.rows || [];
				this.loading = false
			}).catch((err)=>{
				console.log(err);
			});	
		},
		handleSizeChange(val) {
			this.pageSize = val;
		},
		handleCurrentChange(val) {
			this.currentPage = val;
    },
    /**
     * @vuese 选择行
     */
    handleSelectionChange(selection) {
      this.nodes = _.cloneDeep(selection)
    },
    /**
     * @vuese 查看子菜单
     */
    watchDetail(row) {
      const detial = row.orderDetailVoList.map(item => {
        const obj = {}

        obj.number = item.number
        obj.name = item.goodsVo.name
        obj.price = item.goodsVo.price
        obj.refer = item.goodsVo.refer
        obj.typeName = item.goodsVo.typeName
        obj.url = item.goodsVo.url

        return obj
      })

      console.log(detial);
      this.d_visible = true
      this.detailList = detial
    },
    mounted() {
      this.getData();
    }
  }
}
</script>


<style lang="scss" scoped="" type="text/css">
</style>