使用的是 crmeb-admin
在生成crud的時(shí)候一直報(bào)錯(cuò)說(shuō) 列表展示數(shù)據(jù)生成失敗
數(shù)據(jù)配置圖片如下
提交的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": "用戶真實(shí)姓名",
"required": false,
"is_table": false,
"table_name": "真實(shí)姓名",
"from_type": "input",
"default_type": "-1",
"search": "LIKE"
},
{
"field": "carid",
"field_type": "varchar",
"primaryKey": false,
"default": null,
"limit": 255,
"comment": "身份證號(hào)碼",
"required": false,
"is_table": false,
"table_name": "身份證號(hào)",
"from_type": "input",
"default_type": "-1",
"search": "LIKE"
},
{
"field": "iphone",
"field_type": "int",
"primaryKey": false,
"default": null,
"limit": 11,
"comment": "手機(jī)號(hào)碼",
"required": false,
"is_table": false,
"table_name": "手機(jī)號(hào)",
"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": "婚姻狀態(tài)",
"from_type": "select",
"dictionary_id": 2,
"default_type": "1",
"search": "="
},
{
"field": "status",
"field_type": "int",
"primaryKey": false,
"default": "0",
"limit": 11,
"comment": "狀態(tài) 0待審批 1已通過(guò) -1駁回",
"required": false,
"is_table": false,
"table_name": "審批狀態(tài)",
"from_type": "select",
"dictionary_id": 3,
"default_type": "1",
"search": "="
},
{
"field": "create_time",
"field_type": "int",
"primaryKey": false,
"default": "NULL",
"limit": 10,
"comment": "創(chuàng)建時(shí)間",
"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": "更新時(shí)間",
"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": []
}