This commit is contained in:
Yuri Kuznetsov
2024-01-27 19:55:43 +02:00
parent dee0f9937e
commit 3e3258a4b7
+1 -15
View File
@@ -390,7 +390,7 @@ class RoleRecordTableView extends View {
for (const i in scopeList) {
const scope = scopeList[i];
const $rows = this.$el.find(`table.scope-level tr[data-name="${scope}"]`);
const $rows = $table.find(`tr[data-name="${scope}"]`);
const value = $rows.find(`select[name="${scope}"]`).val();
@@ -557,18 +557,6 @@ class RoleRecordTableView extends View {
Select.setValue($select, '');
Select.setOptions($select, options);
Select.setValue($select, value);
/*$select.find('option').each((i, o) => {
const $o = $(o);
if (this.fieldLevelList.indexOf($o.val()) < this.fieldLevelList.indexOf(value)) {
$o.attr('disabled', 'disabled');
} else {
$o.removeAttr('disabled');
}
});*/
//this.controlSelectColor($edit);
}
controlSelect(scope, action, limitValue, dontChange) {
@@ -839,8 +827,6 @@ class RoleRecordTableView extends View {
if (matchedList.length === 0) {
this.$el.find('table tr.item-row').addClass('hidden');
//$noData.removeClass('hidden');
return;
}