添加全部选项

This commit is contained in:
liaozetao
2023-12-25 19:25:07 +08:00
parent 59af5c9b2a
commit 82a858ed05

View File

@@ -283,6 +283,9 @@ export default {
var $select = $('<select/>');
$select.attr('class', 'form-control validate[required]');
$select.attr('id', 'content' + tag);
let $allOption = $('<option/>');
$allOption.html('全部');
$select.append($allOption);
for (let i = 0, len = data.length; i < len; i++) {
let item = data[i];
let $option = $('<option/>');