@kengic/vue 0.20.1 → 0.20.2-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2931,7 +2931,7 @@ const emptyIcon = {
2931
2931
  ...t.data
2932
2932
  }, r);
2933
2933
  }
2934
- }), version = "0.20.1";
2934
+ }), version = "0.20.2-beta.0";
2935
2935
  var isVue2 = !1;
2936
2936
  function set(e, t, r) {
2937
2937
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
@@ -6403,7 +6403,7 @@ const KgModal_Close = "", getProps$L = () => ({
6403
6403
  class CreateVarDdaQuery {
6404
6404
  constructor(t) {
6405
6405
  _(this, "frmId");
6406
- _(this, "sysPermission");
6406
+ _(this, "sysPermissions");
6407
6407
  _(this, "varButtons");
6408
6408
  _(this, "varContexts");
6409
6409
  _(this, "varDda");
@@ -6420,7 +6420,7 @@ class CreateVarDdaQuery {
6420
6420
  keys(t != null ? t : {}).forEach((r) => {
6421
6421
  switch (r) {
6422
6422
  case "frmId":
6423
- case "sysPermission":
6423
+ case "sysPermissions":
6424
6424
  case "varButtons":
6425
6425
  case "varContexts":
6426
6426
  case "varDda":
@@ -19995,7 +19995,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19995
19995
  function C(K) {
19996
19996
  const { properties: V = {} } = K;
19997
19997
  Object.entries(V).forEach(([I, R]) => {
19998
- I in n.value.sysPermission && n.value.sysPermission[I] !== R && (n.value.sysPermission[I] = R);
19998
+ I in n.value.sysPermissions[0] && n.value.sysPermissions[0][I] !== R && (n.value.sysPermissions[0][I] = R);
19999
19999
  });
20000
20000
  }
20001
20001
  function g(K) {
@@ -20107,22 +20107,25 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
20107
20107
  function w() {
20108
20108
  n.value = {
20109
20109
  frmId: "",
20110
- sysPermission: {
20111
- app: "WEB",
20112
- component: "dda/index",
20113
- componentName: "",
20114
- icon: "NULL",
20115
- keepAlive: !0,
20116
- leaf: !0,
20117
- menuType: 1,
20118
- name: "",
20119
- parentId: "",
20120
- permsType: "0",
20121
- route: !1,
20122
- sortNo: 99,
20123
- status: "1",
20124
- url: ""
20125
- },
20110
+ sysPermissions: [
20111
+ {
20112
+ app: "WEB",
20113
+ component: "dda/index",
20114
+ componentName: "",
20115
+ delFlag: 0,
20116
+ icon: "NULL",
20117
+ keepAlive: !0,
20118
+ leaf: !1,
20119
+ menuType: 1,
20120
+ name: "",
20121
+ parentId: "",
20122
+ permsType: "0",
20123
+ route: !1,
20124
+ sortNo: 99,
20125
+ status: "1",
20126
+ url: ""
20127
+ }
20128
+ ],
20126
20129
  varButtons: [
20127
20130
  {
20128
20131
  dis_mult_select_flg: 0,
@@ -21655,8 +21658,21 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21655
21658
  try {
21656
21659
  await ((A = p.value) == null ? void 0 : A.onSubmit());
21657
21660
  const E = cloneDeep(toRaw(unref(a.getCreateVarDdaQuery)));
21658
- E.varButtons.forEach((D) => {
21659
- delete D.id;
21661
+ E.varButtons.forEach((D, M) => {
21662
+ var w, O, P;
21663
+ delete D.id, E.sysPermissions.push({
21664
+ app: "WEB",
21665
+ delFlag: 0,
21666
+ leaf: !0,
21667
+ menuType: 2,
21668
+ name: (O = (w = E.varVariableCatalogs.find((L) => L.var_nam === D.var_nam)) == null ? void 0 : w.var_text) != null ? O : "",
21669
+ parentId: "",
21670
+ perms: (P = D.permission_code) != null ? P : "",
21671
+ permsType: "0",
21672
+ route: !1,
21673
+ sortNo: M + 1,
21674
+ status: "1"
21675
+ });
21660
21676
  }), await Create({
21661
21677
  data: E
21662
21678
  }), message.success(r.t("\u521B\u5EFA\u6210\u529F.")), t("update:kgVisible", !1), t("kgOk"), a.initCreateVarDdaQuery();
@@ -2,8 +2,8 @@
2
2
  export declare class CreateVarDdaQuery {
3
3
  /** 界面标识(FormID). */
4
4
  frmId?: string | null;
5
- /** 菜单. */
6
- sysPermission?: SysPermission | null;
5
+ /** 菜单以及按钮权限. */
6
+ sysPermissions?: Array<SysPermission> | null;
7
7
  /** 按钮. */
8
8
  varButtons?: Array<VarButton> | null;
9
9
  /** 所有变量. */
@@ -11,7 +11,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
11
11
  }[]>;
12
12
  createVarDdaQuery: import("vue").Ref<{
13
13
  frmId?: string | null | undefined;
14
- sysPermission?: {
14
+ sysPermissions?: {
15
15
  alwaysShow?: boolean | null | undefined;
16
16
  app?: string | null | undefined;
17
17
  component?: string | null | undefined;
@@ -40,7 +40,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
40
40
  updateBy?: string | null | undefined;
41
41
  updateTime?: string | null | undefined;
42
42
  url?: string | null | undefined;
43
- } | null | undefined;
43
+ }[] | null | undefined;
44
44
  varButtons?: {
45
45
  available_flag?: number | null | undefined;
46
46
  cmd?: string | null | undefined;
@@ -275,7 +275,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
275
275
  }[]>;
276
276
  getCreateVarDdaQuery: import("vue").ComputedRef<{
277
277
  frmId?: string | null | undefined;
278
- sysPermission?: {
278
+ sysPermissions?: {
279
279
  alwaysShow?: boolean | null | undefined;
280
280
  app?: string | null | undefined;
281
281
  component?: string | null | undefined;
@@ -304,7 +304,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
304
304
  updateBy?: string | null | undefined;
305
305
  updateTime?: string | null | undefined;
306
306
  url?: string | null | undefined;
307
- } | null | undefined;
307
+ }[] | null | undefined;
308
308
  varButtons?: {
309
309
  available_flag?: number | null | undefined;
310
310
  cmd?: string | null | undefined;
@@ -574,7 +574,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
574
574
  }[]>;
575
575
  createVarDdaQuery: import("vue").Ref<{
576
576
  frmId?: string | null | undefined;
577
- sysPermission?: {
577
+ sysPermissions?: {
578
578
  alwaysShow?: boolean | null | undefined;
579
579
  app?: string | null | undefined;
580
580
  component?: string | null | undefined;
@@ -603,7 +603,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
603
603
  updateBy?: string | null | undefined;
604
604
  updateTime?: string | null | undefined;
605
605
  url?: string | null | undefined;
606
- } | null | undefined;
606
+ }[] | null | undefined;
607
607
  varButtons?: {
608
608
  available_flag?: number | null | undefined;
609
609
  cmd?: string | null | undefined;
@@ -838,7 +838,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
838
838
  }[]>;
839
839
  getCreateVarDdaQuery: import("vue").ComputedRef<{
840
840
  frmId?: string | null | undefined;
841
- sysPermission?: {
841
+ sysPermissions?: {
842
842
  alwaysShow?: boolean | null | undefined;
843
843
  app?: string | null | undefined;
844
844
  component?: string | null | undefined;
@@ -867,7 +867,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
867
867
  updateBy?: string | null | undefined;
868
868
  updateTime?: string | null | undefined;
869
869
  url?: string | null | undefined;
870
- } | null | undefined;
870
+ }[] | null | undefined;
871
871
  varButtons?: {
872
872
  available_flag?: number | null | undefined;
873
873
  cmd?: string | null | undefined;
@@ -1137,7 +1137,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1137
1137
  }[]>;
1138
1138
  createVarDdaQuery: import("vue").Ref<{
1139
1139
  frmId?: string | null | undefined;
1140
- sysPermission?: {
1140
+ sysPermissions?: {
1141
1141
  alwaysShow?: boolean | null | undefined;
1142
1142
  app?: string | null | undefined;
1143
1143
  component?: string | null | undefined;
@@ -1166,7 +1166,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1166
1166
  updateBy?: string | null | undefined;
1167
1167
  updateTime?: string | null | undefined;
1168
1168
  url?: string | null | undefined;
1169
- } | null | undefined;
1169
+ }[] | null | undefined;
1170
1170
  varButtons?: {
1171
1171
  available_flag?: number | null | undefined;
1172
1172
  cmd?: string | null | undefined;
@@ -1401,7 +1401,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1401
1401
  }[]>;
1402
1402
  getCreateVarDdaQuery: import("vue").ComputedRef<{
1403
1403
  frmId?: string | null | undefined;
1404
- sysPermission?: {
1404
+ sysPermissions?: {
1405
1405
  alwaysShow?: boolean | null | undefined;
1406
1406
  app?: string | null | undefined;
1407
1407
  component?: string | null | undefined;
@@ -1430,7 +1430,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1430
1430
  updateBy?: string | null | undefined;
1431
1431
  updateTime?: string | null | undefined;
1432
1432
  url?: string | null | undefined;
1433
- } | null | undefined;
1433
+ }[] | null | undefined;
1434
1434
  varButtons?: {
1435
1435
  available_flag?: number | null | undefined;
1436
1436
  cmd?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.20.1",
3
+ "version": "0.20.2-beta.0",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",