首先我接到的需求是,表格里面有子级菜单,大类是需要上下排序,子级也需要排序那么我们就要首先考虑排序一级的
上一级代码写的有点潦草 html
<el-table :data="cameraList" ref="table" row-key="id" :tree-props="{ children: 'children' }" :hasNO="false"
@header-dragend="headerDragend">
<el-table-column label="序号" align="center">
<template slot-scope="scope">
{
{ scope.row.num2 }}
</template>
</el-table-column>
<el-table-column label="设备名称" align="left" prop="deviceName" width="160">
<template slot-scope="scope">
{