ps-toolkit-ui 1.3.67 → 1.3.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ps-toolkit-ui.umd.js +18 -18
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/table.class.js +7 -7
- package/esm2015/lib/components/form/table/form.table.component.js +5 -5
- package/esm2015/lib/components/table/row/table.row.component.js +9 -9
- package/fesm2015/ps-toolkit-ui.js +18 -18
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2035,7 +2035,7 @@ class TableRowComponent {
|
|
|
2035
2035
|
if (option.AccessType === PermissionAccessTypeEnum.Update) {
|
|
2036
2036
|
if (this.table.form) {
|
|
2037
2037
|
opt.onClick = () => {
|
|
2038
|
-
this.table.form.url = this.table.url + '
|
|
2038
|
+
this.table.form.url = this.table.url + 'update/' + this.row.Data.Id;
|
|
2039
2039
|
if (this.table.hasChildren && this.row.Data.ParentId != null) {
|
|
2040
2040
|
this.table.form.onSuccessBase = () => {
|
|
2041
2041
|
this.table.modal.hide();
|
|
@@ -2060,7 +2060,7 @@ class TableRowComponent {
|
|
|
2060
2060
|
};
|
|
2061
2061
|
}
|
|
2062
2062
|
else {
|
|
2063
|
-
opt.url = this.table.url + '/
|
|
2063
|
+
opt.url = this.table.url + '/update/' + this.row.Data.Id;
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
2066
|
else if (option.AccessType === PermissionAccessTypeEnum.Delete) {
|
|
@@ -2114,15 +2114,15 @@ class TableRowComponent {
|
|
|
2114
2114
|
p.Accesses = this.row.Options.filter(x => x.ParentId === option.Id);
|
|
2115
2115
|
opt.modal.table.permissions = p;
|
|
2116
2116
|
if (opt.modal.table.form) {
|
|
2117
|
-
opt.modal.table.form.url = p.getUrl() + '
|
|
2118
|
-
opt.modal.table.form.baseUrl = p.getUrl() + '
|
|
2117
|
+
opt.modal.table.form.url = p.getUrl() + 'insert';
|
|
2118
|
+
opt.modal.table.form.baseUrl = p.getUrl() + 'insert';
|
|
2119
2119
|
}
|
|
2120
2120
|
opt.modal.table.set();
|
|
2121
2121
|
}
|
|
2122
2122
|
if (opt.modal.form) {
|
|
2123
2123
|
opt.modal.form.name = option.Name;
|
|
2124
|
-
opt.modal.form.url = opt.modal.form.baseUrl + '
|
|
2125
|
-
opt.modal.form.loadData(opt.modal.form.baseUrl + '
|
|
2124
|
+
opt.modal.form.url = opt.modal.form.baseUrl + 'update/' + this.row.Data.Id;
|
|
2125
|
+
opt.modal.form.loadData(opt.modal.form.baseUrl + 'get/' + this.row.Data.Id);
|
|
2126
2126
|
opt.modal.form.onSuccessBase = () => {
|
|
2127
2127
|
opt.modal.hide();
|
|
2128
2128
|
};
|
|
@@ -2138,8 +2138,8 @@ class TableRowComponent {
|
|
|
2138
2138
|
p.Accesses = this.row.Options.filter(x => x.ParentId === option.Id);
|
|
2139
2139
|
r.table.permissions = p;
|
|
2140
2140
|
if (r.table.form) {
|
|
2141
|
-
r.table.form.url = p.getUrl() + '
|
|
2142
|
-
r.table.form.baseUrl = p.getUrl() + '
|
|
2141
|
+
r.table.form.url = p.getUrl() + 'insert';
|
|
2142
|
+
r.table.form.baseUrl = p.getUrl() + 'insert';
|
|
2143
2143
|
}
|
|
2144
2144
|
r.table.set();
|
|
2145
2145
|
}
|
|
@@ -4606,13 +4606,13 @@ class FormTableComponent {
|
|
|
4606
4606
|
const p = new PermissionClass();
|
|
4607
4607
|
p.Type = PermissionTypeEnum.Form;
|
|
4608
4608
|
const lAccess = new PermissionClass();
|
|
4609
|
-
lAccess.Action = '
|
|
4609
|
+
lAccess.Action = 'list';
|
|
4610
4610
|
const iAccess = new PermissionClass();
|
|
4611
|
-
iAccess.Action = '
|
|
4611
|
+
iAccess.Action = 'insert';
|
|
4612
4612
|
const uAccess = new PermissionClass();
|
|
4613
|
-
uAccess.Action = '
|
|
4613
|
+
uAccess.Action = 'update';
|
|
4614
4614
|
const dAccess = new PermissionClass();
|
|
4615
|
-
dAccess.Action = '
|
|
4615
|
+
dAccess.Action = 'delete';
|
|
4616
4616
|
p.Accesses = [
|
|
4617
4617
|
lAccess,
|
|
4618
4618
|
iAccess,
|
|
@@ -6397,11 +6397,11 @@ class TableClass {
|
|
|
6397
6397
|
return this.searchForm ? this.searchForm.json(d) : d;
|
|
6398
6398
|
}
|
|
6399
6399
|
getUrl() {
|
|
6400
|
-
return this.url + '
|
|
6400
|
+
return this.url + 'list';
|
|
6401
6401
|
}
|
|
6402
6402
|
showInsertModal(cId = null) {
|
|
6403
6403
|
const insertAccess = this.permissions.getAccess(PermissionAccessTypeEnum.Insert);
|
|
6404
|
-
this.form.url = this.form.baseUrl = this.url + '
|
|
6404
|
+
this.form.url = this.form.baseUrl = this.url + 'insert' + (cId ? '/' + cId : '');
|
|
6405
6405
|
this.form.name = insertAccess.Name;
|
|
6406
6406
|
this.form.method = Method.Post;
|
|
6407
6407
|
this.form.inputs.filter(x => x.inEditDisabled).forEach(x => x.disabled = false);
|
|
@@ -6435,7 +6435,7 @@ class TableClass {
|
|
|
6435
6435
|
if (access.AccessType === PermissionAccessTypeEnum.Insert) {
|
|
6436
6436
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
6437
6437
|
if (this.form) {
|
|
6438
|
-
this.form.url = this.form.baseUrl = this.url + '
|
|
6438
|
+
this.form.url = this.form.baseUrl = this.url + 'insert';
|
|
6439
6439
|
if (!this.form.onTop) {
|
|
6440
6440
|
accessInp.onClick = () => {
|
|
6441
6441
|
this.form.onSuccessBase = () => {
|
|
@@ -6457,7 +6457,7 @@ class TableClass {
|
|
|
6457
6457
|
};
|
|
6458
6458
|
}
|
|
6459
6459
|
else {
|
|
6460
|
-
accessInp.url = this.url + '
|
|
6460
|
+
accessInp.url = this.url + 'insert';
|
|
6461
6461
|
}
|
|
6462
6462
|
}
|
|
6463
6463
|
}
|
|
@@ -6465,10 +6465,10 @@ class TableClass {
|
|
|
6465
6465
|
accessInp.onClick = () => {
|
|
6466
6466
|
const p = new PermissionClass();
|
|
6467
6467
|
p.Area = this.permissions.Area;
|
|
6468
|
-
p.Controller = '
|
|
6468
|
+
p.Controller = 'print';
|
|
6469
6469
|
p.Action = this.permissions.Controller + (this.permissions.Action ? this.permissions.Action : '');
|
|
6470
6470
|
const params = param(this.searchData(true));
|
|
6471
|
-
window.open('/
|
|
6471
|
+
window.open('/report' + p.getUrl() + (this.permissions.RelatedId ? '/' + this.permissions.RelatedId : '') +
|
|
6472
6472
|
(params ? '?' + params : ''), '_blank');
|
|
6473
6473
|
};
|
|
6474
6474
|
}
|