slw 0.10.11 → 0.10.13
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
|
|
2
|
-
import { _ as x, d as S, a as L, u as N } from "./index-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-8a515263.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -8533,7 +8533,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8533
8533
|
PictureUpload.install = (H) => {
|
|
8534
8534
|
H.component(PictureUpload.name, PictureUpload);
|
|
8535
8535
|
};
|
|
8536
|
-
const
|
|
8536
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_2fe02273_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-2fe02273"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
|
|
8537
8537
|
_hoisted_1$l1,
|
|
8538
8538
|
_hoisted_2$kY,
|
|
8539
8539
|
_hoisted_3$hY
|
|
@@ -9133,6 +9133,24 @@ const windowGrid_vue_vue_type_style_index_0_scoped_cc35f3fa_lang = "", _withScop
|
|
|
9133
9133
|
case "EXPORT":
|
|
9134
9134
|
exportData();
|
|
9135
9135
|
break;
|
|
9136
|
+
case "SUBMIT":
|
|
9137
|
+
gridData.value.type === "EDIT_GRID" ? $vxeConfirm($T("确定批量保存?"), void 0, { zIndex: 3e3 }).then((ne) => {
|
|
9138
|
+
if (ne === "confirm") {
|
|
9139
|
+
let { insertRecords: re, updateRecords: oe } = getGrid().getRecordset();
|
|
9140
|
+
re = re.map((le) => (le[gridData.value.rowId] = "", le));
|
|
9141
|
+
let ae = {
|
|
9142
|
+
_region_id: gridData.value.params._region_id,
|
|
9143
|
+
_button_id: H._button_id,
|
|
9144
|
+
datas: re.concat(oe)
|
|
9145
|
+
};
|
|
9146
|
+
axios.post("window/batchSave", ae, "json").then((le) => {
|
|
9147
|
+
le.status === 200 && le.data.result ? (reload(), $message.success($T(le.data.msg), "info")) : $message.error(le.data.msg);
|
|
9148
|
+
}).catch((le) => {
|
|
9149
|
+
$message.error(le.msg);
|
|
9150
|
+
});
|
|
9151
|
+
}
|
|
9152
|
+
}) : $message.error("仅支持可编辑表格批量新增!");
|
|
9153
|
+
break;
|
|
9136
9154
|
case "EVENT":
|
|
9137
9155
|
const te = H.code.toUpperCase();
|
|
9138
9156
|
if (te == "NEW_DESIGNER")
|
|
@@ -10137,6 +10155,36 @@ const windowGrid_vue_vue_type_style_index_0_scoped_cc35f3fa_lang = "", _withScop
|
|
|
10137
10155
|
}, setEditGridInputSlotsVuePath = async (H, Q, Z = "append") => {
|
|
10138
10156
|
const G = getCurRegion().columns.filter((K) => K.field == Q.toUpperCase())[0];
|
|
10139
10157
|
G && (G.editRender.slotsComponent = markRaw((await $components[`${$componentsPath}/${H}`]()).default), G.editRender.props.slots = Z);
|
|
10158
|
+
}, setEditGridColumnSelectOption = (H, Q = []) => {
|
|
10159
|
+
const X = getCurRegion().columns.filter((G) => G.field == H.toUpperCase())[0];
|
|
10160
|
+
X && (X.editRender.options = Q);
|
|
10161
|
+
}, getEditGridColumnSelectOption = async (H, Q) => {
|
|
10162
|
+
let Z = getCurRegion();
|
|
10163
|
+
H && (Z = getRegion(H));
|
|
10164
|
+
let X = [];
|
|
10165
|
+
if (Z) {
|
|
10166
|
+
let G = Z.columns.filter((K) => K.field == Q.toUpperCase())[0];
|
|
10167
|
+
if (G.editRender.options)
|
|
10168
|
+
X = G.editRender.options;
|
|
10169
|
+
else {
|
|
10170
|
+
const K = await axios.post(
|
|
10171
|
+
"/window/selector",
|
|
10172
|
+
$qs.stringify({
|
|
10173
|
+
_region_id: Z.params._region_id,
|
|
10174
|
+
_field_id: G.querys.id,
|
|
10175
|
+
_select_id: G.querys.selectorId
|
|
10176
|
+
})
|
|
10177
|
+
);
|
|
10178
|
+
K.data.result && K.data.data && (X = K.data.data.map((ee) => Object.assign(
|
|
10179
|
+
{
|
|
10180
|
+
value: ee.VALUE,
|
|
10181
|
+
label: ee.NAME
|
|
10182
|
+
},
|
|
10183
|
+
ee
|
|
10184
|
+
)));
|
|
10185
|
+
}
|
|
10186
|
+
}
|
|
10187
|
+
return X;
|
|
10140
10188
|
};
|
|
10141
10189
|
return onMounted(async () => {
|
|
10142
10190
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10209,7 +10257,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_cc35f3fa_lang = "", _withScop
|
|
|
10209
10257
|
search(H);
|
|
10210
10258
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (H) => {
|
|
10211
10259
|
setChecked(H);
|
|
10212
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData(), curRegion.value.setQueryFormItemProperty = (H, Q, Z) => setQueryFormItemProperty(H, Q, Z);
|
|
10260
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData(), curRegion.value.setQueryFormItemProperty = (H, Q, Z) => setQueryFormItemProperty(H, Q, Z), curRegion.value.setEditGridColumnSelectOption = (H, Q) => setEditGridColumnSelectOption(H, Q), curRegion.value.getEditGridColumnSelectOption = (H, Q) => getEditGridColumnSelectOption(H, Q);
|
|
10213
10261
|
}), onUnmounted(() => {
|
|
10214
10262
|
checkedGridVisible.value = !1, checkedGridFixed.value = !1, document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10215
10263
|
}), onDeactivated(() => {
|
|
@@ -10495,7 +10543,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_cc35f3fa_lang = "", _withScop
|
|
|
10495
10543
|
]);
|
|
10496
10544
|
};
|
|
10497
10545
|
}
|
|
10498
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10546
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2fe02273"]]);
|
|
10499
10547
|
WindowGrid.name = "slw-window-grid";
|
|
10500
10548
|
WindowGrid.install = (H) => {
|
|
10501
10549
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62661,7 +62709,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62661
62709
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62662
62710
|
setup(H, { emit: Q }) {
|
|
62663
62711
|
const Z = H, X = defineAsyncComponent(
|
|
62664
|
-
() => import("./index-
|
|
62712
|
+
() => import("./index-1f2fbdd4.js")
|
|
62665
62713
|
);
|
|
62666
62714
|
let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
|
|
62667
62715
|
re.value = createDesigner();
|
|
@@ -147801,7 +147849,7 @@ function reConsole() {
|
|
|
147801
147849
|
}
|
|
147802
147850
|
}
|
|
147803
147851
|
console.info(
|
|
147804
|
-
`%cSLW %cVer 0.10.
|
|
147852
|
+
`%cSLW %cVer 0.10.13%c
|
|
147805
147853
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147806
147854
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147807
147855
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED