feat: add log
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
ac344d6edd
commit
c56ac1c192
|
@ -0,0 +1,3 @@
|
|||
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES
|
||||
('ShelvingLog','*','READ','ALLOW','ROLE','employee');
|
|
@ -4,5 +4,8 @@
|
|||
},
|
||||
"Shelving": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"ShelvingLog": {
|
||||
"dataSource": "vn"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,20 +8,20 @@
|
|||
},
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number",
|
||||
"id": true,
|
||||
"description": "Identifier"
|
||||
"type": "number",
|
||||
"forceId": false
|
||||
},
|
||||
"originFk": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"userFk": {
|
||||
"type": "number",
|
||||
"required": true
|
||||
"type": "number"
|
||||
},
|
||||
"action": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"creationDate": {
|
||||
"type": "date"
|
||||
|
@ -44,5 +44,15 @@
|
|||
"changedModelValue": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"model": "Account",
|
||||
"foreignKey": "userFk"
|
||||
}
|
||||
},
|
||||
"scope": {
|
||||
"order": ["creationDate DESC", "id DESC"]
|
||||
}
|
||||
}
|
|
@ -1,6 +1,10 @@
|
|||
{
|
||||
"name": "Shelving",
|
||||
"base": "VnModel",
|
||||
"base": "Loggable",
|
||||
"log": {
|
||||
"model": "ShelvingLog",
|
||||
"showField": "id"
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "shelving"
|
||||
|
|
|
@ -8,3 +8,4 @@ import './index/';
|
|||
import './main';
|
||||
import './search-panel';
|
||||
import './summary';
|
||||
import './log';
|
||||
|
|
|
@ -1 +1 @@
|
|||
<vn-log url="ShelvingLog" origin-id="$ctrl.$params.id"></vn-log>
|
||||
<vn-log url="ShelvingLogs" origin-id="$ctrl.$params.code"></vn-log>
|
Loading…
Reference in New Issue