ljs-tools 0.0.8 → 0.0.10
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/{index-6bdbf7dd.js → index-e32303a8.js} +218 -219
- package/index.css +1 -1
- package/{index.es-baa4bd87.js → index.es-ea4343ac.js} +1 -1
- package/index.js +1 -1
- package/index.umd.cjs +3 -3
- package/package.json +1 -1
|
@@ -256,8 +256,8 @@ function setRemUnit() {
|
|
|
256
256
|
var rem = docEl.clientWidth / 120;
|
|
257
257
|
docEl.style.fontSize = rem + "px";
|
|
258
258
|
}
|
|
259
|
-
function getImageUrl(
|
|
260
|
-
const newUrl = new URL((/* @__PURE__ */ Object.assign({ "../assets/css/404.scss": __vite_glob_0_0, "../assets/css/base.scss": __vite_glob_0_1, "../assets/css/rouyi.scss": __vite_glob_0_2, "../assets/fonts/iconfont.css": __vite_glob_0_3, "../assets/fonts/iconfont.ttf": __vite_glob_0_4, "../assets/fonts/iconfont.woff": __vite_glob_0_5, "../assets/fonts/iconfont.woff2": __vite_glob_0_6, "../assets/icons/svg/404.svg": __vite_glob_0_7, "../assets/icons/svg/absent.svg": __vite_glob_0_8, "../assets/icons/svg/bucket.svg": __vite_glob_0_9, "../assets/icons/svg/bug.svg": __vite_glob_0_10, "../assets/icons/svg/build.svg": __vite_glob_0_11, "../assets/icons/svg/button.svg": __vite_glob_0_12, "../assets/icons/svg/cascader.svg": __vite_glob_0_13, "../assets/icons/svg/chart.svg": __vite_glob_0_14, "../assets/icons/svg/checkbox.svg": __vite_glob_0_15, "../assets/icons/svg/clipboard.svg": __vite_glob_0_16, "../assets/icons/svg/code.svg": __vite_glob_0_17, "../assets/icons/svg/color.svg": __vite_glob_0_18, "../assets/icons/svg/color_ban.svg": __vite_glob_0_19, "../assets/icons/svg/component.svg": __vite_glob_0_20, "../assets/icons/svg/dashboard.svg": __vite_glob_0_21, "../assets/icons/svg/data_dict.svg": __vite_glob_0_22, "../assets/icons/svg/data_dict2.svg": __vite_glob_0_23, "../assets/icons/svg/date-range.svg": __vite_glob_0_24, "../assets/icons/svg/date.svg": __vite_glob_0_25, "../assets/icons/svg/dict.svg": __vite_glob_0_26, "../assets/icons/svg/documentation.svg": __vite_glob_0_27, "../assets/icons/svg/download.svg": __vite_glob_0_28, "../assets/icons/svg/drag.svg": __vite_glob_0_29, "../assets/icons/svg/druid.svg": __vite_glob_0_30, "../assets/icons/svg/edit.svg": __vite_glob_0_31, "../assets/icons/svg/education.svg": __vite_glob_0_32, "../assets/icons/svg/email.svg": __vite_glob_0_33, "../assets/icons/svg/eq1.svg": __vite_glob_0_34, "../assets/icons/svg/eq2.svg": __vite_glob_0_35, "../assets/icons/svg/eq3.svg": __vite_glob_0_36, "../assets/icons/svg/eq4.svg": __vite_glob_0_37, "../assets/icons/svg/example.svg": __vite_glob_0_38, "../assets/icons/svg/excel.svg": __vite_glob_0_39, "../assets/icons/svg/exit-fullscreen.svg": __vite_glob_0_40, "../assets/icons/svg/eye-open.svg": __vite_glob_0_41, "../assets/icons/svg/eye.svg": __vite_glob_0_42, "../assets/icons/svg/form.svg": __vite_glob_0_43, "../assets/icons/svg/fullscreen.svg": __vite_glob_0_44, "../assets/icons/svg/github.svg": __vite_glob_0_45, "../assets/icons/svg/goods2.svg": __vite_glob_0_46, "../assets/icons/svg/goods3.svg": __vite_glob_0_47, "../assets/icons/svg/goods4.svg": __vite_glob_0_48, "../assets/icons/svg/guide.svg": __vite_glob_0_49, "../assets/icons/svg/i1_control.svg": __vite_glob_0_50, "../assets/icons/svg/i1_data.svg": __vite_glob_0_51, "../assets/icons/svg/i1_edit.svg": __vite_glob_0_52, "../assets/icons/svg/i1_encryp.svg": __vite_glob_0_53, "../assets/icons/svg/i1_flow.svg": __vite_glob_0_54, "../assets/icons/svg/i1_goods.svg": __vite_glob_0_55, "../assets/icons/svg/i1_limit.svg": __vite_glob_0_56, "../assets/icons/svg/i1_money.svg": __vite_glob_0_57, "../assets/icons/svg/i1_save.svg": __vite_glob_0_58, "../assets/icons/svg/i1_staging.svg": __vite_glob_0_59, "../assets/icons/svg/i1_warn.svg": __vite_glob_0_60, "../assets/icons/svg/ico_sq.svg": __vite_glob_0_61, "../assets/icons/svg/ico_zk.svg": __vite_glob_0_62, "../assets/icons/svg/icon.svg": __vite_glob_0_63, "../assets/icons/svg/index.svg": __vite_glob_0_64, "../assets/icons/svg/input.svg": __vite_glob_0_65, "../assets/icons/svg/international.svg": __vite_glob_0_66, "../assets/icons/svg/job.svg": __vite_glob_0_67, "../assets/icons/svg/language.svg": __vite_glob_0_68, "../assets/icons/svg/level_medal.svg": __vite_glob_0_69, "../assets/icons/svg/link.svg": __vite_glob_0_70, "../assets/icons/svg/list.svg": __vite_glob_0_71, "../assets/icons/svg/lock.svg": __vite_glob_0_72, "../assets/icons/svg/log.svg": __vite_glob_0_73, "../assets/icons/svg/logininfor.svg": __vite_glob_0_74, "../assets/icons/svg/menu.svg": __vite_glob_0_75, "../assets/icons/svg/message.svg": __vite_glob_0_76, "../assets/icons/svg/money.svg": __vite_glob_0_77, "../assets/icons/svg/monitor.svg": __vite_glob_0_78, "../assets/icons/svg/nested.svg": __vite_glob_0_79, "../assets/icons/svg/number.svg": __vite_glob_0_80, "../assets/icons/svg/online.svg": __vite_glob_0_81, "../assets/icons/svg/organization.svg": __vite_glob_0_82, "../assets/icons/svg/password.svg": __vite_glob_0_83, "../assets/icons/svg/pdf.svg": __vite_glob_0_84, "../assets/icons/svg/people.svg": __vite_glob_0_85, "../assets/icons/svg/peoples.svg": __vite_glob_0_86, "../assets/icons/svg/personnel.svg": __vite_glob_0_87, "../assets/icons/svg/phone.svg": __vite_glob_0_88, "../assets/icons/svg/post.svg": __vite_glob_0_89, "../assets/icons/svg/qq.svg": __vite_glob_0_90, "../assets/icons/svg/question.svg": __vite_glob_0_91, "../assets/icons/svg/radio.svg": __vite_glob_0_92, "../assets/icons/svg/rate.svg": __vite_glob_0_93, "../assets/icons/svg/redis-list.svg": __vite_glob_0_94, "../assets/icons/svg/redis.svg": __vite_glob_0_95, "../assets/icons/svg/role.svg": __vite_glob_0_96, "../assets/icons/svg/row.svg": __vite_glob_0_97, "../assets/icons/svg/search.svg": __vite_glob_0_98, "../assets/icons/svg/select.svg": __vite_glob_0_99, "../assets/icons/svg/server.svg": __vite_glob_0_100, "../assets/icons/svg/shopping.svg": __vite_glob_0_101, "../assets/icons/svg/size.svg": __vite_glob_0_102, "../assets/icons/svg/skill.svg": __vite_glob_0_103, "../assets/icons/svg/slider.svg": __vite_glob_0_104, "../assets/icons/svg/star.svg": __vite_glob_0_105, "../assets/icons/svg/swagger.svg": __vite_glob_0_106, "../assets/icons/svg/switch.svg": __vite_glob_0_107, "../assets/icons/svg/system.svg": __vite_glob_0_108, "../assets/icons/svg/tab.svg": __vite_glob_0_109, "../assets/icons/svg/table.svg": __vite_glob_0_110, "../assets/icons/svg/textarea.svg": __vite_glob_0_111, "../assets/icons/svg/theme.svg": __vite_glob_0_112, "../assets/icons/svg/time-range.svg": __vite_glob_0_113, "../assets/icons/svg/time.svg": __vite_glob_0_114, "../assets/icons/svg/tool.svg": __vite_glob_0_115, "../assets/icons/svg/tree-table.svg": __vite_glob_0_116, "../assets/icons/svg/tree.svg": __vite_glob_0_117, "../assets/icons/svg/upload.svg": __vite_glob_0_118, "../assets/icons/svg/user.svg": __vite_glob_0_119, "../assets/icons/svg/validCode.svg": __vite_glob_0_120, "../assets/icons/svg/warehouse1.svg": __vite_glob_0_121, "../assets/icons/svg/warehouse2.svg": __vite_glob_0_122, "../assets/icons/svg/warehouse3.svg": __vite_glob_0_123, "../assets/icons/svg/warehouse4.svg": __vite_glob_0_124, "../assets/icons/svg/wechat.svg": __vite_glob_0_125, "../assets/icons/svg/workshop1.svg": __vite_glob_0_126, "../assets/icons/svg/workshop2.svg": __vite_glob_0_127, "../assets/icons/svg/workshop3.svg": __vite_glob_0_128, "../assets/icons/svg/workshop4.svg": __vite_glob_0_129, "../assets/icons/svg/zip.svg": __vite_glob_0_130, "../assets/images/common/404Bg.jpg": __vite_glob_0_131, "../assets/images/common/errorImg.png": __vite_glob_0_132, "../assets/images/common/head.png": __vite_glob_0_133, "../assets/images/common/icon_you.png": __vite_glob_0_134, "../assets/images/common/icon_zuo.png": __vite_glob_0_135, "../assets/images/common/logo.png": __vite_glob_0_136, "../assets/images/index/carbonAsset_ico1.png": __vite_glob_0_137, "../assets/images/index/carbonAsset_ico2.png": __vite_glob_0_138, "../assets/images/index/carbonAsset_ico3.png": __vite_glob_0_139, "../assets/images/index/monthValue_ico1.png": __vite_glob_0_140, "../assets/images/index/monthValue_ico2.png": __vite_glob_0_141, "../assets/images/index/monthValue_ico3.png": __vite_glob_0_142, "../assets/images/index/monthValue_ico4.png": __vite_glob_0_143, "../assets/images/login/login-background.jpg": __vite_glob_0_144, "../assets/images/login/loginBoxBg.png": __vite_glob_0_145, "../assets/images/login/login_form_bg.png": __vite_glob_0_146, "../assets/images/login/top.png": __vite_glob_0_147, "../assets/images/logo.png": __vite_glob_0_148, "../assets/js/base.js": __vite_glob_0_149 }))[`../assets/${
|
|
259
|
+
function getImageUrl(url) {
|
|
260
|
+
const newUrl = new URL((/* @__PURE__ */ Object.assign({ "../assets/css/404.scss": __vite_glob_0_0, "../assets/css/base.scss": __vite_glob_0_1, "../assets/css/rouyi.scss": __vite_glob_0_2, "../assets/fonts/iconfont.css": __vite_glob_0_3, "../assets/fonts/iconfont.ttf": __vite_glob_0_4, "../assets/fonts/iconfont.woff": __vite_glob_0_5, "../assets/fonts/iconfont.woff2": __vite_glob_0_6, "../assets/icons/svg/404.svg": __vite_glob_0_7, "../assets/icons/svg/absent.svg": __vite_glob_0_8, "../assets/icons/svg/bucket.svg": __vite_glob_0_9, "../assets/icons/svg/bug.svg": __vite_glob_0_10, "../assets/icons/svg/build.svg": __vite_glob_0_11, "../assets/icons/svg/button.svg": __vite_glob_0_12, "../assets/icons/svg/cascader.svg": __vite_glob_0_13, "../assets/icons/svg/chart.svg": __vite_glob_0_14, "../assets/icons/svg/checkbox.svg": __vite_glob_0_15, "../assets/icons/svg/clipboard.svg": __vite_glob_0_16, "../assets/icons/svg/code.svg": __vite_glob_0_17, "../assets/icons/svg/color.svg": __vite_glob_0_18, "../assets/icons/svg/color_ban.svg": __vite_glob_0_19, "../assets/icons/svg/component.svg": __vite_glob_0_20, "../assets/icons/svg/dashboard.svg": __vite_glob_0_21, "../assets/icons/svg/data_dict.svg": __vite_glob_0_22, "../assets/icons/svg/data_dict2.svg": __vite_glob_0_23, "../assets/icons/svg/date-range.svg": __vite_glob_0_24, "../assets/icons/svg/date.svg": __vite_glob_0_25, "../assets/icons/svg/dict.svg": __vite_glob_0_26, "../assets/icons/svg/documentation.svg": __vite_glob_0_27, "../assets/icons/svg/download.svg": __vite_glob_0_28, "../assets/icons/svg/drag.svg": __vite_glob_0_29, "../assets/icons/svg/druid.svg": __vite_glob_0_30, "../assets/icons/svg/edit.svg": __vite_glob_0_31, "../assets/icons/svg/education.svg": __vite_glob_0_32, "../assets/icons/svg/email.svg": __vite_glob_0_33, "../assets/icons/svg/eq1.svg": __vite_glob_0_34, "../assets/icons/svg/eq2.svg": __vite_glob_0_35, "../assets/icons/svg/eq3.svg": __vite_glob_0_36, "../assets/icons/svg/eq4.svg": __vite_glob_0_37, "../assets/icons/svg/example.svg": __vite_glob_0_38, "../assets/icons/svg/excel.svg": __vite_glob_0_39, "../assets/icons/svg/exit-fullscreen.svg": __vite_glob_0_40, "../assets/icons/svg/eye-open.svg": __vite_glob_0_41, "../assets/icons/svg/eye.svg": __vite_glob_0_42, "../assets/icons/svg/form.svg": __vite_glob_0_43, "../assets/icons/svg/fullscreen.svg": __vite_glob_0_44, "../assets/icons/svg/github.svg": __vite_glob_0_45, "../assets/icons/svg/goods2.svg": __vite_glob_0_46, "../assets/icons/svg/goods3.svg": __vite_glob_0_47, "../assets/icons/svg/goods4.svg": __vite_glob_0_48, "../assets/icons/svg/guide.svg": __vite_glob_0_49, "../assets/icons/svg/i1_control.svg": __vite_glob_0_50, "../assets/icons/svg/i1_data.svg": __vite_glob_0_51, "../assets/icons/svg/i1_edit.svg": __vite_glob_0_52, "../assets/icons/svg/i1_encryp.svg": __vite_glob_0_53, "../assets/icons/svg/i1_flow.svg": __vite_glob_0_54, "../assets/icons/svg/i1_goods.svg": __vite_glob_0_55, "../assets/icons/svg/i1_limit.svg": __vite_glob_0_56, "../assets/icons/svg/i1_money.svg": __vite_glob_0_57, "../assets/icons/svg/i1_save.svg": __vite_glob_0_58, "../assets/icons/svg/i1_staging.svg": __vite_glob_0_59, "../assets/icons/svg/i1_warn.svg": __vite_glob_0_60, "../assets/icons/svg/ico_sq.svg": __vite_glob_0_61, "../assets/icons/svg/ico_zk.svg": __vite_glob_0_62, "../assets/icons/svg/icon.svg": __vite_glob_0_63, "../assets/icons/svg/index.svg": __vite_glob_0_64, "../assets/icons/svg/input.svg": __vite_glob_0_65, "../assets/icons/svg/international.svg": __vite_glob_0_66, "../assets/icons/svg/job.svg": __vite_glob_0_67, "../assets/icons/svg/language.svg": __vite_glob_0_68, "../assets/icons/svg/level_medal.svg": __vite_glob_0_69, "../assets/icons/svg/link.svg": __vite_glob_0_70, "../assets/icons/svg/list.svg": __vite_glob_0_71, "../assets/icons/svg/lock.svg": __vite_glob_0_72, "../assets/icons/svg/log.svg": __vite_glob_0_73, "../assets/icons/svg/logininfor.svg": __vite_glob_0_74, "../assets/icons/svg/menu.svg": __vite_glob_0_75, "../assets/icons/svg/message.svg": __vite_glob_0_76, "../assets/icons/svg/money.svg": __vite_glob_0_77, "../assets/icons/svg/monitor.svg": __vite_glob_0_78, "../assets/icons/svg/nested.svg": __vite_glob_0_79, "../assets/icons/svg/number.svg": __vite_glob_0_80, "../assets/icons/svg/online.svg": __vite_glob_0_81, "../assets/icons/svg/organization.svg": __vite_glob_0_82, "../assets/icons/svg/password.svg": __vite_glob_0_83, "../assets/icons/svg/pdf.svg": __vite_glob_0_84, "../assets/icons/svg/people.svg": __vite_glob_0_85, "../assets/icons/svg/peoples.svg": __vite_glob_0_86, "../assets/icons/svg/personnel.svg": __vite_glob_0_87, "../assets/icons/svg/phone.svg": __vite_glob_0_88, "../assets/icons/svg/post.svg": __vite_glob_0_89, "../assets/icons/svg/qq.svg": __vite_glob_0_90, "../assets/icons/svg/question.svg": __vite_glob_0_91, "../assets/icons/svg/radio.svg": __vite_glob_0_92, "../assets/icons/svg/rate.svg": __vite_glob_0_93, "../assets/icons/svg/redis-list.svg": __vite_glob_0_94, "../assets/icons/svg/redis.svg": __vite_glob_0_95, "../assets/icons/svg/role.svg": __vite_glob_0_96, "../assets/icons/svg/row.svg": __vite_glob_0_97, "../assets/icons/svg/search.svg": __vite_glob_0_98, "../assets/icons/svg/select.svg": __vite_glob_0_99, "../assets/icons/svg/server.svg": __vite_glob_0_100, "../assets/icons/svg/shopping.svg": __vite_glob_0_101, "../assets/icons/svg/size.svg": __vite_glob_0_102, "../assets/icons/svg/skill.svg": __vite_glob_0_103, "../assets/icons/svg/slider.svg": __vite_glob_0_104, "../assets/icons/svg/star.svg": __vite_glob_0_105, "../assets/icons/svg/swagger.svg": __vite_glob_0_106, "../assets/icons/svg/switch.svg": __vite_glob_0_107, "../assets/icons/svg/system.svg": __vite_glob_0_108, "../assets/icons/svg/tab.svg": __vite_glob_0_109, "../assets/icons/svg/table.svg": __vite_glob_0_110, "../assets/icons/svg/textarea.svg": __vite_glob_0_111, "../assets/icons/svg/theme.svg": __vite_glob_0_112, "../assets/icons/svg/time-range.svg": __vite_glob_0_113, "../assets/icons/svg/time.svg": __vite_glob_0_114, "../assets/icons/svg/tool.svg": __vite_glob_0_115, "../assets/icons/svg/tree-table.svg": __vite_glob_0_116, "../assets/icons/svg/tree.svg": __vite_glob_0_117, "../assets/icons/svg/upload.svg": __vite_glob_0_118, "../assets/icons/svg/user.svg": __vite_glob_0_119, "../assets/icons/svg/validCode.svg": __vite_glob_0_120, "../assets/icons/svg/warehouse1.svg": __vite_glob_0_121, "../assets/icons/svg/warehouse2.svg": __vite_glob_0_122, "../assets/icons/svg/warehouse3.svg": __vite_glob_0_123, "../assets/icons/svg/warehouse4.svg": __vite_glob_0_124, "../assets/icons/svg/wechat.svg": __vite_glob_0_125, "../assets/icons/svg/workshop1.svg": __vite_glob_0_126, "../assets/icons/svg/workshop2.svg": __vite_glob_0_127, "../assets/icons/svg/workshop3.svg": __vite_glob_0_128, "../assets/icons/svg/workshop4.svg": __vite_glob_0_129, "../assets/icons/svg/zip.svg": __vite_glob_0_130, "../assets/images/common/404Bg.jpg": __vite_glob_0_131, "../assets/images/common/errorImg.png": __vite_glob_0_132, "../assets/images/common/head.png": __vite_glob_0_133, "../assets/images/common/icon_you.png": __vite_glob_0_134, "../assets/images/common/icon_zuo.png": __vite_glob_0_135, "../assets/images/common/logo.png": __vite_glob_0_136, "../assets/images/index/carbonAsset_ico1.png": __vite_glob_0_137, "../assets/images/index/carbonAsset_ico2.png": __vite_glob_0_138, "../assets/images/index/carbonAsset_ico3.png": __vite_glob_0_139, "../assets/images/index/monthValue_ico1.png": __vite_glob_0_140, "../assets/images/index/monthValue_ico2.png": __vite_glob_0_141, "../assets/images/index/monthValue_ico3.png": __vite_glob_0_142, "../assets/images/index/monthValue_ico4.png": __vite_glob_0_143, "../assets/images/login/login-background.jpg": __vite_glob_0_144, "../assets/images/login/loginBoxBg.png": __vite_glob_0_145, "../assets/images/login/login_form_bg.png": __vite_glob_0_146, "../assets/images/login/top.png": __vite_glob_0_147, "../assets/images/logo.png": __vite_glob_0_148, "../assets/js/base.js": __vite_glob_0_149 }))[`../assets/${url}`], self.location).href;
|
|
261
261
|
return newUrl;
|
|
262
262
|
}
|
|
263
263
|
function selectDictLabel(datas, value, labelKey = "label", valueKey = "value") {
|
|
@@ -283,10 +283,10 @@ function colorLog(content2 = ["暂无内容"], type = "info", color2 = [
|
|
|
283
283
|
});
|
|
284
284
|
console[type](logStr, color2[0], color2[1]);
|
|
285
285
|
}
|
|
286
|
-
function downloadImage(_this,
|
|
286
|
+
function downloadImage(_this, url, name2 = (/* @__PURE__ */ new Date()).valueOf()) {
|
|
287
287
|
let image2 = new Image();
|
|
288
288
|
image2.setAttribute("crossOrigin", "anonymous");
|
|
289
|
-
image2.src =
|
|
289
|
+
image2.src = url + "?time=" + (/* @__PURE__ */ new Date()).valueOf();
|
|
290
290
|
_this.$nextTick(() => {
|
|
291
291
|
image2.onload = () => {
|
|
292
292
|
const canvas = document.createElement("canvas");
|
|
@@ -295,13 +295,13 @@ function downloadImage(_this, url2, name2 = (/* @__PURE__ */ new Date()).valueOf
|
|
|
295
295
|
const context = canvas.getContext("2d");
|
|
296
296
|
context.drawImage(image2, 0, 0, image2.width, image2.height);
|
|
297
297
|
canvas.toBlob((blob) => {
|
|
298
|
-
const
|
|
298
|
+
const url2 = URL.createObjectURL(blob);
|
|
299
299
|
const a2 = document.createElement("a");
|
|
300
300
|
a2.download = name2;
|
|
301
|
-
a2.href =
|
|
301
|
+
a2.href = url2;
|
|
302
302
|
a2.click();
|
|
303
303
|
a2.remove();
|
|
304
|
-
URL.revokeObjectURL(
|
|
304
|
+
URL.revokeObjectURL(url2);
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
307
|
});
|
|
@@ -357,15 +357,15 @@ function longNumText(value, ws2 = 2) {
|
|
|
357
357
|
if (checkNum(value)) {
|
|
358
358
|
let result = "";
|
|
359
359
|
const sign = Number(value) < 0 ? -1 : 1;
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
362
|
-
result = sign *
|
|
363
|
-
} else if (
|
|
364
|
-
result = sign * (
|
|
365
|
-
} else if (
|
|
366
|
-
result = sign * (
|
|
367
|
-
} else if (
|
|
368
|
-
result = sign * (
|
|
360
|
+
const num = Math.abs(Number(value));
|
|
361
|
+
if (num < 1e4) {
|
|
362
|
+
result = sign * num;
|
|
363
|
+
} else if (num >= 1e4 && num < 1e4 * 1e4) {
|
|
364
|
+
result = sign * (num / 1e4 + limit_min_num).toFixed(ws2) + "万";
|
|
365
|
+
} else if (num >= 1e4 * 1e4 && num < 1e4 * 1e4 * 1e4) {
|
|
366
|
+
result = sign * (num / (1e4 * 1e4) + limit_min_num).toFixed(ws2) + "亿";
|
|
367
|
+
} else if (num >= 1e4 * 1e4 * 1e4) {
|
|
368
|
+
result = sign * (num / (1e4 * 1e4 * 1e4) + limit_min_num).toFixed(ws2) + "万亿";
|
|
369
369
|
}
|
|
370
370
|
return result;
|
|
371
371
|
}
|
|
@@ -403,7 +403,7 @@ function averageNum(total, shares = 12, decimal = 2) {
|
|
|
403
403
|
}
|
|
404
404
|
return result;
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const LJSnum = {
|
|
407
407
|
numberB0,
|
|
408
408
|
longNumText,
|
|
409
409
|
numberCeil,
|
|
@@ -412,15 +412,15 @@ const num = {
|
|
|
412
412
|
averageNum
|
|
413
413
|
};
|
|
414
414
|
function formatTime(time2, pattern) {
|
|
415
|
-
const
|
|
415
|
+
const date = new Date(time2);
|
|
416
416
|
const format2 = pattern || "{y}-{m}-{d} {h}:{i}:{s}";
|
|
417
417
|
const formatObj = {
|
|
418
|
-
y:
|
|
419
|
-
m:
|
|
420
|
-
d:
|
|
421
|
-
h:
|
|
422
|
-
i:
|
|
423
|
-
s:
|
|
418
|
+
y: date.getFullYear(),
|
|
419
|
+
m: LJSnum.numberB0(date.getMonth() + 1),
|
|
420
|
+
d: LJSnum.numberB0(date.getDate()),
|
|
421
|
+
h: LJSnum.numberB0(date.getHours()),
|
|
422
|
+
i: LJSnum.numberB0(date.getMinutes()),
|
|
423
|
+
s: LJSnum.numberB0(date.getSeconds())
|
|
424
424
|
};
|
|
425
425
|
return format2.replace(/{(y|m|d|h|i|s)+}/g, (result, key) => {
|
|
426
426
|
const value = formatObj[key];
|
|
@@ -439,18 +439,18 @@ function dateQjChange(dates, tag = 1) {
|
|
|
439
439
|
switch (tag) {
|
|
440
440
|
case 1:
|
|
441
441
|
return [
|
|
442
|
-
d1.getFullYear() + "-" +
|
|
443
|
-
d2.getFullYear() + "-" +
|
|
442
|
+
d1.getFullYear() + "-" + LJSnum.numberB0(d1.getMonth() + 1) + "-" + LJSnum.numberB0(d1.getDate()) + " 00:00:00",
|
|
443
|
+
d2.getFullYear() + "-" + LJSnum.numberB0(d2.getMonth() + 1) + "-" + LJSnum.numberB0(d2.getDate()) + " 23:59:59"
|
|
444
444
|
];
|
|
445
445
|
case 2:
|
|
446
446
|
return [
|
|
447
|
-
d1.getFullYear() + "-" +
|
|
448
|
-
d2.getFullYear() + "-" +
|
|
447
|
+
d1.getFullYear() + "-" + LJSnum.numberB0(d1.getMonth() + 1) + "-" + LJSnum.numberB0(d1.getDate()) + " " + LJSnum.numberB0(d1.getHours()) + ":00:00",
|
|
448
|
+
d2.getFullYear() + "-" + LJSnum.numberB0(d2.getMonth() + 1) + "-" + LJSnum.numberB0(d2.getDate()) + " " + LJSnum.numberB0(d2.getHours()) + ":59:59"
|
|
449
449
|
];
|
|
450
450
|
case 3:
|
|
451
451
|
return [
|
|
452
|
-
d1.getFullYear() + "-" +
|
|
453
|
-
d2.getFullYear() + "-" +
|
|
452
|
+
d1.getFullYear() + "-" + LJSnum.numberB0(d1.getMonth() + 1) + "-" + LJSnum.numberB0(d1.getDate()) + " " + LJSnum.numberB0(d1.getHours()) + ":" + LJSnum.numberB0(d1.getMinutes()) + ":00",
|
|
453
|
+
d2.getFullYear() + "-" + LJSnum.numberB0(d2.getMonth() + 1) + "-" + LJSnum.numberB0(d2.getDate()) + " " + LJSnum.numberB0(d2.getHours()) + ":" + LJSnum.numberB0(d2.getMinutes()) + ":59"
|
|
454
454
|
];
|
|
455
455
|
}
|
|
456
456
|
return dates;
|
|
@@ -466,7 +466,7 @@ function initSearchDate(day = 10, time2 = false) {
|
|
|
466
466
|
end2 = formatTime(/* @__PURE__ */ new Date(), formatValue);
|
|
467
467
|
return [start2, end2];
|
|
468
468
|
}
|
|
469
|
-
const
|
|
469
|
+
const LJSdate = {
|
|
470
470
|
formatTime,
|
|
471
471
|
dateQjChange,
|
|
472
472
|
initSearchDate
|
|
@@ -542,9 +542,9 @@ function numEnCheck(form, key = "username") {
|
|
|
542
542
|
form[key] = form[key].replace(/[^\w]/g, "");
|
|
543
543
|
form[key] = form[key].replace(/\_/g, "");
|
|
544
544
|
}
|
|
545
|
-
function picError(form, key = "src",
|
|
546
|
-
|
|
547
|
-
form[key] =
|
|
545
|
+
function picError(form, key = "src", url = "images/common/errorImg.png") {
|
|
546
|
+
url = LJSbase.getImageUrl(url);
|
|
547
|
+
form[key] = url;
|
|
548
548
|
}
|
|
549
549
|
function downloadBlobData(data, title) {
|
|
550
550
|
const link = document.createElement("a");
|
|
@@ -592,7 +592,7 @@ function pickerOptions(dateType = "3", span = 0, dateTypeKeyValue = ["1", "2", "
|
|
|
592
592
|
let trendsDisabledDate = 0;
|
|
593
593
|
function pickerOptionsDynamic(day = 30, times) {
|
|
594
594
|
if (times) {
|
|
595
|
-
trendsDisabledDate =
|
|
595
|
+
trendsDisabledDate = LJSdate.formatTime(times[0], "{y}-{m}-{d}");
|
|
596
596
|
} else {
|
|
597
597
|
trendsDisabledDate = 0;
|
|
598
598
|
}
|
|
@@ -611,7 +611,7 @@ function pickerOptionsDynamic(day = 30, times) {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
const
|
|
614
|
+
const LJSfc = {
|
|
615
615
|
numCheck,
|
|
616
616
|
numEnCheck,
|
|
617
617
|
numDxsCheck,
|
|
@@ -15054,17 +15054,17 @@ function getDefaultFormatPrecisionOfInterval(timeUnit) {
|
|
|
15054
15054
|
}
|
|
15055
15055
|
}
|
|
15056
15056
|
function format(time2, template, isUTC, lang) {
|
|
15057
|
-
var
|
|
15058
|
-
var y2 =
|
|
15059
|
-
var M2 =
|
|
15057
|
+
var date = parseDate(time2);
|
|
15058
|
+
var y2 = date[fullYearGetterName(isUTC)]();
|
|
15059
|
+
var M2 = date[monthGetterName(isUTC)]() + 1;
|
|
15060
15060
|
var q2 = Math.floor((M2 - 1) / 3) + 1;
|
|
15061
|
-
var d2 =
|
|
15062
|
-
var e2 =
|
|
15063
|
-
var H4 =
|
|
15061
|
+
var d2 = date[dateGetterName(isUTC)]();
|
|
15062
|
+
var e2 = date["get" + (isUTC ? "UTC" : "") + "Day"]();
|
|
15063
|
+
var H4 = date[hoursGetterName(isUTC)]();
|
|
15064
15064
|
var h2 = (H4 - 1) % 12 + 1;
|
|
15065
|
-
var m2 =
|
|
15066
|
-
var s2 =
|
|
15067
|
-
var S2 =
|
|
15065
|
+
var m2 = date[minutesGetterName(isUTC)]();
|
|
15066
|
+
var s2 = date[secondsGetterName(isUTC)]();
|
|
15067
|
+
var S2 = date[millisecondsGetterName(isUTC)]();
|
|
15068
15068
|
var localeModel = lang instanceof Model$1 ? lang : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();
|
|
15069
15069
|
var timeModel = localeModel.getModel("time");
|
|
15070
15070
|
var month = timeModel.get("month");
|
|
@@ -15111,13 +15111,13 @@ function leveledFormat(tick, idx, formatter, lang, isUTC) {
|
|
|
15111
15111
|
return format(new Date(tick.value), template, isUTC, lang);
|
|
15112
15112
|
}
|
|
15113
15113
|
function getUnitFromValue(value, isUTC) {
|
|
15114
|
-
var
|
|
15115
|
-
var M2 =
|
|
15116
|
-
var d2 =
|
|
15117
|
-
var h2 =
|
|
15118
|
-
var m2 =
|
|
15119
|
-
var s2 =
|
|
15120
|
-
var S2 =
|
|
15114
|
+
var date = parseDate(value);
|
|
15115
|
+
var M2 = date[monthGetterName(isUTC)]() + 1;
|
|
15116
|
+
var d2 = date[dateGetterName(isUTC)]();
|
|
15117
|
+
var h2 = date[hoursGetterName(isUTC)]();
|
|
15118
|
+
var m2 = date[minutesGetterName(isUTC)]();
|
|
15119
|
+
var s2 = date[secondsGetterName(isUTC)]();
|
|
15120
|
+
var S2 = date[millisecondsGetterName(isUTC)]();
|
|
15121
15121
|
var isSecond = S2 === 0;
|
|
15122
15122
|
var isMinute = isSecond && s2 === 0;
|
|
15123
15123
|
var isHour = isMinute && m2 === 0;
|
|
@@ -15141,29 +15141,29 @@ function getUnitFromValue(value, isUTC) {
|
|
|
15141
15141
|
}
|
|
15142
15142
|
}
|
|
15143
15143
|
function getUnitValue(value, unit, isUTC) {
|
|
15144
|
-
var
|
|
15144
|
+
var date = isNumber(value) ? parseDate(value) : value;
|
|
15145
15145
|
unit = unit || getUnitFromValue(value, isUTC);
|
|
15146
15146
|
switch (unit) {
|
|
15147
15147
|
case "year":
|
|
15148
|
-
return
|
|
15148
|
+
return date[fullYearGetterName(isUTC)]();
|
|
15149
15149
|
case "half-year":
|
|
15150
|
-
return
|
|
15150
|
+
return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;
|
|
15151
15151
|
case "quarter":
|
|
15152
|
-
return Math.floor((
|
|
15152
|
+
return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);
|
|
15153
15153
|
case "month":
|
|
15154
|
-
return
|
|
15154
|
+
return date[monthGetterName(isUTC)]();
|
|
15155
15155
|
case "day":
|
|
15156
|
-
return
|
|
15156
|
+
return date[dateGetterName(isUTC)]();
|
|
15157
15157
|
case "half-day":
|
|
15158
|
-
return
|
|
15158
|
+
return date[hoursGetterName(isUTC)]() / 24;
|
|
15159
15159
|
case "hour":
|
|
15160
|
-
return
|
|
15160
|
+
return date[hoursGetterName(isUTC)]();
|
|
15161
15161
|
case "minute":
|
|
15162
|
-
return
|
|
15162
|
+
return date[minutesGetterName(isUTC)]();
|
|
15163
15163
|
case "second":
|
|
15164
|
-
return
|
|
15164
|
+
return date[secondsGetterName(isUTC)]();
|
|
15165
15165
|
case "millisecond":
|
|
15166
|
-
return
|
|
15166
|
+
return date[millisecondsGetterName(isUTC)]();
|
|
15167
15167
|
}
|
|
15168
15168
|
}
|
|
15169
15169
|
function fullYearGetterName(isUTC) {
|
|
@@ -15230,15 +15230,15 @@ function makeValueReadable(value, valueType, useUTC) {
|
|
|
15230
15230
|
function stringToUserReadable(str) {
|
|
15231
15231
|
return str && trim$1(str) ? str : "-";
|
|
15232
15232
|
}
|
|
15233
|
-
function isNumberUserReadable(
|
|
15234
|
-
return !!(
|
|
15233
|
+
function isNumberUserReadable(num) {
|
|
15234
|
+
return !!(num != null && !isNaN(num) && isFinite(num));
|
|
15235
15235
|
}
|
|
15236
15236
|
var isTypeTime = valueType === "time";
|
|
15237
15237
|
var isValueDate = value instanceof Date;
|
|
15238
15238
|
if (isTypeTime || isValueDate) {
|
|
15239
|
-
var
|
|
15240
|
-
if (!isNaN(+
|
|
15241
|
-
return format(
|
|
15239
|
+
var date = isTypeTime ? parseDate(value) : value;
|
|
15240
|
+
if (!isNaN(+date)) {
|
|
15241
|
+
return format(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC);
|
|
15242
15242
|
} else if (isValueDate) {
|
|
15243
15243
|
return "-";
|
|
15244
15244
|
}
|
|
@@ -21863,8 +21863,8 @@ function normalizeSymbolOffset(symbolOffset, symbolSize) {
|
|
|
21863
21863
|
}
|
|
21864
21864
|
return [parsePercent(symbolOffset[0], symbolSize[0]) || 0, parsePercent(retrieve2(symbolOffset[1], symbolOffset[0]), symbolSize[1]) || 0];
|
|
21865
21865
|
}
|
|
21866
|
-
function isSafeNum(
|
|
21867
|
-
return isFinite(
|
|
21866
|
+
function isSafeNum(num) {
|
|
21867
|
+
return isFinite(num);
|
|
21868
21868
|
}
|
|
21869
21869
|
function createLinearGradient(ctx, obj, rect) {
|
|
21870
21870
|
var x2 = obj.x == null ? 0 : obj.x;
|
|
@@ -23144,11 +23144,11 @@ var ECharts = (
|
|
|
23144
23144
|
}
|
|
23145
23145
|
});
|
|
23146
23146
|
});
|
|
23147
|
-
var
|
|
23147
|
+
var url = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(opts).toDataURL("image/" + (opts && opts.type || "png"));
|
|
23148
23148
|
each$f(excludesComponentViews, function(view) {
|
|
23149
23149
|
view.group.ignore = false;
|
|
23150
23150
|
});
|
|
23151
|
-
return
|
|
23151
|
+
return url;
|
|
23152
23152
|
};
|
|
23153
23153
|
ECharts2.prototype.getConnectedDataURL = function(opts) {
|
|
23154
23154
|
if (this._disposed) {
|
|
@@ -27157,8 +27157,8 @@ function getMinutesAndSecondsInterval(approxInterval, isMinutes) {
|
|
|
27157
27157
|
function getMillisecondsInterval(approxInterval) {
|
|
27158
27158
|
return nice(approxInterval, true);
|
|
27159
27159
|
}
|
|
27160
|
-
function getFirstTimestampOfUnit(
|
|
27161
|
-
var outDate = new Date(
|
|
27160
|
+
function getFirstTimestampOfUnit(date, unitName, isUTC) {
|
|
27161
|
+
var outDate = new Date(date);
|
|
27162
27162
|
switch (getPrimaryTimeUnit(unitName)) {
|
|
27163
27163
|
case "year":
|
|
27164
27164
|
case "month":
|
|
@@ -27180,16 +27180,16 @@ function getIntervalTicks(bottomUnitName, approxInterval, isUTC, extent3) {
|
|
|
27180
27180
|
var unitNames = timeUnits;
|
|
27181
27181
|
var iter = 0;
|
|
27182
27182
|
function addTicksInSpan(interval, minTimestamp, maxTimestamp, getMethodName, setMethodName, isDate, out2) {
|
|
27183
|
-
var
|
|
27183
|
+
var date = new Date(minTimestamp);
|
|
27184
27184
|
var dateTime = minTimestamp;
|
|
27185
|
-
var d2 =
|
|
27185
|
+
var d2 = date[getMethodName]();
|
|
27186
27186
|
while (dateTime < maxTimestamp && dateTime <= extent3[1]) {
|
|
27187
27187
|
out2.push({
|
|
27188
27188
|
value: dateTime
|
|
27189
27189
|
});
|
|
27190
27190
|
d2 += interval;
|
|
27191
|
-
|
|
27192
|
-
dateTime =
|
|
27191
|
+
date[setMethodName](d2);
|
|
27192
|
+
dateTime = date.getTime();
|
|
27193
27193
|
}
|
|
27194
27194
|
out2.push({
|
|
27195
27195
|
value: dateTime,
|
|
@@ -40053,8 +40053,8 @@ var urlRegex = /^url\(\s*#(.*?)\)/;
|
|
|
40053
40053
|
function getFillStrokeStyle(el2, method, str, defsUsePending) {
|
|
40054
40054
|
var urlMatch = str && str.match(urlRegex);
|
|
40055
40055
|
if (urlMatch) {
|
|
40056
|
-
var
|
|
40057
|
-
defsUsePending.push([el2, method,
|
|
40056
|
+
var url = trim$1(urlMatch[1]);
|
|
40057
|
+
defsUsePending.push([el2, method, url]);
|
|
40058
40058
|
return;
|
|
40059
40059
|
}
|
|
40060
40060
|
if (str === "none") {
|
|
@@ -60202,15 +60202,15 @@ var CalendarView = (
|
|
|
60202
60202
|
if (i2 === 0) {
|
|
60203
60203
|
firstDay = coordSys.getDateInfo(rangeData.start.y + "-" + rangeData.start.m);
|
|
60204
60204
|
}
|
|
60205
|
-
var
|
|
60206
|
-
|
|
60207
|
-
firstDay = coordSys.getDateInfo(
|
|
60205
|
+
var date = firstDay.date;
|
|
60206
|
+
date.setMonth(date.getMonth() + 1);
|
|
60207
|
+
firstDay = coordSys.getDateInfo(date);
|
|
60208
60208
|
}
|
|
60209
60209
|
addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);
|
|
60210
|
-
function addPoints(
|
|
60211
|
-
self2._firstDayOfMonth.push(coordSys.getDateInfo(
|
|
60212
|
-
self2._firstDayPoints.push(coordSys.dataToRect([
|
|
60213
|
-
var points2 = self2._getLinePointsOfOneWeek(calendarModel,
|
|
60210
|
+
function addPoints(date2) {
|
|
60211
|
+
self2._firstDayOfMonth.push(coordSys.getDateInfo(date2));
|
|
60212
|
+
self2._firstDayPoints.push(coordSys.dataToRect([date2], false).tl);
|
|
60213
|
+
var points2 = self2._getLinePointsOfOneWeek(calendarModel, date2, orient);
|
|
60214
60214
|
self2._tlpoints.push(points2[0]);
|
|
60215
60215
|
self2._blpoints.push(points2[points2.length - 1]);
|
|
60216
60216
|
show && self2._drawSplitline(points2, lineStyleModel, group);
|
|
@@ -60235,9 +60235,9 @@ var CalendarView = (
|
|
|
60235
60235
|
});
|
|
60236
60236
|
group.add(poyline);
|
|
60237
60237
|
};
|
|
60238
|
-
CalendarView2.prototype._getLinePointsOfOneWeek = function(calendarModel,
|
|
60238
|
+
CalendarView2.prototype._getLinePointsOfOneWeek = function(calendarModel, date, orient) {
|
|
60239
60239
|
var coordSys = calendarModel.coordinateSystem;
|
|
60240
|
-
var parsedDate = coordSys.getDateInfo(
|
|
60240
|
+
var parsedDate = coordSys.getDateInfo(date);
|
|
60241
60241
|
var points2 = [];
|
|
60242
60242
|
for (var i2 = 0; i2 < 7; i2++) {
|
|
60243
60243
|
var tmpD = coordSys.getNextNDay(parsedDate.time, i2);
|
|
@@ -60502,33 +60502,33 @@ var Calendar = (
|
|
|
60502
60502
|
Calendar2.prototype.getFirstDayOfWeek = function() {
|
|
60503
60503
|
return this._firstDayOfWeek;
|
|
60504
60504
|
};
|
|
60505
|
-
Calendar2.prototype.getDateInfo = function(
|
|
60506
|
-
|
|
60507
|
-
var y2 =
|
|
60508
|
-
var m2 =
|
|
60505
|
+
Calendar2.prototype.getDateInfo = function(date) {
|
|
60506
|
+
date = parseDate(date);
|
|
60507
|
+
var y2 = date.getFullYear();
|
|
60508
|
+
var m2 = date.getMonth() + 1;
|
|
60509
60509
|
var mStr = m2 < 10 ? "0" + m2 : "" + m2;
|
|
60510
|
-
var d2 =
|
|
60510
|
+
var d2 = date.getDate();
|
|
60511
60511
|
var dStr = d2 < 10 ? "0" + d2 : "" + d2;
|
|
60512
|
-
var day =
|
|
60512
|
+
var day = date.getDay();
|
|
60513
60513
|
day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);
|
|
60514
60514
|
return {
|
|
60515
60515
|
y: y2 + "",
|
|
60516
60516
|
m: mStr,
|
|
60517
60517
|
d: dStr,
|
|
60518
60518
|
day,
|
|
60519
|
-
time:
|
|
60519
|
+
time: date.getTime(),
|
|
60520
60520
|
formatedDate: y2 + "-" + mStr + "-" + dStr,
|
|
60521
|
-
date
|
|
60521
|
+
date
|
|
60522
60522
|
};
|
|
60523
60523
|
};
|
|
60524
|
-
Calendar2.prototype.getNextNDay = function(
|
|
60524
|
+
Calendar2.prototype.getNextNDay = function(date, n2) {
|
|
60525
60525
|
n2 = n2 || 0;
|
|
60526
60526
|
if (n2 === 0) {
|
|
60527
|
-
return this.getDateInfo(
|
|
60527
|
+
return this.getDateInfo(date);
|
|
60528
60528
|
}
|
|
60529
|
-
|
|
60530
|
-
|
|
60531
|
-
return this.getDateInfo(
|
|
60529
|
+
date = new Date(this.getDateInfo(date).time);
|
|
60530
|
+
date.setDate(date.getDate() + n2);
|
|
60531
|
+
return this.getDateInfo(date);
|
|
60532
60532
|
};
|
|
60533
60533
|
Calendar2.prototype.update = function(ecModel, api) {
|
|
60534
60534
|
this._firstDayOfWeek = +this._model.getModel("dayLabel").get("firstDay");
|
|
@@ -60566,20 +60566,20 @@ var Calendar = (
|
|
|
60566
60566
|
clamp2 == null && (clamp2 = true);
|
|
60567
60567
|
var dayInfo = this.getDateInfo(data);
|
|
60568
60568
|
var range = this._rangeInfo;
|
|
60569
|
-
var
|
|
60569
|
+
var date = dayInfo.formatedDate;
|
|
60570
60570
|
if (clamp2 && !(dayInfo.time >= range.start.time && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY)) {
|
|
60571
60571
|
return [NaN, NaN];
|
|
60572
60572
|
}
|
|
60573
60573
|
var week = dayInfo.day;
|
|
60574
|
-
var nthWeek = this._getRangeInfo([range.start.time,
|
|
60574
|
+
var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;
|
|
60575
60575
|
if (this._orient === "vertical") {
|
|
60576
60576
|
return [this._rect.x + week * this._sw + this._sw / 2, this._rect.y + nthWeek * this._sh + this._sh / 2];
|
|
60577
60577
|
}
|
|
60578
60578
|
return [this._rect.x + nthWeek * this._sw + this._sw / 2, this._rect.y + week * this._sh + this._sh / 2];
|
|
60579
60579
|
};
|
|
60580
60580
|
Calendar2.prototype.pointToData = function(point) {
|
|
60581
|
-
var
|
|
60582
|
-
return
|
|
60581
|
+
var date = this.pointToDate(point);
|
|
60582
|
+
return date && date.time;
|
|
60583
60583
|
};
|
|
60584
60584
|
Calendar2.prototype.dataToRect = function(data, clamp2) {
|
|
60585
60585
|
var point = this.dataToPoint(data, clamp2);
|
|
@@ -60662,16 +60662,16 @@ var Calendar = (
|
|
|
60662
60662
|
parsedRange.reverse();
|
|
60663
60663
|
}
|
|
60664
60664
|
var allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY) - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1;
|
|
60665
|
-
var
|
|
60666
|
-
var startDateNum =
|
|
60665
|
+
var date = new Date(parsedRange[0].time);
|
|
60666
|
+
var startDateNum = date.getDate();
|
|
60667
60667
|
var endDateNum = parsedRange[1].date.getDate();
|
|
60668
|
-
|
|
60669
|
-
var dateNum =
|
|
60668
|
+
date.setDate(startDateNum + allDay - 1);
|
|
60669
|
+
var dateNum = date.getDate();
|
|
60670
60670
|
if (dateNum !== endDateNum) {
|
|
60671
|
-
var sign =
|
|
60672
|
-
while ((dateNum =
|
|
60671
|
+
var sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1;
|
|
60672
|
+
while ((dateNum = date.getDate()) !== endDateNum && (date.getTime() - parsedRange[1].time) * sign > 0) {
|
|
60673
60673
|
allDay -= sign;
|
|
60674
|
-
|
|
60674
|
+
date.setDate(dateNum - sign);
|
|
60675
60675
|
}
|
|
60676
60676
|
}
|
|
60677
60677
|
var weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7);
|
|
@@ -60695,9 +60695,9 @@ var Calendar = (
|
|
|
60695
60695
|
return null;
|
|
60696
60696
|
}
|
|
60697
60697
|
var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;
|
|
60698
|
-
var
|
|
60699
|
-
|
|
60700
|
-
return this.getDateInfo(
|
|
60698
|
+
var date = new Date(rangeInfo.start.time);
|
|
60699
|
+
date.setDate(+rangeInfo.start.d + nthDay);
|
|
60700
|
+
return this.getDateInfo(date);
|
|
60701
60701
|
};
|
|
60702
60702
|
Calendar2.create = function(ecModel, api) {
|
|
60703
60703
|
var calendarList = [];
|
|
@@ -62246,7 +62246,7 @@ var SaveAsImage = (
|
|
|
62246
62246
|
var title = model.get("name") || ecModel.get("title.0.text") || "echarts";
|
|
62247
62247
|
var isSvg = api.getZr().painter.getType() === "svg";
|
|
62248
62248
|
var type = isSvg ? "svg" : model.get("type", true) || "png";
|
|
62249
|
-
var
|
|
62249
|
+
var url = api.getConnectedDataURL({
|
|
62250
62250
|
type,
|
|
62251
62251
|
backgroundColor: model.get("backgroundColor", true) || ecModel.get("backgroundColor") || "#fff",
|
|
62252
62252
|
connectedBackgroundColor: model.get("connectedBackgroundColor"),
|
|
@@ -62258,7 +62258,7 @@ var SaveAsImage = (
|
|
|
62258
62258
|
var $a2 = document.createElement("a");
|
|
62259
62259
|
$a2.download = title + "." + type;
|
|
62260
62260
|
$a2.target = "_blank";
|
|
62261
|
-
$a2.href =
|
|
62261
|
+
$a2.href = url;
|
|
62262
62262
|
var evt = new MouseEvent("click", {
|
|
62263
62263
|
// some micro front-end framework, window maybe is a Proxy
|
|
62264
62264
|
view: document.defaultView,
|
|
@@ -62268,7 +62268,7 @@ var SaveAsImage = (
|
|
|
62268
62268
|
$a2.dispatchEvent(evt);
|
|
62269
62269
|
} else {
|
|
62270
62270
|
if (window.navigator.msSaveOrOpenBlob || isSvg) {
|
|
62271
|
-
var parts =
|
|
62271
|
+
var parts = url.split(",");
|
|
62272
62272
|
var base64Encoded = parts[0].indexOf("base64") > -1;
|
|
62273
62273
|
var bstr = isSvg ? decodeURIComponent(parts[1]) : parts[1];
|
|
62274
62274
|
base64Encoded && (bstr = window.atob(bstr));
|
|
@@ -62295,7 +62295,7 @@ var SaveAsImage = (
|
|
|
62295
62295
|
}
|
|
62296
62296
|
} else {
|
|
62297
62297
|
var lang = model.get("lang");
|
|
62298
|
-
var html = '<body style="margin:0;"><img src="' +
|
|
62298
|
+
var html = '<body style="margin:0;"><img src="' + url + '" style="max-width:100%;" title="' + (lang && lang[0] || "") + '" /></body>';
|
|
62299
62299
|
var tab = window.open();
|
|
62300
62300
|
tab.document.write(html);
|
|
62301
62301
|
tab.document.title = title;
|
|
@@ -74053,7 +74053,7 @@ function getPie1(myChart, id, data) {
|
|
|
74053
74053
|
myChart.setOption(option, true);
|
|
74054
74054
|
return myChart;
|
|
74055
74055
|
}
|
|
74056
|
-
const
|
|
74056
|
+
const LJSec = {
|
|
74057
74057
|
getLine1,
|
|
74058
74058
|
getLine2,
|
|
74059
74059
|
getBar1,
|
|
@@ -74075,7 +74075,7 @@ function pieChange(data, key = "val") {
|
|
|
74075
74075
|
}
|
|
74076
74076
|
return data;
|
|
74077
74077
|
}
|
|
74078
|
-
const
|
|
74078
|
+
const LJSecDC = {
|
|
74079
74079
|
pieChange
|
|
74080
74080
|
};
|
|
74081
74081
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -74108,7 +74108,7 @@ function getAugmentedNamespace(n2) {
|
|
|
74108
74108
|
});
|
|
74109
74109
|
return a2;
|
|
74110
74110
|
}
|
|
74111
|
-
var cryptoJs
|
|
74111
|
+
var cryptoJs = { exports: {} };
|
|
74112
74112
|
function commonjsRequire(path) {
|
|
74113
74113
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
74114
74114
|
}
|
|
@@ -80675,8 +80675,8 @@ function requireBlowfish() {
|
|
|
80675
80675
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
80676
80676
|
return CryptoJS2;
|
|
80677
80677
|
});
|
|
80678
|
-
})(cryptoJs
|
|
80679
|
-
var cryptoJsExports = cryptoJs
|
|
80678
|
+
})(cryptoJs);
|
|
80679
|
+
var cryptoJsExports = cryptoJs.exports;
|
|
80680
80680
|
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
80681
80681
|
function setDES(word, keyStr) {
|
|
80682
80682
|
word = word.toString();
|
|
@@ -80711,7 +80711,7 @@ function setSha256(word) {
|
|
|
80711
80711
|
function setMD5(word) {
|
|
80712
80712
|
return CryptoJS.MD5(word).toString();
|
|
80713
80713
|
}
|
|
80714
|
-
const
|
|
80714
|
+
const LJScryptoJs = {
|
|
80715
80715
|
setDES,
|
|
80716
80716
|
getDES,
|
|
80717
80717
|
setSha256,
|
|
@@ -80736,8 +80736,8 @@ function getLS(key) {
|
|
|
80736
80736
|
return null;
|
|
80737
80737
|
}
|
|
80738
80738
|
if (data.time) {
|
|
80739
|
-
data.startTime =
|
|
80740
|
-
data.time =
|
|
80739
|
+
data.startTime = LJScryptoJs.getDES(data.startTime, timeKey);
|
|
80740
|
+
data.time = LJScryptoJs.getDES(data.time, timeKey);
|
|
80741
80741
|
const endTime = (/* @__PURE__ */ new Date()).getTime();
|
|
80742
80742
|
if (endTime - data.startTime > data.time) {
|
|
80743
80743
|
delLS(key);
|
|
@@ -80751,8 +80751,8 @@ function setLS(key, value, time2 = 0) {
|
|
|
80751
80751
|
value
|
|
80752
80752
|
};
|
|
80753
80753
|
if (time2 > 0) {
|
|
80754
|
-
data.startTime =
|
|
80755
|
-
data.time =
|
|
80754
|
+
data.startTime = LJScryptoJs.setDES((/* @__PURE__ */ new Date()).getTime(), timeKey);
|
|
80755
|
+
data.time = LJScryptoJs.setDES(time2, timeKey);
|
|
80756
80756
|
}
|
|
80757
80757
|
localStorage.setItem(key, JSON.stringify(data));
|
|
80758
80758
|
}
|
|
@@ -80762,7 +80762,7 @@ function delLS(key) {
|
|
|
80762
80762
|
function clearLS() {
|
|
80763
80763
|
localStorage.clear();
|
|
80764
80764
|
}
|
|
80765
|
-
const
|
|
80765
|
+
const LJSsession = {
|
|
80766
80766
|
getSS,
|
|
80767
80767
|
setSS,
|
|
80768
80768
|
delSS,
|
|
@@ -80812,7 +80812,7 @@ function rgbToC16(color2) {
|
|
|
80812
80812
|
function random16Color() {
|
|
80813
80813
|
return `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`;
|
|
80814
80814
|
}
|
|
80815
|
-
const
|
|
80815
|
+
const LJSrgbC = {
|
|
80816
80816
|
c16ToRgb,
|
|
80817
80817
|
rgbToC16,
|
|
80818
80818
|
random16Color
|
|
@@ -80828,7 +80828,7 @@ function isIPV6ValidIP(ip2) {
|
|
|
80828
80828
|
function isIPValid(ip2) {
|
|
80829
80829
|
return isIPV6ValidIP(ip2) || isIPV4ValidIP(ip2);
|
|
80830
80830
|
}
|
|
80831
|
-
const
|
|
80831
|
+
const LJSurl = {
|
|
80832
80832
|
isIPV4ValidIP,
|
|
80833
80833
|
isIPV6ValidIP,
|
|
80834
80834
|
isIPValid
|
|
@@ -81015,7 +81015,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81015
81015
|
]);
|
|
81016
81016
|
}
|
|
81017
81017
|
const Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-fc144f23"]]);
|
|
81018
|
-
const
|
|
81018
|
+
const index_vue_vue_type_style_index_0_scoped_4631d3d4_lang = "";
|
|
81019
81019
|
const _sfc_main$4 = {
|
|
81020
81020
|
name: "DatetypeChooseDate",
|
|
81021
81021
|
props: {
|
|
@@ -81025,11 +81025,6 @@ const _sfc_main$4 = {
|
|
|
81025
81025
|
dictValue: String,
|
|
81026
81026
|
// 日期类型字典数据
|
|
81027
81027
|
datetypeData: Array,
|
|
81028
|
-
// 字典key值
|
|
81029
|
-
dateTypeKey: {
|
|
81030
|
-
type: String,
|
|
81031
|
-
default: "date_type"
|
|
81032
|
-
},
|
|
81033
81028
|
// 字典key值对应的value值,按照年月日的顺序,默认年为1日为3
|
|
81034
81029
|
dateTypeKeyValue: {
|
|
81035
81030
|
type: Array,
|
|
@@ -81068,7 +81063,7 @@ const _sfc_main$4 = {
|
|
|
81068
81063
|
},
|
|
81069
81064
|
computed: {
|
|
81070
81065
|
disabledDate() {
|
|
81071
|
-
return
|
|
81066
|
+
return LJSfc.pickerOptions(this.dateType, this.disabledDateSpan, this.dateTypeKeyValue);
|
|
81072
81067
|
},
|
|
81073
81068
|
dateType: {
|
|
81074
81069
|
get() {
|
|
@@ -81133,20 +81128,20 @@ const _sfc_main$4 = {
|
|
|
81133
81128
|
// 日期类型切换
|
|
81134
81129
|
dateTypeF(val) {
|
|
81135
81130
|
this.opts.dateTypeTag = false;
|
|
81136
|
-
let
|
|
81131
|
+
let date = Date.now();
|
|
81137
81132
|
this.dateType = val;
|
|
81138
81133
|
let year = null;
|
|
81139
81134
|
let month = null;
|
|
81140
81135
|
switch (val) {
|
|
81141
81136
|
case this.dateTypeKeyValue[2]:
|
|
81142
|
-
|
|
81137
|
+
date += this.disabledDateSpan * 3600 * 1e3 * 24;
|
|
81143
81138
|
this.opts.dateType = "date";
|
|
81144
81139
|
this.opts.valueFormat = "YYYY-MM-DD";
|
|
81145
|
-
this.dateValue = this.$date.formatTime(
|
|
81140
|
+
this.dateValue = this.$date.formatTime(date, "{y}-{m}-{d}");
|
|
81146
81141
|
break;
|
|
81147
81142
|
case this.dateTypeKeyValue[1]:
|
|
81148
|
-
year = new Date(
|
|
81149
|
-
month = new Date(
|
|
81143
|
+
year = new Date(date).getFullYear();
|
|
81144
|
+
month = new Date(date).getMonth() + this.disabledDateSpan;
|
|
81150
81145
|
if (month < 0) {
|
|
81151
81146
|
year += this.disabledDateSpan;
|
|
81152
81147
|
month = 12;
|
|
@@ -81158,7 +81153,7 @@ const _sfc_main$4 = {
|
|
|
81158
81153
|
this.dateValue = this.$date.formatTime(/* @__PURE__ */ new Date(`${year}-${month}`), "{y}-{m}");
|
|
81159
81154
|
break;
|
|
81160
81155
|
case this.dateTypeKeyValue[0]:
|
|
81161
|
-
year = new Date(
|
|
81156
|
+
year = new Date(date).getFullYear();
|
|
81162
81157
|
year += this.disabledDateSpan;
|
|
81163
81158
|
this.opts.dateType = "year";
|
|
81164
81159
|
this.opts.valueFormat = "YYYY";
|
|
@@ -81217,8 +81212,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81217
81212
|
_: 1
|
|
81218
81213
|
}, 8, ["label"]);
|
|
81219
81214
|
}
|
|
81220
|
-
const DatetypeChooseDate = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
81221
|
-
const
|
|
81215
|
+
const DatetypeChooseDate = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-4631d3d4"]]);
|
|
81216
|
+
const index_vue_vue_type_style_index_0_scoped_7f633e25_lang = "";
|
|
81222
81217
|
const _sfc_main$3 = {
|
|
81223
81218
|
name: "DatetypeChooseDateRange",
|
|
81224
81219
|
props: {
|
|
@@ -81228,11 +81223,6 @@ const _sfc_main$3 = {
|
|
|
81228
81223
|
dictValue: String,
|
|
81229
81224
|
// 日期类型字典数据
|
|
81230
81225
|
datetypeData: Array,
|
|
81231
|
-
// 字典key值
|
|
81232
|
-
dateTypeKey: {
|
|
81233
|
-
type: String,
|
|
81234
|
-
default: "date_type"
|
|
81235
|
-
},
|
|
81236
81226
|
// 字典key值对应的value值,按照年月日的顺序,默认年为1日为3
|
|
81237
81227
|
dateTypeKeyValue: {
|
|
81238
81228
|
type: Array,
|
|
@@ -81337,27 +81327,27 @@ const _sfc_main$3 = {
|
|
|
81337
81327
|
this.opts.dateTypeTag = false;
|
|
81338
81328
|
this.dateType = val;
|
|
81339
81329
|
let dateValue = [];
|
|
81340
|
-
const
|
|
81330
|
+
const date = /* @__PURE__ */ new Date();
|
|
81341
81331
|
switch (val) {
|
|
81342
81332
|
case this.dateTypeKeyValue[3]:
|
|
81343
81333
|
this.opts.dateType = "daterange";
|
|
81344
81334
|
this.opts.valueFormat = "YYYY-MM-DD";
|
|
81345
|
-
dateValue = [this.$date.formatTime(
|
|
81335
|
+
dateValue = [this.$date.formatTime(date, "{y}-{m}-{d}"), this.$date.formatTime(date, "{y}-{m}-{d}")];
|
|
81346
81336
|
break;
|
|
81347
81337
|
case this.dateTypeKeyValue[2]:
|
|
81348
81338
|
this.opts.dateType = "daterange";
|
|
81349
81339
|
this.opts.valueFormat = "YYYY-MM-DD";
|
|
81350
|
-
dateValue = [this.$date.formatTime(
|
|
81340
|
+
dateValue = [this.$date.formatTime(date, "{y}-{m}-01"), this.$date.formatTime(date, "{y}-{m}-{d}")];
|
|
81351
81341
|
break;
|
|
81352
81342
|
case this.dateTypeKeyValue[1]:
|
|
81353
81343
|
this.opts.dateType = "monthrange";
|
|
81354
81344
|
this.opts.valueFormat = "YYYY-MM";
|
|
81355
|
-
dateValue = [this.$date.formatTime(
|
|
81345
|
+
dateValue = [this.$date.formatTime(date, "{y}-01"), this.$date.formatTime(date, "{y}-{m}")];
|
|
81356
81346
|
break;
|
|
81357
81347
|
case this.dateTypeKeyValue[0]:
|
|
81358
81348
|
this.opts.dateType = "year";
|
|
81359
81349
|
this.opts.valueFormat = "YYYY";
|
|
81360
|
-
dateValue = [(
|
|
81350
|
+
dateValue = [(date.getFullYear() - 4).toString(), date.getFullYear().toString()];
|
|
81361
81351
|
break;
|
|
81362
81352
|
}
|
|
81363
81353
|
this.dateValue = dateValue;
|
|
@@ -81411,7 +81401,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81411
81401
|
placeholder: "请选择",
|
|
81412
81402
|
editable: false,
|
|
81413
81403
|
clearable: false,
|
|
81414
|
-
"disabled-date": _ctx
|
|
81404
|
+
"disabled-date": _ctx.LJSfc.pickerOptions()
|
|
81415
81405
|
}, null, 8, ["modelValue", "value-format", "type", "disabled-date"])) : createCommentVNode("", true),
|
|
81416
81406
|
$data.opts.dateType === "year" ? (openBlock(), createBlock(_component_el_date_picker, {
|
|
81417
81407
|
key: 1,
|
|
@@ -81423,7 +81413,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81423
81413
|
placeholder: "请选择",
|
|
81424
81414
|
editable: false,
|
|
81425
81415
|
clearable: false,
|
|
81426
|
-
"disabled-date": _ctx
|
|
81416
|
+
"disabled-date": _ctx.LJSfc.pickerOptions(),
|
|
81427
81417
|
onChange: $options.yearChange
|
|
81428
81418
|
}, null, 8, ["modelValue", "value-format", "type", "disabled-date", "onChange"])) : createCommentVNode("", true),
|
|
81429
81419
|
$data.opts.dateType === "year" ? (openBlock(), createElementBlock("span", _hoisted_3$1, "~")) : createCommentVNode("", true),
|
|
@@ -81437,7 +81427,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81437
81427
|
placeholder: "请选择",
|
|
81438
81428
|
editable: false,
|
|
81439
81429
|
clearable: false,
|
|
81440
|
-
"disabled-date": _ctx
|
|
81430
|
+
"disabled-date": _ctx.LJSfc.pickerOptions(),
|
|
81441
81431
|
onChange: $options.yearChange
|
|
81442
81432
|
}, null, 8, ["modelValue", "value-format", "type", "disabled-date", "onChange"])) : createCommentVNode("", true)
|
|
81443
81433
|
])) : createCommentVNode("", true)
|
|
@@ -81448,7 +81438,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81448
81438
|
_: 1
|
|
81449
81439
|
}, 8, ["label"]);
|
|
81450
81440
|
}
|
|
81451
|
-
const DatetypeChooseDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
81441
|
+
const DatetypeChooseDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-7f633e25"]]);
|
|
81452
81442
|
const index_vue_vue_type_style_index_0_scoped_8aa09f48_lang = "";
|
|
81453
81443
|
const _sfc_main$2 = {
|
|
81454
81444
|
name: "DictTag",
|
|
@@ -87003,8 +86993,8 @@ var quill = { exports: {} };
|
|
|
87003
86993
|
}
|
|
87004
86994
|
}, {
|
|
87005
86995
|
key: "sanitize",
|
|
87006
|
-
value: function sanitize(
|
|
87007
|
-
return _sanitize(
|
|
86996
|
+
value: function sanitize(url) {
|
|
86997
|
+
return _sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
|
|
87008
86998
|
}
|
|
87009
86999
|
}]);
|
|
87010
87000
|
return Link2;
|
|
@@ -87013,9 +87003,9 @@ var quill = { exports: {} };
|
|
|
87013
87003
|
Link.tagName = "A";
|
|
87014
87004
|
Link.SANITIZED_URL = "about:blank";
|
|
87015
87005
|
Link.PROTOCOL_WHITELIST = ["http", "https", "mailto", "tel"];
|
|
87016
|
-
function _sanitize(
|
|
87006
|
+
function _sanitize(url, protocols) {
|
|
87017
87007
|
var anchor = document.createElement("a");
|
|
87018
|
-
anchor.href =
|
|
87008
|
+
anchor.href = url;
|
|
87019
87009
|
var protocol = anchor.href.slice(0, anchor.href.indexOf(":"));
|
|
87020
87010
|
return protocols.indexOf(protocol) > -1;
|
|
87021
87011
|
}
|
|
@@ -88609,15 +88599,15 @@ var quill = { exports: {} };
|
|
|
88609
88599
|
}]);
|
|
88610
88600
|
return BaseTooltip2;
|
|
88611
88601
|
}(_tooltip2.default);
|
|
88612
|
-
function extractVideoUrl(
|
|
88613
|
-
var match =
|
|
88602
|
+
function extractVideoUrl(url) {
|
|
88603
|
+
var match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
88614
88604
|
if (match) {
|
|
88615
88605
|
return (match[1] || "https") + "://www.youtube.com/embed/" + match[2] + "?showinfo=0";
|
|
88616
88606
|
}
|
|
88617
|
-
if (match =
|
|
88607
|
+
if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
|
|
88618
88608
|
return (match[1] || "https") + "://player.vimeo.com/video/" + match[2] + "/";
|
|
88619
88609
|
}
|
|
88620
|
-
return
|
|
88610
|
+
return url;
|
|
88621
88611
|
}
|
|
88622
88612
|
function fillSelect(select, values) {
|
|
88623
88613
|
var defaultValue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
@@ -92325,13 +92315,13 @@ var quill = { exports: {} };
|
|
|
92325
92315
|
}
|
|
92326
92316
|
}, {
|
|
92327
92317
|
key: "match",
|
|
92328
|
-
value: function match(
|
|
92329
|
-
return /\.(jpe?g|gif|png)$/.test(
|
|
92318
|
+
value: function match(url) {
|
|
92319
|
+
return /\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url);
|
|
92330
92320
|
}
|
|
92331
92321
|
}, {
|
|
92332
92322
|
key: "sanitize",
|
|
92333
|
-
value: function sanitize(
|
|
92334
|
-
return (0, _link.sanitize)(
|
|
92323
|
+
value: function sanitize(url) {
|
|
92324
|
+
return (0, _link.sanitize)(url, ["http", "https", "data"]) ? url : "//:0";
|
|
92335
92325
|
}
|
|
92336
92326
|
}, {
|
|
92337
92327
|
key: "value",
|
|
@@ -92457,8 +92447,8 @@ var quill = { exports: {} };
|
|
|
92457
92447
|
}
|
|
92458
92448
|
}, {
|
|
92459
92449
|
key: "sanitize",
|
|
92460
|
-
value: function sanitize(
|
|
92461
|
-
return _link2.default.sanitize(
|
|
92450
|
+
value: function sanitize(url) {
|
|
92451
|
+
return _link2.default.sanitize(url);
|
|
92462
92452
|
}
|
|
92463
92453
|
}, {
|
|
92464
92454
|
key: "value",
|
|
@@ -94199,15 +94189,15 @@ var pJS = function(tag_id, params) {
|
|
|
94199
94189
|
}
|
|
94200
94190
|
return color_value;
|
|
94201
94191
|
});
|
|
94202
|
-
var svg = new Blob([coloredSvgXml], { type: "image/svg+xml;charset=utf-8" }), DOMURL = window.URL || window.webkitURL || window,
|
|
94192
|
+
var svg = new Blob([coloredSvgXml], { type: "image/svg+xml;charset=utf-8" }), DOMURL = window.URL || window.webkitURL || window, url = DOMURL.createObjectURL(svg);
|
|
94203
94193
|
var img = new Image();
|
|
94204
94194
|
img.addEventListener("load", function() {
|
|
94205
94195
|
p2.img.obj = img;
|
|
94206
94196
|
p2.img.loaded = true;
|
|
94207
|
-
DOMURL.revokeObjectURL(
|
|
94197
|
+
DOMURL.revokeObjectURL(url);
|
|
94208
94198
|
pJS2.tmp.count_svg++;
|
|
94209
94199
|
});
|
|
94210
|
-
img.src =
|
|
94200
|
+
img.src = url;
|
|
94211
94201
|
};
|
|
94212
94202
|
pJS2.fn.vendors.destroypJS = function() {
|
|
94213
94203
|
cancelAnimationFrame(pJS2.fn.drawAnimFrame);
|
|
@@ -100228,12 +100218,12 @@ var CacheStorage = (
|
|
|
100228
100218
|
function() {
|
|
100229
100219
|
function CacheStorage2() {
|
|
100230
100220
|
}
|
|
100231
|
-
CacheStorage2.getOrigin = function(
|
|
100221
|
+
CacheStorage2.getOrigin = function(url) {
|
|
100232
100222
|
var link = CacheStorage2._link;
|
|
100233
100223
|
if (!link) {
|
|
100234
100224
|
return "about:blank";
|
|
100235
100225
|
}
|
|
100236
|
-
link.href =
|
|
100226
|
+
link.href = url;
|
|
100237
100227
|
link.href = link.href;
|
|
100238
100228
|
return link.protocol + link.hostname + link.port;
|
|
100239
100229
|
};
|
|
@@ -101343,7 +101333,7 @@ var CanvasRenderer = (
|
|
|
101343
101333
|
};
|
|
101344
101334
|
CanvasRenderer2.prototype.renderNodeContent = function(paint) {
|
|
101345
101335
|
return __awaiter(this, void 0, void 0, function() {
|
|
101346
|
-
var container, curves, styles, _i, _a2, child, image2, image2, iframeRenderer, canvas, size, _b2, fontFamily2, fontSize2, baseline, bounds, x2, textBounds, img, image2,
|
|
101336
|
+
var container, curves, styles, _i, _a2, child, image2, image2, iframeRenderer, canvas, size, _b2, fontFamily2, fontSize2, baseline, bounds, x2, textBounds, img, image2, url, fontFamily2, bounds;
|
|
101347
101337
|
return __generator(this, function(_c2) {
|
|
101348
101338
|
switch (_c2.label) {
|
|
101349
101339
|
case 0:
|
|
@@ -101491,18 +101481,18 @@ var CanvasRenderer = (
|
|
|
101491
101481
|
if (!(img.type === 0))
|
|
101492
101482
|
return [3, 18];
|
|
101493
101483
|
image2 = void 0;
|
|
101494
|
-
|
|
101484
|
+
url = img.url;
|
|
101495
101485
|
_c2.label = 15;
|
|
101496
101486
|
case 15:
|
|
101497
101487
|
_c2.trys.push([15, 17, , 18]);
|
|
101498
|
-
return [4, this.context.cache.match(
|
|
101488
|
+
return [4, this.context.cache.match(url)];
|
|
101499
101489
|
case 16:
|
|
101500
101490
|
image2 = _c2.sent();
|
|
101501
101491
|
this.ctx.drawImage(image2, container.bounds.left - (image2.width + 10), container.bounds.top);
|
|
101502
101492
|
return [3, 18];
|
|
101503
101493
|
case 17:
|
|
101504
101494
|
_c2.sent();
|
|
101505
|
-
this.context.logger.error("Error loading list-style-image " +
|
|
101495
|
+
this.context.logger.error("Error loading list-style-image " + url);
|
|
101506
101496
|
return [3, 18];
|
|
101507
101497
|
case 18:
|
|
101508
101498
|
return [3, 20];
|
|
@@ -101710,24 +101700,24 @@ var CanvasRenderer = (
|
|
|
101710
101700
|
case 0:
|
|
101711
101701
|
index2 = container.styles.backgroundImage.length - 1;
|
|
101712
101702
|
_loop_1 = function(backgroundImage3) {
|
|
101713
|
-
var image2,
|
|
101703
|
+
var image2, url, _c2, path, x2, y2, width, height, pattern, _d, path, x2, y2, width, height, _e, lineLength, x0, x1, y0, y1, canvas, ctx, gradient_1, pattern, _f, path, left, top_1, width, height, position2, x2, y2, _g, rx, ry, radialGradient_1, midX, midY, f3, invF;
|
|
101714
101704
|
return __generator(this, function(_h) {
|
|
101715
101705
|
switch (_h.label) {
|
|
101716
101706
|
case 0:
|
|
101717
101707
|
if (!(backgroundImage3.type === 0))
|
|
101718
101708
|
return [3, 5];
|
|
101719
101709
|
image2 = void 0;
|
|
101720
|
-
|
|
101710
|
+
url = backgroundImage3.url;
|
|
101721
101711
|
_h.label = 1;
|
|
101722
101712
|
case 1:
|
|
101723
101713
|
_h.trys.push([1, 3, , 4]);
|
|
101724
|
-
return [4, this_1.context.cache.match(
|
|
101714
|
+
return [4, this_1.context.cache.match(url)];
|
|
101725
101715
|
case 2:
|
|
101726
101716
|
image2 = _h.sent();
|
|
101727
101717
|
return [3, 4];
|
|
101728
101718
|
case 3:
|
|
101729
101719
|
_h.sent();
|
|
101730
|
-
this_1.context.logger.error("Error loading background-image " +
|
|
101720
|
+
this_1.context.logger.error("Error loading background-image " + url);
|
|
101731
101721
|
return [3, 4];
|
|
101732
101722
|
case 4:
|
|
101733
101723
|
if (image2) {
|
|
@@ -110535,7 +110525,7 @@ function(t2) {
|
|
|
110535
110525
|
*/
|
|
110536
110526
|
function(t2) {
|
|
110537
110527
|
function e2() {
|
|
110538
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
110528
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-ea4343ac.js")).catch(function(t3) {
|
|
110539
110529
|
return Promise.reject(new Error("Could not load canvg: " + t3));
|
|
110540
110530
|
}).then(function(t3) {
|
|
110541
110531
|
return t3.default ? t3.default : t3;
|
|
@@ -111483,12 +111473,12 @@ const isSplit = (nodes, index2, pageHeight) => {
|
|
|
111483
111473
|
}
|
|
111484
111474
|
};
|
|
111485
111475
|
let ws = null;
|
|
111486
|
-
function init(
|
|
111476
|
+
function init(url, token = null, dataChangeF) {
|
|
111487
111477
|
if ("WebSocket" in window) {
|
|
111488
|
-
|
|
111478
|
+
url = getUrl(url);
|
|
111489
111479
|
const wsT = token === null ? [] : [token];
|
|
111490
111480
|
console.log(wsT);
|
|
111491
|
-
ws = new WebSocket(
|
|
111481
|
+
ws = new WebSocket(url, wsT);
|
|
111492
111482
|
ws.onopen = function() {
|
|
111493
111483
|
LJSbase.colorLog(["websocket", "已连接,正在接收数据...."], "log");
|
|
111494
111484
|
};
|
|
@@ -111505,18 +111495,18 @@ function init(url2, token = null, dataChangeF) {
|
|
|
111505
111495
|
}
|
|
111506
111496
|
return null;
|
|
111507
111497
|
}
|
|
111508
|
-
function getUrl(
|
|
111498
|
+
function getUrl(url) {
|
|
111509
111499
|
if (location.protocol === "http:") {
|
|
111510
|
-
|
|
111500
|
+
url = "ws:" + url;
|
|
111511
111501
|
} else if (location.protocol === "https:") {
|
|
111512
|
-
|
|
111502
|
+
url = "wss:" + url;
|
|
111513
111503
|
} else {
|
|
111514
|
-
|
|
111504
|
+
url = "ws:" + url;
|
|
111515
111505
|
}
|
|
111516
|
-
return
|
|
111506
|
+
return url;
|
|
111517
111507
|
}
|
|
111518
|
-
function wsUrl(
|
|
111519
|
-
let wsUrl2 = {}.VITE_APP_API_URL +
|
|
111508
|
+
function wsUrl(url) {
|
|
111509
|
+
let wsUrl2 = {}.VITE_APP_API_URL + url;
|
|
111520
111510
|
{
|
|
111521
111511
|
wsUrl2 = location.host + wsUrl2;
|
|
111522
111512
|
}
|
|
@@ -113816,12 +113806,12 @@ var fi = M((kT, Zi) => {
|
|
|
113816
113806
|
return t2.aborted ? r() : (t2.addEventListener("abort", r), Yb(e2, () => t2.removeEventListener("abort", r))), e2;
|
|
113817
113807
|
};
|
|
113818
113808
|
});
|
|
113819
|
-
var cc = M((HT,
|
|
113809
|
+
var cc = M((HT, fc) => {
|
|
113820
113810
|
_();
|
|
113821
113811
|
v();
|
|
113822
113812
|
m();
|
|
113823
113813
|
var { StringPrototypeSlice: uc, SymbolIterator: Xb, TypedArrayPrototypeSet: en, Uint8Array: Zb } = ce(), { Buffer: Ds } = (we(), Z(ve)), { inspect: ew } = Je();
|
|
113824
|
-
|
|
113814
|
+
fc.exports = class {
|
|
113825
113815
|
constructor() {
|
|
113826
113816
|
this.head = null, this.tail = null, this.length = 0;
|
|
113827
113817
|
}
|
|
@@ -123129,7 +123119,7 @@ class createds {
|
|
|
123129
123119
|
this.subscribe = subscribe;
|
|
123130
123120
|
}
|
|
123131
123121
|
//初始化mqtt
|
|
123132
|
-
init(opts,
|
|
123122
|
+
init(opts, url) {
|
|
123133
123123
|
const options = {
|
|
123134
123124
|
clientId: "mqttjs_" + Math.random().toString(16).substr(2, 8),
|
|
123135
123125
|
clean: true,
|
|
@@ -123141,7 +123131,7 @@ class createds {
|
|
|
123141
123131
|
};
|
|
123142
123132
|
options.username = opts.username;
|
|
123143
123133
|
options.password = opts.password;
|
|
123144
|
-
this.url =
|
|
123134
|
+
this.url = url;
|
|
123145
123135
|
this.client = mqtt.connect(this.url, options);
|
|
123146
123136
|
}
|
|
123147
123137
|
//取消订阅
|
|
@@ -123191,15 +123181,15 @@ class createds {
|
|
|
123191
123181
|
{
|
|
123192
123182
|
wsUrl2 = location.host + wsUrl2;
|
|
123193
123183
|
}
|
|
123194
|
-
let
|
|
123184
|
+
let url = "";
|
|
123195
123185
|
if (location.protocol === "http:") {
|
|
123196
|
-
|
|
123186
|
+
url = "ws:" + wsUrl2;
|
|
123197
123187
|
} else if (location.protocol === "https:") {
|
|
123198
|
-
|
|
123188
|
+
url = "wss:" + wsUrl2;
|
|
123199
123189
|
} else {
|
|
123200
|
-
|
|
123190
|
+
url = "ws:" + wsUrl2;
|
|
123201
123191
|
}
|
|
123202
|
-
return
|
|
123192
|
+
return url;
|
|
123203
123193
|
}
|
|
123204
123194
|
}
|
|
123205
123195
|
//创建公共变量
|
|
@@ -123221,15 +123211,15 @@ const self$1 = {
|
|
|
123221
123211
|
const tools = [
|
|
123222
123212
|
// {type: 'function', name: 'apiQC', entity: apiQC},
|
|
123223
123213
|
{ type: "function", name: "base", entity: LJSbase },
|
|
123224
|
-
{ type: "function", name: "num", entity:
|
|
123225
|
-
{ type: "function", name: "date", entity:
|
|
123226
|
-
{ type: "function", name: "fc", entity:
|
|
123227
|
-
{ type: "function", name: "ec", entity:
|
|
123228
|
-
{ type: "function", name: "ecDC", entity:
|
|
123229
|
-
{ type: "function", name: "session", entity:
|
|
123230
|
-
{ type: "function", name: "cryptoJs", entity:
|
|
123231
|
-
{ type: "function", name: "rgbC", entity:
|
|
123232
|
-
{ type: "function", name: "url", entity:
|
|
123214
|
+
{ type: "function", name: "num", entity: LJSnum },
|
|
123215
|
+
{ type: "function", name: "date", entity: LJSdate },
|
|
123216
|
+
{ type: "function", name: "fc", entity: LJSfc },
|
|
123217
|
+
{ type: "function", name: "ec", entity: LJSec },
|
|
123218
|
+
{ type: "function", name: "ecDC", entity: LJSecDC },
|
|
123219
|
+
{ type: "function", name: "session", entity: LJSsession },
|
|
123220
|
+
{ type: "function", name: "cryptoJs", entity: LJScryptoJs },
|
|
123221
|
+
{ type: "function", name: "rgbC", entity: LJSrgbC },
|
|
123222
|
+
{ type: "function", name: "url", entity: LJSurl },
|
|
123233
123223
|
// {type: 'directive', name: 'directives', entity: directives},
|
|
123234
123224
|
{ type: "component", name: "LJSLoading", entity: LJSLoading },
|
|
123235
123225
|
{ type: "component", name: "Pagination", entity: Pagination },
|
|
@@ -123267,7 +123257,16 @@ const globals = {
|
|
|
123267
123257
|
Editor,
|
|
123268
123258
|
Particles,
|
|
123269
123259
|
// 方法
|
|
123270
|
-
LJSbase
|
|
123260
|
+
LJSbase,
|
|
123261
|
+
LJSnum,
|
|
123262
|
+
LJSdate,
|
|
123263
|
+
LJSfc,
|
|
123264
|
+
LJSec,
|
|
123265
|
+
LJSecDC,
|
|
123266
|
+
LJSsession,
|
|
123267
|
+
LJScryptoJs,
|
|
123268
|
+
LJSrgbC,
|
|
123269
|
+
LJSurl
|
|
123271
123270
|
};
|
|
123272
123271
|
export {
|
|
123273
123272
|
_typeof as _,
|