slw 0.9.43 → 0.9.45
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-d68204b3.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (Q) => {
|
|
8526
8526
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_64a16910_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-64a16910"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
|
|
@@ -9021,7 +9021,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
9021
9021
|
isImport.value = !0, importBtnId.value = Q._button_id, uploadData.value = {
|
|
9022
9022
|
_region_id: gridData.value.params._region_id,
|
|
9023
9023
|
_button_id: importBtnId.value
|
|
9024
|
-
}, gridData.value.params.parentRowId && (uploadData.value[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue);
|
|
9024
|
+
}, gridData.value.rowId && (uploadData.value[gridData.value.rowId] = getSelectRecord()[gridData.value.rowId]), gridData.value.params.parentRowId && (uploadData.value[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue);
|
|
9025
9025
|
break;
|
|
9026
9026
|
case "EXPORT":
|
|
9027
9027
|
exportData();
|
|
@@ -9858,10 +9858,13 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
9858
9858
|
G.params.newDownTemplateUrl = H;
|
|
9859
9859
|
}, beforeExcelUpload = async (Q) => {
|
|
9860
9860
|
let H = getCurRegion();
|
|
9861
|
-
return H.params.beforeUploadFn ? await H.params.beforeUploadFn() : !0;
|
|
9861
|
+
return H.params.addUploadData && (uploadData.value = Object.assign(uploadData.value, H.params.addUploadData)), H.params.beforeUploadFn ? await H.params.beforeUploadFn() : !0;
|
|
9862
9862
|
}, setBeforeUploadFn = (Q) => {
|
|
9863
9863
|
let H = getCurRegion();
|
|
9864
9864
|
H.params.beforeUploadFn = Q;
|
|
9865
|
+
}, setUploadData = (Q) => {
|
|
9866
|
+
let H = getCurRegion();
|
|
9867
|
+
H.params.addUploadData = Object.assign({}, Q);
|
|
9865
9868
|
}, editGridFunList = [];
|
|
9866
9869
|
let oldInsertRecords = null;
|
|
9867
9870
|
const addEditGridDataChangeFun = (Q) => {
|
|
@@ -10002,7 +10005,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
10002
10005
|
search(Q);
|
|
10003
10006
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
10004
10007
|
setChecked(Q);
|
|
10005
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, G, X) => setRowCellColor(Q, H, G, X), curRegion.value.setFormSelectOption = (Q, H, G) => setFormSelectOption(Q, H, G), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H);
|
|
10008
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, G, X) => setRowCellColor(Q, H, G, X), curRegion.value.setFormSelectOption = (Q, H, G) => setFormSelectOption(Q, H, G), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H), curRegion.value.setUploadData = (Q) => setUploadData(Q);
|
|
10006
10009
|
}), onUnmounted(() => {
|
|
10007
10010
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10008
10011
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -10174,7 +10177,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
10174
10177
|
]);
|
|
10175
10178
|
};
|
|
10176
10179
|
}
|
|
10177
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10180
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-64a16910"]]);
|
|
10178
10181
|
WindowGrid.name = "slw-window-grid";
|
|
10179
10182
|
WindowGrid.install = (Q) => {
|
|
10180
10183
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42488,7 +42491,7 @@ var js = js$1.exports;
|
|
|
42488
42491
|
})(Q);
|
|
42489
42492
|
})(js$1);
|
|
42490
42493
|
var jsExports = js$1.exports;
|
|
42491
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42494
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d4d8ec11_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-d4d8ec11"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42492
42495
|
key: 0,
|
|
42493
42496
|
class: "form-header-box"
|
|
42494
42497
|
}, _hoisted_3$hX = {
|
|
@@ -43156,8 +43159,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43156
43159
|
);
|
|
43157
43160
|
return Q.data.result && Q.data.list.length > 0 ? (uploadConfig.value.fileList = Q.data.list, !0) : (formLoading.value = !1, !1);
|
|
43158
43161
|
}, updatePictureDataId = (Q) => {
|
|
43159
|
-
let H =
|
|
43160
|
-
|
|
43162
|
+
let H = [];
|
|
43163
|
+
Object.values(fieldPreviewMap.value).forEach((G) => {
|
|
43164
|
+
G.forEach((X) => {
|
|
43165
|
+
H.push(X.id);
|
|
43166
|
+
});
|
|
43167
|
+
}), axios.post(`/dataFile/update/${Q}`, { fileIds: H.toString() }).then((G) => {
|
|
43161
43168
|
var X;
|
|
43162
43169
|
(X = G == null ? void 0 : G.data) != null && X.result || $message.error(G.msg);
|
|
43163
43170
|
});
|
|
@@ -43482,7 +43489,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43482
43489
|
]);
|
|
43483
43490
|
};
|
|
43484
43491
|
}
|
|
43485
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
43492
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-d4d8ec11"]]);
|
|
43486
43493
|
WindowForm.name = "slw-window-form";
|
|
43487
43494
|
WindowForm.install = (Q) => {
|
|
43488
43495
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59250,7 +59257,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59250
59257
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59251
59258
|
setup(Q, { emit: H }) {
|
|
59252
59259
|
const G = Q, X = defineAsyncComponent(
|
|
59253
|
-
() => import("./index-
|
|
59260
|
+
() => import("./index-d1283867.js")
|
|
59254
59261
|
);
|
|
59255
59262
|
let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
|
|
59256
59263
|
re.value = createDesigner();
|
|
@@ -144248,7 +144255,7 @@ function reConsole() {
|
|
|
144248
144255
|
}
|
|
144249
144256
|
}
|
|
144250
144257
|
console.info(
|
|
144251
|
-
`%cSLW %cVer 0.9.
|
|
144258
|
+
`%cSLW %cVer 0.9.45%c
|
|
144252
144259
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144253
144260
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144254
144261
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED