@witlink/usercenter 1.2.28 → 1.2.30

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.
@@ -2497,8 +2497,11 @@ const _hoisted_1$y = { class: "organ-wrap" };
2497
2497
  const _hoisted_2$f = { class: "topInfo" };
2498
2498
  const _hoisted_3$d = { class: "topAdd" };
2499
2499
  const _hoisted_4$a = { class: "table-wrap" };
2500
- const _hoisted_5$4 = { key: 2 };
2501
- const _hoisted_6$4 = { class: "ant-dropdown-link" };
2500
+ const _hoisted_5$4 = { class: "ant-dropdown-link" };
2501
+ const _hoisted_6$4 = {
2502
+ class: "ant-dropdown-link",
2503
+ style: { "color": "rgba(0, 0, 0, 0.25)" }
2504
+ };
2502
2505
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
2503
2506
  __name: "index",
2504
2507
  setup(__props, { expose: __expose }) {
@@ -2679,6 +2682,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2679
2682
  return (_ctx, _cache) => {
2680
2683
  const _component_a_input_search = InputSearch;
2681
2684
  const _component_a_button = Button;
2685
+ const _component_a_tooltip = Tooltip;
2682
2686
  const _component_uc_pick_label = resolveComponent("uc-pick-label");
2683
2687
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
2684
2688
  const _component_a_divider = Divider;
@@ -2749,99 +2753,195 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2749
2753
  }, 1032, ["onClick"]), [
2750
2754
  [vShow, !record.operationPermissions]
2751
2755
  ]),
2752
- withDirectives(createElementVNode("span", { style: { "padding-left": "15px" } }, toDisplayString(record.name), 513), [
2753
- [vShow, record.operationPermissions]
2754
- ])
2756
+ createVNode(_component_a_tooltip, { placement: "top" }, {
2757
+ title: withCtx(() => [
2758
+ createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2759
+ ]),
2760
+ default: withCtx(() => [
2761
+ withDirectives(createVNode(_component_a_button, {
2762
+ type: "link",
2763
+ disabled: ""
2764
+ }, {
2765
+ default: withCtx(() => [
2766
+ createTextVNode(toDisplayString(record.name), 1)
2767
+ ]),
2768
+ _: 2
2769
+ }, 1536), [
2770
+ [vShow, record.operationPermissions]
2771
+ ])
2772
+ ]),
2773
+ _: 2
2774
+ }, 1024)
2755
2775
  ], 64)) : createCommentVNode("v-if", true),
2756
2776
  column.key === "cdate" ? (openBlock(), createBlock(_component_uc_pick_label, {
2757
2777
  key: 1,
2758
2778
  defaultValue: record.cdate
2759
2779
  }, null, 8, ["defaultValue"])) : createCommentVNode("v-if", true),
2760
- column.key === "action" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
2761
- createVNode(_component_uc_btn_edit, {
2762
- onClick: ($event) => onUpdate(record),
2763
- type: "a"
2764
- }, null, 8, ["onClick"]),
2765
- createVNode(_component_a_divider, { type: "vertical" }),
2766
- withDirectives(createVNode(_component_uc_btn_remove, {
2767
- onClick: ($event) => onDelete(record),
2768
- type: "c",
2769
- title: _ctx.$t("organ.remove"),
2770
- content: _ctx.$t("organ.remove1")
2771
- }, null, 8, ["onClick", "title", "content"]), [
2772
- [vShow, record.type == 3]
2773
- ]),
2774
- withDirectives(createVNode(_component_uc_btn_add, {
2775
- type: "d",
2776
- onClick: ($event) => onAddDep(record),
2777
- text: _ctx.$t("organ.add2")
2778
- }, null, 8, ["onClick", "text"]), [
2779
- [vShow, record.type == 2]
2780
- ]),
2781
- withDirectives(createElementVNode("span", null, [
2782
- createVNode(_component_a_dropdown, null, {
2783
- overlay: withCtx(() => [
2784
- createVNode(_component_a_menu, null, {
2785
- default: withCtx(() => [
2786
- withDirectives(createElementVNode("div", null, [
2787
- createVNode(_component_a_menu_item, { key: "1" }, {
2788
- default: withCtx(() => [
2789
- createVNode(_component_uc_btn_add, {
2790
- type: "d",
2791
- text: _ctx.$t("organ.add1"),
2792
- onClick: ($event) => onAdd(record)
2793
- }, null, 8, ["text", "onClick"])
2794
- ]),
2795
- _: 2
2796
- }, 1024)
2797
- ], 512), [
2798
- [vShow, addShow.value]
2799
- ]),
2800
- withDirectives(createElementVNode("div", null, [
2801
- createVNode(_component_a_menu_item, { key: "2" }, {
2802
- default: withCtx(() => [
2803
- createVNode(_component_uc_btn_add, {
2804
- type: "d",
2805
- text: _ctx.$t("organ.add2"),
2806
- onClick: ($event) => onAddDep(record)
2807
- }, null, 8, ["text", "onClick"])
2808
- ]),
2809
- _: 2
2810
- }, 1024)
2811
- ], 512), [
2812
- [vShow, addShow.value]
2780
+ column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2781
+ withDirectives(createElementVNode("div", null, [
2782
+ createVNode(_component_uc_btn_edit, {
2783
+ onClick: ($event) => onUpdate(record),
2784
+ type: "a"
2785
+ }, null, 8, ["onClick"]),
2786
+ createVNode(_component_a_divider, { type: "vertical" }),
2787
+ withDirectives(createVNode(_component_uc_btn_remove, {
2788
+ onClick: ($event) => onDelete(record),
2789
+ type: "c",
2790
+ title: _ctx.$t("organ.remove"),
2791
+ content: _ctx.$t("organ.remove1")
2792
+ }, null, 8, ["onClick", "title", "content"]), [
2793
+ [vShow, record.type == 3]
2794
+ ]),
2795
+ withDirectives(createVNode(_component_uc_btn_add, {
2796
+ type: "d",
2797
+ onClick: ($event) => onAddDep(record),
2798
+ text: _ctx.$t("organ.add2")
2799
+ }, null, 8, ["onClick", "text"]), [
2800
+ [vShow, record.type == 2]
2801
+ ]),
2802
+ withDirectives(createElementVNode("span", null, [
2803
+ createVNode(_component_a_dropdown, null, {
2804
+ overlay: withCtx(() => [
2805
+ createVNode(_component_a_menu, null, {
2806
+ default: withCtx(() => [
2807
+ withDirectives(createElementVNode("div", null, [
2808
+ createVNode(_component_a_menu_item, { key: "1" }, {
2809
+ default: withCtx(() => [
2810
+ createVNode(_component_uc_btn_add, {
2811
+ type: "d",
2812
+ text: _ctx.$t("organ.add1"),
2813
+ onClick: ($event) => onAdd(record)
2814
+ }, null, 8, ["text", "onClick"])
2815
+ ]),
2816
+ _: 2
2817
+ }, 1024)
2818
+ ], 512), [
2819
+ [vShow, addShow.value]
2820
+ ]),
2821
+ withDirectives(createElementVNode("div", null, [
2822
+ createVNode(_component_a_menu_item, { key: "2" }, {
2823
+ default: withCtx(() => [
2824
+ createVNode(_component_uc_btn_add, {
2825
+ type: "d",
2826
+ text: _ctx.$t("organ.add2"),
2827
+ onClick: ($event) => onAddDep(record)
2828
+ }, null, 8, ["text", "onClick"])
2829
+ ]),
2830
+ _: 2
2831
+ }, 1024)
2832
+ ], 512), [
2833
+ [vShow, addShow.value]
2834
+ ]),
2835
+ withDirectives(createElementVNode("div", null, [
2836
+ createVNode(_component_a_menu_item, { key: "3" }, {
2837
+ default: withCtx(() => [
2838
+ createVNode(_component_uc_btn_remove, {
2839
+ onClick: ($event) => onDelete(record),
2840
+ type: "c",
2841
+ title: _ctx.$t("organ.remove"),
2842
+ content: _ctx.$t("organ.remove1")
2843
+ }, null, 8, ["onClick", "title", "content"])
2844
+ ]),
2845
+ _: 2
2846
+ }, 1024)
2847
+ ], 512), [
2848
+ [vShow, record.type != 0 && removeShow.value]
2849
+ ])
2813
2850
  ]),
2814
- withDirectives(createElementVNode("div", null, [
2815
- createVNode(_component_a_menu_item, { key: "3" }, {
2816
- default: withCtx(() => [
2817
- createVNode(_component_uc_btn_remove, {
2818
- onClick: ($event) => onDelete(record),
2819
- type: "c",
2820
- title: _ctx.$t("organ.remove"),
2821
- content: _ctx.$t("organ.remove1")
2822
- }, null, 8, ["onClick", "title", "content"])
2823
- ]),
2824
- _: 2
2825
- }, 1024)
2826
- ], 512), [
2827
- [vShow, record.type != 0 && removeShow.value]
2828
- ])
2829
- ]),
2830
- _: 2
2831
- }, 1024)
2851
+ _: 2
2852
+ }, 1024)
2853
+ ]),
2854
+ default: withCtx(() => [
2855
+ createElementVNode("a", _hoisted_5$4, [
2856
+ createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
2857
+ createVNode(unref(DownOutlined))
2858
+ ])
2859
+ ]),
2860
+ _: 2
2861
+ }, 1024)
2862
+ ], 512), [
2863
+ [vShow, record.type != 3 && record.type != 2]
2864
+ ])
2865
+ ], 512), [
2866
+ [vShow, !record.operationPermissions]
2867
+ ]),
2868
+ withDirectives(createElementVNode("div", null, [
2869
+ createVNode(_component_a_tooltip, { placement: "top" }, {
2870
+ title: withCtx(() => [
2871
+ createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2832
2872
  ]),
2833
2873
  default: withCtx(() => [
2834
- createElementVNode("a", _hoisted_6$4, [
2835
- createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
2836
- createVNode(unref(DownOutlined))
2874
+ createVNode(_component_uc_btn_edit, {
2875
+ onClick: ($event) => onUpdate(record),
2876
+ type: "b",
2877
+ style: { "color": "rgba(0, 0, 0, 0.25)" },
2878
+ disabled: ""
2879
+ }, null, 8, ["onClick"])
2880
+ ]),
2881
+ _: 2
2882
+ }, 1024),
2883
+ createVNode(_component_a_divider, { type: "vertical" }),
2884
+ createVNode(_component_a_tooltip, { placement: "top" }, {
2885
+ title: withCtx(() => [
2886
+ createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2887
+ ]),
2888
+ default: withCtx(() => [
2889
+ withDirectives(createVNode(_component_uc_btn_remove, {
2890
+ onClick: ($event) => onDelete(record),
2891
+ type: "c",
2892
+ style: { "color": "rgba(0, 0, 0, 0.25)" },
2893
+ disabled: "",
2894
+ title: _ctx.$t("organ.remove"),
2895
+ content: _ctx.$t("organ.remove1")
2896
+ }, null, 8, ["onClick", "title", "content"]), [
2897
+ [vShow, record.type == 3]
2898
+ ])
2899
+ ]),
2900
+ _: 2
2901
+ }, 1024),
2902
+ createVNode(_component_a_tooltip, { placement: "top" }, {
2903
+ title: withCtx(() => [
2904
+ createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2905
+ ]),
2906
+ default: withCtx(() => [
2907
+ withDirectives(createVNode(_component_uc_btn_add, {
2908
+ type: "b",
2909
+ style: { "color": "rgba(0, 0, 0, 0.25)" },
2910
+ disabled: "",
2911
+ onClick: ($event) => onAddDep(record),
2912
+ text: _ctx.$t("organ.add2")
2913
+ }, null, 8, ["onClick", "text"]), [
2914
+ [vShow, record.type == 2]
2915
+ ])
2916
+ ]),
2917
+ _: 2
2918
+ }, 1024),
2919
+ createVNode(_component_a_tooltip, { placement: "top" }, {
2920
+ title: withCtx(() => [
2921
+ createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2922
+ ]),
2923
+ default: withCtx(() => [
2924
+ withDirectives(createElementVNode("span", null, [
2925
+ createVNode(_component_a_dropdown, { disabled: "" }, {
2926
+ overlay: withCtx(() => _cache[2] || (_cache[2] = [])),
2927
+ default: withCtx(() => [
2928
+ createElementVNode("a", _hoisted_6$4, [
2929
+ createTextVNode(toDisplayString(_ctx.$t("common.btn_more")) + " ", 1),
2930
+ createVNode(unref(DownOutlined))
2931
+ ])
2932
+ ]),
2933
+ _: 1
2934
+ })
2935
+ ], 512), [
2936
+ [vShow, record.type != 3 && record.type != 2]
2837
2937
  ])
2838
2938
  ]),
2839
2939
  _: 2
2840
2940
  }, 1024)
2841
2941
  ], 512), [
2842
- [vShow, record.type != 3 && record.type != 2]
2942
+ [vShow, record.operationPermissions]
2843
2943
  ])
2844
- ])) : createCommentVNode("v-if", true)
2944
+ ], 64)) : createCommentVNode("v-if", true)
2845
2945
  ]),
2846
2946
  _: 1
2847
2947
  }, 8, ["columns", "data-source", "expandedRowKeys"])
@@ -6996,7 +7096,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6996
7096
  {
6997
7097
  title: t("user.mainRoleName"),
6998
7098
  dataIndex: "mainRoleName",
6999
- width: "150px",
7099
+ width: "200px",
7000
7100
  key: "mainRoleName",
7001
7101
  filters: roleSelsect.value,
7002
7102
  defaultFilteredValue: [],
@@ -7009,7 +7109,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7009
7109
  {
7010
7110
  title: t("user.user_status"),
7011
7111
  dataIndex: "userStatus",
7012
- width: "150px",
7112
+ width: "200px",
7013
7113
  key: "userStatus",
7014
7114
  filters: [
7015
7115
  { text: t("dct.USER_STATUS0"), value: "0" },
@@ -12223,8 +12323,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
12223
12323
  return false;
12224
12324
  }
12225
12325
  formData.fileName = file;
12226
- getBase64(file, (imageUrl2) => {
12227
- imageUrl2.value = imageUrl2;
12326
+ getBase64(file, (url) => {
12327
+ imageUrl.value = url;
12228
12328
  });
12229
12329
  return false;
12230
12330
  };