gds-plus-design-vue 1.0.21 → 1.0.23

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.
@@ -645,7 +645,7 @@ const constantRouterMap = [{
645
645
  {
646
646
  path: "login",
647
647
  name: "login",
648
- component: () => import("./main.64c08f2b.mjs"),
648
+ component: () => import("./main.7703d8d0.mjs"),
649
649
  meta: {
650
650
  title: "\u767B\u5F55",
651
651
  transKey: "gd.login.title"
@@ -670,7 +670,7 @@ function getLanguages(n, t, a) {
670
670
  }, 28);
671
671
  }
672
672
  function Initializer(n, t, a, r) {
673
- t.commit("TOGGLE_COLOR", n.ls.get("DEFAULT_COLOR", a.primaryColor)), t.commit("SET_TABLE_SIZE", n.ls.get("tableSize", "small")), t.commit("SET_TABLE_PAGE_SIZE", n.ls.get("tablePageSize", 50)), t.commit("SET_BTN_MODE", n.ls.get("btnMode", "btn")), t.commit("SET_FORM_MODE", n.ls.get("formMode", "dialog")), t.commit("SET_LABLE_POSITION", n.ls.get("labelPosition", "right")), t.commit("SET_SIDEBAR", n.ls.get("SIDEBAR_TYPE", !1)), t.commit("TOGGLE_THEME", n.ls.get("DEFAULT_THEME", a.navTheme)), t.commit("SET_PAGE_DESIGNER_DATA", n.ls.get("PAGE_DESIGNER_DATA", [])), t.commit("SET_MENUS_SEARCH_MODE", n.ls.get("menusSearchMode", "multiple")), t.commit("SET_MENUS_WIDTH", n.ls.get("menusWidth", "default")), t.commit("SET_SYS_WATERMARK", n.ls.get("sysWatermark", !1)), t.commit("ECHARTS_COLOR", n.ls.get("echartsColor", [
673
+ t.commit("SET_TOKEN", n.ls.get("ACCESS_TOKEN"), ""), t.commit("TOGGLE_COLOR", n.ls.get("DEFAULT_COLOR", a.primaryColor)), t.commit("SET_TABLE_SIZE", n.ls.get("tableSize", "small")), t.commit("SET_TABLE_PAGE_SIZE", n.ls.get("tablePageSize", 50)), t.commit("SET_BTN_MODE", n.ls.get("btnMode", "btn")), t.commit("SET_FORM_MODE", n.ls.get("formMode", "dialog")), t.commit("SET_LABLE_POSITION", n.ls.get("labelPosition", "right")), t.commit("SET_SIDEBAR", n.ls.get("SIDEBAR_TYPE", !1)), t.commit("TOGGLE_THEME", n.ls.get("DEFAULT_THEME", a.navTheme)), t.commit("SET_PAGE_DESIGNER_DATA", n.ls.get("PAGE_DESIGNER_DATA", [])), t.commit("SET_MENUS_SEARCH_MODE", n.ls.get("menusSearchMode", "multiple")), t.commit("SET_MENUS_WIDTH", n.ls.get("menusWidth", "default")), t.commit("SET_SYS_WATERMARK", n.ls.get("sysWatermark", !1)), t.commit("ECHARTS_COLOR", n.ls.get("echartsColor", [
674
674
  0,
675
675
  "#00A88E",
676
676
  "#91cc75",
@@ -1134,6 +1134,7 @@ const state = {
1134
1134
  mutations,
1135
1135
  actions: actions$1
1136
1136
  }, getters = {
1137
+ token: (n) => n.app.token,
1137
1138
  screenWidth: (n) => n.app.screenWidth,
1138
1139
  screenHeight: (n) => n.app.screenHeight,
1139
1140
  primaryColor: (n) => n.app.primaryColor,
@@ -1521,7 +1522,7 @@ var _sfc_render$4Q = function() {
1521
1522
  null,
1522
1523
  null
1523
1524
  );
1524
- const SidebarMenus = __component__$4Q.exports, main_vue_vue_type_style_index_0_scoped_5a9a3d1b_lang = "";
1525
+ const SidebarMenus = __component__$4Q.exports, main_vue_vue_type_style_index_0_scoped_ce8104f5_lang = "";
1525
1526
  var outTime = null;
1526
1527
  const _sfc_main$4P = {
1527
1528
  name: "GdSideNavMenu",
@@ -1587,14 +1588,15 @@ const _sfc_main$4P = {
1587
1588
  });
1588
1589
  },
1589
1590
  init() {
1590
- let n = [...this.apps];
1591
- n.forEach((t, a) => {
1592
- const r = t.menus.map((o) => (o.show = !o.hidden, o));
1593
- let s = [];
1594
- this.listToTree(r, s, 0), n[a].children = [...s], n[a].show = !0;
1595
- }), this.defMenus = [...n], this.$nextTick(() => {
1591
+ const n = (a) => (a = a.filter((r) => (r.children && (r.children = n(r.children), r.showLeg = r.children.filter((s) => s.show).length, r.show = r.showLeg === 0 ? !1 : r.show), !0)), a);
1592
+ let t = [...this.apps];
1593
+ t.forEach((a, r) => {
1594
+ const s = a.menus.map((l) => (l.show = l.meta.show, l));
1595
+ let o = [];
1596
+ this.listToTree(s, o, 0), t[r].children = [...o], t[r].show = !0;
1597
+ }), t = n(t).filter((a) => a.children.filter((s) => s.show).length === 0 ? !1 : a.show), this.defMenus = [...t], this.$nextTick(() => {
1596
1598
  setTimeout(() => {
1597
- this.$refs.sMenu.setAppMenus(n);
1599
+ this.$refs.sMenu.setAppMenus(t);
1598
1600
  }, 100);
1599
1601
  });
1600
1602
  },
@@ -1653,7 +1655,7 @@ const _sfc_main$4P = {
1653
1655
  };
1654
1656
  var _sfc_render$4P = function() {
1655
1657
  var t = this, a = t._self._c;
1656
- return a("div", [a("div", { staticClass: "gd-sider", class: t.theme === "light" ? "" : "gd-sider-dark", style: t.styled }, [t.basicAttribute.logoOpen ? a("UserLogo", { attrs: { basicAttribute: t.basicAttribute } }) : t._e(), a("div", { staticClass: "gd-app" }, [t._l(t.apps, function(r, s) {
1658
+ return a("div", [a("div", { staticClass: "gd-sider", class: t.theme === "light" ? "" : "gd-sider-dark", style: t.styled }, [t.basicAttribute.logoOpen ? a("UserLogo", { attrs: { basicAttribute: t.basicAttribute } }) : t._e(), a("div", { staticClass: "gd-app" }, [t._l(t.defMenus, function(r, s) {
1657
1659
  return [a("div", { staticClass: "item", class: [t.sidebar ? "sitem" : "", r.code === t.defApp ? "itemactive" : ""], attrs: { title: t.$i18nt(`Dynamics.${r.transKey}`, r.name) }, on: { click: function(o) {
1658
1660
  return t.selItem(r);
1659
1661
  }, mouseenter: function(o) {
@@ -1668,7 +1670,7 @@ var _sfc_render$4P = function() {
1668
1670
  _sfc_staticRenderFns$4P,
1669
1671
  !1,
1670
1672
  null,
1671
- "5a9a3d1b",
1673
+ "ce8104f5",
1672
1674
  null,
1673
1675
  null
1674
1676
  );
@@ -1697,7 +1699,7 @@ const colorList$1 = [{
1697
1699
  }, {
1698
1700
  key: "gd.theme.soypurple",
1699
1701
  color: "#722ED1"
1700
- }], __$_require_48462cfa__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAtCAMAAADWf7iKAAAAOVBMVEUAAAAAAAAAAAAAAADu8PP+/v/6+vv4+fnf4uT1+/sAAAC/v7+ip6f19fVwc3OChoby9vbw8vX///9pVttoAAAAEXRSTlMABTkQ8/fp57xPKWhgSUk/OZz1RfcAAABbSURBVEjH7c1JDoBACABBRpjFcef/jzUQ74JRT/S90vC0MbO5slyGXe2Ksg9VMYmdpUBvo+OmQIECBQr0ESJFxYeaosmFaBMEOFczorYiSAn7YK6jjJQ5gl87Abbjgzgo9LBPAAAAAElFTkSuQmCC", __$_require_52fa2dc7__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAtCAMAAADWf7iKAAAAP1BMVEUAAAAAAAAAAAAAAABtcYDu8PNcYW/8/Pzf4uReZW6qr7Z4fHwAAAAAAADt7/L19fXy9vbw8vUyNUn///88QVFmWFQxAAAAEXRSTlMABTkQ9/Tr5bxkT0Q1KfBJOTNg+qgAAABnSURBVEjH7cs7EoAgDAVAEBUQ8IO5/1kd3lhYaeI4Vtl+zVtTT/Viv+OX86BwEqxIfRUl344lfgLbUtX0YdoeaNKkSZMmbiJZGpBGWQpIkSRpTqZxcSRuGkJySNaV3DHlgoMmYH51AAGvhJkKRva7AAAAAElFTkSuQmCC", __$_require_0f7de9d5__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAtCAMAAADWf7iKAAAAM1BMVEUAAADw8vUyNUn8/Pz4+PjGxsb19fU7QFHs7e3Q09Vtcn9kZ3bk5uje3uDX2NjKysrAw8bSxWzYAAAAAXRSTlMAQObYZgAAAGtJREFUSMftz7sOgCAMhWGlSLnD+z+tBU1MXGwZnPqPJ/mGs60WEhpmGMttJmGzPAwkIyoCIYsyhJaQM8KcogfBe9w/AkWKFClSxES4gpIM+Yk6ilCZyPeIbJTrTmao0A5mrdKlS1l+QObHTi8KDtXr7vnFAAAAAElFTkSuQmCC", main_vue_vue_type_style_index_0_scoped_61e20a5f_lang = "", _sfc_main$4O = {
1702
+ }], __$_require_48462cfa__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAtCAMAAADWf7iKAAAAOVBMVEUAAAAAAAAAAAAAAADu8PP+/v/6+vv4+fnf4uT1+/sAAAC/v7+ip6f19fVwc3OChoby9vbw8vX///9pVttoAAAAEXRSTlMABTkQ8/fp57xPKWhgSUk/OZz1RfcAAABbSURBVEjH7c1JDoBACABBRpjFcef/jzUQ74JRT/S90vC0MbO5slyGXe2Ksg9VMYmdpUBvo+OmQIECBQr0ESJFxYeaosmFaBMEOFczorYiSAn7YK6jjJQ5gl87Abbjgzgo9LBPAAAAAElFTkSuQmCC", __$_require_52fa2dc7__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAtCAMAAADWf7iKAAAAP1BMVEUAAAAAAAAAAAAAAABtcYDu8PNcYW/8/Pzf4uReZW6qr7Z4fHwAAAAAAADt7/L19fXy9vbw8vUyNUn///88QVFmWFQxAAAAEXRSTlMABTkQ9/Tr5bxkT0Q1KfBJOTNg+qgAAABnSURBVEjH7cs7EoAgDAVAEBUQ8IO5/1kd3lhYaeI4Vtl+zVtTT/Viv+OX86BwEqxIfRUl344lfgLbUtX0YdoeaNKkSZMmbiJZGpBGWQpIkSRpTqZxcSRuGkJySNaV3DHlgoMmYH51AAGvhJkKRva7AAAAAElFTkSuQmCC", __$_require_0f7de9d5__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAtCAMAAADWf7iKAAAAM1BMVEUAAADw8vUyNUn8/Pz4+PjGxsb19fU7QFHs7e3Q09Vtcn9kZ3bk5uje3uDX2NjKysrAw8bSxWzYAAAAAXRSTlMAQObYZgAAAGtJREFUSMftz7sOgCAMhWGlSLnD+z+tBU1MXGwZnPqPJ/mGs60WEhpmGMttJmGzPAwkIyoCIYsyhJaQM8KcogfBe9w/AkWKFClSxES4gpIM+Yk6ilCZyPeIbJTrTmao0A5mrdKlS1l+QObHTi8KDtXr7vnFAAAAAElFTkSuQmCC", main_vue_vue_type_style_index_0_scoped_f7c4bafa_lang = "", _sfc_main$4O = {
1701
1703
  name: "GdSettingDrawer",
1702
1704
  data() {
1703
1705
  return {
@@ -1766,9 +1768,7 @@ const colorList$1 = [{
1766
1768
  message: t.$i18nt("gd.theme.switchingTopics"),
1767
1769
  duration: 0,
1768
1770
  iconClass: "el-icon-loading"
1769
- }), s = this.getThemeCluster(n.replace("#", "")), o = this.getThemeCluster(a.replace("#", ""));
1770
- console.log(s, "\u4E3B\u9898\u8272");
1771
- const l = (f, h) => () => {
1771
+ }), s = this.getThemeCluster(n.replace("#", "")), o = this.getThemeCluster(a.replace("#", "")), l = (f, h) => () => {
1772
1772
  const g = this.getThemeCluster(this.primaryColor.replace("#", "")), p = this.updateStyle(this[f], g, s);
1773
1773
  let v = document.getElementById(h);
1774
1774
  v || (v = document.createElement("style"), v.setAttribute("id", h), document.head.appendChild(v)), v.innerText = p;
@@ -1843,7 +1843,7 @@ var _sfc_render$4O = function() {
1843
1843
  _sfc_staticRenderFns$4O,
1844
1844
  !1,
1845
1845
  null,
1846
- "61e20a5f",
1846
+ "f7c4bafa",
1847
1847
  null,
1848
1848
  null
1849
1849
  );
@@ -3270,7 +3270,7 @@ Object.defineProperties(screenfull, {
3270
3270
  }
3271
3271
  });
3272
3272
  nativeAPI || (screenfull = { isEnabled: !1 });
3273
- const screenfull$1 = screenfull, userMenus_vue_vue_type_style_index_0_scoped_d14ec191_lang = "", _sfc_main$4K = {
3273
+ const screenfull$1 = screenfull, userMenus_vue_vue_type_style_index_0_scoped_3aaf3191_lang = "", _sfc_main$4K = {
3274
3274
  props: {
3275
3275
  basicAttribute: {
3276
3276
  type: Object,
@@ -3288,7 +3288,7 @@ const screenfull$1 = screenfull, userMenus_vue_vue_type_style_index_0_scoped_d14
3288
3288
  },
3289
3289
  computed: {
3290
3290
  options() {
3291
- return (this.basicAttribute.menus || []).map((t) => (t.key === "universalImport" ? t.permission = "sysUser:universalImport" : t.key === "advancedFind" && (t.permission = "sysUser:advancedFind"), t)).filter((t) => t.permission ? this.$hasPerm(t.permission) : (console.log(t.permission && this.$hasPerm(t.permission)), !0));
3291
+ return (this.basicAttribute.menus || []).map((t) => (t.key === "universalImport" ? t.permission = "sysUser:universalImport" : t.key === "advancedFind" && (t.permission = "sysUser:advancedFind"), t)).filter((t) => t.permission ? this.$hasPerm(t.permission) : !0);
3292
3292
  },
3293
3293
  menus() {
3294
3294
  return (this.hasItems ? [
@@ -3314,7 +3314,7 @@ const screenfull$1 = screenfull, userMenus_vue_vue_type_style_index_0_scoped_d14
3314
3314
  fadeColord() {
3315
3315
  return this.fadeColor(this.primaryColor, 0.2);
3316
3316
  },
3317
- ...mapGetters(["platformData", "userInfo", "primaryColor", "avatar"])
3317
+ ...mapGetters(["platformData", "userInfo", "primaryColor", "avatar", "token"])
3318
3318
  },
3319
3319
  methods: {
3320
3320
  echartsManage(n) {
@@ -3328,7 +3328,7 @@ const screenfull$1 = screenfull, userMenus_vue_vue_type_style_index_0_scoped_d14
3328
3328
  });
3329
3329
  },
3330
3330
  hand(n) {
3331
- console.log(n), this.$store.dispatch("SeekTableId", ""), n === "theme" ? this.$refs.settingDrawer.toggle() : n === "fullScreen" ? this.toggleFullscreen() : n === "application" ? this.$router.push({
3331
+ this.$store.dispatch("SeekTableId", ""), n === "theme" ? this.$refs.settingDrawer.toggle() : n === "fullScreen" ? this.toggleFullscreen() : n === "application" ? this.$router.push({
3332
3332
  path: "/platform/application"
3333
3333
  }) : n === "universalImport" ? this.$refs.xlsxImport.open() : this.$router.push({
3334
3334
  path: `/${n}`
@@ -3372,6 +3372,9 @@ const screenfull$1 = screenfull, userMenus_vue_vue_type_style_index_0_scoped_d14
3372
3372
  return `rgba(${a},${r},${s},${t})`;
3373
3373
  },
3374
3374
  ...mapActions(["Logout"])
3375
+ },
3376
+ async mounted() {
3377
+ await this.$socket.authenticate(this.token);
3375
3378
  }
3376
3379
  };
3377
3380
  var _sfc_render$4K = function() {
@@ -3389,11 +3392,11 @@ var _sfc_render$4K = function() {
3389
3392
  _sfc_staticRenderFns$4K,
3390
3393
  !1,
3391
3394
  null,
3392
- "d14ec191",
3395
+ "3aaf3191",
3393
3396
  null,
3394
3397
  null
3395
3398
  );
3396
- const UserMenus = __component__$4K.exports, main_vue_vue_type_style_index_0_scoped_c87c3afd_lang = "", _sfc_main$4J = {
3399
+ const UserMenus = __component__$4K.exports, main_vue_vue_type_style_index_0_scoped_3e032966_lang = "", _sfc_main$4J = {
3397
3400
  name: "GdGlobalHeader",
3398
3401
  props: {
3399
3402
  basicAttribute: {
@@ -3425,14 +3428,14 @@ const UserMenus = __component__$4K.exports, main_vue_vue_type_style_index_0_scop
3425
3428
  };
3426
3429
  var _sfc_render$4J = function() {
3427
3430
  var t = this, a = t._self._c;
3428
- return a("div", { staticClass: "gd-layout-head", class: t.theme === "doubledark" ? "gd-header-dark" : "", attrs: { id: "gd-layout-head-height" } }, [a("div", { staticClass: "gd-headers" }, [a("div", { staticClass: "side-menu" }, [a("div", { staticClass: "gd-shrink", style: t.style, on: { click: t.toggle } }, [t.apps.length > 0 ? a("i", { staticClass: "gd-icons", class: t.sidebar ? "gd-icon-shousuo1" : "gd-icon-shousuo" }) : t._e()]), a("div", { staticClass: "gd-multi-tab" }), a("UserMenus", { attrs: { basicAttribute: t.basicAttribute } })], 1)])]);
3431
+ return a("div", { staticClass: "gd-layout-head", class: t.theme === "doubledark" ? "gd-header-dark" : "", attrs: { id: "gd-layout-head-height" } }, [a("div", { staticClass: "gd-headers" }, [a("div", { staticClass: "side-menu" }, [a("div", { staticClass: "gd-shrink", style: t.style, on: { click: t.toggle } }, [a("i", { staticClass: "gd-icons", class: t.sidebar ? "gd-icon-shousuo1" : "gd-icon-shousuo" })]), a("div", { staticClass: "gd-multi-tab" }), a("UserMenus", { attrs: { basicAttribute: t.basicAttribute } })], 1)])]);
3429
3432
  }, _sfc_staticRenderFns$4J = [], __component__$4J = /* @__PURE__ */ normalizeComponent(
3430
3433
  _sfc_main$4J,
3431
3434
  _sfc_render$4J,
3432
3435
  _sfc_staticRenderFns$4J,
3433
3436
  !1,
3434
3437
  null,
3435
- "c87c3afd",
3438
+ "3e032966",
3436
3439
  null,
3437
3440
  null
3438
3441
  );
@@ -3440,7 +3443,7 @@ const GDpackage$14 = __component__$4J.exports;
3440
3443
  GDpackage$14.install = function(n) {
3441
3444
  n.component(GDpackage$14.name, GDpackage$14);
3442
3445
  };
3443
- const main_vue_vue_type_style_index_0_scoped_46dd7b26_lang = "", _sfc_main$4I = {
3446
+ const main_vue_vue_type_style_index_0_scoped_d17e7a9e_lang = "", _sfc_main$4I = {
3444
3447
  name: "GdBasicLayout",
3445
3448
  data() {
3446
3449
  return {
@@ -3458,7 +3461,7 @@ const main_vue_vue_type_style_index_0_scoped_46dd7b26_lang = "", _sfc_main$4I =
3458
3461
  return this.userInfo.apps;
3459
3462
  },
3460
3463
  contentPaddingLeft() {
3461
- return this.apps.length === 0 ? "0px" : this.sidebar ? "68px" : "172px";
3464
+ return this.sidebar ? "68px" : "172px";
3462
3465
  },
3463
3466
  stylem() {
3464
3467
  return `padding-left:${this.contentPaddingLeft};`;
@@ -3491,7 +3494,7 @@ var _sfc_render$4I = function() {
3491
3494
  _sfc_staticRenderFns$4I,
3492
3495
  !1,
3493
3496
  null,
3494
- "46dd7b26",
3497
+ "d17e7a9e",
3495
3498
  null,
3496
3499
  null
3497
3500
  );
@@ -4229,6 +4232,20 @@ function checkPRCValidation(n) {
4229
4232
  data: n
4230
4233
  });
4231
4234
  }
4235
+ function loginByWeChatWork(n) {
4236
+ return window.axios({
4237
+ url: "/wechatwork/LoginByWeChatWork",
4238
+ method: "get",
4239
+ params: n
4240
+ });
4241
+ }
4242
+ function bindWechatWorkAccount(n) {
4243
+ return window.axios({
4244
+ url: "/wechatwork/BindWechatWorkAccount",
4245
+ method: "get",
4246
+ params: n
4247
+ });
4248
+ }
4232
4249
  function BindWechatWorkAccountByCode(n) {
4233
4250
  return window.axios({
4234
4251
  url: "/wechatwork/BindWechatWorkAccountByCode",
@@ -30306,16 +30323,16 @@ function isEqual$2({
30306
30323
  val: t,
30307
30324
  type: a
30308
30325
  }) {
30309
- if (t === "")
30326
+ if (t === "" || t === void 0)
30310
30327
  return !1;
30311
- let r = n.val;
30312
- return ["currency", "double", "inputnumber"].includes(a) && (t = Number(t), r = Number(r)), ["switch", "select", "radiobox"].includes(a) && (t = String(t), r = String(r)), n.rules === "1" ? t === r : t !== r;
30328
+ let r = Object.prototype.toString.call(t) === "[object Array]" ? t.join(",") : t, s = n.val;
30329
+ return ["currency", "double", "inputnumber"].includes(a) && (r = Number(r), s = Number(s)), ["switch", "select", "radiobox"].includes(a) && (r = String(r), s = String(s)), n.rules === "1" ? r === s : r !== s;
30313
30330
  }
30314
30331
  function isContain$2({
30315
30332
  data: n,
30316
30333
  val: t
30317
30334
  }) {
30318
- let a = String(t), r = String(n.val);
30335
+ let a = t === void 0 ? "" : String(t), r = String(n.val);
30319
30336
  return n.rules === "3" ? a.indexOf(r) !== -1 : a.indexOf(r) === -1;
30320
30337
  }
30321
30338
  function isIncludeData$2({
@@ -30323,14 +30340,14 @@ function isIncludeData$2({
30323
30340
  val: t
30324
30341
  }) {
30325
30342
  let a = !0;
30326
- return (t === null || t === "") && (a = !1), n.rules === "5" ? a : !a;
30343
+ return (t === null || t === "" || t === void 0) && (a = !1), n.rules === "5" ? a : !a;
30327
30344
  }
30328
30345
  function isGreaterThan$2({
30329
30346
  data: n,
30330
30347
  val: t,
30331
30348
  type: a
30332
30349
  }) {
30333
- if (t === "")
30350
+ if (t === "" || t === void 0)
30334
30351
  return !1;
30335
30352
  let r = dataConversion$2(a, {
30336
30353
  val: t
@@ -30358,7 +30375,7 @@ function processingResults$2(n, t) {
30358
30375
  function isSatisfyed$2(n, t) {
30359
30376
  return t === "2" ? n.every((a, r, s) => !a) : n.every((a, r, s) => !!a);
30360
30377
  }
30361
- const main_vue_vue_type_style_index_0_scoped_205ff00d_lang = "", _sfc_main$3P = {
30378
+ const main_vue_vue_type_style_index_0_scoped_936a3d64_lang = "", _sfc_main$3P = {
30362
30379
  name: "GdTableQueriesField",
30363
30380
  props: {
30364
30381
  height: {
@@ -30458,17 +30475,11 @@ const main_vue_vue_type_style_index_0_scoped_205ff00d_lang = "", _sfc_main$3P =
30458
30475
  this.ruleFormData = Object.assign({ ...this.ruleFormData }, n), this.handleChange(t);
30459
30476
  },
30460
30477
  usageAllRulesReset() {
30461
- if (this.ruleConfig.length === 0)
30462
- return;
30463
- let n = /* @__PURE__ */ new Map(), t = [];
30464
- for (let a of Object.keys(this.ruleFormData))
30465
- t.push(a), n.set(a, this.ruleFormData[a]);
30466
- this.viewQueries.forEach((a) => {
30467
- const r = n.get(a.prop);
30468
- t.filter((o) => o === a.prop)[0] && a.rulesList && a.rulesList.length > 0 && r !== void 0 && usageBusinessRules({
30478
+ this.ruleConfig.length !== 0 && this.viewQueries.forEach((n) => {
30479
+ n.rulesList && n.rulesList.length > 0 && usageBusinessRules({
30469
30480
  data: this.ruleFormData,
30470
- rules: [{ list: a.rulesList }],
30471
- field: { options: { columnName: a.prop, effectType: a.effectType } },
30481
+ rules: [{ list: n.rulesList }],
30482
+ field: { options: { columnName: n.prop, effectType: n.effectType } },
30472
30483
  done: this.hitRules
30473
30484
  });
30474
30485
  });
@@ -30541,10 +30552,10 @@ const main_vue_vue_type_style_index_0_scoped_205ff00d_lang = "", _sfc_main$3P =
30541
30552
  hitItem(n) {
30542
30553
  if (this.ruleConfig.length == 0)
30543
30554
  return [];
30544
- let t = 0;
30555
+ let t = [];
30545
30556
  return this.ruleConfig.forEach((a, r) => {
30546
- this.isHitItemChecked(a.condition.list, n) || (t += 1);
30547
- }), t > 0 ? [...this.ruleConfig] : [];
30557
+ a.condition.list.filter((o) => o.columnComment === n.id)[0] && t.push(a);
30558
+ }), t;
30548
30559
  },
30549
30560
  isHitItemChecked(n, t) {
30550
30561
  return n.every((a, r, s) => a.columnComment !== t.id);
@@ -30640,7 +30651,7 @@ var _sfc_render$3P = function() {
30640
30651
  _sfc_staticRenderFns$3P,
30641
30652
  !1,
30642
30653
  null,
30643
- "205ff00d",
30654
+ "936a3d64",
30644
30655
  null,
30645
30656
  null
30646
30657
  );
@@ -87736,28 +87747,43 @@ const mixins$n = {
87736
87747
  this.fullscreen = !this.fullscreen;
87737
87748
  },
87738
87749
  open(n) {
87739
- this.fullscreen = !1, this.title = n ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E"), this.record = n, this.fileList = [], this.visible = !0, this.sysViewButtons = this.sysViewButtons.map((t) => (t.name = n ? "sysPlugin:edit" : "sysPlugin:add", t)), n ? this.ruleFormData = {
87750
+ console.log(n), this.fullscreen = !1, this.title = n ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E"), this.record = n, this.fileList = [], this.visible = !0, this.sysViewButtons = this.sysViewButtons.map((t) => (t.name = n ? "sysPlugin:edit" : "sysPlugin:add", t)), n ? this.ruleFormData = {
87740
87751
  id: n.id,
87741
87752
  name: n.name,
87742
87753
  description: n.description
87743
87754
  } : this.$nextTick(() => {
87744
- this.$refs.ruleForm.resetFields();
87755
+ this.ruleFormData = {}, this.$refs.ruleForm.resetFields();
87745
87756
  });
87746
87757
  },
87747
- beforeUpload(n) {
87748
- if (n.type == "application/x-msdownload") {
87749
- if (this.fileList = [n], console.log(this.fileList), !this.record) {
87750
- let a = n.name.lastIndexOf(".");
87751
- var t = n.name.substring(0, a);
87758
+ handleAvatarSuccess(n, t, a) {
87759
+ console.log(11111), this.$refs.fileUploadBtn.clearFiles();
87760
+ },
87761
+ uploadLogo(n) {
87762
+ if (console.log(n, "request"), n.file.type == "application/x-msdownload") {
87763
+ if (this.fileList = [n.file], console.log(this.fileList), !this.record) {
87764
+ let a = n.file.name.lastIndexOf(".");
87765
+ var t = n.file.name.substring(0, a);
87752
87766
  this.ruleFormData.name = t;
87753
87767
  }
87754
87768
  } else
87755
87769
  this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip", "\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")), this.fileList = [];
87756
87770
  return !1;
87757
87771
  },
87772
+ handleChange(n, t) {
87773
+ if (t.length > 1 && t.splice(0, 1), n.raw.type == "application/x-msdownload") {
87774
+ if (this.fileList = [n.raw], !this.record) {
87775
+ let r = n.raw.name.lastIndexOf(".");
87776
+ var a = n.raw.name.substring(0, r);
87777
+ this.ruleFormData.name = a;
87778
+ }
87779
+ } else
87780
+ this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip", "\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")), this.fileList = [];
87781
+ return !1;
87782
+ },
87758
87783
  handleRemove(n) {
87784
+ console.log(n);
87759
87785
  const t = this.fileList.indexOf(n), a = this.fileList.slice();
87760
- a.splice(t, 1), action = a;
87786
+ a.splice(t, 1), this.fileList = a;
87761
87787
  },
87762
87788
  handleSubmit() {
87763
87789
  this.$refs.ruleForm.validate((n) => {
@@ -87765,6 +87791,7 @@ const mixins$n = {
87765
87791
  });
87766
87792
  },
87767
87793
  add(n) {
87794
+ this.confirmLoading = !0;
87768
87795
  let {
87769
87796
  fileList: t
87770
87797
  } = this;
@@ -87810,7 +87837,7 @@ var _sfc_render$2J = function() {
87810
87837
  t.$set(t.ruleFormData, "id", r);
87811
87838
  }, expression: "ruleFormData.id" } })], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.plugin.name", "\u540D\u79F0") } }, [a("el-input", { attrs: { disabled: !0 }, model: { value: t.ruleFormData.name, callback: function(r) {
87812
87839
  t.$set(t.ruleFormData, "name", r);
87813
- }, expression: "ruleFormData.name" } })], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.plugin.plugFile", "\u63D2\u4EF6\u6587\u4EF6") } }, [a("el-upload", { attrs: { limit: 1, "before-upload": t.beforeUpload, "before-remove": t.handleRemove, multiple: !1, "file-list": t.fileList, accept: ".dll", action: "" } }, [a("el-button", [a("i", { staticClass: "el-icon-upload2" }), t._v(" " + t._s(t.$i18nt("gd.web.selectFile", "\u9009\u62E9\u6587\u4EF6")) + " ")])], 1)], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.plugin.remarks", "\u5907\u6CE8") } }, [a("el-input", { attrs: { type: "textarea", placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.description, callback: function(r) {
87840
+ }, expression: "ruleFormData.name" } })], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.plugin.plugFile", "\u63D2\u4EF6\u6587\u4EF6") } }, [a("el-upload", { ref: "upload", staticClass: "upload-demo", attrs: { accept: ".dll", "file-list": t.fileList, "on-change": t.handleChange, action: "", "show-file-list": !0, "on-remove": t.handleRemove, "auto-upload": !1 } }, [a("el-button", [a("i", { staticClass: "el-icon-upload2" }), t._v(" " + t._s(t.$i18nt("gd.web.selectFile", "\u9009\u62E9\u6587\u4EF6")) + " ")])], 1)], 1), a("el-form-item", { attrs: { label: t.$i18nt("gd.plugin.remarks", "\u5907\u6CE8") } }, [a("el-input", { attrs: { type: "textarea", placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: t.ruleFormData.description, callback: function(r) {
87814
87841
  t.$set(t.ruleFormData, "description", r);
87815
87842
  }, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 2)], 1);
87816
87843
  }, _sfc_staticRenderFns$2J = [], __component__$2J = /* @__PURE__ */ normalizeComponent(
@@ -93184,7 +93211,7 @@ var _sfc_render$2j = function() {
93184
93211
  null,
93185
93212
  null
93186
93213
  );
93187
- const moreOptions = __component__$2j.exports, index_vue_vue_type_style_index_0_scoped_3d75c044_lang = "", _sfc_main$2i = {
93214
+ const moreOptions = __component__$2j.exports, index_vue_vue_type_style_index_0_scoped_85e94531_lang = "", _sfc_main$2i = {
93188
93215
  props: {
93189
93216
  tableNameData: {
93190
93217
  type: Array,
@@ -93269,7 +93296,6 @@ const moreOptions = __component__$2j.exports, index_vue_vue_type_style_index_0_s
93269
93296
  this.lookIndex = n, this.$refs.moreOptions.open(this.fieldList[n]);
93270
93297
  },
93271
93298
  searchData(n) {
93272
- console.log(n, "vv");
93273
93299
  let a = this.codeList.filter((r) => r.id == this.searList.fieldId)[0].fkEntityName.split(",")[0];
93274
93300
  this.fetching = !0, this.searList.fkData = [], baseFkList({
93275
93301
  name: n,
@@ -93324,7 +93350,7 @@ const moreOptions = __component__$2j.exports, index_vue_vue_type_style_index_0_s
93324
93350
  });
93325
93351
  },
93326
93352
  changeCode(n, t) {
93327
- console.log(n, t), this.$nextTick(() => {
93353
+ this.$nextTick(() => {
93328
93354
  setTimeout(() => {
93329
93355
  let a = [...this.fieldList];
93330
93356
  a.forEach((s, o) => {
@@ -93334,7 +93360,7 @@ const moreOptions = __component__$2j.exports, index_vue_vue_type_style_index_0_s
93334
93360
  let r = this.codeList.filter((s) => s.id == n)[0];
93335
93361
  r.fieldFormat && (this.fieldList[t].fieldFormat = this.fieldFormat.filter(
93336
93362
  (s) => s.code == r.fieldFormat
93337
- )[0].name), this.fieldList[t].effectType = r.effectType, this.fieldList[t].value = "", this.fieldList[t].fkData = [], ["fk", "about", "user", "participants"].includes(r.effectType) && (this.searList = this.fieldList[t], this.searchData(""));
93363
+ )[0].name), this.fieldList[t].effectType = r.effectType, this.fieldList[t].value = "", this.fieldList[t].fieldInfos = [], this.fieldList[t].fkData = [], ["fk", "about", "user", "participants"].includes(r.effectType) && (this.searList = this.fieldList[t], this.searchData(""));
93338
93364
  }, 0);
93339
93365
  });
93340
93366
  },
@@ -93458,7 +93484,7 @@ var _sfc_render$2i = function() {
93458
93484
  _sfc_staticRenderFns$2i,
93459
93485
  !1,
93460
93486
  null,
93461
- "3d75c044",
93487
+ "85e94531",
93462
93488
  null,
93463
93489
  null
93464
93490
  );
@@ -120386,7 +120412,7 @@ var _sfc_render$k = function() {
120386
120412
  null,
120387
120413
  null
120388
120414
  );
120389
- const ProcessFlow = __component__$k.exports, main_vue_vue_type_style_index_0_scoped_21155e24_lang = "", _sfc_main$j = {
120415
+ const ProcessFlow = __component__$k.exports, main_vue_vue_type_style_index_0_scoped_00a06481_lang = "", _sfc_main$j = {
120390
120416
  name: "GdFormBuild",
120391
120417
  props: {
120392
120418
  modeType: {
@@ -121059,9 +121085,11 @@ const ProcessFlow = __component__$k.exports, main_vue_vue_type_style_index_0_sco
121059
121085
  });
121060
121086
  },
121061
121087
  baseSetEmpty(n) {
121062
- if (!this.allField.filter((s) => s.options.columnName === n.columnName)[0] || !this.baseHasFieldPermission(n.columnName))
121088
+ const t = this.allField.filter((s) => s.options.columnName === n.columnName)[0];
121089
+ if (!t || !this.baseHasFieldPermission(n.columnName))
121063
121090
  return;
121064
- (/* @__PURE__ */ new Map()).set(n.columnName, n.data);
121091
+ let r = /* @__PURE__ */ new Map();
121092
+ ["currency", "double", "inputnumber"].includes(t.options.effectType) ? r.set(n.columnName, void 0) : r.set(n.columnName, n.data), this.baseSetData(Object.fromEntries(r));
121065
121093
  },
121066
121094
  baseHasFieldPermission(n) {
121067
121095
  const t = this.fieldData.filter((r) => r.columnName === n)[0];
@@ -121209,7 +121237,7 @@ var _sfc_render$j = function n() {
121209
121237
  _sfc_staticRenderFns$j,
121210
121238
  !1,
121211
121239
  null,
121212
- "21155e24",
121240
+ "00a06481",
121213
121241
  null,
121214
121242
  null
121215
121243
  );
@@ -121733,7 +121761,7 @@ var _sfc_render$h = function n() {
121733
121761
  null,
121734
121762
  null
121735
121763
  );
121736
- const ViewCharts = __component__$h.exports, main_vue_vue_type_style_index_0_scoped_b1dc4235_lang = "", _sfc_main$g = {
121764
+ const ViewCharts = __component__$h.exports, main_vue_vue_type_style_index_0_scoped_b5f36a1f_lang = "", _sfc_main$g = {
121737
121765
  name: "GdViewBuildDesigner",
121738
121766
  props: {
121739
121767
  record: {
@@ -121870,8 +121898,7 @@ const ViewCharts = __component__$h.exports, main_vue_vue_type_style_index_0_scop
121870
121898
  return this.columns.filter((t) => t.type === "slot");
121871
121899
  },
121872
121900
  hig() {
121873
- console.log(this.record);
121874
- const n = this.develop === 1 ? 24 + 40 + 38 : 40 + 38, t = this.develop === 1 ? 46 + 24 + 12 : 0, a = this.develop === 1 ? this.screenHeight - 46 - n - t : this.height - n - t;
121901
+ const n = this.develop === 1 ? 102 : 78, t = this.develop === 1 ? 46 + 24 + 12 : 0, a = this.develop === 1 ? this.screenHeight - 46 - n - t : this.height - n - t;
121875
121902
  return this.options.heightMode === "custom" ? this.options.height : a;
121876
121903
  },
121877
121904
  options() {
@@ -122609,7 +122636,7 @@ var _sfc_render$g = function n() {
122609
122636
  _sfc_staticRenderFns$g,
122610
122637
  !1,
122611
122638
  null,
122612
- "b1dc4235",
122639
+ "b5f36a1f",
122613
122640
  null,
122614
122641
  null
122615
122642
  );
@@ -127592,23 +127619,25 @@ export {
127592
127619
  getPasswordRules as a,
127593
127620
  applyResetPassword as b,
127594
127621
  checkPRCValidation as c,
127595
- getConfigsByCode as d,
127596
- mapActions as e,
127597
- formMixin as f,
127622
+ bindWechatWorkAccount as d,
127623
+ getConfigsByCode as e,
127624
+ mapActions as f,
127598
127625
  getConfigInfoByCode as g,
127599
- constantRouterMaps as h,
127600
- bootstrap as i,
127601
- storeGetter as j,
127602
- camelCase as k,
127603
- menuEscape as l,
127626
+ formMixin as h,
127627
+ constantRouterMaps as i,
127628
+ bootstrap as j,
127629
+ storeGetter as k,
127630
+ loginByWeChatWork as l,
127604
127631
  mapGetters as m,
127605
127632
  normalizeComponent as n,
127606
- routerMetas as o,
127633
+ camelCase as o,
127607
127634
  platformMenus as p,
127608
- routerUserAccounts as q,
127635
+ menuEscape as q,
127609
127636
  resetPwdByAccount as r,
127610
127637
  storeApp as s,
127611
- constantRouterComponent as t,
127638
+ routerMetas as t,
127612
127639
  updatePwdByAccount as u,
127613
- viewMixin as v
127640
+ viewMixin as v,
127641
+ routerUserAccounts as w,
127642
+ constantRouterComponent as x
127614
127643
  };