gaoshp
2024-03-27 8b069c39956f6c57b692afe5e1bdc93eab13af64
src/config/table.js
@@ -1,3 +1,9 @@
/*
 * @Date: 2024-03-23 09:49:06
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-03-27 22:16:52
 * @FilePath: /cps-web/src/config/table.js
 */
//数据表格配置
import tool from '@/utils/tool'
@@ -10,16 +16,16 @@
   parseData: function (res) {                              //数据分析
      return {
         data: res.data,            //分析无分页的数据字段结构
         rows: res.data.rows,      //分析行数据字段结构
         rows: res.data.records,      //分析行数据字段结构
         total: res.data.total,      //分析总数字段结构
         summary: res.data.summary,   //分析合计行字段结构
         msg: res.message,         //分析描述字段结构
         msg: res.msg,         //分析描述字段结构
         code: res.code            //分析状态字段结构
      }
   },
   request: {                     //请求规定字段
      page: 'page',               //规定当前分页字段
      pageSize: 'pageSize',         //规定一页条数字段
      page: 'current',               //规定当前分页字段
      pageSize: 'size',         //规定一页条数字段
      prop: 'prop',               //规定排序字段名字段
      order: 'order'               //规定排序规格字段
   },