美文网首页
spring client 说明

spring client 说明

作者: A_1341 | 来源:发表于2018-10-19 13:55 被阅读0次

    列表页

    • tableInfo 包含排序,分页信息,传递到props,用于外部控制
    • 设定tableName, 用于 tableInfo 获取与传递
    const TABLE_NAME='DepartmentList'
    
    • model state
      mainData 为主要操作数据
      res 原始fetch返回对象
      err 错误输出
    state: {
        listData: {
          mainData: [],
          res: {},
          err: null,
        },
        editData: {
          mainData: {},
          res: {},
          err: null,
        },
      },
    
    • api 约定
    getList //获取列表 
    getById //获取对象
    create //新增
    update //编辑
    deleteById //删除
    

    相关文章

      网友评论

          本文标题:spring client 说明

          本文链接:https://www.haomeiwen.com/subject/bmmyzftx.html