liyu-pc-base 1.0.1006 → 1.0.1016
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.
- package/dist/{FieldRender-DSmjznCJ.js → FieldRender-BViObfW0.js} +1 -1
- package/dist/{FieldRender2-BfK8s0_7.js → FieldRender2-DXMxuVsv.js} +2 -2
- package/dist/{FormRender3-eIlECKAx.js → FormRender3-ByPYH98E.js} +1 -1
- package/dist/{RemoteSelectPro-CtOkFjzA.js → RemoteSelectPro-CG3YVOwM.js} +1 -1
- package/dist/{SearchRender-slravb0G.js → SearchRender-Cgwx15tm.js} +1 -1
- package/dist/ViewAuthConfigModal-x1tbZ1sZ.js +192 -0
- package/dist/ViewCreateModal-BozzbNKn.js +161 -0
- package/dist/components/index.js +9 -9
- package/dist/components/remotePages/index.js +1 -1
- package/dist/{components-MVgkszD6.js → components-C8t_3hEQ.js} +785 -814
- package/dist/{dbViewConfig-uxlv3YjE.js → dbViewConfig-FLAm66GC.js} +3 -3
- package/dist/{detailTablePro-CWei2BHz.js → detailTablePro-btqESlY-.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{remotePages-Cumyio2A.js → remotePages-CdGZp4Iu.js} +2 -3
- package/dist/{tableModal-DuMlfbtr.js → tableModal-CP-dUhAv.js} +1 -1
- package/dist/{tablePageHost-SnFoTEuS.js → tablePageHost-B07gH7xy.js} +8591 -8700
- package/dist/{tablePro-sD7FsU6a.js → tablePro-BvBiIoUC.js} +2828 -3026
- package/dist/utils-yMCm9loE.js +264 -0
- package/dist/view-model-DKGqNoLB.js +28 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { t } from "./RemoteSelect-bjsCKGfS.js";
|
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { t as r } from "./RemoteCascader-BsOeNVvB.js";
|
|
5
5
|
import { t as i } from "./RemoteModal-DZkqi64T.js";
|
|
6
|
-
import { n as a, r as o, t as s } from "./RemoteSelectPro-
|
|
6
|
+
import { n as a, r as o, t as s } from "./RemoteSelectPro-CG3YVOwM.js";
|
|
7
7
|
import { t as c } from "./RemoteFilterSelect-DF906O8X.js";
|
|
8
8
|
import { t as l } from "./AttributeNomTable-DHED22ju.js";
|
|
9
9
|
import { t as u } from "./AttributeTable-muxdKpWW.js";
|
|
@@ -6,7 +6,7 @@ import { t as i } from "./lodash-CMVwnWxD.js";
|
|
|
6
6
|
import { getApiData as a } from "./api/api-model.js";
|
|
7
7
|
import { N as o, P as s, k as c, n as l, s as u } from "./function-CstOzCwb.js";
|
|
8
8
|
import { i as d, t as f } from "./RemoteModal-DZkqi64T.js";
|
|
9
|
-
import { n as p, r as m, t as h } from "./RemoteSelectPro-
|
|
9
|
+
import { n as p, r as m, t as h } from "./RemoteSelectPro-CG3YVOwM.js";
|
|
10
10
|
import { t as g } from "./RemoteFilterSelect-DF906O8X.js";
|
|
11
11
|
import { t as ee } from "./AttributeNomTable-DHED22ju.js";
|
|
12
12
|
import { t as _ } from "./AttributeTable-muxdKpWW.js";
|
|
@@ -91,7 +91,7 @@ var Ae = I({
|
|
|
91
91
|
"copy"
|
|
92
92
|
],
|
|
93
93
|
setup(e, { emit: t }) {
|
|
94
|
-
let n = V({ ...e.field.form.rules }), r = H({}), i = ue(() => import("./FormRender3-
|
|
94
|
+
let n = V({ ...e.field.form.rules }), r = H({}), i = ue(() => import("./FormRender3-ByPYH98E.js").then((e) => e.n)), a, o = () => {
|
|
95
95
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
96
96
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
97
97
|
}, s = H([]), c = o(), l = ([t, i]) => {
|
|
@@ -2,7 +2,7 @@ import { r as e } from "./rolldown-runtime-DY7j01NX.js";
|
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { s as n } from "./function-CstOzCwb.js";
|
|
4
4
|
import { d as r } from "./TinymceEditor-B6KX-4ep.js";
|
|
5
|
-
import { t as i } from "./FieldRender2-
|
|
5
|
+
import { t as i } from "./FieldRender2-DXMxuVsv.js";
|
|
6
6
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, openBlock as m, provide as h, reactive as g, ref as _, renderList as v, resolveComponent as y, toDisplayString as b, watch as x, withCtx as S } from "vue";
|
|
7
7
|
import { message as C } from "ant-design-vue";
|
|
8
8
|
//#region src/components/FormRender/FieldCol.vue?vue&type=script&lang.ts
|
|
@@ -685,7 +685,7 @@ var Z = /*#__PURE__*/ a(ie, [["render", X]]), se = /* @__PURE__ */ e(v(), 1), ce
|
|
|
685
685
|
}, { deep: !0 });
|
|
686
686
|
let ue = (e) => {
|
|
687
687
|
m.value = e, $();
|
|
688
|
-
}, de = D(() => import("./tableModal-
|
|
688
|
+
}, de = D(() => import("./tableModal-CP-dUhAv.js")), fe = () => {
|
|
689
689
|
let e = [];
|
|
690
690
|
m.value = "";
|
|
691
691
|
let t = "checkbox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-DY7j01NX.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as n } from "./lodash-CMVwnWxD.js";
|
|
4
|
-
import { t as r } from "./FieldRender2-
|
|
4
|
+
import { t as r } from "./FieldRender2-DXMxuVsv.js";
|
|
5
5
|
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, openBlock as d, renderList as f, renderSlot as p, resolveComponent as m, toDisplayString as h, vShow as g, watch as _, withCtx as v, withDirectives as y } from "vue";
|
|
6
6
|
import b from "moment";
|
|
7
7
|
import { CloseOutlined as x, LeftOutlined as S, RightOutlined as C } from "@ant-design/icons-vue";
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { z as e } from "./init-plugin-CERVEi6b.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { getApiData as n } from "./api/api-model.js";
|
|
4
|
+
import { c as r, o as i } from "./view-model-DKGqNoLB.js";
|
|
5
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, onMounted as p, openBlock as m, reactive as h, ref as g, resolveComponent as _, watch as v, withCtx as y } from "vue";
|
|
6
|
+
import { message as b } from "ant-design-vue";
|
|
7
|
+
//#region src/components/tablePro/tableConfig/ViewAuthConfigModal.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var x = { class: "scope-switch-row" }, S = { class: "scope-switch-row" }, C = { class: "scope-switch-row" }, w = /*#__PURE__*/ t(/* @__PURE__ */ f({
|
|
9
|
+
name: "ViewAuthConfigModal",
|
|
10
|
+
__name: "ViewAuthConfigModal",
|
|
11
|
+
props: { compObj: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: !0,
|
|
14
|
+
default: () => ({})
|
|
15
|
+
} },
|
|
16
|
+
emits: ["ok", "cancel"],
|
|
17
|
+
setup(t, { emit: f }) {
|
|
18
|
+
let w = t, T = f, E = e().currentOrg, D = g("auth"), O = g(!1), k = () => ({
|
|
19
|
+
enabled: !1,
|
|
20
|
+
fields: []
|
|
21
|
+
}), A = h({
|
|
22
|
+
view_auth: {
|
|
23
|
+
enabled: !1,
|
|
24
|
+
role_ids: []
|
|
25
|
+
},
|
|
26
|
+
column_scope: k(),
|
|
27
|
+
search_scope: k()
|
|
28
|
+
});
|
|
29
|
+
(() => {
|
|
30
|
+
let e = w.compObj?.record?.extra_data || {};
|
|
31
|
+
e.view_auth?.enabled && (A.view_auth = {
|
|
32
|
+
enabled: !0,
|
|
33
|
+
role_ids: [...e.view_auth.role_ids || []]
|
|
34
|
+
}), e.column_scope?.enabled && (A.column_scope = {
|
|
35
|
+
enabled: !0,
|
|
36
|
+
fields: [...e.column_scope.fields || []]
|
|
37
|
+
}), e.search_scope?.enabled && (A.search_scope = {
|
|
38
|
+
enabled: !0,
|
|
39
|
+
fields: [...e.search_scope.fields || []]
|
|
40
|
+
});
|
|
41
|
+
})();
|
|
42
|
+
let j = {
|
|
43
|
+
width: "280px",
|
|
44
|
+
height: "340px"
|
|
45
|
+
}, M = (e) => e.title, N = (e, t) => (t?.title ?? "").toLowerCase().includes((e ?? "").toLowerCase()), P = g([]), F = g(A.view_auth.role_ids.map(String));
|
|
46
|
+
p(async () => {
|
|
47
|
+
try {
|
|
48
|
+
P.value = ((await n({}, "/permission/query_role_list", !1, { skip_error: !0 }))?.data || []).map((e) => ({
|
|
49
|
+
key: String(e.id),
|
|
50
|
+
title: e.name
|
|
51
|
+
}));
|
|
52
|
+
} catch {}
|
|
53
|
+
});
|
|
54
|
+
let I = (e) => {
|
|
55
|
+
F.value = e, A.view_auth.role_ids = e.map((e) => Number(e)).filter((e) => !Number.isNaN(e));
|
|
56
|
+
}, L = o(() => {
|
|
57
|
+
let e = [], t = (n) => {
|
|
58
|
+
(n || []).forEach((n) => {
|
|
59
|
+
if (n.children && n.children.length > 0) {
|
|
60
|
+
t(n.children);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
let r = n.dataIndex || n.key;
|
|
64
|
+
!r || r === "index" || r === "action" || e.push({
|
|
65
|
+
key: r,
|
|
66
|
+
title: n.title ?? r
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
return t(w.compObj?.columns || []), e;
|
|
71
|
+
}), R = g(A.column_scope.fields.map(String)), z = (e) => {
|
|
72
|
+
R.value = e, A.column_scope.fields = [...e];
|
|
73
|
+
}, B = o(() => (w.compObj?.searchConfig || []).map((e) => ({
|
|
74
|
+
key: e.field_name,
|
|
75
|
+
title: e.label ?? e.field_name
|
|
76
|
+
}))), V = g(A.search_scope.fields.map(String)), H = (e) => {
|
|
77
|
+
V.value = e, A.search_scope.fields = [...e];
|
|
78
|
+
};
|
|
79
|
+
v(() => A.column_scope.enabled, (e) => {
|
|
80
|
+
e && (A.column_scope.fields = L.value.map((e) => e.key), R.value = [...A.column_scope.fields]);
|
|
81
|
+
}), v(() => A.search_scope.enabled, (e) => {
|
|
82
|
+
e && (A.search_scope.fields = B.value.map((e) => e.key), V.value = [...A.search_scope.fields]);
|
|
83
|
+
});
|
|
84
|
+
let U = async () => {
|
|
85
|
+
O.value = !0;
|
|
86
|
+
try {
|
|
87
|
+
await r({
|
|
88
|
+
org_id: E.id,
|
|
89
|
+
view_settings_id: w.compObj.record.id,
|
|
90
|
+
extra_data: {
|
|
91
|
+
view_auth: { ...A.view_auth },
|
|
92
|
+
column_scope: { ...A.column_scope },
|
|
93
|
+
search_scope: { ...A.search_scope }
|
|
94
|
+
}
|
|
95
|
+
}), await i({
|
|
96
|
+
org_id: E.id,
|
|
97
|
+
view_settings_id: w.compObj.record.id
|
|
98
|
+
}), b.success("保存成功"), T("ok");
|
|
99
|
+
} catch {
|
|
100
|
+
b.error("保存失败");
|
|
101
|
+
} finally {
|
|
102
|
+
O.value = !1;
|
|
103
|
+
}
|
|
104
|
+
}, W = () => {
|
|
105
|
+
T("cancel");
|
|
106
|
+
};
|
|
107
|
+
return (e, n) => {
|
|
108
|
+
let r = _("a-switch"), i = _("a-transfer"), o = _("a-tab-pane"), f = _("a-tabs"), p = _("a-modal");
|
|
109
|
+
return m(), s(p, {
|
|
110
|
+
open: !0,
|
|
111
|
+
title: t.compObj.title,
|
|
112
|
+
width: 760,
|
|
113
|
+
maskClosable: !1,
|
|
114
|
+
centered: "",
|
|
115
|
+
okText: "保存",
|
|
116
|
+
cancelText: "取消",
|
|
117
|
+
confirmLoading: O.value,
|
|
118
|
+
onCancel: W,
|
|
119
|
+
onOk: U
|
|
120
|
+
}, {
|
|
121
|
+
default: y(() => [d(f, {
|
|
122
|
+
activeKey: D.value,
|
|
123
|
+
"onUpdate:activeKey": n[3] ||= (e) => D.value = e
|
|
124
|
+
}, {
|
|
125
|
+
default: y(() => [
|
|
126
|
+
d(o, {
|
|
127
|
+
key: "auth",
|
|
128
|
+
tab: "视图权限"
|
|
129
|
+
}, {
|
|
130
|
+
default: y(() => [u("div", x, [n[4] ||= u("span", null, "开启视图权限(按角色控制该公共视图是否可见)", -1), d(r, {
|
|
131
|
+
checked: A.view_auth.enabled,
|
|
132
|
+
"onUpdate:checked": n[0] ||= (e) => A.view_auth.enabled = e
|
|
133
|
+
}, null, 8, ["checked"])]), A.view_auth.enabled ? (m(), l(a, { key: 0 }, [d(i, {
|
|
134
|
+
"data-source": P.value,
|
|
135
|
+
"target-keys": F.value,
|
|
136
|
+
titles: ["全部角色", "可见角色"],
|
|
137
|
+
"show-search": "",
|
|
138
|
+
"filter-option": N,
|
|
139
|
+
render: M,
|
|
140
|
+
"list-style": j,
|
|
141
|
+
onChange: I
|
|
142
|
+
}, null, 8, ["data-source", "target-keys"]), n[5] ||= u("div", { class: "scope-tip" }, " 仅右侧角色的人员可见该视图;角色、人员关系变更后自动生效。个人视图继承本视图的权限配置。 ", -1)], 64)) : c("", !0)]),
|
|
143
|
+
_: 1
|
|
144
|
+
}),
|
|
145
|
+
d(o, {
|
|
146
|
+
key: "column",
|
|
147
|
+
tab: "展示列字段"
|
|
148
|
+
}, {
|
|
149
|
+
default: y(() => [u("div", S, [n[6] ||= u("span", null, "开启展示列字段控制", -1), d(r, {
|
|
150
|
+
checked: A.column_scope.enabled,
|
|
151
|
+
"onUpdate:checked": n[1] ||= (e) => A.column_scope.enabled = e
|
|
152
|
+
}, null, 8, ["checked"])]), A.column_scope.enabled ? (m(), l(a, { key: 0 }, [d(i, {
|
|
153
|
+
"data-source": L.value,
|
|
154
|
+
"target-keys": R.value,
|
|
155
|
+
titles: ["页面全部列", "可见列"],
|
|
156
|
+
"show-search": "",
|
|
157
|
+
"filter-option": N,
|
|
158
|
+
render: M,
|
|
159
|
+
"list-style": j,
|
|
160
|
+
onChange: z
|
|
161
|
+
}, null, 8, ["data-source", "target-keys"]), n[7] ||= u("div", { class: "scope-tip" }, " 右侧字段为可见范围;未选中的字段不渲染,也不出现在「设置」的列配置齿轮中 ", -1)], 64)) : c("", !0)]),
|
|
162
|
+
_: 1
|
|
163
|
+
}),
|
|
164
|
+
d(o, {
|
|
165
|
+
key: "search",
|
|
166
|
+
tab: "搜索字段"
|
|
167
|
+
}, {
|
|
168
|
+
default: y(() => [u("div", C, [n[8] ||= u("span", null, "开启搜索字段控制", -1), d(r, {
|
|
169
|
+
checked: A.search_scope.enabled,
|
|
170
|
+
"onUpdate:checked": n[2] ||= (e) => A.search_scope.enabled = e
|
|
171
|
+
}, null, 8, ["checked"])]), A.search_scope.enabled ? (m(), l(a, { key: 0 }, [d(i, {
|
|
172
|
+
"data-source": B.value,
|
|
173
|
+
"target-keys": V.value,
|
|
174
|
+
titles: ["页面全部搜索字段", "可见搜索字段"],
|
|
175
|
+
"show-search": "",
|
|
176
|
+
"filter-option": N,
|
|
177
|
+
render: M,
|
|
178
|
+
"list-style": j,
|
|
179
|
+
onChange: H
|
|
180
|
+
}, null, 8, ["data-source", "target-keys"]), n[9] ||= u("div", { class: "scope-tip" }, " 右侧字段为可见范围;未选中的字段不渲染,也不出现在搜索字段配置齿轮中 ", -1)], 64)) : c("", !0)]),
|
|
181
|
+
_: 1
|
|
182
|
+
})
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["activeKey"])]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["title", "confirmLoading"]);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}), [["__scopeId", "data-v-6ac3b0f1"]]);
|
|
191
|
+
//#endregion
|
|
192
|
+
export { w as default };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { A as e, z as t } from "./init-plugin-CERVEi6b.js";
|
|
2
|
+
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { n as r } from "./view-model-DKGqNoLB.js";
|
|
4
|
+
import { a as i, s as a } from "./utils-yMCm9loE.js";
|
|
5
|
+
import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createTextVNode as u, createVNode as d, defineComponent as f, onMounted as p, openBlock as m, reactive as h, ref as g, resolveComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
6
|
+
import { message as x } from "ant-design-vue";
|
|
7
|
+
import { useI18n as S } from "vue-i18n";
|
|
8
|
+
//#region src/components/tablePro/tableConfig/ViewCreateModal.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var C = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "create-tip"
|
|
12
|
+
}, w = /*#__PURE__*/ n(/* @__PURE__ */ f({
|
|
13
|
+
name: "ViewCreateModal",
|
|
14
|
+
__name: "ViewCreateModal",
|
|
15
|
+
props: { compObj: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: !0,
|
|
18
|
+
default: () => ({})
|
|
19
|
+
} },
|
|
20
|
+
emits: ["ok", "cancel"],
|
|
21
|
+
setup(n, { emit: f }) {
|
|
22
|
+
let w = n, T = f, { t: E } = S(), D = t(), O = e(), k = D.currentOrg, A = D.userid, j = g(!1), M = g(), N = o(() => w.compObj?.title || E("新建视图")), P = g(!1), F = g(!1);
|
|
23
|
+
p(() => {
|
|
24
|
+
P.value = D.CHECK_AUTH("view_system_edit", "管理系统视图"), F.value = D.CHECK_AUTH("view_public_edit", "管理公共视图");
|
|
25
|
+
});
|
|
26
|
+
let I = h({
|
|
27
|
+
name: "",
|
|
28
|
+
view_type: w.compObj?.view_type || "personal",
|
|
29
|
+
is_system: !1
|
|
30
|
+
}), L = { name: [{
|
|
31
|
+
required: !0,
|
|
32
|
+
message: E("请输入视图名称"),
|
|
33
|
+
trigger: "blur"
|
|
34
|
+
}] }, R = a(w.compObj?.currentView), z = o(() => I.view_type === "personal" && !R), B = async () => {
|
|
35
|
+
try {
|
|
36
|
+
await M.value?.validate();
|
|
37
|
+
} catch {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let e = I.view_type;
|
|
41
|
+
if (e === "personal" && !R) {
|
|
42
|
+
x.error(E("当前没有激活视图,无法创建个人视图,请先应用任一视图"));
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (e === "public" && !F.value) {
|
|
46
|
+
x.error(E("没有「管理公共视图」权限(view_public_edit)"));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
j.value = !0;
|
|
50
|
+
try {
|
|
51
|
+
let t = await r({
|
|
52
|
+
org_id: k.id,
|
|
53
|
+
user_id: e === "personal" ? A : null,
|
|
54
|
+
name: I.name,
|
|
55
|
+
view_project__flag: O.VITE_APP_VIEW_PROJECT_FLAG,
|
|
56
|
+
view_menu__flag: w.compObj?.view_key,
|
|
57
|
+
view_menu__name: w.compObj?.view_flag_name,
|
|
58
|
+
is_system: I.is_system,
|
|
59
|
+
data: w.compObj?.data,
|
|
60
|
+
...e === "personal" ? { extra_data: { inherit_view_id: i(w.compObj?.currentView) } } : {}
|
|
61
|
+
});
|
|
62
|
+
x.success(E("创建成功")), T("ok", t);
|
|
63
|
+
} finally {
|
|
64
|
+
j.value = !1;
|
|
65
|
+
}
|
|
66
|
+
}, V = () => {
|
|
67
|
+
T("cancel");
|
|
68
|
+
};
|
|
69
|
+
return (e, t) => {
|
|
70
|
+
let r = _("a-alert"), i = _("a-input"), a = _("a-form-item"), o = _("a-radio"), f = _("a-radio-group"), p = _("a-checkbox"), h = _("a-form"), g = _("a-modal");
|
|
71
|
+
return m(), s(g, {
|
|
72
|
+
open: !0,
|
|
73
|
+
title: N.value,
|
|
74
|
+
width: 520,
|
|
75
|
+
maskClosable: !1,
|
|
76
|
+
centered: "",
|
|
77
|
+
okText: "创建",
|
|
78
|
+
cancelText: "取消",
|
|
79
|
+
confirmLoading: j.value,
|
|
80
|
+
"ok-button-props": { disabled: z.value },
|
|
81
|
+
onCancel: V,
|
|
82
|
+
onOk: B
|
|
83
|
+
}, {
|
|
84
|
+
default: b(() => [z.value ? (m(), s(r, {
|
|
85
|
+
key: 0,
|
|
86
|
+
type: "warning",
|
|
87
|
+
"show-icon": "",
|
|
88
|
+
message: e.$t("当前没有激活视图,无法创建个人视图;请先应用任一视图"),
|
|
89
|
+
style: { "margin-bottom": "16px" }
|
|
90
|
+
}, null, 8, ["message"])) : c("", !0), d(h, {
|
|
91
|
+
ref_key: "formRef",
|
|
92
|
+
ref: M,
|
|
93
|
+
model: I,
|
|
94
|
+
rules: L,
|
|
95
|
+
layout: "vertical"
|
|
96
|
+
}, {
|
|
97
|
+
default: b(() => [
|
|
98
|
+
d(a, {
|
|
99
|
+
label: e.$t("视图名称"),
|
|
100
|
+
name: "name"
|
|
101
|
+
}, {
|
|
102
|
+
default: b(() => [d(i, {
|
|
103
|
+
value: I.name,
|
|
104
|
+
"onUpdate:value": t[0] ||= (e) => I.name = e,
|
|
105
|
+
placeholder: e.$t("请输入视图名称"),
|
|
106
|
+
maxlength: 50,
|
|
107
|
+
"allow-clear": "",
|
|
108
|
+
onPressEnter: B
|
|
109
|
+
}, null, 8, ["value", "placeholder"])]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["label"]),
|
|
112
|
+
n.compObj?.view_type ? c("", !0) : (m(), s(a, {
|
|
113
|
+
key: 0,
|
|
114
|
+
label: e.$t("视图可见范围"),
|
|
115
|
+
name: "view_type"
|
|
116
|
+
}, {
|
|
117
|
+
default: b(() => [d(f, {
|
|
118
|
+
value: I.view_type,
|
|
119
|
+
"onUpdate:value": t[1] ||= (e) => I.view_type = e
|
|
120
|
+
}, {
|
|
121
|
+
default: b(() => [d(o, {
|
|
122
|
+
value: "personal",
|
|
123
|
+
disabled: !y(R)
|
|
124
|
+
}, {
|
|
125
|
+
default: b(() => [u(v(e.$t("个人视图(仅自己可见)")), 1)]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["disabled"]), d(o, {
|
|
128
|
+
value: "public",
|
|
129
|
+
disabled: !F.value
|
|
130
|
+
}, {
|
|
131
|
+
default: b(() => [u(v(e.$t("公共视图(项目成员均可见)")), 1)]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["disabled"])]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["value"]), y(R) ? c("", !0) : (m(), l("div", C, v(e.$t("当前没有激活视图,无法创建个人视图;请先应用任一视图")), 1))]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["label"])),
|
|
138
|
+
P.value ? (m(), s(a, { key: 1 }, {
|
|
139
|
+
default: b(() => [d(p, {
|
|
140
|
+
checked: I.is_system,
|
|
141
|
+
"onUpdate:checked": t[2] ||= (e) => I.is_system = e
|
|
142
|
+
}, {
|
|
143
|
+
default: b(() => [u(v(e.$t("设为系统视图")), 1)]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["checked"])]),
|
|
146
|
+
_: 1
|
|
147
|
+
})) : c("", !0)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["model"])]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, [
|
|
153
|
+
"title",
|
|
154
|
+
"confirmLoading",
|
|
155
|
+
"ok-button-props"
|
|
156
|
+
]);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}), [["__scopeId", "data-v-68cad8f2"]]);
|
|
160
|
+
//#endregion
|
|
161
|
+
export { w as default };
|
package/dist/components/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as e, r as t } from "../RemoteSelect-bjsCKGfS.js";
|
|
2
2
|
import { t as n } from "../RemoteModal-DZkqi64T.js";
|
|
3
|
-
import { t as r } from "../RemoteSelectPro-
|
|
3
|
+
import { t as r } from "../RemoteSelectPro-CG3YVOwM.js";
|
|
4
4
|
import { t as i } from "../JsonStr-JwOPdAYW.js";
|
|
5
5
|
import { t as a } from "../JsonObj-CmylW4Or.js";
|
|
6
|
-
import { t as o } from "../FieldRender-
|
|
7
|
-
import { a as s, c, d as l, i as u, l as d, n as f, o as p, r as m, s as h, t as g, u as _ } from "../components-
|
|
6
|
+
import { t as o } from "../FieldRender-BViObfW0.js";
|
|
7
|
+
import { a as s, c, d as l, i as u, l as d, n as f, o as p, r as m, s as h, t as g, u as _ } from "../components-C8t_3hEQ.js";
|
|
8
8
|
import { c as v, d as y, f as b, i as x } from "../TinymceEditor-B6KX-4ep.js";
|
|
9
|
-
import { t as S } from "../FieldRender2-
|
|
10
|
-
import { t as C } from "../SearchRender-
|
|
11
|
-
import { t as w } from "../FormRender3-
|
|
12
|
-
import {
|
|
13
|
-
import { C as D, w as O } from "../tablePageHost-
|
|
14
|
-
export { l as AddConditionGroupModal, t as BoldMatcher, b as CodeEditor, o as FieldRender, S as FieldRender2, d as FormRender, c as FormRender2, w as FormRender3, _ as GeneralFilter, x as IconSelect, a as JsonObj, i as JsonStr, n as RemoteModal, r as RemoteSelectPro, v as RemoteTreeSelectPro, C as SearchRender, p as SideSearchRender,
|
|
9
|
+
import { t as S } from "../FieldRender2-DXMxuVsv.js";
|
|
10
|
+
import { t as C } from "../SearchRender-Cgwx15tm.js";
|
|
11
|
+
import { t as w } from "../FormRender3-ByPYH98E.js";
|
|
12
|
+
import { h as T, t as E } from "../tablePro-BvBiIoUC.js";
|
|
13
|
+
import { C as D, w as O } from "../tablePageHost-B07gH7xy.js";
|
|
14
|
+
export { l as AddConditionGroupModal, t as BoldMatcher, b as CodeEditor, o as FieldRender, S as FieldRender2, d as FormRender, c as FormRender2, w as FormRender3, _ as GeneralFilter, x as IconSelect, a as JsonObj, i as JsonStr, n as RemoteModal, r as RemoteSelectPro, v as RemoteTreeSelectPro, C as SearchRender, p as SideSearchRender, T as SmallTableSerarchField, h as ViewManage, g as ai_agent_files, y as debugCode, s as fullLayout, e as getFormConfig, u as gridPage, D as pivotCharts, O as pivotTable, m as remotePagesV2, f as sql_db_view, E as tablePro };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "../../remotePages-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "../../remotePages-CdGZp4Iu.js";
|
|
2
2
|
export { i as getConditionsHistory, n as getDefaultAndServerConfig, r as getPageConfig, t as getViewSettingsAndPageConfig, e as setConditionsHistory };
|