Merge branch 'pailei2_sunhuawei_50407' into 'pailei2'

Pailei2 sunhuawei 50407

See merge request easycorp/zentaopms!2265
This commit is contained in:
李玉春
2022-03-15 05:43:03 +00:00
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ function setRole(account, roleID)
function addItem(obj)
{
var item = $('#addItem').html().replace(/%i%/g, i);
var item = $('#addItem').html().replace(/%i%/g, itemIndex);
$(obj).closest('tr').after('<tr class="addedItem">' + item + '</tr>');
var $accounts = $('#hours' + i).closest('tr').find('select:first')
@@ -37,7 +37,7 @@ function addItem(obj)
var pickerremote = $accounts.attr('data-pickerremote');
$accounts.picker({chosenMode: true, remote: pickerremote});
}
i ++;
itemIndex ++;
}
function deleteItem(obj)
+1 -1
View File
@@ -122,7 +122,7 @@
</tbody>
<tfoot><tr><td colspan='6' class='text-center form-actions'><?php echo html::submitButton() . ' ' . html::backButton(); ?></td></tr></tfoot>
</table>
<?php js::set('i', $i);?>
<?php js::set('itemIndex', $i);?>
</form>
</div>
<div>
+2 -2
View File
@@ -62,12 +62,12 @@ function setRole(account, roleID)
*/
function addItem(obj)
{
var item = $('#addItem').html().replace(/%i%/g, i);
var item = $('#addItem').html().replace(/%i%/g, itemIndex);
var $tr = $('<tr class="addedItem">' + item + '</tr>').insertAfter($(obj).closest('tr'));
$tr.find('select:first')
.trigger('liszt:updated')
.picker({type: 'user'});
i++;
itemIndex++;
}
/**
+1 -1
View File
@@ -125,7 +125,7 @@
</tr>
</tfoot>
</table>
<?php js::set('i', $i);?>
<?php js::set('itemIndex', $i);?>
</form>
</div>
<div>