sbd-npm 1.1.97 → 1.2.0
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/package.json +1 -1
- package/util.js +15 -1
- package/.npmignore +0 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1350,6 +1350,8 @@ const Util = {
|
|
1350
1350
|
_html.push('<option value="10">半年前</option>');
|
1351
1351
|
_html.push('<option value="11">一年前</option>');
|
1352
1352
|
_html.push('<option value="99">所有时间</option>');
|
1353
|
+
_html.push('<option value="100">还原</option>');
|
1354
|
+
_html.push('<option value="101">置空</option>');
|
1353
1355
|
select_obj.html(_html.join(""));
|
1354
1356
|
select_obj.change(function () {
|
1355
1357
|
let select_val = $("#" + select_id).val();
|
@@ -1358,6 +1360,7 @@ const Util = {
|
|
1358
1360
|
sd_obj.attr("disabled", false);
|
1359
1361
|
ed_obj.attr("disabled", false);
|
1360
1362
|
let weekday = Util.get_weekday();
|
1363
|
+
let date = new Date();
|
1361
1364
|
let year = date.getFullYear();
|
1362
1365
|
let month = date.getMonth() + 1;
|
1363
1366
|
let current_month_format = year + "-" + (month < 10 ? '0' + month : month) + "-01";
|
@@ -1426,8 +1429,18 @@ const Util = {
|
|
1426
1429
|
sd_obj.attr("disabled", true);
|
1427
1430
|
ed_obj.attr("disabled", true);
|
1428
1431
|
break;
|
1432
|
+
case "100": // 还原
|
1433
|
+
sd_obj.val(Obj.start_date);
|
1434
|
+
ed_obj.val(Obj.end_date);
|
1435
|
+
break;
|
1436
|
+
case "101": // 置空
|
1437
|
+
sd_obj.val("");
|
1438
|
+
ed_obj.val("");
|
1439
|
+
break;
|
1440
|
+
}
|
1441
|
+
if (select_val !== "101") {
|
1442
|
+
Util.init_range_picker_date(start_id, end_id);
|
1429
1443
|
}
|
1430
|
-
Util.init_range_picker_date(start_id, end_id);
|
1431
1444
|
if (select_val === "0") { // 记录之前的时间
|
1432
1445
|
Obj.start_date = sd_obj.val();
|
1433
1446
|
Obj.end_date = ed_obj.val();
|
@@ -1933,6 +1946,7 @@ const Util = {
|
|
1933
1946
|
if (item["holder_num"] && item["holder_num"] > 0) {
|
1934
1947
|
$(".holder_" + code).each(function () {
|
1935
1948
|
$(this).html(Util.pack_holder_num(item));
|
1949
|
+
$(this).attr("data-val", item["holder_num"]);
|
1936
1950
|
});
|
1937
1951
|
}
|
1938
1952
|
if ($("#remark_" + code).length) {
|
package/.npmignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sbd-npm.md
|