lw-cdp-ui 1.3.7 → 1.3.8

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.
@@ -179,14 +179,18 @@ export default {
179
179
  closeSelectedTag(tag, autoPushLatestView = true) {
180
180
  let item = this.menu[0]
181
181
  if (item.children) {
182
- item = item.children[0]
182
+ item = item.children[0]
183
183
  }
184
-
184
+
185
185
  // 兼容合并菜单
186
- if (item.meta?.code) {
186
+ if (item.meta?.code && item.meta?.code != this.$config.APP_NAME.toLowerCase()) {
187
187
  item.path = `/i/${item.name}`
188
188
  }
189
189
 
190
+ if (this.tagList.length == 1 && item.path == this.$route.path) {
191
+ return false
192
+ }
193
+
190
194
  this.$store.commit("removeViewTags", tag)
191
195
  this.$store.commit("removeIframeList", tag)
192
196
  this.$store.commit("removeKeepLive", tag.name)
@@ -51,6 +51,7 @@
51
51
  import bu from './bu.vue'
52
52
  import task from './task.vue'
53
53
  import empty from '@/assets/images/empty.jpg'
54
+ import setting from './setting.vue';
54
55
  export default {
55
56
  props: {
56
57
  isShowBu: {
@@ -68,7 +69,8 @@ export default {
68
69
  },
69
70
  components: {
70
71
  bu,
71
- task
72
+ task,
73
+ setting
72
74
  },
73
75
  data() {
74
76
  return {
@@ -130,7 +130,6 @@ import Topbar from './components/topbar.vue';
130
130
  import Tags from './components/tags.vue';
131
131
  import NavMenu from './components/NavMenu.vue';
132
132
  import userbar from './components/userbar.vue';
133
- import setting from './components/setting.vue';
134
133
  import iframeView from './components/iframeView.vue';
135
134
  export default {
136
135
  name: 'lwLayout',
@@ -161,7 +160,6 @@ export default {
161
160
  Tags,
162
161
  NavMenu,
163
162
  userbar,
164
- setting,
165
163
  iframeView
166
164
  },
167
165
  data() {
@@ -252,6 +252,7 @@ export default {
252
252
  // 自动计算稿表格高度
253
253
  const container = document.querySelector('.adminui-main > .el-container') || { clientHeight: 0 }
254
254
  const btnContainer = document.querySelector('.table-block > .btn-container')
255
+ const formTabele = document.querySelector('.el-form-item__content > .lw-table-page')
255
256
  const searchCard = document.querySelector('.lw-search-card')
256
257
  this.tableHeight = container.clientHeight
257
258
 
@@ -261,7 +262,13 @@ export default {
261
262
  if (btnContainer) {
262
263
  this.tableHeight = this.tableHeight - btnContainer.clientHeight - 10
263
264
  }
264
- this.tableHeight = this.tableHeight - 110
265
+
266
+ if (!formTabele) {
267
+ this.tableHeight = this.tableHeight - 110
268
+ } else {
269
+ this.tableHeight = ''
270
+ }
271
+
265
272
  },
266
273
  // 拖动选中
267
274
  onSelect({ selected }) {
@@ -1,5 +1,6 @@
1
1
  .lw-table-page {
2
2
  position: relative;
3
+ width: 100%;
3
4
 
4
5
  .icon-more {
5
6
  margin-top: 3px;
@@ -485,11 +485,13 @@ const uc = /* @__PURE__ */ ue(ac, [["render", sc], ["__scopeId", "data-v-c198cd7
485
485
  },
486
486
  //关闭tag
487
487
  closeSelectedTag(e, n = !0) {
488
- var r;
488
+ var r, a;
489
489
  let t = this.menu[0];
490
- if (t.children && (t = t.children[0]), (r = t.meta) != null && r.code && (t.path = `/i/${t.name}`), this.$store.commit("removeViewTags", e), this.$store.commit("removeIframeList", e), this.$store.commit("removeKeepLive", e.name), this.$tool.data.set("RouteTags", this.$store.state.viewTags.viewTags), n && this.isActive(e)) {
491
- const a = this.tagList.slice(-1)[0];
492
- a ? this.$router.push(a) : this.$router.push({ path: t.path });
490
+ if (t.children && (t = t.children[0]), (r = t.meta) != null && r.code && ((a = t.meta) == null ? void 0 : a.code) != this.$config.APP_NAME.toLowerCase() && (t.path = `/i/${t.name}`), this.tagList.length == 1 && t.path == this.$route.path)
491
+ return !1;
492
+ if (this.$store.commit("removeViewTags", e), this.$store.commit("removeIframeList", e), this.$store.commit("removeKeepLive", e.name), this.$tool.data.set("RouteTags", this.$store.state.viewTags.viewTags), n && this.isActive(e)) {
493
+ const o = this.tagList.slice(-1)[0];
494
+ o ? this.$router.push(o) : this.$router.push({ path: t.path });
493
495
  }
494
496
  },
495
497
  //tag右键
@@ -1302,8 +1304,8 @@ const { isFullscreen: ev, toggle: Fc } = kc(), Lc = {
1302
1304
  */
1303
1305
  handleResize() {
1304
1306
  document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement || (this.isFullscreen = !1);
1305
- const n = document.querySelector(".adminui-main > .el-container") || { clientHeight: 0 }, t = document.querySelector(".table-block > .btn-container"), r = document.querySelector(".lw-search-card");
1306
- this.tableHeight = n.clientHeight, r && (this.tableHeight = this.tableHeight - r.clientHeight), t && (this.tableHeight = this.tableHeight - t.clientHeight - 10), this.tableHeight = this.tableHeight - 110;
1307
+ const n = document.querySelector(".adminui-main > .el-container") || { clientHeight: 0 }, t = document.querySelector(".table-block > .btn-container"), r = document.querySelector(".el-form-item__content > .lw-table-page"), a = document.querySelector(".lw-search-card");
1308
+ this.tableHeight = n.clientHeight, a && (this.tableHeight = this.tableHeight - a.clientHeight), t && (this.tableHeight = this.tableHeight - t.clientHeight - 10), r ? this.tableHeight = "" : this.tableHeight = this.tableHeight - 110;
1307
1309
  },
1308
1310
  // 拖动选中
1309
1311
  onSelect({ selected: e }) {
@@ -2565,163 +2567,7 @@ function y8(e, n, t, r, a, o) {
2565
2567
  }, 8, ["modelValue"])
2566
2568
  ], 64);
2567
2569
  }
2568
- const C8 = /* @__PURE__ */ ue(g8, [["render", y8], ["__scopeId", "data-v-67b6e19f"]]), b8 = {
2569
- props: {
2570
- isShowBu: {
2571
- type: Boolean,
2572
- default: !0
2573
- },
2574
- isShowTask: {
2575
- type: Boolean,
2576
- default: !0
2577
- },
2578
- isInitialized: {
2579
- type: Boolean,
2580
- default: !0
2581
- }
2582
- },
2583
- components: {
2584
- bu: vc,
2585
- task: C8
2586
- },
2587
- data() {
2588
- return {
2589
- empty: J4,
2590
- settingDialog: !1,
2591
- userName: "",
2592
- userNameF: "",
2593
- searchVisible: !1,
2594
- tasksVisible: !1,
2595
- msg: !1
2596
- };
2597
- },
2598
- created() {
2599
- this.$store.state.user = this.$tool.data.get("userAuthInfo");
2600
- },
2601
- methods: {
2602
- //个人信息
2603
- handleUser(e) {
2604
- e == "setting" && (this.settingDialog = !0), e == "cmd" && this.$router.push({ path: "/cmd" }), e == "clearCache" && this.$confirm("清除缓存会将系统初始化,包括登录状态、主题、语言设置等,是否继续?", "提示", {
2605
- type: "info"
2606
- }).then(() => {
2607
- this.$tool.data.clear(), window.location.href = "/#/passport-login";
2608
- }).catch(() => {
2609
- }), e == "outLogin" && this.$confirm("确认是否退出当前用户?", "提示", {
2610
- type: "warning",
2611
- confirmButtonText: "退出",
2612
- confirmButtonClass: "el-button--danger"
2613
- }).then(() => {
2614
- this.$store.commit("clearViewTags"), this.$store.commit("clearKeepLive"), this.$store.commit("clearIframeList"), window.location.href = "/#/passport-login";
2615
- }).catch(() => {
2616
- });
2617
- },
2618
- //全屏
2619
- screen() {
2620
- var e = document.documentElement;
2621
- this.$tool.screen(e);
2622
- },
2623
- //显示短消息
2624
- showMsg() {
2625
- this.msg = !0;
2626
- },
2627
- //搜索
2628
- search() {
2629
- this.searchVisible = !0;
2630
- },
2631
- //任务
2632
- tasks() {
2633
- this.tasksVisible = !0;
2634
- }
2635
- }
2636
- }, w8 = { class: "user-bar" }, E8 = { class: "user-avatar" }, _8 = { class: "user-body" }, I8 = { class: "user-name" };
2637
- function B8(e, n, t, r, a, o) {
2638
- const l = E("task"), i = E("bu"), u = E("el-avatar"), d = E("el-dropdown-item"), f = E("el-dropdown-menu"), h = E("el-dropdown"), b = E("setting"), k = E("el-drawer");
2639
- return g(), F(P, null, [
2640
- M("div", w8, [
2641
- me(e.$slots, "userbarActionBox", {}, void 0, !0),
2642
- t.isShowTask ? (g(), B(l, { key: 0 })) : Z("", !0),
2643
- t.isShowBu ? (g(), B(i, {
2644
- key: 1,
2645
- isInitialized: t.isInitialized
2646
- }, null, 8, ["isInitialized"])) : Z("", !0),
2647
- C(h, {
2648
- class: "user panel-item",
2649
- trigger: "click",
2650
- onCommand: o.handleUser
2651
- }, {
2652
- dropdown: v(() => [
2653
- C(f, null, {
2654
- default: v(() => [
2655
- C(d, { command: "uc" }, {
2656
- default: v(() => [
2657
- M("div", _8, [
2658
- C(u, {
2659
- size: 30,
2660
- src: e.$store.state.user.img || a.empty
2661
- }, null, 8, ["src"]),
2662
- M("div", I8, [
2663
- M("label", null, O(e.$store.state.user.realName), 1),
2664
- M("label", null, O(e.$store.state.user.username), 1)
2665
- ])
2666
- ])
2667
- ]),
2668
- _: 1
2669
- }),
2670
- C(d, {
2671
- divided: "",
2672
- command: "setting"
2673
- }, {
2674
- default: v(() => [
2675
- G(O(e.$t("lwLayout.layout.layoutConfiguration")), 1)
2676
- ]),
2677
- _: 1
2678
- }),
2679
- C(d, { command: "clearCache" }, {
2680
- default: v(() => [
2681
- G(O(e.$t("lwLayout.layout.clearCache")), 1)
2682
- ]),
2683
- _: 1
2684
- }),
2685
- C(d, {
2686
- divided: "",
2687
- command: "outLogin"
2688
- }, {
2689
- default: v(() => [
2690
- G(O(e.$t("lwLayout.layout.outLogin")), 1)
2691
- ]),
2692
- _: 1
2693
- })
2694
- ]),
2695
- _: 1
2696
- })
2697
- ]),
2698
- default: v(() => [
2699
- M("div", E8, [
2700
- C(u, {
2701
- size: 30,
2702
- src: e.$store.state.user.img || a.empty
2703
- }, null, 8, ["src"])
2704
- ])
2705
- ]),
2706
- _: 1
2707
- }, 8, ["onCommand"])
2708
- ]),
2709
- C(k, {
2710
- title: "布局实时演示",
2711
- modelValue: a.settingDialog,
2712
- "onUpdate:modelValue": n[0] || (n[0] = (_) => a.settingDialog = _),
2713
- size: 400,
2714
- "append-to-body": "",
2715
- "destroy-on-close": ""
2716
- }, {
2717
- default: v(() => [
2718
- C(b)
2719
- ]),
2720
- _: 1
2721
- }, 8, ["modelValue"])
2722
- ], 64);
2723
- }
2724
- const k8 = /* @__PURE__ */ ue(b8, [["render", B8], ["__scopeId", "data-v-5a6e0fc1"]]), Go = {
2570
+ const C8 = /* @__PURE__ */ ue(g8, [["render", y8], ["__scopeId", "data-v-67b6e19f"]]), Go = {
2725
2571
  //hex颜色转rgb颜色
2726
2572
  HexToRgb(e) {
2727
2573
  e = e.replace("#", "");
@@ -2748,7 +2594,7 @@ const k8 = /* @__PURE__ */ ue(b8, [["render", B8], ["__scopeId", "data-v-5a6e0fc
2748
2594
  for (let r = 0; r < 3; r++) t[r] = Math.floor((255 - t[r]) * n + t[r]);
2749
2595
  return this.RgbToHex(t[0], t[1], t[2]);
2750
2596
  }
2751
- }, F8 = {
2597
+ }, b8 = {
2752
2598
  data() {
2753
2599
  return {
2754
2600
  config: {
@@ -2782,7 +2628,7 @@ const k8 = /* @__PURE__ */ ue(b8, [["render", B8], ["__scopeId", "data-v-5a6e0fc
2782
2628
  }
2783
2629
  }
2784
2630
  };
2785
- function L8(e, n, t, r, a, o) {
2631
+ function w8(e, n, t, r, a, o) {
2786
2632
  const l = E("el-button"), i = E("el-dropdown-item"), u = E("el-dropdown-menu"), d = E("el-dropdown");
2787
2633
  return g(), B(d, {
2788
2634
  trigger: "click",
@@ -2837,7 +2683,7 @@ function L8(e, n, t, r, a, o) {
2837
2683
  _: 1
2838
2684
  }, 8, ["onCommand"]);
2839
2685
  }
2840
- const e5 = /* @__PURE__ */ ue(F8, [["render", L8]]), x8 = {
2686
+ const e5 = /* @__PURE__ */ ue(b8, [["render", w8]]), E8 = {
2841
2687
  components: { Lang: e5 },
2842
2688
  data() {
2843
2689
  return {
@@ -2872,7 +2718,7 @@ const e5 = /* @__PURE__ */ ue(F8, [["render", L8]]), x8 = {
2872
2718
  }
2873
2719
  }
2874
2720
  };
2875
- function S8(e, n, t, r, a, o) {
2721
+ function _8(e, n, t, r, a, o) {
2876
2722
  const l = E("el-divider"), i = E("el-switch"), u = E("el-form-item"), d = E("el-color-picker"), f = E("el-option"), h = E("el-select"), b = E("Lang"), k = E("el-form");
2877
2723
  return g(), B(k, {
2878
2724
  ref: "form",
@@ -2981,7 +2827,164 @@ function S8(e, n, t, r, a, o) {
2981
2827
  _: 1
2982
2828
  }, 512);
2983
2829
  }
2984
- const V8 = /* @__PURE__ */ ue(x8, [["render", S8]]), M8 = {
2830
+ const I8 = /* @__PURE__ */ ue(E8, [["render", _8]]), B8 = {
2831
+ props: {
2832
+ isShowBu: {
2833
+ type: Boolean,
2834
+ default: !0
2835
+ },
2836
+ isShowTask: {
2837
+ type: Boolean,
2838
+ default: !0
2839
+ },
2840
+ isInitialized: {
2841
+ type: Boolean,
2842
+ default: !0
2843
+ }
2844
+ },
2845
+ components: {
2846
+ bu: vc,
2847
+ task: C8,
2848
+ setting: I8
2849
+ },
2850
+ data() {
2851
+ return {
2852
+ empty: J4,
2853
+ settingDialog: !1,
2854
+ userName: "",
2855
+ userNameF: "",
2856
+ searchVisible: !1,
2857
+ tasksVisible: !1,
2858
+ msg: !1
2859
+ };
2860
+ },
2861
+ created() {
2862
+ this.$store.state.user = this.$tool.data.get("userAuthInfo");
2863
+ },
2864
+ methods: {
2865
+ //个人信息
2866
+ handleUser(e) {
2867
+ e == "setting" && (this.settingDialog = !0), e == "cmd" && this.$router.push({ path: "/cmd" }), e == "clearCache" && this.$confirm("清除缓存会将系统初始化,包括登录状态、主题、语言设置等,是否继续?", "提示", {
2868
+ type: "info"
2869
+ }).then(() => {
2870
+ this.$tool.data.clear(), window.location.href = "/#/passport-login";
2871
+ }).catch(() => {
2872
+ }), e == "outLogin" && this.$confirm("确认是否退出当前用户?", "提示", {
2873
+ type: "warning",
2874
+ confirmButtonText: "退出",
2875
+ confirmButtonClass: "el-button--danger"
2876
+ }).then(() => {
2877
+ this.$store.commit("clearViewTags"), this.$store.commit("clearKeepLive"), this.$store.commit("clearIframeList"), window.location.href = "/#/passport-login";
2878
+ }).catch(() => {
2879
+ });
2880
+ },
2881
+ //全屏
2882
+ screen() {
2883
+ var e = document.documentElement;
2884
+ this.$tool.screen(e);
2885
+ },
2886
+ //显示短消息
2887
+ showMsg() {
2888
+ this.msg = !0;
2889
+ },
2890
+ //搜索
2891
+ search() {
2892
+ this.searchVisible = !0;
2893
+ },
2894
+ //任务
2895
+ tasks() {
2896
+ this.tasksVisible = !0;
2897
+ }
2898
+ }
2899
+ }, k8 = { class: "user-bar" }, F8 = { class: "user-avatar" }, L8 = { class: "user-body" }, x8 = { class: "user-name" };
2900
+ function S8(e, n, t, r, a, o) {
2901
+ const l = E("task"), i = E("bu"), u = E("el-avatar"), d = E("el-dropdown-item"), f = E("el-dropdown-menu"), h = E("el-dropdown"), b = E("setting"), k = E("el-drawer");
2902
+ return g(), F(P, null, [
2903
+ M("div", k8, [
2904
+ me(e.$slots, "userbarActionBox", {}, void 0, !0),
2905
+ t.isShowTask ? (g(), B(l, { key: 0 })) : Z("", !0),
2906
+ t.isShowBu ? (g(), B(i, {
2907
+ key: 1,
2908
+ isInitialized: t.isInitialized
2909
+ }, null, 8, ["isInitialized"])) : Z("", !0),
2910
+ C(h, {
2911
+ class: "user panel-item",
2912
+ trigger: "click",
2913
+ onCommand: o.handleUser
2914
+ }, {
2915
+ dropdown: v(() => [
2916
+ C(f, null, {
2917
+ default: v(() => [
2918
+ C(d, { command: "uc" }, {
2919
+ default: v(() => [
2920
+ M("div", L8, [
2921
+ C(u, {
2922
+ size: 30,
2923
+ src: e.$store.state.user.img || a.empty
2924
+ }, null, 8, ["src"]),
2925
+ M("div", x8, [
2926
+ M("label", null, O(e.$store.state.user.realName), 1),
2927
+ M("label", null, O(e.$store.state.user.username), 1)
2928
+ ])
2929
+ ])
2930
+ ]),
2931
+ _: 1
2932
+ }),
2933
+ C(d, {
2934
+ divided: "",
2935
+ command: "setting"
2936
+ }, {
2937
+ default: v(() => [
2938
+ G(O(e.$t("lwLayout.layout.layoutConfiguration")), 1)
2939
+ ]),
2940
+ _: 1
2941
+ }),
2942
+ C(d, { command: "clearCache" }, {
2943
+ default: v(() => [
2944
+ G(O(e.$t("lwLayout.layout.clearCache")), 1)
2945
+ ]),
2946
+ _: 1
2947
+ }),
2948
+ C(d, {
2949
+ divided: "",
2950
+ command: "outLogin"
2951
+ }, {
2952
+ default: v(() => [
2953
+ G(O(e.$t("lwLayout.layout.outLogin")), 1)
2954
+ ]),
2955
+ _: 1
2956
+ })
2957
+ ]),
2958
+ _: 1
2959
+ })
2960
+ ]),
2961
+ default: v(() => [
2962
+ M("div", F8, [
2963
+ C(u, {
2964
+ size: 30,
2965
+ src: e.$store.state.user.img || a.empty
2966
+ }, null, 8, ["src"])
2967
+ ])
2968
+ ]),
2969
+ _: 1
2970
+ }, 8, ["onCommand"])
2971
+ ]),
2972
+ C(k, {
2973
+ title: "布局实时演示",
2974
+ modelValue: a.settingDialog,
2975
+ "onUpdate:modelValue": n[0] || (n[0] = (_) => a.settingDialog = _),
2976
+ size: 400,
2977
+ "append-to-body": "",
2978
+ "destroy-on-close": ""
2979
+ }, {
2980
+ default: v(() => [
2981
+ C(b)
2982
+ ]),
2983
+ _: 1
2984
+ }, 8, ["modelValue"])
2985
+ ], 64);
2986
+ }
2987
+ const V8 = /* @__PURE__ */ ue(B8, [["render", S8], ["__scopeId", "data-v-d10d105f"]]), M8 = {
2985
2988
  data() {
2986
2989
  return {};
2987
2990
  },
@@ -3053,8 +3056,7 @@ const P8 = /* @__PURE__ */ ue(M8, [["render", D8], ["__scopeId", "data-v-91dc7bb
3053
3056
  Topbar: uc,
3054
3057
  Tags: pc,
3055
3058
  NavMenu: K4,
3056
- userbar: k8,
3057
- setting: V8,
3059
+ userbar: V8,
3058
3060
  iframeView: P8
3059
3061
  },
3060
3062
  data() {