@opengis/admin 0.1.60 → 0.1.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,5 @@
1
- import { u as m } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as b, a as c } from "./import-file-bdYAo8iW.js";
3
- import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
1
+ import { _ as m, u as b, a as c } from "./import-file-D6JQHFSe.js";
2
+ import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as p, createCommentVNode as f } from "vue";
4
3
  const g = {
5
4
  data() {
6
5
  return {
@@ -20,7 +19,7 @@ const g = {
20
19
  }), e;
21
20
  },
22
21
  async getFormScheme() {
23
- const t = this.flattenMenu(m.value);
22
+ const t = this.flattenMenu(b.value);
24
23
  t != null && t.length || this.$router.replace("/404");
25
24
  const e = t == null ? void 0 : t.find((s) => {
26
25
  var r, l;
@@ -38,9 +37,8 @@ const g = {
38
37
  }
39
38
  },
40
39
  async createObject() {
41
- var t, e;
42
40
  try {
43
- await this.$refs.form.doValidation(), await c.post(`/api/table/${this.table}`, this.formValues), await this.$router.replace(`/${(e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.table}`), await this.$notify({
41
+ await this.$refs.form.doValidation(), await c.post(`/api/table/${this.table}`, this.formValues), await this.$router.back(), await this.$notify({
44
42
  title: "Успішно!",
45
43
  message: "Об'єкт успішно створено",
46
44
  type: "success"
@@ -54,8 +52,8 @@ const g = {
54
52
  }
55
53
  }
56
54
  }
57
- }, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, y = { class: "flex items-center gap-[6px]" }, k = {
58
- style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
55
+ }, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, y = { class: "flex items-center gap-[6px]" }, k = {
56
+ style: { height: "calc(100vh - 150px)", width: "calc(100vw - 260px)" },
59
57
  class: "bg-gray-50 p-[20px] flex"
60
58
  }, v = { class: "bg-white w-full rounded-xl border p-[20px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
61
59
  function V(t, e, o, s, r, l) {
@@ -70,25 +68,25 @@ function V(t, e, o, s, r, l) {
70
68
  }, " Скасувати "),
71
69
  a("button", {
72
70
  onClick: e[1] || (e[1] = (...n) => l.createObject && l.createObject(...n)),
73
- class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg border-none bg-blue-500 text-gray-800 shadow-sm focus:border-none focus:outline-none hover:bg-blue-700 hover:text-white duration-300"
71
+ class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 hover:text-white duration-300"
74
72
  }, " Зберегти ")
75
73
  ])
76
74
  ]),
77
75
  a("div", k, [
78
76
  a("div", v, [
79
- r.scheme ? (i(), f(u, {
77
+ r.scheme ? (i(), p(u, {
80
78
  key: 0,
81
79
  ref: "form",
82
80
  scheme: r.scheme,
83
81
  modelValue: r.formValues,
84
82
  "onUpdate:modelValue": e[2] || (e[2] = (n) => r.formValues = n),
85
83
  class: "p-0 mt-[20px]"
86
- }, null, 8, ["scheme", "modelValue"])) : p("", !0)
84
+ }, null, 8, ["scheme", "modelValue"])) : f("", !0)
87
85
  ])
88
86
  ])
89
87
  ]);
90
88
  }
91
- const C = /* @__PURE__ */ b(g, [["render", V]]);
89
+ const j = /* @__PURE__ */ m(g, [["render", V]]);
92
90
  export {
93
- C as default
91
+ j as default
94
92
  };