slw 0.5.949 → 0.5.955
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/lib/index.js +473 -420
- package/lib/index.umd.cjs +6 -6
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Wo = Object.defineProperty;
|
|
2
2
|
var Qo = (Q, H, G) => H in Q ? Wo(Q, H, { enumerable: !0, configurable: !0, writable: !0, value: G }) : Q[H] = G;
|
|
3
3
|
var Eo = (Q, H, G) => (Qo(Q, typeof H != "symbol" ? H + "" : H, G), G);
|
|
4
|
-
import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$2, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, createElementVNode, toRaw, resolveComponent, openBlock, createElementBlock,
|
|
4
|
+
import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$2, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, createElementVNode, toRaw, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps as mergeProps$1, withCtx, renderList, createBlock, normalizeStyle, createSlots, toDisplayString as toDisplayString$1, createCommentVNode, resolveDynamicComponent, createTextVNode, normalizeClass, renderSlot, withModifiers, isVNode as isVNode$1, Comment, Text as Text$2, Transition, Teleport, render as render$1, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$1, createStaticVNode, createApp, onActivated, onDeactivated } from "vue";
|
|
5
5
|
var isVue2 = !1, isVue3 = !0, Vue2 = void 0;
|
|
6
6
|
function install$2() {
|
|
7
7
|
}
|
|
@@ -8281,19 +8281,22 @@ assign$2(XEUtils, {
|
|
|
8281
8281
|
cookie
|
|
8282
8282
|
});
|
|
8283
8283
|
var xeUtils = XEUtils;
|
|
8284
|
-
const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils),
|
|
8284
|
+
const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_vue_vue_type_style_index_0_scoped_42154cc4_lang = "", _export_sfc = (Q, H) => {
|
|
8285
8285
|
const G = Q.__vccOpts || Q;
|
|
8286
8286
|
for (const [X, K] of H)
|
|
8287
8287
|
G[X] = K;
|
|
8288
8288
|
return G;
|
|
8289
|
-
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-
|
|
8290
|
-
|
|
8289
|
+
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-42154cc4"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8290
|
+
class: "slw-window-grid-container",
|
|
8291
|
+
style: { height: "100%" }
|
|
8292
|
+
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
8291
8293
|
_hoisted_2$kS,
|
|
8292
|
-
_hoisted_3$hT
|
|
8293
|
-
|
|
8294
|
+
_hoisted_3$hT,
|
|
8295
|
+
_hoisted_4$au
|
|
8296
|
+
], _hoisted_6$1_ = {
|
|
8294
8297
|
key: 0,
|
|
8295
8298
|
style: { verticalAlign: "middle" }
|
|
8296
|
-
},
|
|
8299
|
+
}, _hoisted_7$12 = { style: { padding: "20px 0" } }, _hoisted_8$F = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", null, "点击或拖文件到此处上传", -1)), _sfc_main$6 = {
|
|
8297
8300
|
__name: "window-grid",
|
|
8298
8301
|
props: {
|
|
8299
8302
|
gridData: {
|
|
@@ -8320,7 +8323,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8320
8323
|
{ code: "contract", name: "收缩节点", disabled: !1 }
|
|
8321
8324
|
]
|
|
8322
8325
|
]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
|
|
8323
|
-
const addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
|
|
8326
|
+
const addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
|
|
8324
8327
|
(H) => H.showInGrid && (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || H.btnShowInGrid[Q])
|
|
8325
8328
|
), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $modal = $Modal, $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), $Message = ref({
|
|
8326
8329
|
success(Q) {
|
|
@@ -8410,11 +8413,22 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8410
8413
|
},
|
|
8411
8414
|
ajax: {
|
|
8412
8415
|
query: ({ page: H, sorts: G, filters: X, form: K }, Z) => {
|
|
8416
|
+
if (Z != null && Z.clearGrid) {
|
|
8417
|
+
for (let le in K)
|
|
8418
|
+
K[le] = null;
|
|
8419
|
+
return localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(K)), {
|
|
8420
|
+
data: {
|
|
8421
|
+
data: [],
|
|
8422
|
+
count: 0
|
|
8423
|
+
},
|
|
8424
|
+
status: 200
|
|
8425
|
+
};
|
|
8426
|
+
}
|
|
8413
8427
|
Object.entries(K).forEach(([ae, le]) => {
|
|
8414
8428
|
le == null && (K[ae] = null);
|
|
8415
8429
|
});
|
|
8416
8430
|
let ee = getParentRegion(), te = null;
|
|
8417
|
-
ee && (te = ee.params.subtableSearchExParams);
|
|
8431
|
+
ee && ee.params && (te = ee.params.subtableSearchExParams);
|
|
8418
8432
|
const ne = Object.assign({}, K, Z, te), re = G[0];
|
|
8419
8433
|
re && (ne.$_sort_column = re.property, ne.$_sort_type = re.order), X.forEach(({ property: ae, values: le }) => {
|
|
8420
8434
|
ne[ae.toUpperCase()] = le.join(",");
|
|
@@ -8429,28 +8443,26 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8429
8443
|
}) : localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(K));
|
|
8430
8444
|
const oe = axios.post("/window/data/" + gridData.value.params.datasourceCode, ne);
|
|
8431
8445
|
return oe.then((ae) => {
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
ue && se && ce.showColumn(ue);
|
|
8449
|
-
}
|
|
8450
|
-
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(le);
|
|
8446
|
+
let le = {};
|
|
8447
|
+
if (ae && ae.data && ae.data.result && ae.data.data && ae.data.data.length > 0) {
|
|
8448
|
+
let se = !1;
|
|
8449
|
+
ae.data.data.forEach((ue, he) => {
|
|
8450
|
+
gridData.value.toolbarConfig.buttons.forEach((de) => {
|
|
8451
|
+
if (typeof de.type < "u") {
|
|
8452
|
+
de.btnLoad[he] = !1;
|
|
8453
|
+
const pe = de.displayLogic ? displayLogic(de.displayLogic, { ...ue, ...assembleParentData(gridData.value.params.parentData) }) : !0, fe = de.showInGrid && pe, me = !de.showInGrid && pe;
|
|
8454
|
+
de.btnShowInGrid[he] = fe, de.btnShow[he] = me, se = se || fe;
|
|
8455
|
+
}
|
|
8456
|
+
});
|
|
8457
|
+
}), ae.data.data.length > rowIndex.value ? le = ae.data.data[rowIndex.value] : le = ae.data.data[0];
|
|
8458
|
+
const ce = getCurRegion();
|
|
8459
|
+
if (ce) {
|
|
8460
|
+
const ue = ce.getColumnById("_operation_");
|
|
8461
|
+
ue && se && ce.showColumn(ue);
|
|
8451
8462
|
}
|
|
8452
|
-
|
|
8463
|
+
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(le);
|
|
8453
8464
|
}
|
|
8465
|
+
rowClickCommon(le, rowIndex.value);
|
|
8454
8466
|
}), oe;
|
|
8455
8467
|
}
|
|
8456
8468
|
}
|
|
@@ -8469,7 +8481,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8469
8481
|
delete X._region_id, gridData.value.params.parentData = getParentData(), emitButtonDisplayLogic({ ...Q, ...assembleParentData(gridData.value.params.parentData) }, H), rowIndex.value = H, G.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q), getCurRegion().setCurrentRow(Q)), callGridClickEvents(X, gridData.value.params._region_id);
|
|
8470
8482
|
}, emitButtonDisplayLogic = (Q, H) => {
|
|
8471
8483
|
gridData.value.toolbarConfig.buttons.forEach((G) => {
|
|
8472
|
-
G.displayLogic && (G.btnShowInGrid[H] = G.showInGrid && displayLogic(G.displayLogic, Q), G.btnShow[H] = !G.showInGrid && G.showInGrid);
|
|
8484
|
+
G.displayLogic && (G.showInGrid || (G.visible = displayLogic(G.displayLogic, Q)), G.btnShowInGrid[H] = G.showInGrid && displayLogic(G.displayLogic, Q), G.btnShow[H] = !G.showInGrid && G.showInGrid);
|
|
8473
8485
|
});
|
|
8474
8486
|
}, onRowDbClick = (Q) => {
|
|
8475
8487
|
gridData.value.addListener && Q.column.type == "seq" && Q.column.fixed == "left" && headerSeqCellDbClick(Q), gridData.value.type !== "EDIT_GRID" && commonEditData(Q.row, Q.rowIndex);
|
|
@@ -8611,7 +8623,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8611
8623
|
width: gridData.value.params.newWidth ? gridData.value.params.newWidth : "800px",
|
|
8612
8624
|
height: gridData.value.params.newHeight ? gridData.value.params.newHeight : "700px",
|
|
8613
8625
|
childForm: K
|
|
8614
|
-
}, K && Object.keys(K).length > 0 && (ne.width = "85vw"), ne.params.
|
|
8626
|
+
}, K && Object.keys(K).length > 0 && (ne.width = "85vw"), ne.params.queryParams !== null && typeof ne.params.queryParams < "u" && (ne.params.queryParams.unQuery = !0), ne.params.parentData = getParentData(), ne._reload = () => reload(), rowDbClick(ne);
|
|
8615
8627
|
}
|
|
8616
8628
|
break;
|
|
8617
8629
|
case "EDIT":
|
|
@@ -8760,12 +8772,29 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8760
8772
|
height: gridData.value.params.editHeight ? gridData.value.params.editHeight : "700px",
|
|
8761
8773
|
tableData: getCanEditData(),
|
|
8762
8774
|
rowIndex: H
|
|
8763
|
-
}, X.params.
|
|
8775
|
+
}, X.params.queryParams !== null && typeof X.params.queryParams < "u" && (X.params.queryParams.unQuery = !0), X.formData._button_id = gridData.value.params.edit_button_id, X._reload = () => reload(), rowDbClick(X);
|
|
8764
8776
|
}, reload = () => {
|
|
8765
8777
|
getCurRegion().commitProxy("query");
|
|
8778
|
+
}, clearGrid = () => {
|
|
8779
|
+
getCurRegion().commitProxy("query", { clearGrid: !0 });
|
|
8766
8780
|
}, getCheckedData = () => {
|
|
8767
8781
|
const Q = getCurRegion();
|
|
8768
8782
|
return Q ? Q.getCheckboxRecords() : null;
|
|
8783
|
+
}, headerCheckboxChange = ({ checked: Q, row: H }) => {
|
|
8784
|
+
let G = getCheckedData();
|
|
8785
|
+
if (G.length > 0)
|
|
8786
|
+
gridData.value.toolbarConfig.buttons.forEach((X) => {
|
|
8787
|
+
X.displayLogic && !X.showInGrid && G.some((K) => {
|
|
8788
|
+
if (X.visible = X.displayLogic ? displayLogic(X.displayLogic, { ...K, ...assembleParentData(gridData.value.params.parentData) }) : !0, !X.visible)
|
|
8789
|
+
return !0;
|
|
8790
|
+
});
|
|
8791
|
+
});
|
|
8792
|
+
else {
|
|
8793
|
+
const X = getSelectRecord();
|
|
8794
|
+
gridData.value.toolbarConfig.buttons.forEach((K) => {
|
|
8795
|
+
K.displayLogic && !K.showInGrid && (K.visible = displayLogic(K.displayLogic, { ...X, ...assembleParentData(gridData.value.params.parentData) }));
|
|
8796
|
+
});
|
|
8797
|
+
}
|
|
8769
8798
|
}, getSelectRecord = () => {
|
|
8770
8799
|
const Q = getCurRegion();
|
|
8771
8800
|
return Q ? Q.getCurrentRecord() : null;
|
|
@@ -8850,13 +8879,9 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8850
8879
|
X.data.result && X.data.data && (G.editRender.props.treeData = X.data.data);
|
|
8851
8880
|
});
|
|
8852
8881
|
else if (G.remoteSearch) {
|
|
8853
|
-
|
|
8882
|
+
G.editRender.props.remoteMethod = async (K) => {
|
|
8854
8883
|
K && (G.editRender.props.loading = !0, G.editRender.options = await remoteMethod(K, G.id, G.selectorId), G.editRender.props.loading = !1);
|
|
8855
|
-
}
|
|
8856
|
-
K && (G.editRender.options = await remoteMethod(K, G.id, G.selectorId));
|
|
8857
|
-
}, G.editRender.events.search = async (K) => {
|
|
8858
|
-
K && (G.editRender.options = await remoteMethod(K, G.id, G.selectorId));
|
|
8859
|
-
});
|
|
8884
|
+
};
|
|
8860
8885
|
let X = Q["_" + G.field + "_NAME"];
|
|
8861
8886
|
Q[G.field] && X && (G.editRender.options = await remoteMethod(X, G.id, G.selectorId));
|
|
8862
8887
|
} else
|
|
@@ -9192,30 +9217,23 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9192
9217
|
};
|
|
9193
9218
|
onMounted(() => {
|
|
9194
9219
|
gridData.value.addListener && getCurRegion() && addListener(), evalEvent(gridData.value.params.formEvents.dataInit), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
9195
|
-
typeof Q.type < "u" && Q.type.toLowerCase() === "edit" && (editBtn.value = Q), typeof Q.type < "u" && Q.type.toLowerCase() === "export" && (exportButton.value = Q), Q.hasOwnProperty("buttonRender") || (
|
|
9196
|
-
name:
|
|
9197
|
-
props:
|
|
9198
|
-
|
|
9220
|
+
typeof Q.type < "u" && Q.type.toLowerCase() === "edit" && (editBtn.value = Q), typeof Q.type < "u" && Q.type.toLowerCase() === "export" && (exportButton.value = Q), Q.hasOwnProperty("buttonRender") || (Q.buttonRender = {
|
|
9221
|
+
name: "ElButton",
|
|
9222
|
+
props: {
|
|
9223
|
+
autoInsertSpace: !0,
|
|
9224
|
+
iconComponent: Q.iconComponent,
|
|
9225
|
+
size: "default",
|
|
9199
9226
|
type: Q.viewType,
|
|
9200
9227
|
style: Q.css,
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
round: Q.shape === "round",
|
|
9204
|
-
circle: Q.shape === "circle",
|
|
9205
|
-
loading: Q.btnLoad[rowIndex.value],
|
|
9206
|
-
shape: Q.shape
|
|
9207
|
-
}),
|
|
9228
|
+
loading: Q.btnLoad[rowIndex.value]
|
|
9229
|
+
},
|
|
9208
9230
|
events: { click: toolBarButtonClick }
|
|
9209
9231
|
});
|
|
9210
9232
|
}), gridData.value.formConfig.items.forEach((Q) => {
|
|
9211
9233
|
var H;
|
|
9212
|
-
if (Q.itemRender && Q.itemRender.events && Q.itemRender.events.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.remoteSearch ? (
|
|
9234
|
+
if (Q.itemRender && Q.itemRender.events && Q.itemRender.events.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.remoteSearch ? (Q.itemRender.props.remoteMethod = async (G) => {
|
|
9213
9235
|
G && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(G, Q.querys.id, Q.querys.selectorId), Q.itemRender.props.loading = !1);
|
|
9214
|
-
}
|
|
9215
|
-
G && (Q.itemRender.options = await remoteMethod(G, Q.querys.id, Q.querys.selectorId));
|
|
9216
|
-
}, Q.itemRender.events.search = async (G) => {
|
|
9217
|
-
G && (Q.itemRender.options = await remoteMethod(G, Q.querys.id, Q.querys.selectorId));
|
|
9218
|
-
}), Q.itemRender.defaultValue && remoteMethod(Q.itemRender.defaultValue, Q.querys.id, Q.querys.selectorId).then((G) => {
|
|
9236
|
+
}, Q.itemRender.defaultValue && remoteMethod(Q.itemRender.defaultValue, Q.querys.id, Q.querys.selectorId).then((G) => {
|
|
9219
9237
|
Q.itemRender.options = G;
|
|
9220
9238
|
})) : Q.querys && axios.post("/window/selector", $qs.stringify({
|
|
9221
9239
|
_region_id: gridData.value.params._region_id,
|
|
@@ -9248,7 +9266,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9248
9266
|
search(Q);
|
|
9249
9267
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
9250
9268
|
setChecked(Q);
|
|
9251
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow();
|
|
9269
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid();
|
|
9252
9270
|
}), onUnmounted(() => {
|
|
9253
9271
|
gridData.value.params.parentRegionId, document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9254
9272
|
});
|
|
@@ -9256,17 +9274,14 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9256
9274
|
gridData.value.formConfig.formData[Q.toUpperCase()] = H;
|
|
9257
9275
|
};
|
|
9258
9276
|
return __expose({ gridReload, reload }), (Q, H) => {
|
|
9259
|
-
const G = resolveComponent("vxe-grid"),
|
|
9260
|
-
return openBlock(), createElementBlock("div",
|
|
9261
|
-
class: "slw-window-grid-container",
|
|
9262
|
-
style: normalizeStyle({ height: "100%", "min-height": unref(gridData).params.curHeight + "px" })
|
|
9263
|
-
}, [
|
|
9277
|
+
const G = resolveComponent("el-icon"), X = resolveComponent("el-tooltip"), K = resolveComponent("el-button"), Z = resolveComponent("vxe-grid"), ee = resolveComponent("cloud-upload"), te = resolveComponent("el-upload"), ne = resolveComponent("download-outline"), re = resolveComponent("el-dialog");
|
|
9278
|
+
return openBlock(), createElementBlock("div", _hoisted_1$kW, [
|
|
9264
9279
|
createElementVNode("div", {
|
|
9265
9280
|
class: "vxe-table--cell-area",
|
|
9266
9281
|
ref_key: "cellarea",
|
|
9267
9282
|
ref: cellarea
|
|
9268
|
-
},
|
|
9269
|
-
createVNode(
|
|
9283
|
+
}, _hoisted_5$4U, 512),
|
|
9284
|
+
createVNode(Z, mergeProps$1({
|
|
9270
9285
|
ref_key: "curRegion",
|
|
9271
9286
|
ref: curRegion,
|
|
9272
9287
|
class: { "cell--area": unref(gridData).addListener },
|
|
@@ -9277,50 +9292,59 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9277
9292
|
onHeaderCellClick: headerCellClick,
|
|
9278
9293
|
onCellClick: rowClick,
|
|
9279
9294
|
onCellDblclick: onRowDbClick,
|
|
9280
|
-
onMenuClick: contextMenuClickEvent
|
|
9295
|
+
onMenuClick: contextMenuClickEvent,
|
|
9296
|
+
onCheckboxChange: headerCheckboxChange,
|
|
9297
|
+
onCheckboxAll: headerCheckboxChange
|
|
9281
9298
|
}), {
|
|
9282
|
-
operation: withCtx(({ row:
|
|
9283
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(
|
|
9284
|
-
key:
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9299
|
+
operation: withCtx(({ row: oe, rowIndex: ae }) => [
|
|
9300
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(ae), (le) => (openBlock(), createBlock(K, {
|
|
9301
|
+
key: le._button_id,
|
|
9302
|
+
iconComponent: le.iconComponent,
|
|
9303
|
+
"auto-insert-space": !0,
|
|
9304
|
+
size: "small",
|
|
9305
|
+
style: normalizeStyle({ ...le.css, marginLeft: "0px", padding: "5px" }),
|
|
9306
|
+
type: "primary",
|
|
9307
|
+
text: !0,
|
|
9308
|
+
onClick: (se) => toolBarButtonClick(le, oe, ae)
|
|
9309
|
+
}, createSlots({
|
|
9288
9310
|
default: withCtx(() => [
|
|
9289
|
-
!
|
|
9311
|
+
!le.iconComponent || typeof le.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_6$1_, toDisplayString$1(le.name), 1)) : createCommentVNode("", !0)
|
|
9290
9312
|
]),
|
|
9291
9313
|
_: 2
|
|
9292
9314
|
}, [
|
|
9293
|
-
|
|
9315
|
+
le.iconComponent ? {
|
|
9294
9316
|
name: "icon",
|
|
9295
9317
|
fn: withCtx(() => [
|
|
9296
|
-
(
|
|
9297
|
-
|
|
9298
|
-
content: te.name,
|
|
9318
|
+
createVNode(X, {
|
|
9319
|
+
content: le.name,
|
|
9299
9320
|
placement: "top"
|
|
9300
9321
|
}, {
|
|
9301
9322
|
default: withCtx(() => [
|
|
9302
|
-
(
|
|
9323
|
+
createVNode(G, {
|
|
9324
|
+
size: "15",
|
|
9325
|
+
style: { verticalAlign: "middle" }
|
|
9326
|
+
}, {
|
|
9303
9327
|
default: withCtx(() => [
|
|
9304
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
9328
|
+
(openBlock(), createBlock(resolveDynamicComponent(le.iconComponent)))
|
|
9305
9329
|
]),
|
|
9306
9330
|
_: 2
|
|
9307
|
-
},
|
|
9331
|
+
}, 1024)
|
|
9308
9332
|
]),
|
|
9309
9333
|
_: 2
|
|
9310
|
-
}, 1032, ["
|
|
9334
|
+
}, 1032, ["content"])
|
|
9311
9335
|
]),
|
|
9312
9336
|
key: "0"
|
|
9313
9337
|
} : void 0
|
|
9314
|
-
]),
|
|
9338
|
+
]), 1032, ["iconComponent", "style", "onClick"]))), 128))
|
|
9315
9339
|
]),
|
|
9316
9340
|
_: 1
|
|
9317
9341
|
}, 16, ["class"]),
|
|
9318
|
-
(
|
|
9342
|
+
createVNode(re, {
|
|
9319
9343
|
ref: "importModal",
|
|
9320
9344
|
modelValue: unref(isImport),
|
|
9321
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
9345
|
+
"onUpdate:modelValue": H[0] || (H[0] = (oe) => isRef(isImport) ? isImport.value = oe : isImport = oe),
|
|
9322
9346
|
visible: unref(isImport),
|
|
9323
|
-
"onUpdate:visible": H[1] || (H[1] = (
|
|
9347
|
+
"onUpdate:visible": H[1] || (H[1] = (oe) => isRef(isImport) ? isImport.value = oe : isImport = oe),
|
|
9324
9348
|
zIndex: 1e3,
|
|
9325
9349
|
title: "Excel导入",
|
|
9326
9350
|
width: "500px",
|
|
@@ -9336,21 +9360,28 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9336
9360
|
"show-footer": ""
|
|
9337
9361
|
}, {
|
|
9338
9362
|
footer: withCtx(() => [
|
|
9339
|
-
(
|
|
9363
|
+
createVNode(K, {
|
|
9364
|
+
"auto-insert-space": !0,
|
|
9365
|
+
type: "primary",
|
|
9366
|
+
onClick: downTemplate
|
|
9367
|
+
}, {
|
|
9340
9368
|
default: withCtx(() => [
|
|
9341
|
-
createTextVNode("模板 "),
|
|
9342
|
-
(
|
|
9369
|
+
createTextVNode(" 模板 "),
|
|
9370
|
+
createVNode(G, {
|
|
9371
|
+
size: "15",
|
|
9372
|
+
style: { verticalAlign: "middle" }
|
|
9373
|
+
}, {
|
|
9343
9374
|
default: withCtx(() => [
|
|
9344
|
-
createVNode(
|
|
9375
|
+
createVNode(ne)
|
|
9345
9376
|
]),
|
|
9346
9377
|
_: 1
|
|
9347
|
-
}
|
|
9378
|
+
})
|
|
9348
9379
|
]),
|
|
9349
9380
|
_: 1
|
|
9350
|
-
}
|
|
9381
|
+
})
|
|
9351
9382
|
]),
|
|
9352
9383
|
default: withCtx(() => [
|
|
9353
|
-
(
|
|
9384
|
+
createVNode(te, {
|
|
9354
9385
|
ref: "uploadExcel",
|
|
9355
9386
|
type: "drag",
|
|
9356
9387
|
drag: "",
|
|
@@ -9362,22 +9393,22 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9362
9393
|
"on-success": importSuccess
|
|
9363
9394
|
}, {
|
|
9364
9395
|
default: withCtx(() => [
|
|
9365
|
-
createElementVNode("div",
|
|
9366
|
-
createVNode(
|
|
9367
|
-
|
|
9396
|
+
createElementVNode("div", _hoisted_7$12, [
|
|
9397
|
+
createVNode(ee, { width: 50 }),
|
|
9398
|
+
_hoisted_8$F
|
|
9368
9399
|
])
|
|
9369
9400
|
]),
|
|
9370
9401
|
_: 1
|
|
9371
|
-
},
|
|
9402
|
+
}, 8, ["action", "headers", "accept", "data"])
|
|
9372
9403
|
]),
|
|
9373
9404
|
_: 1
|
|
9374
|
-
},
|
|
9375
|
-
(
|
|
9405
|
+
}, 8, ["modelValue", "visible"]),
|
|
9406
|
+
createVNode(re, {
|
|
9376
9407
|
ref: "uploads",
|
|
9377
9408
|
modelValue: uploadConfig.value.show,
|
|
9378
|
-
"onUpdate:modelValue": H[2] || (H[2] = (
|
|
9409
|
+
"onUpdate:modelValue": H[2] || (H[2] = (oe) => uploadConfig.value.show = oe),
|
|
9379
9410
|
visible: uploadConfig.value.show,
|
|
9380
|
-
"onUpdate:visible": H[3] || (H[3] = (
|
|
9411
|
+
"onUpdate:visible": H[3] || (H[3] = (oe) => uploadConfig.value.show = oe),
|
|
9381
9412
|
zIndex: 1e3,
|
|
9382
9413
|
footer: null,
|
|
9383
9414
|
"append-to-body": "",
|
|
@@ -9391,11 +9422,11 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9391
9422
|
resize: "",
|
|
9392
9423
|
"mask-closable": "",
|
|
9393
9424
|
"esc-closable": ""
|
|
9394
|
-
}, null,
|
|
9395
|
-
]
|
|
9425
|
+
}, null, 8, ["modelValue", "visible"])
|
|
9426
|
+
]);
|
|
9396
9427
|
};
|
|
9397
9428
|
}
|
|
9398
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
9429
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-42154cc4"]]);
|
|
9399
9430
|
WindowGrid.name = "slw-window-grid";
|
|
9400
9431
|
WindowGrid.install = (Q) => {
|
|
9401
9432
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -36105,7 +36136,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36105
36136
|
let formConfig = useVModel(props, "formConfig", emits);
|
|
36106
36137
|
const axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint");
|
|
36107
36138
|
let formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
36108
|
-
const showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), $Modal = inject("$modal"), $modal = $Modal, $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $Message = ref({
|
|
36139
|
+
const showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $modal = $Modal, $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $Message = ref({
|
|
36109
36140
|
success(Q) {
|
|
36110
36141
|
success(Q);
|
|
36111
36142
|
},
|
|
@@ -36181,7 +36212,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36181
36212
|
return formConfig.value.columns.forEach((H) => {
|
|
36182
36213
|
H.editRender && H.editRender.props.readonlyLogic && (Q[H.field] = H);
|
|
36183
36214
|
}), Q;
|
|
36184
|
-
}), subQueryFields = computed(() => formConfig.value.columns.filter((Q) => Q.dataType === "SQL"));
|
|
36215
|
+
}), subQueryFields = computed(() => formConfig.value.columns.filter((Q) => Q.dataType === "SQL")), computeSpan = computed(() => (Q) => Q.dataType === "EDITOR" || Q.dataType === "TEXT" ? 24 : Q.fwidth ? Number(Q.fwidth) > 24 ? 24 : Number(Q.fwidth) : 12);
|
|
36185
36216
|
onMounted(() => {
|
|
36186
36217
|
if (formConfig.value.params.linkUrl)
|
|
36187
36218
|
return;
|
|
@@ -36195,18 +36226,8 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36195
36226
|
for (const G in formConfig.value.columns)
|
|
36196
36227
|
formConfig.value.columns[G].type !== "seq" && formConfig.value.columns[G].type !== "checkbox" && (formData.value[formConfig.value.columns[G].field] = "");
|
|
36197
36228
|
let H = 0;
|
|
36198
|
-
formConfig.value.columns.forEach((G, X, K) => {
|
|
36199
|
-
|
|
36200
|
-
let Z = 0;
|
|
36201
|
-
if (G.colType !== "showInGrid") {
|
|
36202
|
-
if ((te = (ee = G == null ? void 0 : G.editRender) == null ? void 0 : ee.props) != null && te.newLine && X > 0) {
|
|
36203
|
-
let re = K[X - 1];
|
|
36204
|
-
re.span = 24 - H % 24;
|
|
36205
|
-
}
|
|
36206
|
-
let ne = parseInt(G.fwidth);
|
|
36207
|
-
["EDITOR", "TEXT"].includes(G.dataType) ? Z = 24 : ne ? ne > 12 ? Z = ne > 400 ? 24 : 12 : Z = ne : Z = 12, H += Z;
|
|
36208
|
-
}
|
|
36209
|
-
G.span = Z, G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (G.events.change = onFieldChange, G.hasOwnProperty("search") && (G.events.search = remoteSearch), G.events.keyup = onFieldEnter, G.events.click = onFieldClick);
|
|
36229
|
+
computeNewLine(formConfig.value), formConfig.value.columns.forEach((G, X, K) => {
|
|
36230
|
+
G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (G.events.change = onFieldChange, G.hasOwnProperty("search") && (G.events.search = remoteSearch), G.events.keyup = onFieldEnter, G.events.click = onFieldClick);
|
|
36210
36231
|
}), formData.value._region_id = formConfig.value.params._region_id, evalEvent(formConfig.value.params.formEvents.dataInit), formInitData(formData.value, formConfig.value.params._region_id, Q), formConfig.value.params.parentRegionId, formConfig.value.params.queryParams && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((G) => {
|
|
36211
36232
|
G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (fieldColumnMap.value[G.field] = G);
|
|
36212
36233
|
}), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
|
|
@@ -36304,8 +36325,8 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36304
36325
|
};
|
|
36305
36326
|
let regionMap = inject("$regionMap");
|
|
36306
36327
|
const getParentRegion = () => {
|
|
36307
|
-
let Q = regionMap.value[
|
|
36308
|
-
return Q || regionMap.value[
|
|
36328
|
+
let Q = regionMap.value[formConfig.value.params.parentCode + "-" + preTag.value];
|
|
36329
|
+
return Q || regionMap.value[formConfig.value.params.parentCode];
|
|
36309
36330
|
}, getParentData = () => {
|
|
36310
36331
|
let Q = getParentRegion();
|
|
36311
36332
|
return Q ? Q.getCurrentRecord() : null;
|
|
@@ -36343,13 +36364,9 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36343
36364
|
Z.data.result && Z.data.data && (K.itemRender.props.treeData = Z.data.data);
|
|
36344
36365
|
});
|
|
36345
36366
|
else if (K.remoteSearch) {
|
|
36346
|
-
K.itemRender.options = [],
|
|
36367
|
+
K.itemRender.options = [], K.itemRender.props.remoteMethod = async (ee) => {
|
|
36347
36368
|
ee && (K.itemRender.props.loading = !0, K.itemRender.options = await remoteMethod(ee, K.id, K.selectorId), K.itemRender.props.loading = !1);
|
|
36348
|
-
}
|
|
36349
|
-
ee && (K.itemRender.options = await remoteMethod(ee, K.id, K.selectorId));
|
|
36350
|
-
}, K.itemRender.events.search = async (ee) => {
|
|
36351
|
-
ee && (K.itemRender.options = await remoteMethod(ee, K.id, K.selectorId));
|
|
36352
|
-
});
|
|
36369
|
+
};
|
|
36353
36370
|
let Z = Q["_" + K.field + "_NAME"];
|
|
36354
36371
|
if (Q[K.field] && Z) {
|
|
36355
36372
|
K.itemRender.options = await remoteMethod(Z, K.id, K.selectorId);
|
|
@@ -36528,14 +36545,22 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36528
36545
|
break;
|
|
36529
36546
|
}
|
|
36530
36547
|
return G;
|
|
36548
|
+
}, computeNewLine = (Q) => {
|
|
36549
|
+
let H = Q.columns.filter((G) => G.type !== "seq" && G.type !== "checkbox" && G.fixed !== "left");
|
|
36550
|
+
for (let [G, X] of H.entries())
|
|
36551
|
+
if (X.visible && X.displayForm) {
|
|
36552
|
+
X.width = X.width ? X.width : 12;
|
|
36553
|
+
let K = H[G - 1];
|
|
36554
|
+
Number(X.width) > 24 ? (X.aLine = !0, X.residue = 0) : (X.aLine = !1, X.residue = 24 - Number(X.width), K && (K.aLine || K.residue - Number(X.width) < 0) || G == 0 ? X.residue = 24 - Number(X.width) : K.residue - Number(X.width) >= 0 && (X.residue = K.residue - Number(X.width))), (X.itemRender.props.newLine === !0 || X.itemRender.props.newLine === "Y") && (K.width = Number(K.width) + Number(K.residue), K.fwidth = K.width, K.residue = 0, X.residue = 24 - Number(X.width));
|
|
36555
|
+
}
|
|
36531
36556
|
}, throwFunction = (Q) => {
|
|
36532
36557
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G);
|
|
36533
36558
|
};
|
|
36534
36559
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
36535
|
-
const G = resolveComponent("vxe-form-item"), X = resolveComponent("vxe-form");
|
|
36560
|
+
const G = resolveComponent("vxe-form-item"), X = resolveComponent("el-icon"), K = resolveComponent("el-button"), Z = resolveComponent("vxe-form");
|
|
36536
36561
|
return openBlock(), createElementBlock("div", _hoisted_1$kV, [
|
|
36537
36562
|
unref(formConfig).params.showTitle && unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kR, toDisplayString$1(unref(formConfig).params.windowTitle), 1)) : createCommentVNode("", !0),
|
|
36538
|
-
createVNode(
|
|
36563
|
+
createVNode(Z, {
|
|
36539
36564
|
ref_key: "form",
|
|
36540
36565
|
ref: form,
|
|
36541
36566
|
data: unref(formData),
|
|
@@ -36546,43 +36571,43 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36546
36571
|
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
36547
36572
|
}, {
|
|
36548
36573
|
default: withCtx(() => [
|
|
36549
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (
|
|
36550
|
-
key:
|
|
36574
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (ee) => (openBlock(), createElementBlock(Fragment, {
|
|
36575
|
+
key: ee.title
|
|
36551
36576
|
}, [
|
|
36552
|
-
|
|
36577
|
+
ee.colType !== "showInGrid" ? (openBlock(), createBlock(G, {
|
|
36553
36578
|
key: 0,
|
|
36554
|
-
field:
|
|
36555
|
-
title:
|
|
36579
|
+
field: ee.field,
|
|
36580
|
+
title: ee.title,
|
|
36556
36581
|
"title-overflow": "tooltip",
|
|
36557
|
-
span:
|
|
36558
|
-
"item-render":
|
|
36559
|
-
"title-prefix":
|
|
36560
|
-
visible:
|
|
36561
|
-
style: normalizeStyle(
|
|
36562
|
-
"visible-method":
|
|
36582
|
+
span: computeSpan.value(ee),
|
|
36583
|
+
"item-render": ee.itemRender,
|
|
36584
|
+
"title-prefix": ee.titlePrefix,
|
|
36585
|
+
visible: ee.displayForm,
|
|
36586
|
+
style: normalizeStyle(ee.style),
|
|
36587
|
+
"visible-method": ee.editRender.props.displayLogic ? displayLogicEvent : null
|
|
36563
36588
|
}, createSlots({ _: 2 }, [
|
|
36564
|
-
|
|
36589
|
+
ee.dataType === "EDITOR" ? {
|
|
36565
36590
|
name: "default",
|
|
36566
36591
|
fn: withCtx(() => [
|
|
36567
36592
|
createVNode(unref(T$1), {
|
|
36568
36593
|
ref_for: !0,
|
|
36569
36594
|
ref_key: "localEditor",
|
|
36570
36595
|
ref: localEditor,
|
|
36571
|
-
modelValue: unref(formData)[
|
|
36572
|
-
"onUpdate:modelValue": (
|
|
36573
|
-
extensions: [getCodeLanguagePlugin(
|
|
36596
|
+
modelValue: unref(formData)[ee.field],
|
|
36597
|
+
"onUpdate:modelValue": (te) => unref(formData)[ee.field] = te,
|
|
36598
|
+
extensions: [getCodeLanguagePlugin(ee.language), unref(EditorView$1).lineWrapping],
|
|
36574
36599
|
"auto-destroy": ""
|
|
36575
36600
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions"])
|
|
36576
36601
|
]),
|
|
36577
36602
|
key: "0"
|
|
36578
36603
|
} : void 0,
|
|
36579
|
-
|
|
36604
|
+
ee.dataType === "TABLE" && (ee.title === "数据源" || ee.title === "数据选项") ? {
|
|
36580
36605
|
name: "title",
|
|
36581
36606
|
fn: withCtx(() => [
|
|
36582
36607
|
createElementVNode("a", {
|
|
36583
|
-
onClick: (
|
|
36608
|
+
onClick: (te) => linkToMenu({ type: ee.title === "数据源" ? "dataSource" : "selector", params: { name: unref(formData)["_" + ee.field + "_NAME"] } }),
|
|
36584
36609
|
href: "javascript: void(0)"
|
|
36585
|
-
}, toDisplayString$1(
|
|
36610
|
+
}, toDisplayString$1(ee.title), 9, _hoisted_3$hS)
|
|
36586
36611
|
]),
|
|
36587
36612
|
key: "1"
|
|
36588
36613
|
} : void 0
|
|
@@ -36594,38 +36619,35 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36594
36619
|
span: "24"
|
|
36595
36620
|
}, {
|
|
36596
36621
|
default: withCtx(() => [
|
|
36597
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
36598
|
-
key:
|
|
36599
|
-
|
|
36600
|
-
|
|
36601
|
-
|
|
36602
|
-
|
|
36603
|
-
|
|
36604
|
-
|
|
36605
|
-
circle: K.shape === "circle",
|
|
36606
|
-
shape: K.shape
|
|
36607
|
-
}
|
|
36608
|
-
), {
|
|
36609
|
-
onClick: (Z) => btnClickFun(K)
|
|
36610
|
-
}), createSlots({
|
|
36622
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ee) => (openBlock(), createBlock(K, {
|
|
36623
|
+
key: ee.id,
|
|
36624
|
+
"auto-insert-space": !0,
|
|
36625
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + ee.css),
|
|
36626
|
+
type: "primary",
|
|
36627
|
+
loading: ee.loading,
|
|
36628
|
+
onClick: (te) => btnClickFun(ee)
|
|
36629
|
+
}, createSlots({
|
|
36611
36630
|
default: withCtx(() => [
|
|
36612
|
-
createTextVNode(" " + toDisplayString$1(
|
|
36631
|
+
createTextVNode(" " + toDisplayString$1(ee.name), 1)
|
|
36613
36632
|
]),
|
|
36614
36633
|
_: 2
|
|
36615
36634
|
}, [
|
|
36616
|
-
|
|
36635
|
+
ee.iconComponent ? {
|
|
36617
36636
|
name: "icon",
|
|
36618
36637
|
fn: withCtx(() => [
|
|
36619
|
-
(
|
|
36638
|
+
createVNode(X, {
|
|
36639
|
+
size: "15",
|
|
36640
|
+
style: { verticalAlign: "middle" }
|
|
36641
|
+
}, {
|
|
36620
36642
|
default: withCtx(() => [
|
|
36621
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
36643
|
+
(openBlock(), createBlock(resolveDynamicComponent(ee.iconComponent)))
|
|
36622
36644
|
]),
|
|
36623
36645
|
_: 2
|
|
36624
|
-
},
|
|
36646
|
+
}, 1024)
|
|
36625
36647
|
]),
|
|
36626
36648
|
key: "0"
|
|
36627
36649
|
} : void 0
|
|
36628
|
-
]),
|
|
36650
|
+
]), 1032, ["style", "loading", "onClick"]))), 128))
|
|
36629
36651
|
]),
|
|
36630
36652
|
_: 1
|
|
36631
36653
|
})) : createCommentVNode("", !0)
|
|
@@ -36976,7 +36998,7 @@ function P$1(Q, H, G, X, K, Z) {
|
|
|
36976
36998
|
renderSlot(Q.$slots, "default")
|
|
36977
36999
|
], 4);
|
|
36978
37000
|
}
|
|
36979
|
-
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "",
|
|
37001
|
+
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_962f70e9_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-962f70e9"), Q = Q(), popScopeId(), Q), _hoisted_1$kU = { class: "slw-window-layout-container" }, _sfc_main$4 = {
|
|
36980
37002
|
__name: "window-layout",
|
|
36981
37003
|
props: {
|
|
36982
37004
|
layoutData: {
|
|
@@ -37016,7 +37038,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
37016
37038
|
});
|
|
37017
37039
|
const le = ref();
|
|
37018
37040
|
return H({ gridReload: ae }), (se, ce) => {
|
|
37019
|
-
const ue = resolveComponent("window-layout", !0);
|
|
37041
|
+
const ue = resolveComponent("window-layout", !0), he = resolveComponent("el-tab-pane"), de = resolveComponent("el-tabs");
|
|
37020
37042
|
return openBlock(), createElementBlock("div", _hoisted_1$kU, [
|
|
37021
37043
|
unref(Z).child && unref(Z).child.length > 0 && unref(Z).mode !== "tab" ? (openBlock(), createBlock(unref(M$1), {
|
|
37022
37044
|
key: 0,
|
|
@@ -37027,27 +37049,27 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
37027
37049
|
onResize: unref(te)
|
|
37028
37050
|
}, {
|
|
37029
37051
|
default: withCtx(() => [
|
|
37030
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Z).child, (
|
|
37031
|
-
key:
|
|
37032
|
-
size:
|
|
37033
|
-
"min-size":
|
|
37052
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Z).child, (pe, fe) => (openBlock(), createBlock(unref(g$1), {
|
|
37053
|
+
key: pe.id,
|
|
37054
|
+
size: pe.splitRate * 100,
|
|
37055
|
+
"min-size": pe.gridData && pe.gridData.type === "FORM" ? 20 : 0
|
|
37034
37056
|
}, {
|
|
37035
37057
|
default: withCtx(() => [
|
|
37036
|
-
|
|
37037
|
-
key:
|
|
37058
|
+
pe.mode === "tab" ? (openBlock(), createBlock(de, {
|
|
37059
|
+
key: pe.id
|
|
37038
37060
|
}, {
|
|
37039
37061
|
default: withCtx(() => [
|
|
37040
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
37041
|
-
key:
|
|
37042
|
-
tab:
|
|
37043
|
-
label:
|
|
37044
|
-
title:
|
|
37062
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(pe.child, (me, ve) => (openBlock(), createBlock(he, {
|
|
37063
|
+
key: me.id,
|
|
37064
|
+
tab: me.name,
|
|
37065
|
+
label: me.name,
|
|
37066
|
+
title: me.name,
|
|
37045
37067
|
forceRender: !0
|
|
37046
37068
|
}, {
|
|
37047
37069
|
default: withCtx(() => [
|
|
37048
37070
|
createVNode(ue, {
|
|
37049
|
-
"layout-data":
|
|
37050
|
-
"onUpdate:layoutData": (
|
|
37071
|
+
"layout-data": pe.child[ve],
|
|
37072
|
+
"onUpdate:layoutData": (ge) => pe.child[ve] = ge
|
|
37051
37073
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])
|
|
37052
37074
|
]),
|
|
37053
37075
|
_: 2
|
|
@@ -37055,10 +37077,10 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
37055
37077
|
]),
|
|
37056
37078
|
_: 2
|
|
37057
37079
|
}, 1024)) : createCommentVNode("", !0),
|
|
37058
|
-
|
|
37080
|
+
pe.mode !== "tab" ? (openBlock(), createBlock(ue, mergeProps$1({
|
|
37059
37081
|
key: 1,
|
|
37060
|
-
"layout-data": unref(Z).child[
|
|
37061
|
-
"onUpdate:layoutData": (
|
|
37082
|
+
"layout-data": unref(Z).child[fe],
|
|
37083
|
+
"onUpdate:layoutData": (me) => unref(Z).child[fe] = me
|
|
37062
37084
|
}, se.$attrs), null, 16, ["layout-data", "onUpdate:layoutData"])) : createCommentVNode("", !0)
|
|
37063
37085
|
]),
|
|
37064
37086
|
_: 2
|
|
@@ -37066,21 +37088,21 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
37066
37088
|
]),
|
|
37067
37089
|
_: 1
|
|
37068
37090
|
}, 8, ["horizontal", "onResize"])) : createCommentVNode("", !0),
|
|
37069
|
-
unref(Z).child && unref(Z).child.length > 0 && unref(Z).mode === "tab" ? (openBlock(), createBlock(
|
|
37091
|
+
unref(Z).child && unref(Z).child.length > 0 && unref(Z).mode === "tab" ? (openBlock(), createBlock(de, {
|
|
37070
37092
|
key: unref(Z).id
|
|
37071
37093
|
}, {
|
|
37072
37094
|
default: withCtx(() => [
|
|
37073
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Z).child, (
|
|
37095
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Z).child, (pe, fe) => (openBlock(), createBlock(he, {
|
|
37074
37096
|
forceRender: !0,
|
|
37075
|
-
key:
|
|
37076
|
-
tab:
|
|
37077
|
-
label:
|
|
37078
|
-
title:
|
|
37097
|
+
key: pe.id,
|
|
37098
|
+
tab: pe.name,
|
|
37099
|
+
label: pe.name,
|
|
37100
|
+
title: pe.name
|
|
37079
37101
|
}, {
|
|
37080
37102
|
default: withCtx(() => [
|
|
37081
37103
|
createVNode(ue, {
|
|
37082
|
-
"layout-data": unref(Z).child[
|
|
37083
|
-
"onUpdate:layoutData": (
|
|
37104
|
+
"layout-data": unref(Z).child[fe],
|
|
37105
|
+
"onUpdate:layoutData": (me) => unref(Z).child[fe] = me
|
|
37084
37106
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])
|
|
37085
37107
|
]),
|
|
37086
37108
|
_: 2
|
|
@@ -37094,14 +37116,14 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
37094
37116
|
ref_key: "xGrid",
|
|
37095
37117
|
ref: oe,
|
|
37096
37118
|
gridData: unref(Z).gridData,
|
|
37097
|
-
"onUpdate:gridData": ce[0] || (ce[0] = (
|
|
37119
|
+
"onUpdate:gridData": ce[0] || (ce[0] = (pe) => unref(Z).gridData = pe)
|
|
37098
37120
|
}, se.$attrs), null, 16, ["gridData"])) : createCommentVNode("", !0),
|
|
37099
37121
|
unref(Z).gridData.type === "FORM" ? (openBlock(), createBlock(unref(_sfc_main$5), {
|
|
37100
37122
|
key: 1,
|
|
37101
37123
|
ref_key: "xForm",
|
|
37102
37124
|
ref: le,
|
|
37103
37125
|
"form-config": unref(Z).gridData,
|
|
37104
|
-
"onUpdate:formConfig": ce[1] || (ce[1] = (
|
|
37126
|
+
"onUpdate:formConfig": ce[1] || (ce[1] = (pe) => unref(Z).gridData = pe),
|
|
37105
37127
|
onGridReload: ae
|
|
37106
37128
|
}, null, 8, ["form-config"])) : createCommentVNode("", !0),
|
|
37107
37129
|
unref(Z).gridData.type == "LINK" ? (openBlock(), createBlock(resolveDynamicComponent(unref(Z).gridData.params.linkComponentView), {
|
|
@@ -37112,7 +37134,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
37112
37134
|
]);
|
|
37113
37135
|
};
|
|
37114
37136
|
}
|
|
37115
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
37137
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-962f70e9"]]);
|
|
37116
37138
|
WindowLayout.name = "slw-window-layout";
|
|
37117
37139
|
WindowLayout.install = (Q) => {
|
|
37118
37140
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -37142,45 +37164,48 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
37142
37164
|
function de() {
|
|
37143
37165
|
H("close");
|
|
37144
37166
|
}
|
|
37145
|
-
return (pe, fe) =>
|
|
37146
|
-
|
|
37147
|
-
|
|
37148
|
-
|
|
37149
|
-
|
|
37150
|
-
|
|
37151
|
-
|
|
37152
|
-
|
|
37153
|
-
|
|
37154
|
-
|
|
37155
|
-
|
|
37156
|
-
|
|
37157
|
-
|
|
37158
|
-
|
|
37159
|
-
|
|
37160
|
-
|
|
37161
|
-
|
|
37162
|
-
|
|
37163
|
-
|
|
37164
|
-
|
|
37165
|
-
|
|
37166
|
-
|
|
37167
|
-
|
|
37168
|
-
|
|
37169
|
-
|
|
37170
|
-
|
|
37171
|
-
|
|
37172
|
-
|
|
37173
|
-
|
|
37174
|
-
|
|
37175
|
-
|
|
37176
|
-
|
|
37177
|
-
|
|
37178
|
-
|
|
37179
|
-
|
|
37180
|
-
|
|
37181
|
-
|
|
37182
|
-
|
|
37183
|
-
|
|
37167
|
+
return (pe, fe) => {
|
|
37168
|
+
const me = resolveComponent("el-dialog");
|
|
37169
|
+
return openBlock(), createBlock(me, {
|
|
37170
|
+
ref_key: "selfModal",
|
|
37171
|
+
ref: se,
|
|
37172
|
+
width: unref(ae),
|
|
37173
|
+
height: unref(le),
|
|
37174
|
+
modelValue: unref(ee),
|
|
37175
|
+
"onUpdate:modelValue": fe[0] || (fe[0] = (ve) => isRef(ee) ? ee.value = ve : ee = ve),
|
|
37176
|
+
visible: unref(ee),
|
|
37177
|
+
"onUpdate:visible": fe[1] || (fe[1] = (ve) => isRef(ee) ? ee.value = ve : ee = ve),
|
|
37178
|
+
fullscreen: unref(ne),
|
|
37179
|
+
"z-index": unref(re),
|
|
37180
|
+
draggable: "",
|
|
37181
|
+
footer: null,
|
|
37182
|
+
"append-to-body": "",
|
|
37183
|
+
transfer: "",
|
|
37184
|
+
resize: "",
|
|
37185
|
+
"close-on-press-escape": "",
|
|
37186
|
+
"destroy-on-close": "",
|
|
37187
|
+
onShow: fe[2] || (fe[2] = (ve) => unref(ne) ? unref(se).maximize() : null),
|
|
37188
|
+
title: Q.title,
|
|
37189
|
+
onClosed: de
|
|
37190
|
+
}, {
|
|
37191
|
+
default: withCtx(() => [
|
|
37192
|
+
Q.actionData.showComponent && Q.actionData.showComponent.indexOf("http") !== -1 ? (openBlock(), createElementBlock("iframe", {
|
|
37193
|
+
key: 0,
|
|
37194
|
+
src: Q.actionData.showComponent,
|
|
37195
|
+
frameborder: "0",
|
|
37196
|
+
width: "100%",
|
|
37197
|
+
height: "100%",
|
|
37198
|
+
scrolling: "auto",
|
|
37199
|
+
style: { "background-color": "#fff" }
|
|
37200
|
+
}, null, 8, _hoisted_1$kT)) : (openBlock(), createBlock(resolveDynamicComponent(unref(te)), {
|
|
37201
|
+
key: 1,
|
|
37202
|
+
componentData: unref(oe),
|
|
37203
|
+
onClose: he
|
|
37204
|
+
}, null, 40, ["componentData"]))
|
|
37205
|
+
]),
|
|
37206
|
+
_: 1
|
|
37207
|
+
}, 8, ["width", "height", "modelValue", "visible", "fullscreen", "z-index", "title"]);
|
|
37208
|
+
};
|
|
37184
37209
|
}
|
|
37185
37210
|
};
|
|
37186
37211
|
_sfc_main$3.name = "slw-custom-modal";
|
|
@@ -37205,51 +37230,54 @@ const _hoisted_1$kS = ["src"], _sfc_main$2 = {
|
|
|
37205
37230
|
const ae = ref();
|
|
37206
37231
|
return watch(() => H.actionData, async (le) => {
|
|
37207
37232
|
le.type === "show" ? (Z.value = !0, le.params && typeof le.params.width < "u" && (re.value = le.params.width), le.params && typeof le.params.height < "u" && (oe.value = le.params.height), le.params && typeof le.params.fullscreen < "u" && (te.value = le.params.fullscreen), ne.value = XEUtils$1.clone(toRaw(le.params), !0), le.showComponent && (ee.value = (await X[`${K}/${le.showComponent}`]()).default)) : Z.value = !1;
|
|
37208
|
-
}, { deep: !0 }), (le, se) =>
|
|
37209
|
-
|
|
37210
|
-
|
|
37211
|
-
|
|
37212
|
-
|
|
37213
|
-
|
|
37214
|
-
|
|
37215
|
-
|
|
37216
|
-
|
|
37217
|
-
|
|
37218
|
-
|
|
37219
|
-
|
|
37220
|
-
|
|
37221
|
-
|
|
37222
|
-
|
|
37223
|
-
|
|
37224
|
-
|
|
37225
|
-
|
|
37226
|
-
|
|
37227
|
-
|
|
37228
|
-
|
|
37229
|
-
|
|
37230
|
-
|
|
37231
|
-
|
|
37232
|
-
|
|
37233
|
-
|
|
37234
|
-
|
|
37235
|
-
|
|
37236
|
-
|
|
37237
|
-
|
|
37238
|
-
|
|
37239
|
-
|
|
37240
|
-
|
|
37241
|
-
|
|
37242
|
-
|
|
37243
|
-
|
|
37244
|
-
|
|
37245
|
-
|
|
37233
|
+
}, { deep: !0 }), (le, se) => {
|
|
37234
|
+
const ce = resolveComponent("el-dialog");
|
|
37235
|
+
return openBlock(), createBlock(ce, {
|
|
37236
|
+
ref_key: "selfModal",
|
|
37237
|
+
ref: ae,
|
|
37238
|
+
width: unref(re),
|
|
37239
|
+
height: unref(oe),
|
|
37240
|
+
modelValue: unref(Z),
|
|
37241
|
+
"onUpdate:modelValue": se[0] || (se[0] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
|
|
37242
|
+
visible: unref(Z),
|
|
37243
|
+
"onUpdate:visible": se[1] || (se[1] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
|
|
37244
|
+
fullscreen: unref(te),
|
|
37245
|
+
zIndex: 1e3,
|
|
37246
|
+
draggable: "",
|
|
37247
|
+
footer: null,
|
|
37248
|
+
"append-to-body": "",
|
|
37249
|
+
transfer: "",
|
|
37250
|
+
resize: "",
|
|
37251
|
+
"esc-closable": "",
|
|
37252
|
+
"destroy-on-close": "",
|
|
37253
|
+
destroyOnClose: "",
|
|
37254
|
+
onShow: se[2] || (se[2] = (ue) => unref(te) ? ae.value.maximize() : null),
|
|
37255
|
+
title: Q.title
|
|
37256
|
+
}, {
|
|
37257
|
+
default: withCtx(() => [
|
|
37258
|
+
Q.actionData.showComponent && Q.actionData.showComponent.indexOf("http") !== -1 ? (openBlock(), createElementBlock("iframe", {
|
|
37259
|
+
key: 0,
|
|
37260
|
+
src: Q.actionData.showComponent,
|
|
37261
|
+
frameborder: "0",
|
|
37262
|
+
width: "100%",
|
|
37263
|
+
height: "100%",
|
|
37264
|
+
scrolling: "auto",
|
|
37265
|
+
style: { "background-color": "#fff" }
|
|
37266
|
+
}, null, 8, _hoisted_1$kS)) : (openBlock(), createBlock(resolveDynamicComponent(unref(ee)), {
|
|
37267
|
+
key: 1,
|
|
37268
|
+
componentData: unref(ne)
|
|
37269
|
+
}, null, 8, ["componentData"]))
|
|
37270
|
+
]),
|
|
37271
|
+
_: 1
|
|
37272
|
+
}, 8, ["width", "height", "modelValue", "visible", "fullscreen", "title"]);
|
|
37273
|
+
};
|
|
37246
37274
|
}
|
|
37247
37275
|
};
|
|
37248
37276
|
_sfc_main$2.name = "slw-preview-modal";
|
|
37249
37277
|
_sfc_main$2.install = (Q) => {
|
|
37250
37278
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
37251
37279
|
};
|
|
37252
|
-
const
|
|
37280
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_7fc03796_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-7fc03796"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "child-table-p" }, "[新增] 关联子表数据", -1)), _sfc_main$1 = {
|
|
37253
37281
|
__name: "window-index",
|
|
37254
37282
|
props: {
|
|
37255
37283
|
windowId: {
|
|
@@ -37265,7 +37293,8 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37265
37293
|
},
|
|
37266
37294
|
emits: [
|
|
37267
37295
|
"update:queryParams",
|
|
37268
|
-
"on-load-success"
|
|
37296
|
+
"on-load-success",
|
|
37297
|
+
"close"
|
|
37269
37298
|
],
|
|
37270
37299
|
setup(__props, { emit }) {
|
|
37271
37300
|
const props = __props, componentMapping = inject("$componentMapping");
|
|
@@ -37281,9 +37310,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37281
37310
|
}
|
|
37282
37311
|
} catch (Q) {
|
|
37283
37312
|
}
|
|
37284
|
-
const preTag = computed(() => props.windowId || ""), modalHeaderSlotName = computed(
|
|
37285
|
-
() => componentMapping.getModalHeaderSlotName()
|
|
37286
|
-
), gridClickEvents = ref([]), addGridClickEvent = (Q) => {
|
|
37313
|
+
const preTag = computed(() => props.windowId || ""), modalHeaderSlotName = computed(() => "header"), gridClickEvents = ref([]), addGridClickEvent = (Q) => {
|
|
37287
37314
|
gridClickEvents.value.push(Q);
|
|
37288
37315
|
};
|
|
37289
37316
|
provide("$addGridClickEvent", addGridClickEvent);
|
|
@@ -37577,12 +37604,12 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37577
37604
|
title: Z[se].name,
|
|
37578
37605
|
span: 6,
|
|
37579
37606
|
itemRender: {
|
|
37580
|
-
name:
|
|
37607
|
+
name: "ElInput",
|
|
37581
37608
|
props: {
|
|
37582
37609
|
placeholder: "请输入" + Z[se].name,
|
|
37583
|
-
|
|
37610
|
+
clearable: !0,
|
|
37584
37611
|
size: "default",
|
|
37585
|
-
|
|
37612
|
+
filterable: !0,
|
|
37586
37613
|
newLine: Z[se].newLine
|
|
37587
37614
|
},
|
|
37588
37615
|
defaultValue: ue || ce,
|
|
@@ -37599,7 +37626,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37599
37626
|
};
|
|
37600
37627
|
switch (Z[se].dataType) {
|
|
37601
37628
|
case "LIST":
|
|
37602
|
-
he.itemRender.name =
|
|
37629
|
+
he.itemRender.name = "ElSelect", he.itemRender.attrs.style = "width: 100%;min-width: 120px;max-width:100%", he.itemRender.props.filterable = !0, Z[se].type === "IN" && (he.itemRender.props.multiple = !0, he.itemRender.props["collapse-tags"] = !0, he.itemRender.props["collapse-tags-tooltip"] = !0), Z[se].selector && Z[se].selector.data && (he.itemRender.options = Z[se].selector.data.map(
|
|
37603
37630
|
(de) => Object.assign(
|
|
37604
37631
|
{
|
|
37605
37632
|
value: de.VALUE,
|
|
@@ -37610,68 +37637,78 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37610
37637
|
));
|
|
37611
37638
|
break;
|
|
37612
37639
|
case "TABLE":
|
|
37613
|
-
he.itemRender.name =
|
|
37640
|
+
he.itemRender.name = "ElSelect", he.itemRender.attrs.style = "width: 100%;min-width: 120px;max-width:100%", he.itemRender.props.filterable = !0, he.querys = Z[se], Z[se].remoteSearch && (he.remoteSearch = Z[se].remoteSearch, he.itemRender.props.loading = !1, he.itemRender.props.filterable = !0, he.itemRender.props = {
|
|
37614
37641
|
...he.itemRender.props,
|
|
37615
|
-
|
|
37642
|
+
remote: !0
|
|
37616
37643
|
});
|
|
37617
37644
|
break;
|
|
37618
37645
|
case "BOOL":
|
|
37619
|
-
he.itemRender.name =
|
|
37646
|
+
he.itemRender.name = "ElSwitch";
|
|
37620
37647
|
break;
|
|
37621
37648
|
case "LONG":
|
|
37622
|
-
he.itemRender.name =
|
|
37649
|
+
he.itemRender.name = "ElInputNumber", he.itemRender.props.type = "number";
|
|
37623
37650
|
break;
|
|
37624
37651
|
case "PLONG":
|
|
37625
|
-
he.itemRender.name =
|
|
37652
|
+
he.itemRender.name = "ElInputNumber", he.itemRender.props.type = "number", he.itemRender.props.min = 0;
|
|
37626
37653
|
break;
|
|
37627
37654
|
case "DOUBLE":
|
|
37628
|
-
he.itemRender.name =
|
|
37655
|
+
he.itemRender.name = "ElInputNumber", he.itemRender.props.type = "number";
|
|
37629
37656
|
break;
|
|
37630
37657
|
case "DATE":
|
|
37631
|
-
he.itemRender.attrs.style = "width: 100%;", Z[se].type === "LT_GT_EQ" ? (he.itemRender.name =
|
|
37658
|
+
he.itemRender.attrs.style = "width: 100%;", Z[se].type === "LT_GT_EQ" ? (he.itemRender.name = "ElDateTimeRangePicker", he.itemRender.props = {
|
|
37632
37659
|
...he.itemRender.props,
|
|
37633
|
-
|
|
37634
|
-
|
|
37660
|
+
type: "daterange",
|
|
37661
|
+
isRange: !0,
|
|
37662
|
+
valueFormat: "YYYY-MM-DD"
|
|
37663
|
+
}) : (he.itemRender.name = "ElDatePicker", he.itemRender.props = {
|
|
37635
37664
|
...he.itemRender.props,
|
|
37636
|
-
|
|
37665
|
+
type: "date",
|
|
37666
|
+
valueFormat: "YYYY-MM-DD"
|
|
37637
37667
|
});
|
|
37638
37668
|
break;
|
|
37639
37669
|
case "DATETIME":
|
|
37640
|
-
he.itemRender.attrs.style = "width: 100%;", Z[se].type === "LT_GT_EQ" ? (he.itemRender.name =
|
|
37670
|
+
he.itemRender.attrs.style = "width: 100%;", Z[se].type === "LT_GT_EQ" ? (he.itemRender.name = "ElDateRangePicker", he.itemRender.props = {
|
|
37641
37671
|
...he.itemRender.props,
|
|
37642
|
-
|
|
37643
|
-
|
|
37672
|
+
type: "datetimerange",
|
|
37673
|
+
isRange: !0,
|
|
37674
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
|
37675
|
+
}) : (he.itemRender.name = "ElDatePicker", he.itemRender.props = {
|
|
37644
37676
|
...he.itemRender.props,
|
|
37645
|
-
|
|
37677
|
+
type: "datetime",
|
|
37678
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
|
37646
37679
|
});
|
|
37647
37680
|
break;
|
|
37648
37681
|
case "TEXT":
|
|
37649
|
-
he.itemRender.name =
|
|
37682
|
+
he.itemRender.name = "ElInput", he.itemRender.props.type = "textarea";
|
|
37650
37683
|
break;
|
|
37651
37684
|
}
|
|
37652
|
-
he.itemRender.props
|
|
37685
|
+
he.itemRender.props.clearable = !0, X.formConfig.items.push(he), ae = ae && Z[se].hide;
|
|
37653
37686
|
}
|
|
37654
37687
|
X.formConfig.items.push({
|
|
37655
37688
|
align: "right",
|
|
37656
37689
|
collapseNode: X.formConfig.items.length > 3,
|
|
37657
37690
|
itemRender: {
|
|
37658
|
-
name:
|
|
37691
|
+
name: "ElButtons",
|
|
37659
37692
|
children: [
|
|
37660
|
-
|
|
37661
|
-
|
|
37662
|
-
|
|
37663
|
-
|
|
37664
|
-
|
|
37665
|
-
|
|
37666
|
-
|
|
37667
|
-
|
|
37668
|
-
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
|
|
37672
|
-
|
|
37673
|
-
|
|
37674
|
-
|
|
37693
|
+
{
|
|
37694
|
+
props: {
|
|
37695
|
+
autoInsertSpace: !0,
|
|
37696
|
+
content: "查询",
|
|
37697
|
+
iconComponent: "Search",
|
|
37698
|
+
nativeType: "submit",
|
|
37699
|
+
type: "primary",
|
|
37700
|
+
size: "default"
|
|
37701
|
+
}
|
|
37702
|
+
},
|
|
37703
|
+
{
|
|
37704
|
+
props: {
|
|
37705
|
+
autoInsertSpace: !0,
|
|
37706
|
+
content: "重置",
|
|
37707
|
+
iconComponent: "Refresh",
|
|
37708
|
+
nativeType: "reset",
|
|
37709
|
+
size: "default"
|
|
37710
|
+
}
|
|
37711
|
+
}
|
|
37675
37712
|
]
|
|
37676
37713
|
},
|
|
37677
37714
|
visible: !ae
|
|
@@ -37771,7 +37808,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37771
37808
|
colType: "showInGrid",
|
|
37772
37809
|
treeNode: !0
|
|
37773
37810
|
};
|
|
37774
|
-
ne && (se.type = "checkbox"), K.type === "TREE_STRUCTURE" &&
|
|
37811
|
+
ne && (se.type = "checkbox"), K.type === "TREE_STRUCTURE" && delete se.width, ae.push(se);
|
|
37775
37812
|
} else
|
|
37776
37813
|
ne && ae.push({
|
|
37777
37814
|
fixed: "left",
|
|
@@ -37796,7 +37833,8 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37796
37833
|
type: "text",
|
|
37797
37834
|
openLabel: "是",
|
|
37798
37835
|
closeLabel: "否",
|
|
37799
|
-
|
|
37836
|
+
activeValue: "Y",
|
|
37837
|
+
inactiveValue: "N",
|
|
37800
37838
|
readonly: oe[se].readOnly,
|
|
37801
37839
|
readonlyLogic: oe[se].readonlyLogic,
|
|
37802
37840
|
disabled: he,
|
|
@@ -37805,7 +37843,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37805
37843
|
enterFunction: oe[se].enterFunction,
|
|
37806
37844
|
clickFunction: oe[se].clickFunction,
|
|
37807
37845
|
dataType: oe[se].dataType,
|
|
37808
|
-
|
|
37846
|
+
clearable: !oe[se].readOnly,
|
|
37809
37847
|
multiple: oe[se].multiRecord,
|
|
37810
37848
|
unitName: oe[se].unitName,
|
|
37811
37849
|
format: oe[se].format,
|
|
@@ -37847,10 +37885,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37847
37885
|
X.rowId = ce;
|
|
37848
37886
|
break;
|
|
37849
37887
|
case "STRING":
|
|
37850
|
-
de.name =
|
|
37888
|
+
de.name = "ElInput";
|
|
37851
37889
|
break;
|
|
37852
37890
|
case "LIST":
|
|
37853
|
-
de.name =
|
|
37891
|
+
de.name = "ElSelect", fe.style = "width: 100px;min-width: 80px;", de.props.filterable = !0, de.props.disabled = oe[se].readOnly, oe[se].selector && oe[se].selector.data && (de.options = oe[se].selector.data.map((ve) => Object.assign(
|
|
37854
37892
|
{
|
|
37855
37893
|
value: ve.VALUE,
|
|
37856
37894
|
label: ve.NAME
|
|
@@ -37861,59 +37899,63 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37861
37899
|
};
|
|
37862
37900
|
break;
|
|
37863
37901
|
case "TABLE":
|
|
37864
|
-
fe.style = "width: 100%;min-width: 80px;", de.props.disabled = oe[se].readOnly, fe.selectorId = oe[se].selectorId, fe.formatter = ({ row: ve, column: ge }) => ve["_" + ge.property + "_NAME"], de.name =
|
|
37902
|
+
fe.style = "width: 100%;min-width: 80px;", de.props.disabled = oe[se].readOnly, fe.selectorId = oe[se].selectorId, fe.formatter = ({ row: ve, column: ge }) => ve["_" + ge.property + "_NAME"], de.name = "ElSelect", de.props.filterable = !0, oe[se].remoteSearch && (de.props.loading = !1, de.props.placeholder = "请输入" + oe[se].name, de.props.filterable = !0, de.props = {
|
|
37865
37903
|
...de.props,
|
|
37866
|
-
|
|
37904
|
+
remote: !0
|
|
37867
37905
|
}), de.props.dropdownStyle = {
|
|
37868
37906
|
"z-index": 5e3
|
|
37869
37907
|
};
|
|
37870
37908
|
break;
|
|
37871
37909
|
case "TREE":
|
|
37872
|
-
de.props.disabled = oe[se].readOnly, fe.selectorId = oe[se].selectorId, fe.formatter = ({ row: ve, column: ge }) => ve["_" + ge.property + "_NAME"], de.name =
|
|
37910
|
+
de.props.disabled = oe[se].readOnly, fe.selectorId = oe[se].selectorId, fe.formatter = ({ row: ve, column: ge }) => ve["_" + ge.property + "_NAME"], de.name = "ElTreeSelect", de.props.treeData = [], de.props.treeDefaultExpandAll = oe[se].expand, de.props.filterable = !0, de.props.dropdownStyle = {
|
|
37873
37911
|
"z-index": 5e3
|
|
37874
37912
|
};
|
|
37875
37913
|
break;
|
|
37876
37914
|
case "EDITOR":
|
|
37877
|
-
de.name =
|
|
37915
|
+
de.name = "ElInput", fe.language = "javascript", oe[se].name.toLowerCase().indexOf("sql") > -1 && (fe.language = "sql");
|
|
37878
37916
|
break;
|
|
37879
37917
|
case "BOOL":
|
|
37880
|
-
de.props.disabled = oe[se].readOnly, de.attrs.disabled = oe[se].readOnly, de.name =
|
|
37918
|
+
de.props.disabled = oe[se].readOnly, de.attrs.disabled = oe[se].readOnly, de.name = "ElSwitch";
|
|
37881
37919
|
break;
|
|
37882
37920
|
case "LONG":
|
|
37883
|
-
de.name =
|
|
37921
|
+
de.name = "ElInputNumber", de.props.type = "number";
|
|
37884
37922
|
break;
|
|
37885
37923
|
case "PLONG":
|
|
37886
|
-
de.name =
|
|
37924
|
+
de.name = "ElInputNumber", de.props.type = "number", de.props.min = 0;
|
|
37887
37925
|
break;
|
|
37888
37926
|
case "DOUBLE":
|
|
37889
|
-
de.name =
|
|
37927
|
+
de.name = "ElInputNumber", de.props.type = "number";
|
|
37890
37928
|
break;
|
|
37891
37929
|
case "DATE":
|
|
37892
|
-
de.name =
|
|
37930
|
+
de.name = "ElDatePicker", de.props = {
|
|
37893
37931
|
...de.props,
|
|
37894
|
-
|
|
37932
|
+
type: "date",
|
|
37933
|
+
valueFormat: "YYYY-MM-DD"
|
|
37895
37934
|
};
|
|
37896
37935
|
break;
|
|
37897
37936
|
case "DATETIME":
|
|
37898
|
-
de.name =
|
|
37937
|
+
de.name = "ElDatePicker", de.props = {
|
|
37899
37938
|
...de.props,
|
|
37900
|
-
|
|
37939
|
+
type: "datetime",
|
|
37940
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
|
37901
37941
|
};
|
|
37902
37942
|
break;
|
|
37903
37943
|
case "TIME":
|
|
37904
|
-
de.name =
|
|
37944
|
+
de.name = "ElTimePicker", de.props = {
|
|
37905
37945
|
...de.props,
|
|
37906
|
-
|
|
37946
|
+
type: "time",
|
|
37947
|
+
format: "HH:mm:ss",
|
|
37948
|
+
valueFormat: "HH:mm:ss"
|
|
37907
37949
|
}, fe.formatter = ({ cellValue: ve, row: ge, column: _e }) => ve;
|
|
37908
37950
|
break;
|
|
37909
37951
|
case "TEXT":
|
|
37910
|
-
de.name =
|
|
37952
|
+
de.name = "ElInput", de.props.type = "textarea";
|
|
37911
37953
|
break;
|
|
37912
37954
|
case "COLOR":
|
|
37913
37955
|
de.name = "ElColorPicker";
|
|
37914
37956
|
break;
|
|
37915
37957
|
default:
|
|
37916
|
-
de.name =
|
|
37958
|
+
de.name = "ElInput";
|
|
37917
37959
|
break;
|
|
37918
37960
|
}
|
|
37919
37961
|
oe[se].placeholder && (de.props.placeholder = oe[se].placeholder);
|
|
@@ -37947,7 +37989,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37947
37989
|
X.checkboxConfig = {
|
|
37948
37990
|
labelField: se[0].code.toUpperCase(),
|
|
37949
37991
|
expandAll: !0
|
|
37950
|
-
}, ae[0].title = se[0].name, ae[0].hasOwnProperty("type") || (ae[0].field = se[0].code.toUpperCase()), K.type === "TREE_STRUCTURE" && (X.showHeader = !1, X.treeConfig.iconOpen = "vxe-icon-square-minus", X.treeConfig.iconClose = "vxe-icon-square-plus", X.toolbarConfig.custom = !1, X.treeConfig.accordion = !1, ae = ae.map((ce) => (ce.
|
|
37992
|
+
}, ae[0].title = se[0].name, ae[0].hasOwnProperty("type") || (ae[0].field = se[0].code.toUpperCase()), K.type === "TREE_STRUCTURE" && (X.showHeader = !1, X.treeConfig.iconOpen = "vxe-icon-square-minus", X.treeConfig.iconClose = "vxe-icon-square-plus", X.toolbarConfig.custom = !1, X.treeConfig.accordion = !1, ae = ae.map((ce) => (ce.visible === !0 && (ce.visible = !1), ce)));
|
|
37951
37993
|
}
|
|
37952
37994
|
X.columns = ae, X.editRules = le;
|
|
37953
37995
|
}
|
|
@@ -37976,6 +38018,8 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
37976
38018
|
preViewLoading.value = !1;
|
|
37977
38019
|
}, preViewxModal = ref(), showPreViewClose = () => {
|
|
37978
38020
|
preViewShow.value = !1, preViewCloseFun.value && evalEvent(preViewCloseFun.value);
|
|
38021
|
+
}, preViewCloseCallback = () => {
|
|
38022
|
+
emit("close");
|
|
37979
38023
|
}, layout = ref(), zoomModal = () => {
|
|
37980
38024
|
}, preViewSubmit = () => {
|
|
37981
38025
|
evalEvent(preViewSubmitFun.value);
|
|
@@ -38039,22 +38083,22 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38039
38083
|
focusInput(Q, H);
|
|
38040
38084
|
}, 3 * 1e3);
|
|
38041
38085
|
}
|
|
38042
|
-
return provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), (Q, H) => {
|
|
38043
|
-
const G = resolveComponent("arrow-back"),
|
|
38086
|
+
return provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), (Q, H) => {
|
|
38087
|
+
const G = resolveComponent("el-checkbox"), X = resolveComponent("arrow-back"), K = resolveComponent("el-icon"), Z = resolveComponent("el-button"), ee = resolveComponent("arrow-forward"), te = resolveComponent("el-button-group"), ne = resolveComponent("el-space"), re = resolveComponent("el-tab-pane"), oe = resolveComponent("el-tabs"), ae = resolveComponent("el-scrollbar"), le = resolveComponent("save"), se = resolveComponent("close"), ce = resolveComponent("el-dialog"), ue = resolveComponent("window-index", !0);
|
|
38044
38088
|
return openBlock(), createElementBlock("div", _hoisted_1$kR, [
|
|
38045
38089
|
(openBlock(), createBlock(unref(WindowLayout), {
|
|
38046
38090
|
ref_key: "layout",
|
|
38047
38091
|
ref: layout,
|
|
38048
38092
|
layoutData: unref(rootLayout),
|
|
38049
|
-
"onUpdate:layoutData": H[0] || (H[0] = (
|
|
38093
|
+
"onUpdate:layoutData": H[0] || (H[0] = (he) => isRef(rootLayout) ? rootLayout.value = he : rootLayout = he),
|
|
38050
38094
|
key: unref(rootLayout).id,
|
|
38051
38095
|
onJumpDesign: jumpDesign
|
|
38052
38096
|
}, null, 8, ["layoutData"])),
|
|
38053
|
-
(
|
|
38097
|
+
createVNode(ce, {
|
|
38054
38098
|
ref_key: "xModal",
|
|
38055
38099
|
ref: xModal,
|
|
38056
38100
|
modelValue: unref(formConfig).showEdit,
|
|
38057
|
-
"onUpdate:modelValue": H[6] || (H[6] = (
|
|
38101
|
+
"onUpdate:modelValue": H[6] || (H[6] = (he) => unref(formConfig).showEdit = he),
|
|
38058
38102
|
zIndex: 1e3,
|
|
38059
38103
|
"append-to-body": "",
|
|
38060
38104
|
transfer: "",
|
|
@@ -38075,63 +38119,69 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38075
38119
|
"before-hide-method": beforeHideMethod,
|
|
38076
38120
|
"before-close": beforeHideMethod
|
|
38077
38121
|
}, createSlots({
|
|
38078
|
-
|
|
38079
|
-
(
|
|
38122
|
+
header: withCtx(() => [
|
|
38123
|
+
createVNode(ne, null, {
|
|
38080
38124
|
default: withCtx(() => [
|
|
38081
38125
|
createElementVNode("span", null, toDisplayString$1(unref(formConfig).windowTitle), 1),
|
|
38082
38126
|
unref(formConfig).openType === "edit" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38083
|
-
(
|
|
38127
|
+
createVNode(G, {
|
|
38084
38128
|
modelValue: unref(isAutoSave),
|
|
38085
|
-
"onUpdate:modelValue": H[1] || (H[1] = (
|
|
38086
|
-
style: { "margin-left": "30px" }
|
|
38087
|
-
|
|
38129
|
+
"onUpdate:modelValue": H[1] || (H[1] = (he) => isRef(isAutoSave) ? isAutoSave.value = he : isAutoSave = he),
|
|
38130
|
+
style: { "margin-left": "30px" },
|
|
38131
|
+
label: "自动保存"
|
|
38132
|
+
}, null, 8, ["modelValue"]),
|
|
38133
|
+
createVNode(te, null, {
|
|
38088
38134
|
default: withCtx(() => [
|
|
38089
|
-
|
|
38090
|
-
|
|
38091
|
-
|
|
38092
|
-
}, 8, ["modelValue"])),
|
|
38093
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$buttongroup")), null, {
|
|
38094
|
-
default: withCtx(() => [
|
|
38095
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$button")), mergeProps$1(unref(componentMapping).getButtonProps({ size: "small" }), {
|
|
38135
|
+
createVNode(Z, {
|
|
38136
|
+
size: "small",
|
|
38137
|
+
"auto-insert-space": !0,
|
|
38096
38138
|
onClick: withModifiers(editPreData, ["stop"]),
|
|
38097
38139
|
onDblclick: H[2] || (H[2] = withModifiers(() => {
|
|
38098
38140
|
}, ["stop"]))
|
|
38099
|
-
}
|
|
38141
|
+
}, {
|
|
38100
38142
|
icon: withCtx(() => [
|
|
38101
|
-
(
|
|
38143
|
+
createVNode(K, {
|
|
38144
|
+
size: "15",
|
|
38145
|
+
style: { verticalAlign: "middle" }
|
|
38146
|
+
}, {
|
|
38102
38147
|
default: withCtx(() => [
|
|
38103
|
-
createVNode(
|
|
38148
|
+
createVNode(X)
|
|
38104
38149
|
]),
|
|
38105
38150
|
_: 1
|
|
38106
|
-
}
|
|
38151
|
+
})
|
|
38107
38152
|
]),
|
|
38108
38153
|
_: 1
|
|
38109
|
-
},
|
|
38110
|
-
(
|
|
38154
|
+
}, 8, ["onClick"]),
|
|
38155
|
+
createVNode(Z, {
|
|
38156
|
+
size: "small",
|
|
38157
|
+
"auto-insert-space": !0,
|
|
38111
38158
|
onClick: withModifiers(editAfterData, ["stop"]),
|
|
38112
38159
|
onDblclick: H[3] || (H[3] = withModifiers(() => {
|
|
38113
38160
|
}, ["stop"]))
|
|
38114
|
-
}
|
|
38161
|
+
}, {
|
|
38115
38162
|
icon: withCtx(() => [
|
|
38116
|
-
(
|
|
38163
|
+
createVNode(K, {
|
|
38164
|
+
size: "15",
|
|
38165
|
+
style: { verticalAlign: "middle" }
|
|
38166
|
+
}, {
|
|
38117
38167
|
default: withCtx(() => [
|
|
38118
|
-
createVNode(
|
|
38168
|
+
createVNode(ee)
|
|
38119
38169
|
]),
|
|
38120
38170
|
_: 1
|
|
38121
|
-
}
|
|
38171
|
+
})
|
|
38122
38172
|
]),
|
|
38123
38173
|
_: 1
|
|
38124
|
-
},
|
|
38174
|
+
}, 8, ["onClick"])
|
|
38125
38175
|
]),
|
|
38126
38176
|
_: 1
|
|
38127
|
-
})
|
|
38177
|
+
})
|
|
38128
38178
|
], 64)) : createCommentVNode("", !0)
|
|
38129
38179
|
]),
|
|
38130
38180
|
_: 1
|
|
38131
|
-
})
|
|
38181
|
+
})
|
|
38132
38182
|
]),
|
|
38133
38183
|
default: withCtx(() => [
|
|
38134
|
-
(
|
|
38184
|
+
createVNode(ae, {
|
|
38135
38185
|
height: getOffsetHeight(),
|
|
38136
38186
|
always: "",
|
|
38137
38187
|
"align-center": "",
|
|
@@ -38143,7 +38193,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38143
38193
|
default: withCtx(() => [
|
|
38144
38194
|
(openBlock(), createBlock(unref(_sfc_main$5), {
|
|
38145
38195
|
"form-config": unref(formConfig),
|
|
38146
|
-
"onUpdate:formConfig": H[4] || (H[4] = (
|
|
38196
|
+
"onUpdate:formConfig": H[4] || (H[4] = (he) => isRef(formConfig) ? formConfig.value = he : formConfig = he),
|
|
38147
38197
|
ref_key: "xForm",
|
|
38148
38198
|
ref: xForm,
|
|
38149
38199
|
key: unref(formConfig).formData[unref(formConfig).rowId],
|
|
@@ -38152,20 +38202,20 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38152
38202
|
}, null, 8, ["form-config"])),
|
|
38153
38203
|
unref(formConfig).params.addChildData && unref(formConfig).childForm ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38154
38204
|
_hoisted_2$kQ,
|
|
38155
|
-
createVNode(
|
|
38205
|
+
createVNode(oe, { class: "child-tab" }, {
|
|
38156
38206
|
default: withCtx(() => [
|
|
38157
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(formConfig).childForm), (
|
|
38207
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(formConfig).childForm), (he, de) => (openBlock(), createBlock(re, {
|
|
38158
38208
|
class: "child-tab-pane",
|
|
38159
|
-
key:
|
|
38160
|
-
tab:
|
|
38161
|
-
label:
|
|
38162
|
-
title:
|
|
38209
|
+
key: he.id,
|
|
38210
|
+
tab: he.name,
|
|
38211
|
+
label: he.name,
|
|
38212
|
+
title: he.name,
|
|
38163
38213
|
forceRender: !0
|
|
38164
38214
|
}, {
|
|
38165
38215
|
default: withCtx(() => [
|
|
38166
38216
|
createVNode(unref(WindowGrid), {
|
|
38167
|
-
gridData:
|
|
38168
|
-
"onUpdate:gridData": (
|
|
38217
|
+
gridData: he.gridData,
|
|
38218
|
+
"onUpdate:gridData": (pe) => he.gridData = pe
|
|
38169
38219
|
}, null, 8, ["gridData", "onUpdate:gridData"])
|
|
38170
38220
|
]),
|
|
38171
38221
|
_: 2
|
|
@@ -38176,65 +38226,73 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38176
38226
|
], 64)) : createCommentVNode("", !0)
|
|
38177
38227
|
]),
|
|
38178
38228
|
_: 1
|
|
38179
|
-
}, 8, ["height", "style"])
|
|
38229
|
+
}, 8, ["height", "style"])
|
|
38180
38230
|
]),
|
|
38181
38231
|
_: 2
|
|
38182
38232
|
}, [
|
|
38183
38233
|
unref(formConfig).openType === "edit" || unref(formConfig).openType === "new" ? {
|
|
38184
38234
|
name: "footer",
|
|
38185
38235
|
fn: withCtx(() => [
|
|
38186
|
-
(
|
|
38236
|
+
createVNode(ne, null, {
|
|
38187
38237
|
default: withCtx(() => [
|
|
38188
|
-
(
|
|
38189
|
-
|
|
38190
|
-
|
|
38191
|
-
|
|
38192
|
-
|
|
38193
|
-
|
|
38194
|
-
|
|
38195
|
-
), {
|
|
38238
|
+
createVNode(Z, {
|
|
38239
|
+
htmlType: "submit",
|
|
38240
|
+
type: "primary",
|
|
38241
|
+
"auto-insert-space": !0,
|
|
38242
|
+
loading: unref(saveDataBtnLoading),
|
|
38243
|
+
onClick: saveData
|
|
38244
|
+
}, {
|
|
38196
38245
|
icon: withCtx(() => [
|
|
38197
|
-
(
|
|
38246
|
+
createVNode(K, {
|
|
38247
|
+
size: "15",
|
|
38248
|
+
style: { verticalAlign: "middle" }
|
|
38249
|
+
}, {
|
|
38198
38250
|
default: withCtx(() => [
|
|
38199
|
-
createVNode(
|
|
38251
|
+
createVNode(le)
|
|
38200
38252
|
]),
|
|
38201
38253
|
_: 1
|
|
38202
|
-
}
|
|
38254
|
+
})
|
|
38203
38255
|
]),
|
|
38204
38256
|
default: withCtx(() => [
|
|
38205
|
-
createTextVNode("保存 ")
|
|
38257
|
+
createTextVNode(" 保存 ")
|
|
38206
38258
|
]),
|
|
38207
38259
|
_: 1
|
|
38208
|
-
},
|
|
38209
|
-
(
|
|
38260
|
+
}, 8, ["loading"]),
|
|
38261
|
+
createVNode(Z, {
|
|
38262
|
+
"auto-insert-space": !0,
|
|
38263
|
+
onClick: closeEditWin
|
|
38264
|
+
}, {
|
|
38210
38265
|
icon: withCtx(() => [
|
|
38211
|
-
(
|
|
38266
|
+
createVNode(K, {
|
|
38267
|
+
size: "15",
|
|
38268
|
+
style: { verticalAlign: "middle" }
|
|
38269
|
+
}, {
|
|
38212
38270
|
default: withCtx(() => [
|
|
38213
|
-
createVNode(
|
|
38271
|
+
createVNode(se)
|
|
38214
38272
|
]),
|
|
38215
38273
|
_: 1
|
|
38216
|
-
}
|
|
38274
|
+
})
|
|
38217
38275
|
]),
|
|
38218
38276
|
default: withCtx(() => [
|
|
38219
|
-
createTextVNode("取消 ")
|
|
38277
|
+
createTextVNode(" 取消 ")
|
|
38220
38278
|
]),
|
|
38221
38279
|
_: 1
|
|
38222
|
-
})
|
|
38280
|
+
})
|
|
38223
38281
|
]),
|
|
38224
38282
|
_: 1
|
|
38225
|
-
})
|
|
38283
|
+
})
|
|
38226
38284
|
]),
|
|
38227
38285
|
key: "0"
|
|
38228
38286
|
} : void 0
|
|
38229
|
-
]),
|
|
38230
|
-
(
|
|
38287
|
+
]), 1032, ["modelValue", "visible", "width", "height", "show-footer", "footer"]),
|
|
38288
|
+
createVNode(ce, {
|
|
38231
38289
|
ref_key: "preViewxModal",
|
|
38232
38290
|
ref: preViewxModal,
|
|
38233
38291
|
class: "preViewx-modal",
|
|
38234
38292
|
modelValue: unref(preViewShow),
|
|
38235
|
-
"onUpdate:modelValue": H[
|
|
38293
|
+
"onUpdate:modelValue": H[8] || (H[8] = (he) => isRef(preViewShow) ? preViewShow.value = he : preViewShow = he),
|
|
38236
38294
|
visible: unref(preViewShow),
|
|
38237
|
-
"onUpdate:visible": H[
|
|
38295
|
+
"onUpdate:visible": H[9] || (H[9] = (he) => isRef(preViewShow) ? preViewShow.value = he : preViewShow = he),
|
|
38238
38296
|
"append-to-body": "",
|
|
38239
38297
|
transfer: "",
|
|
38240
38298
|
zIndex: 1e3,
|
|
@@ -38253,13 +38311,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38253
38311
|
onZoom: zoomModal
|
|
38254
38312
|
}, createSlots({
|
|
38255
38313
|
default: withCtx(() => [
|
|
38256
|
-
(openBlock(), createBlock(
|
|
38314
|
+
(openBlock(), createBlock(ue, {
|
|
38257
38315
|
"window-id": unref(preWindowId),
|
|
38258
38316
|
"query-params": unref(preQueryParams),
|
|
38259
|
-
"onUpdate:queryParams": H[7] || (H[7] = (
|
|
38317
|
+
"onUpdate:queryParams": H[7] || (H[7] = (he) => isRef(preQueryParams) ? preQueryParams.value = he : preQueryParams = he),
|
|
38260
38318
|
key: unref(preWindowId),
|
|
38261
38319
|
height: unref(preViewHeight) ? unref(preViewHeight) : "80%",
|
|
38262
|
-
onOnLoadSuccess: preViewLoadSuccess
|
|
38320
|
+
onOnLoadSuccess: preViewLoadSuccess,
|
|
38321
|
+
onClose: showPreViewClose
|
|
38263
38322
|
}, null, 8, ["window-id", "query-params", "height"]))
|
|
38264
38323
|
]),
|
|
38265
38324
|
_: 2
|
|
@@ -38267,32 +38326,26 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38267
38326
|
unref(preViewFooterShow) ? {
|
|
38268
38327
|
name: "footer",
|
|
38269
38328
|
fn: withCtx(() => [
|
|
38270
|
-
(
|
|
38271
|
-
|
|
38272
|
-
|
|
38273
|
-
|
|
38274
|
-
|
|
38275
|
-
unref(componentMapping).getButtonProps({
|
|
38276
|
-
htmlType: "submit",
|
|
38277
|
-
type: "primary"
|
|
38278
|
-
}),
|
|
38279
|
-
{ onClick: preViewSubmit }
|
|
38280
|
-
), {
|
|
38329
|
+
createVNode(Z, {
|
|
38330
|
+
nativeType: "submit",
|
|
38331
|
+
type: "primary",
|
|
38332
|
+
onClick: preViewSubmit
|
|
38333
|
+
}, {
|
|
38281
38334
|
default: withCtx(() => [
|
|
38282
|
-
createTextVNode("提交 ")
|
|
38335
|
+
createTextVNode(" 提交 ")
|
|
38283
38336
|
]),
|
|
38284
38337
|
_: 1
|
|
38285
|
-
}
|
|
38286
|
-
(
|
|
38338
|
+
}),
|
|
38339
|
+
createVNode(Z, { onClick: closePreModal }, {
|
|
38287
38340
|
default: withCtx(() => [
|
|
38288
|
-
createTextVNode("取消")
|
|
38341
|
+
createTextVNode(" 取消 ")
|
|
38289
38342
|
]),
|
|
38290
38343
|
_: 1
|
|
38291
|
-
})
|
|
38344
|
+
})
|
|
38292
38345
|
]),
|
|
38293
38346
|
key: "0"
|
|
38294
38347
|
} : void 0
|
|
38295
|
-
]),
|
|
38348
|
+
]), 1032, ["modelValue", "visible", "title", "width", "resize", "loading", "show-footer", "show-zoom"]),
|
|
38296
38349
|
createVNode(unref(_sfc_main$3), {
|
|
38297
38350
|
actionData: unref(componentModalData),
|
|
38298
38351
|
title: unref(componentModalTitle),
|
|
@@ -38305,7 +38358,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_ca69851a_lang = "", _withSco
|
|
|
38305
38358
|
]);
|
|
38306
38359
|
};
|
|
38307
38360
|
}
|
|
38308
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
38361
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7fc03796"]]);
|
|
38309
38362
|
WindowIndex.name = "slw-window-index";
|
|
38310
38363
|
WindowIndex.install = (Q) => {
|
|
38311
38364
|
Q.component(WindowIndex.name, WindowIndex);
|