service-flow-designer 2.3.5-sit1-flow1 → 2.3.5-sit3-flow1

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
  import e from "./datatable-select.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = t(e, [["__scopeId", "data-v-075d5fc4"]]);
4
+ const a = t(e, [["__scopeId", "data-v-58ec16d3"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { ElDialog as e, ElContainer as l, ElHeader as a, ElSelect as t, ElOption as o, ElInput as s, ElButton as n, ElTable as u, ElTableColumn as r, ElPagination as i } from "element-plus/es";
1
+ import { ElDialog as e, ElContainer as l, ElHeader as a, ElSelect as t, ElOption as o, ElInput as s, ElButton as n, ElTable as r, ElTableColumn as u, ElPagination as i } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/dialog/style/css";
4
4
  import "element-plus/es/components/container/style/css";
@@ -10,61 +10,65 @@ import "element-plus/es/components/button/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import "element-plus/es/components/select/style/css";
12
12
  import "element-plus/es/components/option/style/css";
13
- import { defineComponent as p, ref as c, watch as m, createBlock as d, openBlock as v, withCtx as g, createVNode as f, createElementBlock as h, Fragment as y, renderList as b, unref as z, createTextVNode as C, createElementVNode as w } from "vue";
14
- import { Search as V } from "@element-plus/icons-vue";
15
- import S from "agilebuilder-ui/src/utils/request";
13
+ import { defineComponent as p, ref as c, watch as m, createBlock as d, openBlock as v, withCtx as f, createVNode as g, createElementBlock as h, Fragment as y, renderList as b, unref as C, createTextVNode as w, createElementVNode as z } from "vue";
14
+ import { Search as S } from "@element-plus/icons-vue";
15
+ import V from "agilebuilder-ui/src/utils/request";
16
16
  import { ElMessage as N } from "element-plus";
17
17
  const k = { class: "dialog-footer" }, T = p({ name: "DatatableSelect", inheritAttrs: false, __name: "datatable-select", props: { visible: { type: Boolean, default: false }, systemCode: { type: String, default: "" }, systemVersion: { type: Number, default: -1 } }, emits: ["update:visible", "select"], setup(p2, { emit: T2 }) {
18
- const _ = T2, P = p2, x = c(false), A = c([]), $ = c({ code: "", publishVersion: 1 }), U = c([]), I = c({ searchCode: "", searchName: "" }), B = c({ name: "" }), E = c({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), M = c();
19
- function O(e2) {
18
+ const _ = T2, P = p2, x = c(false), A = c([]), O = c([]), $ = c({ code: "", publishVersion: 1 }), U = c([]), I = c({ searchCode: "", searchName: "" }), B = c({ name: "" }), E = c({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), L = c();
19
+ function M(e2) {
20
+ e2 && "" !== e2.trim() ? A.value = O.value.filter((l2) => l2.name.toLowerCase().indexOf(e2.toLowerCase()) > -1 || l2.code.toLowerCase().indexOf(e2.toLowerCase()) > -1) : A.value = O.value;
21
+ }
22
+ function D(e2) {
20
23
  U.value = [], E.value.currentPage = 1, E.value.total = 0;
21
- const l2 = R(e2);
22
- $.value = l2, F($.value);
24
+ const l2 = X(e2);
25
+ $.value = l2, J($.value);
23
26
  }
24
- function D() {
25
- F($.value);
27
+ function F() {
28
+ J($.value);
26
29
  }
27
- function F(e2) {
30
+ function J(e2) {
28
31
  B.value = { name: "" };
29
32
  const l2 = { code: "MMS_MODULE_PAGE", pagination: { currentPage: E.value.currentPage, pageSize: E.value.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [] };
30
33
  I.value.searchCode && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchCode }), I.value.searchName && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "alias", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchName });
31
34
  const a2 = e2.code || P.systemCode;
32
- S.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
35
+ V.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
33
36
  U.value = e3.data, E.value.pageSize = e3.size, E.value.total = e3.total;
34
37
  });
35
38
  }
36
39
  function j(e2) {
37
40
  B.value = e2;
38
41
  }
39
- function J() {
42
+ function R() {
40
43
  if (B.value.name) {
41
- const e2 = R($.value.code);
44
+ const e2 = X($.value.code);
42
45
  _("select", { dataTable: B.value, system: e2 }), _("update:visible", false);
43
46
  } else N.warning("请选择一条记录!");
44
47
  }
45
- function R(e2) {
46
- return A.value.find((l2) => l2.code === e2);
48
+ function X(e2) {
49
+ const l2 = A.value.find((l3) => l3.code === e2);
50
+ if (l2) return JSON.parse(JSON.stringify(l2));
47
51
  }
48
- function X() {
52
+ function q() {
49
53
  _("update:visible", false);
50
54
  }
51
55
  m(() => P.visible, (e2) => {
52
- x.value = e2, e2 && S.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
56
+ x.value = e2, e2 && V.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
53
57
  e3 && e3.forEach((e4) => {
54
58
  e4.name = e4.name + "(" + e4.publishVersion + ")";
55
59
  });
56
60
  const l2 = e3.findIndex((e4) => e4.code === P.systemCode);
57
- $.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, F($.value);
61
+ $.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, O.value = e3, J($.value);
58
62
  });
59
63
  });
60
64
  return (p3, c2) => {
61
- const m2 = o, S2 = t, N2 = s, T3 = n, _2 = a, P2 = r, B2 = u, R2 = i, q = l, G = e;
62
- return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[7] || (c2[7] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": X }, { footer: g(() => [w("div", k, [f(T3, { type: "default", size: "small", onClick: c2[6] || (c2[6] = (e2) => x.value = false) }, { default: g(() => c2[9] || (c2[9] = [C("返回")])), _: 1 }), f(T3, { size: "small", type: "primary", onClick: J }, { default: g(() => c2[10] || (c2[10] = [C(" 确定 ")])), _: 1 })])]), default: g(() => [f(q, { style: { height: "400px" } }, { default: g(() => [f(_2, { style: { padding: "0", height: "50px" } }, { default: g(() => [f(S2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: O, "value-key": "code", size: "small", style: { width: "240px" } }, { default: g(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), f(N2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), f(N2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), f(T3, { type: "primary", size: "small", icon: z(V), onClick: c2[3] || (c2[3] = (e2) => {
63
- F($.value);
64
- }) }, { default: g(() => c2[8] || (c2[8] = [C("查询")])), _: 1 }, 8, ["icon"])]), _: 1 }), f(B2, { ref_key: "tableRef", ref: M, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: g(() => [f(P2, { type: "index", width: "50" }), f(P2, { prop: "name", label: "编码" }), f(P2, { prop: "alias", label: "名称" }), f(P2, { prop: "modifierName", label: "修改人" }), f(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
65
+ const m2 = o, V2 = t, N2 = s, T3 = n, _2 = a, P2 = u, O2 = r, B2 = i, X2 = l, G = e;
66
+ return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[7] || (c2[7] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(T3, { type: "default", size: "small", onClick: c2[6] || (c2[6] = (e2) => x.value = false) }, { default: f(() => c2[9] || (c2[9] = [w("返回")])), _: 1 }), g(T3, { size: "small", type: "primary", onClick: R }, { default: f(() => c2[10] || (c2[10] = [w(" 确定 ")])), _: 1 })])]), default: f(() => [g(X2, { style: { height: "400px" } }, { default: f(() => [g(_2, { style: { padding: "0", height: "50px" } }, { default: f(() => [g(V2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: D, "filter-method": M, "value-key": "code", size: "small", filterable: "", style: { width: "240px" } }, { default: f(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(N2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(N2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(T3, { type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
67
+ J($.value);
68
+ }) }, { default: f(() => c2[8] || (c2[8] = [w("查询")])), _: 1 }, 8, ["icon"])]), _: 1 }), g(O2, { ref_key: "tableRef", ref: L, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: f(() => [g(P2, { type: "index", width: "50" }), g(P2, { prop: "name", label: "编码" }), g(P2, { prop: "alias", label: "名称" }), g(P2, { prop: "modifierName", label: "修改人" }), g(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
65
69
  let l2 = new Date(e3);
66
70
  return `${l2.getFullYear()}-${("0" + (l2.getMonth() + 1)).slice(-2)}-${("0" + l2.getDate()).slice(-2)} ${("0" + l2.getHours()).slice(-2)}:${("0" + l2.getMinutes()).slice(-2)}:${("0" + l2.getSeconds()).slice(-2)}`;
67
- })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), f(R2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[4] || (c2[4] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[5] || (c2[5] = (e2) => E.value.pageSize = e2), "page-sizes": [20, 30, 50, 100], small: "", background: "", layout: "total, sizes, prev, pager, next, jumper", total: E.value.total, onSizeChange: D, onCurrentChange: D }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
71
+ })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), g(B2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[4] || (c2[4] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[5] || (c2[5] = (e2) => E.value.pageSize = e2), "page-sizes": [20, 30, 50, 100], small: "", background: "", layout: "total, sizes, prev, pager, next, jumper", total: E.value.total, onSizeChange: F, onCurrentChange: F }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
68
72
  };
69
73
  } });
70
74
  export {
package/dist/es/style.css CHANGED
@@ -1204,13 +1204,13 @@
1204
1204
  position: static;
1205
1205
  }
1206
1206
 
1207
- .el-select + .el-input[data-v-075d5fc4] {
1207
+ .el-select + .el-input[data-v-58ec16d3] {
1208
1208
  margin-left: 10px;
1209
1209
  }
1210
- .el-input + .el-input[data-v-075d5fc4] {
1210
+ .el-input + .el-input[data-v-58ec16d3] {
1211
1211
  margin-left: 10px;
1212
1212
  }
1213
- .el-input + .el-button[data-v-075d5fc4] {
1213
+ .el-input + .el-button[data-v-58ec16d3] {
1214
1214
  margin-left: 10px;
1215
1215
  }
1216
1216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-flow-designer",
3
- "version": "2.3.5-sit1-flow1",
3
+ "version": "2.3.5-sit3-flow1",
4
4
  "description": "AgileBuilder Service Flow Designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -61,7 +61,7 @@
61
61
  "@logicflow/layout": "1.2.0-alpha.16",
62
62
  "@uiw/codemirror-themes-all": "^4.21.25",
63
63
  "@vueuse/core": "^10.9.0",
64
- "agilebuilder-ui": "1.1.41-sit1",
64
+ "agilebuilder-ui": "1.1.41-sit2",
65
65
  "codemirror": "^6.0.1",
66
66
  "nprogress": "^0.2.0",
67
67
  "pinia": "^2.1.7",