使用的是 crmeb-admin
在生成crud的时候一直报错说 列表展示数据生成失败
数据配置图片如下
提交的json为
{
"pid": 9,
"tableName": "user_quota",
"modelName": "额度审批",
"isTable": 1,
"menuName": "额度审批",
"filePath": {
"controller": "app/adminapi/controller/crud/UserQuota.php",
"model": "app/model/crud/UserQuota.php",
"dao": "app/dao/crud/UserQuotaDao.php",
"route": "app/adminapi/route/crud/user_quota.php",
"service": "app/services/crud/UserQuotaServices.php",
"validate": "app/adminapi/validate/crud/UserQuotaValidate.php",
"router": "router/modules/crud/userQuota.js",
"api": "api/crud/userQuota.js",
"pages": "pages/crud/userQuota/index.vue"
},
"tableField": [
{
"field": "id",
"field_type": "int",
"primaryKey": true,
"default": null,
"limit": 10,
"comment": "",
"required": false,
"is_table": false,
"table_name": "",
"from_type": ""
},
{
"field": "uid",
"field_type": "int",
"primaryKey": false,
"default": null,
"limit": 11,
"comment": "用户id",
"required": false,
"is_table": false,
"table_name": "用户id",
"from_type": "",
"hasOne": [
"user"
],
"default_type": "-1",
"index": false,
"search": "="
},
{
"field": "realname",
"field_type": "varchar",
"primaryKey": false,
"default": null,
"limit": 255,
"comment": "用户真实姓名",
"required": false,
"is_table": false,
"table_name": "真实姓名",
"from_type": "input",
"default_type": "-1",
"search": "LIKE"
},
{
"field": "carid",
"field_type": "varchar",
"primaryKey": false,
"default": null,
"limit": 255,
"comment": "身份证号码",
"required": false,
"is_table": false,
"table_name": "身份证号",
"from_type": "input",
"default_type": "-1",
"search": "LIKE"
},
{
"field": "iphone",
"field_type": "int",
"primaryKey": false,
"default": null,
"limit": 11,
"comment": "手机号码",
"required": false,
"is_table": false,
"table_name": "手机号",
"from_type": "number",
"default_type": "-1",
"search": "LIKE"
},
{
"field": "marriage",
"field_type": "int",
"primaryKey": false,
"default": "0",
"limit": 11,
"comment": "婚姻 0未婚 1已婚",
"required": false,
"is_table": false,
"table_name": "婚姻状态",
"from_type": "select",
"dictionary_id": 2,
"default_type": "1",
"search": "="
},
{
"field": "status",
"field_type": "int",
"primaryKey": false,
"default": "0",
"limit": 11,
"comment": "状态 0待审批 1已通过 -1驳回",
"required": false,
"is_table": false,
"table_name": "审批状态",
"from_type": "select",
"dictionary_id": 3,
"default_type": "1",
"search": "="
},
{
"field": "create_time",
"field_type": "int",
"primaryKey": false,
"default": "NULL",
"limit": 10,
"comment": "创建时间",
"required": false,
"is_table": false,
"table_name": "",
"from_type": "",
"default_type": "2"
},
{
"field": "update_time",
"field_type": "int",
"primaryKey": false,
"default": "NULL",
"limit": 10,
"comment": "更新时间",
"required": false,
"is_table": false,
"table_name": "",
"from_type": "",
"default_type": "2"
},
{
"field": "adminid",
"field_type": "int",
"primaryKey": false,
"default": "NULL",
"limit": 10,
"comment": "审核管理员id",
"required": false,
"is_table": false,
"table_name": "",
"from_type": "",
"default_type": "-1"
}
],
"deleteField": []
}