This commit is contained in:
parent
3e8775149a
commit
ab95ef74a9
|
@ -7,9 +7,9 @@ CREATE TABLE `vn`.`clientSms` (
|
|||
KEY `clientSms_FK_1` (`smsFk`),
|
||||
CONSTRAINT `clientSms_FK` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE,
|
||||
CONSTRAINT `clientSms_FK_1` FOREIGN KEY (`smsFk`) REFERENCES `sms` (`id`) ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
||||
|
||||
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
('ClientSms', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
('ClientSms', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|
||||
('ClientSms', 'find', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||
('ClientSms', 'create', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
},
|
||||
"clientFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"smsFk": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
url="ClientSms"
|
||||
link="{clientFk: $ctrl.$params.id}"
|
||||
filter="::$ctrl.filter"
|
||||
data="clientSmss"
|
||||
data="clientSmsList"
|
||||
limit="20"
|
||||
auto-load="true">
|
||||
</vn-crud-model>
|
||||
|
@ -20,7 +20,7 @@
|
|||
</vn-tr>
|
||||
</vn-thead>
|
||||
<vn-tbody>
|
||||
<vn-tr ng-repeat="clientSms in clientSmss">
|
||||
<vn-tr ng-repeat="clientSms in clientSmsList">
|
||||
<vn-td>
|
||||
<span class="link" ng-click="workerDescriptor.show($event, clientSms.sms.senderFk)">
|
||||
{{::clientSms.sms.sender.name}}
|
||||
|
|
Loading…
Reference in New Issue