liyu-pc-base 1.0.997 → 1.0.1002
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/cell_org_shard_info-CbffFp2w.js +91 -0
- package/dist/components/index.js +2 -2
- package/dist/components/remotePages/index.js +1 -1
- package/dist/{components-BWt-Adoh.js → components-4RFKo1I1.js} +2 -2
- package/dist/create_org-8_vO7RWb.js +314 -0
- package/dist/{dbViewConfig-as4eVGW7.js → dbViewConfig-Dtm6CXzl.js} +1 -1
- package/dist/{detailTablePro-oTJEmF99.js → detailTablePro-CWei2BHz.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{remotePages-CiB0soAy.js → remotePages-Cumyio2A.js} +1544 -1272
- package/dist/{tablePageHost-EKdjGad0.js → tablePageHost-SnFoTEuS.js} +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, ref as f, renderList as p, resolveComponent as m, toDisplayString as h, withCtx as g, withModifiers as _ } from "vue";
|
|
3
|
+
//#region src/components/org/cell_org_shard_info.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var v = { class: "org-shard-info-server" }, y = ["title"], b = { key: 1 }, x = /*#__PURE__*/ e(/* @__PURE__ */ l({
|
|
5
|
+
name: "Cell_org_shard_info",
|
|
6
|
+
__name: "cell_org_shard_info",
|
|
7
|
+
props: { cmpObj: {
|
|
8
|
+
type: Object,
|
|
9
|
+
required: !0,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
} },
|
|
12
|
+
setup(e) {
|
|
13
|
+
let l = e, x = f(!1), S = n(() => l.cmpObj?.record?.shard_info_list || []), C = n(() => {
|
|
14
|
+
let e = l.cmpObj?.record?.name;
|
|
15
|
+
return e ? `${e} - 分库信息` : "分库信息";
|
|
16
|
+
}), w = [
|
|
17
|
+
{
|
|
18
|
+
title: "服务",
|
|
19
|
+
dataIndex: "server_name",
|
|
20
|
+
width: 80
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: "是否分库",
|
|
24
|
+
dataIndex: "is_sharded",
|
|
25
|
+
width: 85
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "数据库名",
|
|
29
|
+
dataIndex: "db_name"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "数据库服务器",
|
|
33
|
+
dataIndex: "db_server_name"
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
function T() {
|
|
37
|
+
S.value.length && (x.value = !0);
|
|
38
|
+
}
|
|
39
|
+
return (e, n) => {
|
|
40
|
+
let l = m("a-tag"), f = m("a-table"), E = m("a-modal");
|
|
41
|
+
return d(), a("div", {
|
|
42
|
+
class: u(["org-shard-info", { "org-shard-info-clickable": S.value.length }]),
|
|
43
|
+
onClick: _(T, ["stop"])
|
|
44
|
+
}, [S.value.length ? (d(!0), a(t, { key: 0 }, p(S.value, (e, n) => (d(), a("div", {
|
|
45
|
+
key: n,
|
|
46
|
+
class: "org-shard-info-row"
|
|
47
|
+
}, [
|
|
48
|
+
o("span", v, h(e.server_name), 1),
|
|
49
|
+
c(l, {
|
|
50
|
+
color: e.is_sharded ? "green" : "default",
|
|
51
|
+
class: "org-shard-info-tag"
|
|
52
|
+
}, {
|
|
53
|
+
default: g(() => [s(h(e.is_sharded ? "分库" : "未分库"), 1)]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["color"]),
|
|
56
|
+
e.db_name ? (d(), a("span", {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "org-shard-info-db",
|
|
59
|
+
title: `${e.db_name}${e.db_server_name ? " @" + e.db_server_name : ""}`
|
|
60
|
+
}, [s(h(e.db_name), 1), e.db_server_name ? (d(), a(t, { key: 0 }, [s(" @" + h(e.db_server_name), 1)], 64)) : i("", !0)], 8, y)) : i("", !0)
|
|
61
|
+
]))), 128)) : (d(), a("span", b, "-")), c(E, {
|
|
62
|
+
open: x.value,
|
|
63
|
+
"onUpdate:open": n[0] ||= (e) => x.value = e,
|
|
64
|
+
title: C.value,
|
|
65
|
+
footer: null,
|
|
66
|
+
width: "640px",
|
|
67
|
+
centered: ""
|
|
68
|
+
}, {
|
|
69
|
+
default: g(() => [c(f, {
|
|
70
|
+
columns: w,
|
|
71
|
+
"data-source": S.value,
|
|
72
|
+
pagination: !1,
|
|
73
|
+
size: "small",
|
|
74
|
+
"row-key": (e, t) => t
|
|
75
|
+
}, {
|
|
76
|
+
bodyCell: g(({ column: e, record: n }) => [e.dataIndex === "is_sharded" ? (d(), r(l, {
|
|
77
|
+
key: 0,
|
|
78
|
+
color: n.is_sharded ? "green" : "default"
|
|
79
|
+
}, {
|
|
80
|
+
default: g(() => [s(h(n.is_sharded ? "分库" : "未分库"), 1)]),
|
|
81
|
+
_: 2
|
|
82
|
+
}, 1032, ["color"])) : e.dataIndex === "db_name" ? (d(), a(t, { key: 1 }, [s(h(n.db_name || "-"), 1)], 64)) : e.dataIndex === "db_server_name" ? (d(), a(t, { key: 2 }, [s(h(n.db_server_name || "-"), 1)], 64)) : i("", !0)]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["data-source", "row-key"])]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["open", "title"])], 2);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}), [["__scopeId", "data-v-8c86c99f"]]);
|
|
90
|
+
//#endregion
|
|
91
|
+
export { x as default };
|
package/dist/components/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import { t as r } from "../RemoteSelectPro-CtOkFjzA.js";
|
|
|
4
4
|
import { t as i } from "../JsonStr-JwOPdAYW.js";
|
|
5
5
|
import { t as a } from "../JsonObj-CmylW4Or.js";
|
|
6
6
|
import { t as o } from "../FieldRender-DSmjznCJ.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-
|
|
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-4RFKo1I1.js";
|
|
8
8
|
import { c as v, d as y, f as b, i as x } from "../TinymceEditor-B6KX-4ep.js";
|
|
9
9
|
import { t as S } from "../FieldRender2-DWvUFWpT.js";
|
|
10
10
|
import { t as C } from "../SearchRender-CQCgWEl9.js";
|
|
11
11
|
import { t as w } from "../FormRender3-C8TSgzgE.js";
|
|
12
12
|
import { t as T, w as E } from "../tablePro-sD7FsU6a.js";
|
|
13
|
-
import { C as D, w as O } from "../tablePageHost-
|
|
13
|
+
import { C as D, w as O } from "../tablePageHost-SnFoTEuS.js";
|
|
14
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, E 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, T 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-Cumyio2A.js";
|
|
2
2
|
export { i as getConditionsHistory, n as getDefaultAndServerConfig, r as getPageConfig, t as getViewSettingsAndPageConfig, e as setConditionsHistory };
|
|
@@ -17,8 +17,8 @@ import { t as ee } from "./FieldRender2-DWvUFWpT.js";
|
|
|
17
17
|
import "./SearchRender-CQCgWEl9.js";
|
|
18
18
|
import "./FormRender3-C8TSgzgE.js";
|
|
19
19
|
import { C, S as w, _ as te, b as T, t as ne, v as re, x as ie, y as ae } from "./tablePro-sD7FsU6a.js";
|
|
20
|
-
import { o as oe, r as E } from "./remotePages-
|
|
21
|
-
import { C as se, S as D, _ as O, a as k, b as ce, c as le, d as A, f as ue, g as de, h as fe, i as pe, l as me, m as j, n as he, o as ge, p as _e, r as ve, s as ye, t as M, u as be, v as xe, w as Se, x as Ce, y as we } from "./tablePageHost-
|
|
20
|
+
import { o as oe, r as E } from "./remotePages-Cumyio2A.js";
|
|
21
|
+
import { C as se, S as D, _ as O, a as k, b as ce, c as le, d as A, f as ue, g as de, h as fe, i as pe, l as me, m as j, n as he, o as ge, p as _e, r as ve, s as ye, t as M, u as be, v as xe, w as Se, x as Ce, y as we } from "./tablePageHost-SnFoTEuS.js";
|
|
22
22
|
import { gridPageStateSymbol as Te } from "./components/gridPage/utils.js";
|
|
23
23
|
import { Fragment as N, KeepAlive as Ee, Transition as De, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as z, createVNode as B, defineComponent as V, getCurrentInstance as Oe, h as ke, inject as Ae, markRaw as je, mergeModels as H, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeStyle as Fe, onActivated as Ie, onBeforeMount as Le, onBeforeUnmount as Re, onDeactivated as ze, onMounted as Be, onUnmounted as Ve, openBlock as U, provide as He, reactive as W, ref as G, renderList as K, renderSlot as Ue, resolveComponent as q, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as J, unref as Y, useModel as Ke, vShow as qe, watch as X, withCtx as Z, withDirectives as Je, withModifiers as Ye } from "vue";
|
|
24
24
|
import { Modal as Xe, message as Q } from "ant-design-vue";
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { c as e, z as t } from "./init-plugin-CERVEi6b.js";
|
|
2
|
+
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { getApiData as r } from "./api/api-model.js";
|
|
4
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, onMounted as p, onUnmounted as m, openBlock as h, reactive as g, ref as _, renderList as v, resolveComponent as y, toDisplayString as b, withCtx as x } from "vue";
|
|
5
|
+
import { message as S } from "ant-design-vue";
|
|
6
|
+
//#region src/components/org/create_org.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var C = { class: "service-shard-row" }, w = { class: "db-server-option" }, T = {
|
|
8
|
+
key: 2,
|
|
9
|
+
class: "task-progress"
|
|
10
|
+
}, E = { class: "task-progress-item" }, D = { class: "task-progress-label" }, ee = { key: 0 }, O = /*#__PURE__*/ n(/* @__PURE__ */ f({
|
|
11
|
+
__name: "create_org",
|
|
12
|
+
props: {
|
|
13
|
+
title: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
record: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({})
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["ok", "cancel"],
|
|
23
|
+
setup(n, { emit: f }) {
|
|
24
|
+
let O = n, k = f, A = t().currentOrg, j = _(), M = _(!1), N = _(!1), P = _(!1), F = _(""), I = _(""), L = _([]), R = _(null), z = g({
|
|
25
|
+
name: "",
|
|
26
|
+
role_org_id: void 0
|
|
27
|
+
}), B = _([]), V = _([]), H = g({}), U = a(() => L.value.length), W = a(() => O.title || O.record?.title || "创建帐套"), G = a(() => {
|
|
28
|
+
if (P.value && U.value > 0) {
|
|
29
|
+
let e = L.value[0];
|
|
30
|
+
return `正在创建帐套:${e ? Y(e.task?.stage) : "执行中"}`;
|
|
31
|
+
}
|
|
32
|
+
return M.value ? "正在加载配置..." : "正在处理...";
|
|
33
|
+
});
|
|
34
|
+
function K(e) {
|
|
35
|
+
return Array.isArray(e) ? e : Array.isArray(e?.list) ? e.list : Array.isArray(e?.data) ? e.data : Array.isArray(e?.result_data) ? e.result_data : Array.isArray(e?.data?.data) ? e.data.data : [];
|
|
36
|
+
}
|
|
37
|
+
function q() {
|
|
38
|
+
R.value &&= (window.clearTimeout(R.value), null);
|
|
39
|
+
}
|
|
40
|
+
function J() {
|
|
41
|
+
q(), R.value = window.setTimeout(() => {
|
|
42
|
+
te();
|
|
43
|
+
}, 1500);
|
|
44
|
+
}
|
|
45
|
+
function Y(e) {
|
|
46
|
+
return e ? {
|
|
47
|
+
init: "初始化",
|
|
48
|
+
create_master_org: "创建主库账套",
|
|
49
|
+
create_database: "创建数据库",
|
|
50
|
+
migrate_database: "初始化表结构",
|
|
51
|
+
sync_shared_data: "同步公共数据",
|
|
52
|
+
activate_master_org: "激活主库账套",
|
|
53
|
+
finished: "完成"
|
|
54
|
+
}[e] || e : "-";
|
|
55
|
+
}
|
|
56
|
+
function X(e) {
|
|
57
|
+
return e ? {
|
|
58
|
+
pending: "待执行",
|
|
59
|
+
running: "执行中",
|
|
60
|
+
success: "成功",
|
|
61
|
+
failed: "失败"
|
|
62
|
+
}[e] || e : "-";
|
|
63
|
+
}
|
|
64
|
+
async function Z() {
|
|
65
|
+
B.value = K(await r({
|
|
66
|
+
org_id: A?.id,
|
|
67
|
+
is_active: !0,
|
|
68
|
+
page_size: 1e3,
|
|
69
|
+
is_pagination: !1
|
|
70
|
+
}, "/org/query_organization_list")).map((e) => ({
|
|
71
|
+
label: `${e.name}${e.id ? `(${e.id})` : ""}`,
|
|
72
|
+
value: e.id
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
async function Q() {
|
|
76
|
+
let e = K(await r({ org_id: A?.id }, "/org/query_database_server_with_org_count_sharding")), t = /* @__PURE__ */ new Map();
|
|
77
|
+
for (let n of e) {
|
|
78
|
+
let e = n.server_name || "unknown";
|
|
79
|
+
t.has(e) || t.set(e, {
|
|
80
|
+
server_name: e,
|
|
81
|
+
serverOptions: []
|
|
82
|
+
}), t.get(e).serverOptions.push({
|
|
83
|
+
label: n.name,
|
|
84
|
+
value: n.id,
|
|
85
|
+
org_count: n.org_count ?? 0
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
V.value = [...t.values()];
|
|
89
|
+
for (let e of V.value) H[e.server_name] = {
|
|
90
|
+
is_sharded: !0,
|
|
91
|
+
db_server_id: e.serverOptions[0]?.value
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
async function $() {
|
|
95
|
+
return K(await r({ org_id: A?.id }, "/org/query_current_create_task_sharding")).map((e, t) => ({
|
|
96
|
+
key: `${e.server_name}_${t}`,
|
|
97
|
+
server_name: e.server_name,
|
|
98
|
+
task: e.task || null
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
async function te() {
|
|
102
|
+
if (A?.id) try {
|
|
103
|
+
let t = await $(), n = t.filter((e) => e.task?.status === "failed");
|
|
104
|
+
if (n.length) {
|
|
105
|
+
P.value = !1, F.value = n.map((e) => `${e.server_name}: ${e.task?.error_message || "账套创建失败"}`).join(";") || "账套创建失败", L.value = t.filter((e) => e.task?.status !== "failed");
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (L.value = t, !t.length) {
|
|
109
|
+
P.value = !1, I.value = "", e().emit("refresh"), S.success("账套创建已完成"), k("ok");
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
P.value = !0, F.value = "", J();
|
|
113
|
+
} catch (e) {
|
|
114
|
+
P.value = !1, F.value = e?.message || "查询账套创建进度失败";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
async function ne() {
|
|
118
|
+
if (!A?.id) {
|
|
119
|
+
F.value = "当前账套不存在,无法创建账套";
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
M.value = !0, F.value = "";
|
|
123
|
+
try {
|
|
124
|
+
let e = await $();
|
|
125
|
+
await Promise.all([Z(), Q()]), e.length && (L.value = e, P.value = !0, I.value = "当前有账套创建任务正在执行", J());
|
|
126
|
+
} catch (e) {
|
|
127
|
+
F.value = e?.message || "初始化创建账套弹窗失败";
|
|
128
|
+
} finally {
|
|
129
|
+
M.value = !1;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
async function re() {
|
|
133
|
+
if (P.value) return;
|
|
134
|
+
try {
|
|
135
|
+
await j.value?.validate();
|
|
136
|
+
} catch {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
let e = V.value.filter((e) => H[e.server_name]?.is_sharded).map((e) => {
|
|
140
|
+
let t = H[e.server_name].db_server_id;
|
|
141
|
+
if (!t) throw Error(`服务 ${e.server_name} 开启分库后必须选择数据库服务器`);
|
|
142
|
+
return {
|
|
143
|
+
server_name: e.server_name,
|
|
144
|
+
is_sharded: !0,
|
|
145
|
+
db_server_id: t
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
N.value = !0, F.value = "";
|
|
149
|
+
try {
|
|
150
|
+
await r({
|
|
151
|
+
org_id: A?.id,
|
|
152
|
+
name: z.name,
|
|
153
|
+
role_org_id: z.role_org_id,
|
|
154
|
+
shard_configs: e
|
|
155
|
+
}, "/org/create_organization_by_role_template"), P.value = !0, I.value = e.length ? `创建任务已提交(分库服务:${e.map((e) => e.server_name).join("、")})` : "创建任务已提交", S.success("创建任务已提交,正在执行"), J();
|
|
156
|
+
} catch (e) {
|
|
157
|
+
F.value = e?.message || "提交创建任务失败";
|
|
158
|
+
} finally {
|
|
159
|
+
N.value = !1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function ie() {
|
|
163
|
+
k("cancel");
|
|
164
|
+
}
|
|
165
|
+
return p(() => {
|
|
166
|
+
ne();
|
|
167
|
+
}), m(() => {
|
|
168
|
+
q();
|
|
169
|
+
}), (e, t) => {
|
|
170
|
+
let n = y("a-alert"), r = y("a-input"), a = y("a-form-item"), f = y("a-select"), p = y("a-switch"), m = y("a-tag"), g = y("a-form"), _ = y("a-spin"), S = y("a-modal");
|
|
171
|
+
return h(), o(S, {
|
|
172
|
+
open: !0,
|
|
173
|
+
title: W.value,
|
|
174
|
+
width: "720px",
|
|
175
|
+
centered: "",
|
|
176
|
+
maskClosable: !1,
|
|
177
|
+
keyboard: !P.value,
|
|
178
|
+
okText: "提交创建",
|
|
179
|
+
cancelText: "关闭",
|
|
180
|
+
confirmLoading: N.value,
|
|
181
|
+
okButtonProps: { disabled: P.value },
|
|
182
|
+
onOk: re,
|
|
183
|
+
onCancel: ie
|
|
184
|
+
}, {
|
|
185
|
+
default: x(() => [d(_, {
|
|
186
|
+
spinning: P.value || M.value,
|
|
187
|
+
tip: G.value
|
|
188
|
+
}, {
|
|
189
|
+
default: x(() => [
|
|
190
|
+
I.value ? (h(), o(n, {
|
|
191
|
+
key: 0,
|
|
192
|
+
message: I.value,
|
|
193
|
+
type: "info",
|
|
194
|
+
"show-icon": "",
|
|
195
|
+
style: { "margin-bottom": "16px" }
|
|
196
|
+
}, null, 8, ["message"])) : s("", !0),
|
|
197
|
+
F.value ? (h(), o(n, {
|
|
198
|
+
key: 1,
|
|
199
|
+
message: F.value,
|
|
200
|
+
type: "error",
|
|
201
|
+
"show-icon": "",
|
|
202
|
+
style: { "margin-bottom": "16px" }
|
|
203
|
+
}, null, 8, ["message"])) : s("", !0),
|
|
204
|
+
d(g, {
|
|
205
|
+
ref_key: "formRef",
|
|
206
|
+
ref: j,
|
|
207
|
+
model: z,
|
|
208
|
+
labelCol: { style: { width: "110px" } }
|
|
209
|
+
}, {
|
|
210
|
+
default: x(() => [
|
|
211
|
+
d(a, {
|
|
212
|
+
label: "账套名称",
|
|
213
|
+
name: "name",
|
|
214
|
+
rules: [{
|
|
215
|
+
required: !0,
|
|
216
|
+
message: "请输入账套名称"
|
|
217
|
+
}]
|
|
218
|
+
}, {
|
|
219
|
+
default: x(() => [d(r, {
|
|
220
|
+
value: z.name,
|
|
221
|
+
"onUpdate:value": t[0] ||= (e) => z.name = e,
|
|
222
|
+
disabled: P.value,
|
|
223
|
+
placeholder: "请输入待创建账套名称",
|
|
224
|
+
"allow-clear": ""
|
|
225
|
+
}, null, 8, ["value", "disabled"])]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
d(a, {
|
|
229
|
+
label: "权限模板账套",
|
|
230
|
+
name: "role_org_id",
|
|
231
|
+
rules: [{
|
|
232
|
+
required: !0,
|
|
233
|
+
message: "请选择权限模板账套"
|
|
234
|
+
}]
|
|
235
|
+
}, {
|
|
236
|
+
default: x(() => [d(f, {
|
|
237
|
+
value: z.role_org_id,
|
|
238
|
+
"onUpdate:value": t[1] ||= (e) => z.role_org_id = e,
|
|
239
|
+
disabled: P.value,
|
|
240
|
+
options: B.value,
|
|
241
|
+
showSearch: !0,
|
|
242
|
+
optionFilterProp: "label",
|
|
243
|
+
placeholder: "请选择权限模板账套"
|
|
244
|
+
}, null, 8, [
|
|
245
|
+
"value",
|
|
246
|
+
"disabled",
|
|
247
|
+
"options"
|
|
248
|
+
])]),
|
|
249
|
+
_: 1
|
|
250
|
+
}),
|
|
251
|
+
(h(!0), c(i, null, v(V.value, (e) => (h(), o(a, {
|
|
252
|
+
key: e.server_name,
|
|
253
|
+
label: `分库[${e.server_name}]`
|
|
254
|
+
}, {
|
|
255
|
+
default: x(() => [l("div", C, [d(p, {
|
|
256
|
+
checked: H[e.server_name].is_sharded,
|
|
257
|
+
"onUpdate:checked": (t) => H[e.server_name].is_sharded = t,
|
|
258
|
+
disabled: P.value,
|
|
259
|
+
"checked-children": "分库",
|
|
260
|
+
"un-checked-children": "不分"
|
|
261
|
+
}, null, 8, [
|
|
262
|
+
"checked",
|
|
263
|
+
"onUpdate:checked",
|
|
264
|
+
"disabled"
|
|
265
|
+
]), H[e.server_name].is_sharded ? (h(), o(f, {
|
|
266
|
+
key: 0,
|
|
267
|
+
value: H[e.server_name].db_server_id,
|
|
268
|
+
"onUpdate:value": (t) => H[e.server_name].db_server_id = t,
|
|
269
|
+
disabled: P.value,
|
|
270
|
+
options: e.serverOptions,
|
|
271
|
+
showSearch: !0,
|
|
272
|
+
optionFilterProp: "label",
|
|
273
|
+
placeholder: "请选择数据库服务器",
|
|
274
|
+
class: "service-shard-select"
|
|
275
|
+
}, {
|
|
276
|
+
option: x(({ label: e, org_count: t }) => [l("div", w, [l("span", null, b(e), 1), d(m, { color: t > 0 ? "blue" : "default" }, {
|
|
277
|
+
default: x(() => [u(b(t) + " 个账套", 1)]),
|
|
278
|
+
_: 2
|
|
279
|
+
}, 1032, ["color"])])]),
|
|
280
|
+
_: 2
|
|
281
|
+
}, 1032, [
|
|
282
|
+
"value",
|
|
283
|
+
"onUpdate:value",
|
|
284
|
+
"disabled",
|
|
285
|
+
"options"
|
|
286
|
+
])) : s("", !0)])]),
|
|
287
|
+
_: 2
|
|
288
|
+
}, 1032, ["label"]))), 128))
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
}, 8, ["model"]),
|
|
292
|
+
P.value && U.value > 0 ? (h(), c("div", T, [l("div", E, [t[2] ||= l("span", { class: "task-progress-label" }, "执行中任务:", -1), l("span", null, b(U.value) + " 个服务正在创建账套", 1)]), (h(!0), c(i, null, v(L.value, (e) => (h(), c("div", {
|
|
293
|
+
key: e.key,
|
|
294
|
+
class: "task-progress-item"
|
|
295
|
+
}, [
|
|
296
|
+
l("span", D, b(e.server_name) + ":", 1),
|
|
297
|
+
l("span", null, b(X(e.task?.status)) + " / " + b(Y(e.task?.stage)), 1),
|
|
298
|
+
e.task?.current_sync_model ? (h(), c("span", ee, ",同步:" + b(e.task.current_sync_model), 1)) : s("", !0)
|
|
299
|
+
]))), 128))])) : s("", !0)
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["spinning", "tip"])]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, [
|
|
305
|
+
"title",
|
|
306
|
+
"keyboard",
|
|
307
|
+
"confirmLoading",
|
|
308
|
+
"okButtonProps"
|
|
309
|
+
]);
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
}), [["__scopeId", "data-v-b7285c0e"]]);
|
|
313
|
+
//#endregion
|
|
314
|
+
export { O as default };
|
|
@@ -5,7 +5,7 @@ import { getApiData as o } from "./api/api-model.js";
|
|
|
5
5
|
import { $ as s, L as c, Q as l, X as u, Z as d, it as f, rt as p } from "./function-CstOzCwb.js";
|
|
6
6
|
import { ConditionOperatorMap as m } from "./api/typing.js";
|
|
7
7
|
import { t as h } from "./RemoteSelectPro-CtOkFjzA.js";
|
|
8
|
-
import "./components-
|
|
8
|
+
import "./components-4RFKo1I1.js";
|
|
9
9
|
import { c as g, f as _, i as v } from "./TinymceEditor-B6KX-4ep.js";
|
|
10
10
|
import { a as y, o as b } from "./tablePro-sD7FsU6a.js";
|
|
11
11
|
import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, mergeModels as j, nextTick as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as ee, onMounted as F, openBlock as I, reactive as te, ref as L, renderList as R, resolveComponent as z, toDisplayString as B, unref as V, useModel as H, vShow as U, watch as W, withCtx as G, withDirectives as K, withModifiers as ne } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./tablePageHost-
|
|
2
|
+
import { t } from "./tablePageHost-SnFoTEuS.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementBlock as i, defineComponent as a, openBlock as o, resolveComponent as s } from "vue";
|
|
4
4
|
//#region src/components/detailTablePro/detailTablePro.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var c = { class: "detail-table-pro" }, l = /*#__PURE__*/ e(/* @__PURE__ */ a({
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { B as e, C as t, F as n, H as r, R as i, _ as a, a as o, d as s, f as c,
|
|
|
3
3
|
import { defineAsyncComponent as S } from "vue";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
var C = { install(C, w) {
|
|
6
|
-
w?.env && C.use(_(w.env)), w?.globMap && C.use(s(w.globMap)), w?.bus && C.use(v(w.bus)), w?.useAppStore && C.use(t(w.useAppStore)), w?.useUserStore && C.use(e(w.useUserStore)), w?.request && C.use(a(w.request)), w?.useRequiredConditionStore && C.use(i(w.useRequiredConditionStore)), w?.required_condition_event_obj && C.use(x(w.required_condition_event_obj)), w?.event_obj && C.use(d(w.event_obj)), w?.ls && C.use(h(w.ls)), w?.sourceStore && C.use(b(w.sourceStore)), w?.usePageConfigStore && C.use(n(w.usePageConfigStore)), w?.remoteSelectStore && C.use(l(w.remoteSelectStore)), w?.cellComponentMap && C.use(g(w.cellComponentMap)), w?.cellFormatExcelValueMap && C.use(u(w.cellFormatExcelValueMap)), w?.cellComponentList && C.use(p(w.cellComponentList)), w?.cellSummaryComponentList && C.use(o(w.cellSummaryComponentList)), w?.menuComponents && C.use(f(w.menuComponents)), w?.debugCodeComponent && C.use(m(w.debugCodeComponent)), w?.extraMenuIcons && C.use(y(w.extraMenuIcons)), w?.workerHostFunctions && C.use(r(w.workerHostFunctions)), w?.injectMenuState && C.use(c(w.injectMenuState)), C.component("FieldRender", S(() => import("./FieldRender-DSmjznCJ.js").then((e) => e.n))).component("AttributeTable", S(() => import("./AttributeTable-muxdKpWW.js").then((e) => e.n))).component("AttributeNomTable", S(() => import("./AttributeNomTable-DHED22ju.js").then((e) => e.n))).component("SearchRender", S(() => import("./SearchRender-CQCgWEl9.js").then((e) => e.n))).component("RemoteSelect", S(() => import("./RemoteSelect-bjsCKGfS.js").then((e) => e.n))).component("RemoteCascader", S(() => import("./RemoteCascader-BsOeNVvB.js").then((e) => e.n))).component("RemoteFilterSelect", S(() => import("./RemoteFilterSelect-DF906O8X.js").then((e) => e.n))).component("RemoteModal", S(() => import("./RemoteModal-DZkqi64T.js").then((e) => e.n))).component("JsonStr", S(() => import("./JsonStr-JwOPdAYW.js").then((e) => e.n))).component("JsonObj", S(() => import("./JsonObj-CmylW4Or.js").then((e) => e.n))).component("RemoteText", S(() => import("./RemoteText-C_zxmxfK.js").then((e) => e.n))).component("RemoteTable2", S(() => import("./RemoteTable2-DYHG0cqX.js").then((e) => e.n))).component("syncDataSourceConfig", S(() => import("./syncDataSourceConfig-C7D3yjhl.js"))).component("dbDataSourceConfig", S(() => import("./dbDataSourceConfig-CnGgOJJB.js"))).component("dbViewConfig", S(() => import("./dbViewConfig-
|
|
6
|
+
w?.env && C.use(_(w.env)), w?.globMap && C.use(s(w.globMap)), w?.bus && C.use(v(w.bus)), w?.useAppStore && C.use(t(w.useAppStore)), w?.useUserStore && C.use(e(w.useUserStore)), w?.request && C.use(a(w.request)), w?.useRequiredConditionStore && C.use(i(w.useRequiredConditionStore)), w?.required_condition_event_obj && C.use(x(w.required_condition_event_obj)), w?.event_obj && C.use(d(w.event_obj)), w?.ls && C.use(h(w.ls)), w?.sourceStore && C.use(b(w.sourceStore)), w?.usePageConfigStore && C.use(n(w.usePageConfigStore)), w?.remoteSelectStore && C.use(l(w.remoteSelectStore)), w?.cellComponentMap && C.use(g(w.cellComponentMap)), w?.cellFormatExcelValueMap && C.use(u(w.cellFormatExcelValueMap)), w?.cellComponentList && C.use(p(w.cellComponentList)), w?.cellSummaryComponentList && C.use(o(w.cellSummaryComponentList)), w?.menuComponents && C.use(f(w.menuComponents)), w?.debugCodeComponent && C.use(m(w.debugCodeComponent)), w?.extraMenuIcons && C.use(y(w.extraMenuIcons)), w?.workerHostFunctions && C.use(r(w.workerHostFunctions)), w?.injectMenuState && C.use(c(w.injectMenuState)), C.component("FieldRender", S(() => import("./FieldRender-DSmjznCJ.js").then((e) => e.n))).component("AttributeTable", S(() => import("./AttributeTable-muxdKpWW.js").then((e) => e.n))).component("AttributeNomTable", S(() => import("./AttributeNomTable-DHED22ju.js").then((e) => e.n))).component("SearchRender", S(() => import("./SearchRender-CQCgWEl9.js").then((e) => e.n))).component("RemoteSelect", S(() => import("./RemoteSelect-bjsCKGfS.js").then((e) => e.n))).component("RemoteCascader", S(() => import("./RemoteCascader-BsOeNVvB.js").then((e) => e.n))).component("RemoteFilterSelect", S(() => import("./RemoteFilterSelect-DF906O8X.js").then((e) => e.n))).component("RemoteModal", S(() => import("./RemoteModal-DZkqi64T.js").then((e) => e.n))).component("JsonStr", S(() => import("./JsonStr-JwOPdAYW.js").then((e) => e.n))).component("JsonObj", S(() => import("./JsonObj-CmylW4Or.js").then((e) => e.n))).component("RemoteText", S(() => import("./RemoteText-C_zxmxfK.js").then((e) => e.n))).component("RemoteTable2", S(() => import("./RemoteTable2-DYHG0cqX.js").then((e) => e.n))).component("syncDataSourceConfig", S(() => import("./syncDataSourceConfig-C7D3yjhl.js"))).component("dbDataSourceConfig", S(() => import("./dbDataSourceConfig-CnGgOJJB.js"))).component("dbViewConfig", S(() => import("./dbViewConfig-Dtm6CXzl.js"))).component("syncModelTypeConfig", S(() => import("./syncModelTypeConfig-D8-hcItK.js"))).component("syncExportRawData", S(() => import("./syncExportRawData-Dpi-VJuu.js"))).component("aiGenModel", S(() => import("./aiGenModel-C9E1ahu8.js"))).component("batchCreateUser", S(() => import("./batchCreateUser-Bldo1FdN.js"))).component("detailTablePro", S(() => import("./detailTablePro-CWei2BHz.js"))).component("FormRender3", S(() => import("./FormRender3-C8TSgzgE.js").then((e) => e.n))).component("NormalViewIcon", S(() => import("./normalViewIcon-CglvKVbZ.js"))).component("PivotTableIcon", S(() => import("./pivotTableIcon-DbvqffwC.js"))).component("PivotChartIcon", S(() => import("./pivotChartIcon-gDZG-d23.js"))).component("Cell_org_shard_info", S(() => import("./cell_org_shard_info-CbffFp2w.js"))).component("createOrg", S(() => import("./create_org-8_vO7RWb.js")));
|
|
7
7
|
} };
|
|
8
8
|
//#endregion
|
|
9
9
|
export { C as default };
|