> 二开功能，比较局限，需要配和后端

```
/****
 * 拦截目标列表复写支持推拽
 */
const needDragListids = ['1180948739149692929']
axios.interceptors.response.use(function (response) {
  // 拦截列表listId是1017302084124762154的listInit接口
  // 默认拦截第一次请求
  if (
    response.status === 200 
    && response.config.url.includes('api/ebuilder/form/list/listInit')
    &&needDragListids.includes(JSON.parse(response.config.data)?.listId)
  ) {
    const listId = JSON.parse(response.config.data)?.listId;
    const objid = response.data.data.objid||"";
    const instanceStore = ebdfListSdk?.getListStore?.(listId);
    response.data.data.listBaseInfo = {
      ...response.data.data.listBaseInfo,
      uiTableProps:{
        sortable:true,         
        sortableType:"icon",
        onDrag:onEbListTableDragEnd(objid,instanceStore)
      }
    }
    return response;
  }else {
    return response;
  }
}, function (error) {
  return Promise.reject(error);
});

const onEbListTableDragEnd = (objid,instanceStore)=>(data, evt)=>{
    const { newIndex, oldIndex } = evt;
    const _data = data;
     console.log("drag-",objid,_data,newIndex, oldIndex );
    
    if(newIndex===oldIndex)return;
    const listViewStore = instanceStore.listViewStore;
     const dataParams ={
       objid:objid,
       beforedataid:_data[newIndex - 1]?.ebrecord_rowkey ||"",
       beforeindexvalue:_data[newIndex - 1]?.showOrder ||"",
       currentdataid:_data[newIndex].ebrecord_rowkey ||"",
       currentindexvalue:_data[newIndex].showOrder ||"",
       afterdataid:_data[newIndex + 1]?.ebrecord_rowkey ||"",
       afterindexvalue:_data[newIndex + 1]?.showOrder ||"",
     };
      console.log("dataParams-",dataParams );
       console.log("listViewStore",listViewStore)

}
```
