slw 1.0.0-beta.17.2 → 1.0.0-beta.17.4

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,7 +1,7 @@
1
1
  var Po = Object.defineProperty;
2
2
  var Do = (G, H, X) => H in G ? Po(G, H, { enumerable: !0, configurable: !0, writable: !0, value: X }) : G[H] = X;
3
3
  var Eo = (G, H, X) => (Do(G, typeof H != "symbol" ? H + "" : H, X), X);
4
- import { shallowRef, watchEffect, readonly, ref as ref$2, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version as version$8, isRef, unref, computed, reactive, toRefs as toRefs$2, toRef as toRef$2, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$3, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode as createVNode$1, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderList, createBlock, onActivated, onDeactivated, toRaw, mergeProps as mergeProps$1, normalizeStyle as normalizeStyle$1, createSlots, toDisplayString, resolveDynamicComponent, createTextVNode, normalizeProps, guardReactiveProps, renderSlot, withModifiers, defineAsyncComponent, isVNode, Comment, Text as Text$3, Transition, Teleport, render as render$2, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$2, createStaticVNode, createApp } from "vue";
4
+ import { shallowRef, watchEffect, readonly, ref as ref$2, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version as version$8, isRef, unref, computed, reactive, toRefs as toRefs$2, toRef as toRef$2, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$3, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode as createVNode$1, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderList, createBlock, onActivated, onDeactivated, toRaw, mergeProps as mergeProps$1, normalizeStyle as normalizeStyle$1, createSlots, toDisplayString, resolveDynamicComponent, createTextVNode, normalizeProps, guardReactiveProps, withModifiers, renderSlot, defineAsyncComponent, isVNode, Comment, Text as Text$3, Transition, Teleport, render as render$2, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$2, createStaticVNode, createApp } from "vue";
5
5
  import { useRoute } from "vue-router";
6
6
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function getDefaultExportFromCjs(G) {
@@ -53257,7 +53257,7 @@ WindowCharts.name = "slw-window-charts";
53257
53257
  WindowCharts.install = (G) => {
53258
53258
  G.component(WindowCharts.name, WindowCharts);
53259
53259
  };
53260
- const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-72deae66"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53260
+ const windowGrid_vue_vue_type_style_index_0_scoped_e0ef89f5_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-e0ef89f5"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53261
53261
  class: "slw-window-grid-container",
53262
53262
  style: { height: "100%" }
53263
53263
  }, _hoisted_2$k_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$h_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$aA = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4_ = [
@@ -53267,13 +53267,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
53267
53267
  ], _hoisted_6$22 = {
53268
53268
  key: 0,
53269
53269
  style: { verticalAlign: "middle" }
53270
- }, _hoisted_7$15 = ["id"], _hoisted_8$I = { class: "vxe-grid--form-wrapper" }, _hoisted_9$o = ["id"], _hoisted_10$r = ["onClick"], _hoisted_11$g = { class: "slw-form-item" }, _hoisted_12$8 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "下限:", -1)), _hoisted_13$4 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", null, "—", -1)), _hoisted_14$1 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "上限:", -1)), _hoisted_15$1 = ["id"], _hoisted_16$3 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("i", {
53270
+ }, _hoisted_7$15 = ["id"], _hoisted_8$I = { class: "vxe-grid--form-wrapper" }, _hoisted_9$o = ["id"], _hoisted_10$r = ["onClick"], _hoisted_11$h = { class: "slw-form-item" }, _hoisted_12$8 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "下限:", -1)), _hoisted_13$4 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", null, "—", -1)), _hoisted_14$1 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "el-input__icon" }, "上限:", -1)), _hoisted_15$1 = ["id"], _hoisted_16$3 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("i", {
53271
53271
  class: "iconfont icon-carryout",
53272
53272
  style: { cursor: "pointer", padding: "0" }
53273
53273
  }, null, -1)), _hoisted_17 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_18 = {
53274
53274
  key: 0,
53275
- class: "pager-left-wrapper"
53276
- }, _hoisted_19 = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { style: { width: "45px", "text-align": "left" } }, "全量", -1)), _hoisted_20 = { style: { padding: "20px 0" } }, _sfc_main$g = {
53275
+ class: "pager-left-wrapper",
53276
+ title: "全量数据全选/取消"
53277
+ }, _hoisted_19 = { style: { padding: "20px 0" } }, _sfc_main$g = {
53277
53278
  __name: "window-grid",
53278
53279
  props: {
53279
53280
  gridData: {
@@ -54821,14 +54822,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
54821
54822
  var X;
54822
54823
  const H = await axios.post("/window/data/" + gridData.value.params.datasourceCode, G);
54823
54824
  return ((X = H == null ? void 0 : H.data) == null ? void 0 : X.data) || [];
54825
+ }, headerPagerToolCheckedClick = () => {
54826
+ pagerToolChecked.value = !pagerToolChecked.value, headerPagerToolCheckedChange({ checked: pagerToolChecked.value });
54824
54827
  }, headerPagerToolCheckedChange = async ({ checked: G, $event: H }) => {
54825
54828
  let X = getCurRegion();
54826
54829
  const { data: Q } = curRegion.value.getProxyInfo();
54827
54830
  G ? Q.forEach((K) => {
54828
54831
  X.setCheckboxRow(K, !0);
54829
- }) : Q.forEach((K) => {
54832
+ }) : (Q.forEach((K) => {
54830
54833
  removeRowEvent(K);
54831
- });
54834
+ }), removeAllRowEvent());
54832
54835
  }, remoteMethod = async (G, H, X) => {
54833
54836
  let Q = [], K = await axios.post(
54834
54837
  "/window/selector",
@@ -54890,7 +54893,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
54890
54893
  queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[G]);
54891
54894
  }), gridData.value.columns.forEach((G) => {
54892
54895
  G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (G.events.change = onFieldChange, G.events["on-change"] = onFieldChange, G.events.keyup = onFieldEnter, G.editRender.events = G.events, G.itemRender.events = G.events), G.itemRender && G.itemRender.props._select_id && (formSelectMap.value[G.id] = G);
54893
- }), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
54896
+ }), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), setTimeout(() => {
54897
+ let G = getCurRegion().$el.querySelector(".vxe-table--main-wrapper .vxe-table--header-wrapper .vxe-cell--checkbox");
54898
+ G.title = "当页全选/取消";
54899
+ }, 1500), curRegion.value.closeModal = () => {
54894
54900
  closeModal && closeModal();
54895
54901
  }, curRegion.value.closeDrawer = () => {
54896
54902
  closeDrawer();
@@ -55042,7 +55048,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
55042
55048
  fe.itemRender.name === "ElInputNumber" ? {
55043
55049
  name: "default",
55044
55050
  fn: withCtx(() => [
55045
- createElementVNode("div", _hoisted_11$g, [
55051
+ createElementVNode("div", _hoisted_11$h, [
55046
55052
  createVNode$1(ee, {
55047
55053
  class: "slw-input-number",
55048
55054
  modelValue: unref(queryFormData)[fe.field],
@@ -55178,9 +55184,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
55178
55184
  var fe;
55179
55185
  return [
55180
55186
  (fe = unref(gridData).pagerConfig.slots) != null && fe.left ? (openBlock(), createElementBlock("div", _hoisted_18, [
55181
- _hoisted_19,
55187
+ createElementVNode("span", {
55188
+ style: { width: "45px", "text-align": "center", background: "#409eff", color: "#fff", "border-radius": "5px", cursor: "pointer" },
55189
+ onClick: headerPagerToolCheckedClick
55190
+ }, " 全选 "),
55182
55191
  createVNode$1(se, {
55183
- title: "全量数据全选/取消",
55184
55192
  class: "checkbox-box",
55185
55193
  modelValue: unref(pagerToolChecked),
55186
55194
  "onUpdate:modelValue": H[1] || (H[1] = (pe) => isRef(pagerToolChecked) ? pagerToolChecked.value = pe : pagerToolChecked = pe),
@@ -55247,7 +55255,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
55247
55255
  "on-success": importSuccess
55248
55256
  }, {
55249
55257
  default: withCtx(() => [
55250
- createElementVNode("div", _hoisted_20, [
55258
+ createElementVNode("div", _hoisted_19, [
55251
55259
  createVNode$1(le, { width: 50 }),
55252
55260
  createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
55253
55261
  ])
@@ -55299,12 +55307,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_72deae66_lang = "", _withScop
55299
55307
  ]);
55300
55308
  };
55301
55309
  }
55302
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-72deae66"]]);
55310
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-e0ef89f5"]]);
55303
55311
  WindowGrid.name = "slw-window-grid";
55304
55312
  WindowGrid.install = (G) => {
55305
55313
  G.component(WindowGrid.name, WindowGrid);
55306
55314
  };
55307
- const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScopeId$8 = (G) => (pushScopeId("data-v-217c4b9f"), G = G(), popScopeId(), G), _hoisted_1$l2 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("div", { class: "el-upload__tip" }, "大小不超过20MB的文件.", -1)), _hoisted_2$kZ = { class: "el-upload-list el-upload-list--text" }, _hoisted_3$hZ = {
55315
+ const fileUpload_vue_vue_type_style_index_0_scoped_2e2158ea_lang = "", _withScopeId$8 = (G) => (pushScopeId("data-v-2e2158ea"), G = G(), popScopeId(), G), _hoisted_1$l2 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("div", { class: "el-upload__tip" }, "大小不超过20MB的文件.", -1)), _hoisted_2$kZ = { class: "el-upload-list el-upload-list--text" }, _hoisted_3$hZ = {
55308
55316
  class: "el-upload-list__item is-success",
55309
55317
  tabindex: "0"
55310
55318
  }, _hoisted_4$az = {
@@ -55312,7 +55320,7 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55312
55320
  style: { width: "calc(100% - 45px)" }
55313
55321
  }, _hoisted_5$4Z = { class: "el-upload-list__item-name" }, _hoisted_6$21 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-document" }, null, -1)), _hoisted_7$14 = ["title"], _hoisted_8$H = ["onClick"], _hoisted_9$n = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("label", { class: "el-upload-list__item-status-label" }, [
55314
55322
  /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-circle-check el-icon--upload-success" })
55315
- ], -1)), _hoisted_10$q = ["onClick"], _sfc_main$f = {
55323
+ ], -1)), _hoisted_10$q = ["onClick"], _hoisted_11$g = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-download1" }, null, -1)), _sfc_main$f = {
55316
55324
  __name: "file-upload",
55317
55325
  props: {
55318
55326
  uploadConfig: {
@@ -55324,21 +55332,38 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55324
55332
  },
55325
55333
  filePreviewList: {
55326
55334
  type: Array
55335
+ },
55336
+ fileFormData: {
55337
+ type: Array
55327
55338
  }
55328
55339
  },
55329
55340
  emits: ["update:filePreviewList"],
55330
55341
  setup(G, { emit: H }) {
55331
55342
  const X = G, Q = inject("$httpHeaders"), K = inject("$vxeMessage"), Z = inject("$axios"), ee = inject("$qs"), te = inject("$t"), ne = inject("$vxeConfirm");
55332
- let re = ref$2(), oe = ref$2(`${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/upload/`), ae = useVModel$1(X, "filePreviewList", H), se = ref$2({ dataId: "", columnId: "" });
55333
- const le = computed(() => X.uploadConfig.openType == "view"), ce = (me) => {
55334
- re.value.handleRemove(me);
55335
- }, ue = async (me) => {
55343
+ let re = ref$2(), oe = ref$2(`${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/upload/`), ae = useVModel$1(X, "filePreviewList", H), se = useVModel$1(X, "fileFormData", H), le = ref$2({ dataId: "", columnId: "" }), ce = ref$2(!1), ue = ref$2(!1), de = ref$2(), he = ref$2({
55344
+ border: !0,
55345
+ height: 700,
55346
+ rowConfig: {
55347
+ isCurrent: !0,
55348
+ isHover: !0
55349
+ },
55350
+ columns: [
55351
+ { field: "name", title: "文件名", align: "center" },
55352
+ { field: "created", title: "创建时间", sortable: !0 },
55353
+ { field: "deleteDate", title: "删除时间", sortable: !0 },
55354
+ { fixed: "right", title: "操作", align: "center", slots: { default: "operation" }, colId: "_operation_" }
55355
+ ],
55356
+ data: []
55357
+ });
55358
+ const fe = computed(() => X.uploadConfig.openType == "view"), pe = (Te) => {
55359
+ re.value.handleRemove(Te);
55360
+ }, me = async (Te) => {
55336
55361
  if (await ne(te("确定删除?"), void 0, { zIndex: 3e3 }) === "confirm")
55337
- Z.post(`/dataFile/delete/${me.id}`).then((ve) => {
55338
- if (ve.data.result) {
55339
- let we = ae.value.findIndex(($e) => $e.id == me.id);
55340
- ae.value.splice(we, 1), K({
55341
- content: ve.data.msg,
55362
+ Z.post(`/dataFile/delete/${Te.id}`).then((ke) => {
55363
+ if (ke.data.result) {
55364
+ let Oe = se.value.findIndex((De) => De == Te.id);
55365
+ se.value.splice(Oe, 1), K({
55366
+ content: ke.data.msg,
55342
55367
  status: "success",
55343
55368
  zIndex: 3e3
55344
55369
  });
@@ -55346,9 +55371,9 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55346
55371
  });
55347
55372
  else
55348
55373
  return !1;
55349
- }, de = (me) => {
55350
- ne(te("确定下载?"), void 0, { zIndex: 3e3 }).then((ge) => {
55351
- ge === "confirm" && Z.export(`/dataFile/download/${me.id}`).then((ve) => {
55374
+ }, ge = (Te) => {
55375
+ ne(te("确定下载?"), void 0, { zIndex: 3e3 }).then((Pe) => {
55376
+ Pe === "confirm" && Z.export(`/dataFile/download/${Te.id}`).then((ke) => {
55352
55377
  K({
55353
55378
  content: "下载成功!",
55354
55379
  status: "success",
@@ -55356,111 +55381,168 @@ const fileUpload_vue_vue_type_style_index_0_scoped_217c4b9f_lang = "", _withScop
55356
55381
  });
55357
55382
  });
55358
55383
  });
55359
- }, he = (me, ge) => {
55384
+ }, ve = (Te, Pe) => {
55360
55385
  K({
55361
55386
  content: "允许上传文件的最大数量为1",
55362
55387
  status: "error",
55363
55388
  zIndex: 3e3
55364
55389
  });
55365
- }, fe = (me, ge) => {
55366
- me.result ? (ae.value = ae.value.map((ve) => ({
55367
- id: me.id,
55368
- name: ge.name,
55369
- url: `${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/inline/${me.id}`
55370
- })), K({
55371
- content: me.msg,
55390
+ }, we = (Te, Pe) => {
55391
+ Te.result ? (ae.value = ae.value.map((ke) => {
55392
+ var Oe;
55393
+ return ((Oe = ke.response) == null ? void 0 : Oe.id) == Te.id ? {
55394
+ id: Te.id,
55395
+ name: Pe.name
55396
+ } : ke;
55397
+ }), se.value.push(Te.id), K({
55398
+ content: Te.msg,
55372
55399
  status: "success",
55373
55400
  zIndex: 3e3
55374
55401
  })) : K({
55375
- content: me.msg,
55402
+ content: Te.msg,
55376
55403
  status: "error",
55377
55404
  zIndex: 3e3
55378
55405
  });
55379
- }, pe = () => {
55380
- ae.value = [], Z.post(`/dataFile/list/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (me) => {
55381
- if (me.data.result && me.data.list.length > 0) {
55382
- let ge = [];
55383
- for (let ve of me.data.list)
55384
- ve.columnName == X.fieldId && ge.push({
55385
- id: ve.id,
55386
- name: ve.name,
55387
- columnName: ve.columnName,
55388
- url: `${(Z == null ? void 0 : Z.baseUrl) || ""}/dataFile/inline/${ve.id}`
55389
- });
55390
- ae.value = ge;
55406
+ }, $e = () => {
55407
+ ae.value = [], Z.post(`/dataFile/list/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (Te) => {
55408
+ if (Te.data.result && Te.data.list.length > 0) {
55409
+ let Pe = [];
55410
+ for (let ke of Te.data.list)
55411
+ ke.columnName == X.fieldId && (Pe.push({
55412
+ id: ke.id,
55413
+ name: ke.name,
55414
+ columnName: ke.columnName
55415
+ }), se.value.push(ke.id));
55416
+ ae.value = Pe;
55391
55417
  }
55392
55418
  });
55419
+ }, Se = () => {
55420
+ ue.value = !0, Z.post(`/dataFile/logs/${X.uploadConfig.regionId}/${X.uploadConfig.dataId}`).then(async (Te) => {
55421
+ ue.value = !1, Te.data.result && Te.data.list.length > 0 && (he.value.data = Te.data.list.filter((Pe) => !["jpg", "png"].includes(Pe.type.toLocaleLowerCase())).sort((Pe, ke) => new Date(ke.created) - new Date(Pe.created))), ce.value = !0;
55422
+ }).catch((Te) => {
55423
+ ue.value = !1;
55424
+ });
55425
+ }, be = (Te) => {
55426
+ ne(te("确定下载历史文件?"), void 0, { zIndex: 3e3 }).then((Pe) => {
55427
+ Pe === "confirm" && Z.export(`/dataFile/download/${Te.id}`).then((ke) => {
55428
+ K({
55429
+ content: "下载成功!",
55430
+ status: "success",
55431
+ zIndex: 3e3
55432
+ });
55433
+ });
55434
+ });
55393
55435
  };
55394
55436
  return watch(
55395
55437
  () => X.uploadConfig,
55396
- (me) => {
55397
- oe.value += me.regionId, X.fieldId && (se.value.columnId = X.fieldId), me.dataId && (se.value.dataId = me.dataId, pe());
55438
+ (Te) => {
55439
+ oe.value += Te.regionId, X.fieldId && (le.value.columnId = X.fieldId), Te.dataId && (le.value.dataId = Te.dataId, $e());
55398
55440
  },
55399
55441
  { deep: !0, immediate: !0 }
55400
- ), (me, ge) => {
55401
- const ve = resolveComponent("el-button"), we = resolveComponent("el-upload");
55402
- return openBlock(), createBlock(we, {
55403
- ref_key: "fileUploadRef",
55404
- ref: re,
55405
- "file-list": unref(ae),
55406
- "onUpdate:fileList": ge[0] || (ge[0] = ($e) => isRef(ae) ? ae.value = $e : ae = $e),
55407
- class: "upload-file",
55408
- disabled: le.value,
55409
- headers: unref(Q)(),
55410
- action: unref(oe),
55411
- data: unref(se),
55412
- limit: 1,
55413
- "on-exceed": he,
55414
- "on-success": fe,
55415
- "before-remove": ue
55416
- }, {
55417
- tip: withCtx(() => [
55418
- _hoisted_1$l2
55419
- ]),
55420
- file: withCtx(({ file: $e }) => [
55421
- createElementVNode("ul", _hoisted_2$kZ, [
55422
- createElementVNode("li", _hoisted_3$hZ, [
55423
- createElementVNode("div", _hoisted_4$az, [
55424
- createElementVNode("a", _hoisted_5$4Z, [
55425
- _hoisted_6$21,
55426
- createElementVNode("span", {
55427
- class: "el-upload-list__item-file-name",
55428
- title: $e.name
55429
- }, toDisplayString($e.name), 9, _hoisted_7$14)
55430
- ])
55431
- ]),
55432
- createElementVNode("i", {
55433
- class: "iconfont icon-download1",
55434
- style: { color: "#67c23a", cursor: "pointer" },
55435
- onClick: (Se) => de($e),
55436
- title: "下载"
55437
- }, null, 8, _hoisted_8$H),
55438
- _hoisted_9$n,
55439
- createElementVNode("i", {
55440
- class: "iconfont icon-close2 el-icon--close el-icon",
55441
- title: "删除",
55442
- onClick: (Se) => ce($e)
55443
- }, null, 8, _hoisted_10$q)
55442
+ ), (Te, Pe) => {
55443
+ const ke = resolveComponent("el-button"), Oe = resolveComponent("el-upload"), De = resolveComponent("vxe-grid"), _e = resolveComponent("el-dialog");
55444
+ return openBlock(), createElementBlock(Fragment, null, [
55445
+ createVNode$1(Oe, {
55446
+ ref_key: "fileUploadRef",
55447
+ ref: re,
55448
+ "file-list": unref(ae),
55449
+ "onUpdate:fileList": Pe[0] || (Pe[0] = (ye) => isRef(ae) ? ae.value = ye : ae = ye),
55450
+ class: "upload-file",
55451
+ disabled: fe.value,
55452
+ headers: unref(Q)(),
55453
+ action: unref(oe),
55454
+ data: unref(le),
55455
+ "on-exceed": ve,
55456
+ "on-success": we,
55457
+ "before-remove": me
55458
+ }, {
55459
+ tip: withCtx(() => [
55460
+ _hoisted_1$l2
55461
+ ]),
55462
+ file: withCtx(({ file: ye }) => [
55463
+ createElementVNode("ul", _hoisted_2$kZ, [
55464
+ createElementVNode("li", _hoisted_3$hZ, [
55465
+ createElementVNode("div", _hoisted_4$az, [
55466
+ createElementVNode("a", _hoisted_5$4Z, [
55467
+ _hoisted_6$21,
55468
+ createElementVNode("span", {
55469
+ class: "el-upload-list__item-file-name",
55470
+ title: ye.name
55471
+ }, toDisplayString(ye.name), 9, _hoisted_7$14)
55472
+ ])
55473
+ ]),
55474
+ createElementVNode("i", {
55475
+ class: "iconfont icon-download1",
55476
+ style: { color: "#67c23a", cursor: "pointer" },
55477
+ onClick: (Ce) => ge(ye),
55478
+ title: "下载"
55479
+ }, null, 8, _hoisted_8$H),
55480
+ _hoisted_9$n,
55481
+ createElementVNode("i", {
55482
+ class: "iconfont icon-close2 el-icon--close el-icon",
55483
+ title: "删除",
55484
+ onClick: (Ce) => pe(ye)
55485
+ }, null, 8, _hoisted_10$q)
55486
+ ])
55444
55487
  ])
55445
- ])
55446
- ]),
55447
- default: withCtx(() => [
55448
- createVNode$1(ve, {
55449
- type: "primary",
55450
- size: "small",
55451
- disabled: le.value
55452
- }, {
55453
- default: withCtx(() => [
55454
- createTextVNode(" 上传文件 ")
55455
- ]),
55456
- _: 1
55457
- }, 8, ["disabled"])
55458
- ]),
55459
- _: 1
55460
- }, 8, ["file-list", "disabled", "headers", "action", "data"]);
55488
+ ]),
55489
+ default: withCtx(() => [
55490
+ createVNode$1(ke, {
55491
+ type: "primary",
55492
+ size: "small",
55493
+ disabled: fe.value
55494
+ }, {
55495
+ default: withCtx(() => [
55496
+ createTextVNode(" 上传文件 ")
55497
+ ]),
55498
+ _: 1
55499
+ }, 8, ["disabled"]),
55500
+ createVNode$1(ke, {
55501
+ type: "info",
55502
+ size: "small",
55503
+ loading: unref(ue),
55504
+ onClick: withModifiers(Se, ["stop"])
55505
+ }, {
55506
+ default: withCtx(() => [
55507
+ createTextVNode(" 历史文件 ")
55508
+ ]),
55509
+ _: 1
55510
+ }, 8, ["loading", "onClick"])
55511
+ ]),
55512
+ _: 1
55513
+ }, 8, ["file-list", "disabled", "headers", "action", "data"]),
55514
+ createVNode$1(_e, {
55515
+ modelValue: unref(ce),
55516
+ "onUpdate:modelValue": Pe[1] || (Pe[1] = (ye) => isRef(ce) ? ce.value = ye : ce = ye),
55517
+ title: unref(te)("历史文件")
55518
+ }, {
55519
+ default: withCtx(() => [
55520
+ createVNode$1(De, mergeProps$1({
55521
+ ref_key: "logsRegionRef",
55522
+ ref: de
55523
+ }, unref(he)), {
55524
+ operation: withCtx(({ row: ye, rowIndex: Ce }) => [
55525
+ createVNode$1(ke, {
55526
+ type: "primary",
55527
+ size: "small",
55528
+ onClick: (xe) => be(ye)
55529
+ }, {
55530
+ default: withCtx(() => [
55531
+ _hoisted_11$g,
55532
+ createTextVNode(" 下载文件 ")
55533
+ ]),
55534
+ _: 2
55535
+ }, 1032, ["onClick"])
55536
+ ]),
55537
+ _: 1
55538
+ }, 16)
55539
+ ]),
55540
+ _: 1
55541
+ }, 8, ["modelValue", "title"])
55542
+ ], 64);
55461
55543
  };
55462
55544
  }
55463
- }, FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-217c4b9f"]]);
55545
+ }, FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-2e2158ea"]]);
55464
55546
  FileUpload.name = "slw-file-upload";
55465
55547
  FileUpload.install = (G) => {
55466
55548
  G.component(FileUpload.name, FileUpload);
@@ -77655,7 +77737,7 @@ var js = js$1.exports;
77655
77737
  })(G);
77656
77738
  })(js$1);
77657
77739
  var jsExports = js$1.exports;
77658
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_3a38e6a2_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-3a38e6a2"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77740
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_ccfe5ade_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-ccfe5ade"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77659
77741
  key: 0,
77660
77742
  class: "form-title"
77661
77743
  }, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$e = {
@@ -77832,7 +77914,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77832
77914
  if (formConfig.value.formData) {
77833
77915
  formData.value = formConfig.value.formData, G = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$4.clone(formConfig.value.columns, !0));
77834
77916
  for (const ee of formConfig.value.columns)
77835
- formConfig.value.openType === "view" && ((H = ee.itemRender) == null ? void 0 : H.name) == "ElInput" && (ee.itemRender.props.readonly = !0), ee.dataType === "EDITOR" ? formData.value[ee.field] == null ? formData.value[ee.field] = "" : ee.language == "javascript" && (formData.value[ee.field] = jsExports.js_beautify(formData.value[ee.field], codeBeautifyConfig)) : (X = ee.itemRender) != null && X.name.includes("Select") && ee.itemRender.props.multiple && (formData.value[ee.field] == "" ? formData.value[ee.field] = [] : formData.value[ee.field] instanceof String && (formData.value[ee.field] = (Q = formData.value[ee.field]) == null ? void 0 : Q.split(",")));
77917
+ formConfig.value.openType === "view" && ((H = ee.itemRender) == null ? void 0 : H.name) == "ElInput" && (ee.itemRender.props.readonly = !0), ee.dataType === "EDITOR" ? formData.value[ee.field] == null ? formData.value[ee.field] = "" : ee.language == "javascript" && (formData.value[ee.field] = jsExports.js_beautify(formData.value[ee.field], codeBeautifyConfig)) : (X = ee.itemRender) != null && X.name.includes("Select") && ee.itemRender.props.multiple ? formData.value[ee.field] == "" ? formData.value[ee.field] = [] : formData.value[ee.field] instanceof String && (formData.value[ee.field] = (Q = formData.value[ee.field]) == null ? void 0 : Q.split(",")) : ee.dataType === "FILE" && (formData.value[ee.field] = []);
77836
77918
  } else {
77837
77919
  for (const ee of formConfig.value.columns)
77838
77920
  ee.type !== "seq" && ee.type !== "checkbox" && (formData.value[ee.field] = "", (K = ee.itemRender) != null && K.name.includes("Select") && ee.itemRender.props.multiple && (formData.value[ee.field] = formData.value[ee.field] == "" ? [] : (Z = formData.value[ee.field]) == null ? void 0 : Z.split(",")));
@@ -78570,9 +78652,11 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78570
78652
  createVNode$1(unref(FileUpload), {
78571
78653
  uploadConfig: unref(uploadConfig),
78572
78654
  fieldId: ae.id,
78655
+ fileFormData: unref(formData)[ae.field],
78656
+ "onUpdate:fileFormData": (se) => unref(formData)[ae.field] = se,
78573
78657
  filePreviewList: unref(fieldPreviewMap)[ae.field],
78574
78658
  "onUpdate:filePreviewList": (se) => unref(fieldPreviewMap)[ae.field] = se
78575
- }, null, 8, ["uploadConfig", "fieldId", "filePreviewList", "onUpdate:filePreviewList"])
78659
+ }, null, 8, ["uploadConfig", "fieldId", "fileFormData", "onUpdate:fileFormData", "filePreviewList", "onUpdate:filePreviewList"])
78576
78660
  ]),
78577
78661
  key: "4"
78578
78662
  } : void 0,
@@ -78671,7 +78755,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78671
78755
  ]);
78672
78756
  };
78673
78757
  }
78674
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-3a38e6a2"]]);
78758
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ccfe5ade"]]);
78675
78759
  WindowForm.name = "slw-window-form";
78676
78760
  WindowForm.install = (G) => {
78677
78761
  G.component(WindowForm.name, WindowForm);
@@ -91742,7 +91826,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
91742
91826
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
91743
91827
  setup(G, { emit: H }) {
91744
91828
  const X = G, Q = defineAsyncComponent(
91745
- () => import("./index-c1024c3b.js")
91829
+ () => import("./index-e22dc4ec.js")
91746
91830
  );
91747
91831
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
91748
91832
  re.value = createDesigner();
@@ -91827,7 +91911,7 @@ WindowDesigner.name = "slw-window-designer";
91827
91911
  WindowDesigner.install = (G) => {
91828
91912
  G.component(WindowDesigner.name, WindowDesigner);
91829
91913
  };
91830
- const windowIndex_vue_vue_type_style_index_0_scoped_f16a5f64_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-f16a5f64"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91914
+ const windowIndex_vue_vue_type_style_index_0_scoped_bdfedaab_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-bdfedaab"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91831
91915
  __name: "window-index",
91832
91916
  props: {
91833
91917
  windowId: {
@@ -92657,7 +92741,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f16a5f64_lang = "", _withSco
92657
92741
  }, toggleModalLoading = () => {
92658
92742
  emit("togglePreViewLoading");
92659
92743
  }, preViewxModal = ref$2(), showPreViewClose = () => {
92660
- preViewShow.value = !1, preViewCloseFun.value && evalEvent(preViewCloseFun.value), exeEndEdit();
92744
+ preViewShow.value = !1, preViewWidth.value = null, preViewHeight.value = null, preViewCloseFun.value && evalEvent(preViewCloseFun.value), exeEndEdit();
92661
92745
  }, preViewCloseCallback = () => {
92662
92746
  emit("close");
92663
92747
  }, layout = ref$2(), preViewSubmit = () => {
@@ -93023,7 +93107,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f16a5f64_lang = "", _withSco
93023
93107
  ]);
93024
93108
  };
93025
93109
  }
93026
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f16a5f64"]]);
93110
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-bdfedaab"]]);
93027
93111
  WindowIndex.name = "slw-window-index";
93028
93112
  WindowIndex.install = (G) => {
93029
93113
  G.component(WindowIndex.name, WindowIndex);
@@ -224356,7 +224440,7 @@ function reConsole() {
224356
224440
  }
224357
224441
  }
224358
224442
  console.info(
224359
- `%cSLW %cVer 1.0.0-beta.17.2%c
224443
+ `%cSLW %cVer 1.0.0-beta.17.4%c
224360
224444
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224361
224445
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
224362
224446
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
@@ -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-7e0e0ff8.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-91d78d27.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-7e0e0ff8.js";
1
+ import { i as m } from "./index-91d78d27.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {