act-plus 1.1.33 → 1.1.35

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.
@@ -1,10 +1,10 @@
1
- import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as I, watch as j, resolveComponent as m, openBlock as F, createBlock as z, withCtx as d, createVNode as b, unref as i, isRef as E, createTextVNode as x, toDisplayString as P, pushScopeId as H, popScopeId as K, createElementVNode as L } from "vue";
1
+ import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as D, watch as j, resolveComponent as m, openBlock as F, createBlock as z, withCtx as d, createVNode as f, unref as l, isRef as E, createTextVNode as x, toDisplayString as P, pushScopeId as H, popScopeId as K, createElementVNode as L } from "vue";
2
2
  import { useRoute as $ } from "vue-router";
3
- import { _ as G } from "./index-76e96bb6.js";
3
+ import { _ as G } from "./index-adf3ff12.js";
4
4
  import "js-base64";
5
5
  import "element-plus";
6
6
  import "monaco-editor";
7
- const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ L("div", { class: "card-header" }, [
7
+ const J = (u) => (H("data-v-862782ff"), u = u(), K(), u), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ L("div", { class: "card-header" }, [
8
8
  /* @__PURE__ */ L("div", { class: "card-header-title" }, "按钮配置")
9
9
  ], -1)), X = {
10
10
  __name: "configBtns",
@@ -13,7 +13,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
13
13
  },
14
14
  emits: ["update:modelValue"],
15
15
  setup(u, { expose: V, emit: Y }) {
16
- const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-b63efb63.js")), c = u, w = () => ({
16
+ const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-666a5a33.js")), p = u, w = () => ({
17
17
  sort: 0,
18
18
  permissionCode: null,
19
19
  requestUrl: "",
@@ -38,7 +38,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
38
38
  tableLoading: !1,
39
39
  showConfigBtnDialog: !1,
40
40
  dialogData: {}
41
- }))()), v = g(null), y = 0, B = [], l = g([]), M = [
41
+ }))()), v = g(null), y = 0, B = [], s = g([]), M = [
42
42
  { prop: "checkbox", width: 60 },
43
43
  { prop: "serialNumber", width: 80 },
44
44
  { label: "按钮名称", prop: "btnName", minWidth: 200 },
@@ -48,39 +48,42 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
48
48
  { label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
49
49
  { label: "排序", prop: "sort", width: 180, render: !0 },
50
50
  { label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
51
- ], f = g([]);
52
- const N = (e) => C({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), S = (e) => C({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), k = (e, o) => {
53
- l.value.includes(e.permissionCode) || l.value.push(e.permissionCode), Object.assign(f.value[y], e), o(!0);
51
+ ], b = g([]);
52
+ const N = (e) => C({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), S = (e) => C({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), k = (e, a) => {
53
+ s.value.includes(e.permissionCode) || s.value.push(e.permissionCode), Object.assign(b.value[y], e), a(!0);
54
54
  }, R = async (e) => {
55
55
  try {
56
56
  n.tableLoading = !0;
57
- const o = c.id ? c.id : h.params.id, { data: s } = await S({ id: o });
58
- l.value = (s || []).filter((a) => (e || []).some((r) => r.permissionCode == a.unique)).map((a) => a.unique), f.value = (s || []).map((a, r) => {
59
- let _ = w(), p = (e || []).find((t) => t.permissionCode == a.unique) || {};
60
- return { ..._, ...p, btnName: a.name, permissionCode: a.unique, sort: p.sort ? p.sort : (r + 1) * 10 };
61
- }).sort((a, r) => a.sort - r.sort), n.tableLoading = !1;
62
- } catch (o) {
63
- n.tableLoading = !1, console.error(o);
57
+ const a = p.id ? p.id : h.params.id, { data: i } = await S({ id: a });
58
+ s.value = (i || []).filter((o) => (e || []).some((r) => r.permissionCode == o.unique)).map((o) => o.unique), b.value = (i || []).map((o, r) => {
59
+ let _ = w(), c = (e || []).find((t) => t.permissionCode == o.unique) || {};
60
+ return { ..._, btnIcon: o.icon || "", ...c, btnName: o.name, permissionCode: o.unique, sort: c.sort ? c.sort : (r + 1) * 10 };
61
+ }).sort((o, r) => o.sort - r.sort), n.tableLoading = !1;
62
+ } catch (a) {
63
+ n.tableLoading = !1, console.error(a);
64
64
  }
65
65
  }, A = () => v.value.getSelectionRows() || [];
66
- I("associationMenuList", B), I("createDefaultButtonItem", w), j(
67
- () => c.modelValue,
68
- async (e, o) => {
66
+ D("associationMenuList", B), D("createDefaultButtonItem", w), j(
67
+ () => p.modelValue,
68
+ async (e, a) => {
69
69
  try {
70
- const s = c.id ? c.id : h.params.id;
71
- B = (await N({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: s }] })).data || [], await R(e);
72
- } catch (s) {
73
- n.tableLoading = !1, console.error(s);
70
+ if (e.length) {
71
+ const i = p.id ? p.id : h.params.id;
72
+ B = (await N({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await R(e);
73
+ } else
74
+ s.value = [], b.value = [];
75
+ } catch (i) {
76
+ n.tableLoading = !1, console.error(i);
74
77
  }
75
78
  },
76
- { deep: !0, immediate: !0 }
79
+ { deep: !0 }
77
80
  );
78
81
  const U = (e) => {
79
82
  n.dialogData = e.row, y = e.$index, n.showConfigBtnDialog = !0;
80
83
  };
81
- return V({ getTableSelectionRows: A }), (e, o) => {
82
- const s = m("el-tag"), a = m("el-input-number"), r = m("el-button"), _ = m("a-table"), p = m("el-card");
83
- return F(), z(p, {
84
+ return V({ getTableSelectionRows: A }), (e, a) => {
85
+ const i = m("el-tag"), o = m("el-input-number"), r = m("el-button"), _ = m("a-table"), c = m("el-card");
86
+ return F(), z(c, {
84
87
  class: "form-card",
85
88
  shadow: "hover"
86
89
  }, {
@@ -88,19 +91,19 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
88
91
  Q
89
92
  ]),
90
93
  default: d(() => [
91
- b(_, {
94
+ f(_, {
92
95
  ref_key: "tableRef",
93
96
  ref: v,
94
- loading: i(n).tableLoading,
97
+ loading: l(n).tableLoading,
95
98
  rowKey: "permissionCode",
96
- selection: i(l),
97
- "onUpdate:selection": o[0] || (o[0] = (t) => E(l) ? l.value = t : l = t),
98
- headers: i(M),
99
- data: i(f),
99
+ selection: l(s),
100
+ "onUpdate:selection": a[0] || (a[0] = (t) => E(s) ? s.value = t : s = t),
101
+ headers: l(M),
102
+ data: l(b),
100
103
  showPagination: !1
101
104
  }, {
102
105
  isCustomBtn: d(({ scope: t }) => [
103
- b(s, {
106
+ f(i, {
104
107
  type: "primary",
105
108
  effect: "dark",
106
109
  size: "small"
@@ -112,19 +115,19 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
112
115
  }, 1024)
113
116
  ]),
114
117
  sort: d(({ scope: t }) => [
115
- b(a, {
118
+ f(o, {
116
119
  modelValue: t.row.sort,
117
- "onUpdate:modelValue": (D) => t.row.sort = D,
120
+ "onUpdate:modelValue": (I) => t.row.sort = I,
118
121
  min: 0
119
122
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
120
123
  ]),
121
124
  operate: d(({ scope: t }) => [
122
- b(r, {
125
+ f(r, {
123
126
  type: "primary",
124
127
  text: "",
125
128
  size: "small",
126
129
  icon: "Aim",
127
- onClick: (D) => U(t)
130
+ onClick: (I) => U(t)
128
131
  }, {
129
132
  default: d(() => [
130
133
  x(" 配置 ")
@@ -134,11 +137,11 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
134
137
  ]),
135
138
  _: 1
136
139
  }, 8, ["loading", "selection", "headers", "data"]),
137
- b(i(q), {
138
- visible: i(n).showConfigBtnDialog,
139
- "onUpdate:visible": o[1] || (o[1] = (t) => i(n).showConfigBtnDialog = t),
140
+ f(l(q), {
141
+ visible: l(n).showConfigBtnDialog,
142
+ "onUpdate:visible": a[1] || (a[1] = (t) => l(n).showConfigBtnDialog = t),
140
143
  title: "配置按钮",
141
- data: i(n).dialogData,
144
+ data: l(n).dialogData,
142
145
  onRefresh: k
143
146
  }, null, 8, ["visible", "data"])
144
147
  ]),
@@ -146,7 +149,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
146
149
  });
147
150
  };
148
151
  }
149
- }, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-c348bee1"]]);
152
+ }, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-862782ff"]]);
150
153
  export {
151
154
  ie as default
152
155
  };
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as a, createElementVNode as C, createVNode as d, createTextVNode as i, unref as r, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
2
- import { a as J } from "./enum-ab7125f9.js";
3
- import { _ as M } from "./index-76e96bb6.js";
2
+ import { a as J } from "./enum-95788c42.js";
3
+ import { _ as M } from "./index-adf3ff12.js";
4
4
  import "vue-router";
5
5
  import "js-base64";
6
6
  import "element-plus";
@@ -12,7 +12,7 @@ const Q = (u) => (Y("data-v-3440b427"), u = u(), G(), u), X = { class: "card-hea
12
12
  },
13
13
  emits: ["update:modelValue"],
14
14
  setup(u, { emit: v }) {
15
- const F = I(() => import("./dialogAddField-83ad1dc8.js")), g = v, b = u, V = H("configData")();
15
+ const F = I(() => import("./dialogAddField-17e1aa96.js")), g = v, b = u, V = H("configData")();
16
16
  let l = U((() => ({
17
17
  tableLoading: !1,
18
18
  showAddFieldDialog: !1,
@@ -1,5 +1,5 @@
1
1
  import { ref as _, watch as P, resolveComponent as m, openBlock as i, createBlock as p, withCtx as o, createVNode as e, unref as a, createElementBlock as R, Fragment as W, renderList as F } from "vue";
2
- import { F as O } from "./enum-ab7125f9.js";
2
+ import { F as O } from "./enum-95788c42.js";
3
3
  const C = {
4
4
  __name: "configForm",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { inject as z, ref as T, watch as j, resolveComponent as i, openBlock as s, createBlock as b, withCtx as l, createVNode as e, unref as u, createTextVNode as B, createElementBlock as y, Fragment as U, renderList as w, createCommentVNode as x } from "vue";
2
- import { S as I } from "./enum-ab7125f9.js";
3
- import { _ as M } from "./index-76e96bb6.js";
2
+ import { S as I } from "./enum-95788c42.js";
3
+ import { _ as M } from "./index-adf3ff12.js";
4
4
  import "vue-router";
5
5
  import "js-base64";
6
6
  import "element-plus";