slw 0.10.12 → 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_017a6064_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")
|
|
@@ -10525,7 +10543,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_017a6064_lang = "", _withScop
|
|
|
10525
10543
|
]);
|
|
10526
10544
|
};
|
|
10527
10545
|
}
|
|
10528
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10546
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2fe02273"]]);
|
|
10529
10547
|
WindowGrid.name = "slw-window-grid";
|
|
10530
10548
|
WindowGrid.install = (H) => {
|
|
10531
10549
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62691,7 +62709,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62691
62709
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62692
62710
|
setup(H, { emit: Q }) {
|
|
62693
62711
|
const Z = H, X = defineAsyncComponent(
|
|
62694
|
-
() => import("./index-
|
|
62712
|
+
() => import("./index-1f2fbdd4.js")
|
|
62695
62713
|
);
|
|
62696
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);
|
|
62697
62715
|
re.value = createDesigner();
|
|
@@ -147831,7 +147849,7 @@ function reConsole() {
|
|
|
147831
147849
|
}
|
|
147832
147850
|
}
|
|
147833
147851
|
console.info(
|
|
147834
|
-
`%cSLW %cVer 0.10.
|
|
147852
|
+
`%cSLW %cVer 0.10.13%c
|
|
147835
147853
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147836
147854
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147837
147855
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED