@zgfe/modules-dm 1.0.42-alpha.9 → 1.0.56-zhongyuan.5

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.
Files changed (115) hide show
  1. package/es/components/demo.js +1 -1
  2. package/es/constants/api.d.ts +37 -0
  3. package/es/constants/api.js +62 -1
  4. package/es/index.d.ts +3 -1
  5. package/es/index.js +3 -1
  6. package/es/modules/CutsModal.d.ts +66 -0
  7. package/es/modules/CutsModal.js +52 -0
  8. package/es/modules/dataManage/collectionAttributeList.d.ts +3 -0
  9. package/es/modules/dataManage/collectionAttributeList.js +524 -80
  10. package/es/modules/dataManage/collectionEventList.d.ts +6 -0
  11. package/es/modules/dataManage/collectionEventList.js +482 -62
  12. package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
  13. package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
  14. package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
  15. package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
  16. package/es/modules/dataManage/components/createVirtualDrawer.js +19 -19
  17. package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
  18. package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
  19. package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
  20. package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
  21. package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
  22. package/es/modules/dataManage/components/creditPop/index.d.ts +6 -0
  23. package/es/modules/dataManage/components/creditPop/index.js +89 -0
  24. package/es/modules/dataManage/components/creditPop/index.less +121 -0
  25. package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
  26. package/es/modules/dataManage/components/deleteConfirm.js +36 -0
  27. package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
  28. package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
  29. package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
  30. package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
  31. package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
  32. package/es/modules/dataManage/components/depositPop/index.d.ts +6 -0
  33. package/es/modules/dataManage/components/depositPop/index.js +89 -0
  34. package/es/modules/dataManage/components/depositPop/index.less +115 -0
  35. package/es/modules/dataManage/components/developModal/index.css +36 -0
  36. package/es/modules/dataManage/components/developModal/index.d.ts +6 -0
  37. package/es/modules/dataManage/components/developModal/index.js +224 -0
  38. package/es/modules/dataManage/components/developModal/index.less +36 -0
  39. package/es/modules/dataManage/components/editTxt/index.d.ts +3 -0
  40. package/es/modules/dataManage/components/editTxt/index.js +123 -0
  41. package/es/modules/dataManage/components/editTxt/index.less +44 -0
  42. package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
  43. package/es/modules/dataManage/components/editTxt/types.js +1 -0
  44. package/es/modules/dataManage/components/eventFilter/index.js +13 -13
  45. package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
  46. package/es/modules/dataManage/components/eventGroupingDrawer.js +41 -44
  47. package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +3 -0
  48. package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
  49. package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
  50. package/es/modules/dataManage/components/importAttrDialog/index.js +159 -0
  51. package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
  52. package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +3 -0
  53. package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
  54. package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
  55. package/es/modules/dataManage/components/importMetaDialog/index.js +159 -0
  56. package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
  57. package/es/modules/dataManage/components/selectAttributes.js +10 -10
  58. package/es/modules/dataManage/components/tablePlus.d.ts +4 -0
  59. package/es/modules/dataManage/components/tablePlus.js +625 -94
  60. package/es/modules/dataManage/components/virtualTablePlus.js +7 -7
  61. package/es/modules/dataManage/demo/index.d.ts +2 -1
  62. package/es/modules/dataManage/demo/index.js +79 -16
  63. package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
  64. package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
  65. package/es/modules/dataManage/detailedData/index.d.ts +24 -0
  66. package/es/modules/dataManage/detailedData/index.js +403 -0
  67. package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
  68. package/es/modules/dataManage/detailedData/useColumns.js +135 -0
  69. package/es/modules/dataManage/index.d.ts +9 -4
  70. package/es/modules/dataManage/index.js +142 -50
  71. package/es/modules/dataManage/styles/detailed.less +74 -0
  72. package/es/modules/dataManage/styles/index.less +1195 -841
  73. package/es/modules/dataManage/types.d.ts +8 -0
  74. package/es/modules/dataManage/virtualEventList.js +13 -13
  75. package/es/modules/dataMap/component/data.d.ts +7 -0
  76. package/es/modules/dataMap/component/data.js +257 -0
  77. package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
  78. package/es/modules/dataMap/component/drawerAdd.js +379 -0
  79. package/es/modules/dataMap/component/leftTree.d.ts +6 -0
  80. package/es/modules/dataMap/component/leftTree.js +232 -0
  81. package/es/modules/dataMap/component/rightDetail.d.ts +7 -0
  82. package/es/modules/dataMap/component/rightDetail.js +694 -0
  83. package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
  84. package/es/modules/dataMap/component/selectAttr.js +92 -0
  85. package/es/modules/dataMap/css/index.css +163 -0
  86. package/es/modules/dataMap/css/index.less +177 -0
  87. package/es/modules/dataMap/demo/index.d.ts +3 -0
  88. package/es/modules/dataMap/demo/index.js +6 -0
  89. package/es/modules/dataMap/img/empty-data.png +0 -0
  90. package/es/modules/dataMap/index.d.ts +3 -0
  91. package/es/modules/dataMap/index.js +80 -0
  92. package/es/modules/dataMap/mapDetail.d.ts +3 -0
  93. package/es/modules/dataMap/mapDetail.js +44 -0
  94. package/es/modules/dataMap/mapSetting.d.ts +6 -0
  95. package/es/modules/dataMap/mapSetting.js +156 -0
  96. package/es/modules/dataPlan/addEventOrUser.js +31 -30
  97. package/es/modules/dataPlan/addPlan.js +29 -27
  98. package/es/modules/dataPlan/eventList.js +2 -2
  99. package/es/modules/dataPlan/index.js +10 -10
  100. package/es/modules/dataPlan/search.js +6 -5
  101. package/es/modules/dataPlan/styles/index.less +316 -316
  102. package/es/modules/dataPlan/tablePlus.js +3 -3
  103. package/es/modules/dataPlan/userAttributeList.js +5 -5
  104. package/es/modules/dataReal/css/index.css +48 -0
  105. package/es/modules/dataReal/css/index.less +51 -0
  106. package/es/modules/dataReal/demo/index.d.ts +3 -0
  107. package/es/modules/dataReal/demo/index.js +6 -0
  108. package/es/modules/dataReal/index1.d.ts +28 -0
  109. package/es/modules/dataReal/index1.js +247 -0
  110. package/es/modules/dataReal/table.d.ts +5 -0
  111. package/es/modules/dataReal/table.js +260 -0
  112. package/es/store/index.js +11 -11
  113. package/es/utils/index.d.ts +1 -0
  114. package/es/utils/index.js +9 -1
  115. package/package.json +64 -58
@@ -0,0 +1,115 @@
1
+ .depositPopBg {
2
+ position: fixed;
3
+ top: 0;
4
+ right: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ z-index: 10000;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ background: rgba(2, 20, 41, 0.8);
12
+ .depositPopHeader {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ height: 82px;
17
+ padding-right: 24px;
18
+ padding-left: 24px;
19
+ .depositPopHeaderTitle {
20
+ color: #000;
21
+ font-weight: 500;
22
+ font-size: 24px;
23
+ font-family: PingFang SC;
24
+ font-style: normal;
25
+ line-height: normal;
26
+ }
27
+ }
28
+ .depositPopContent {
29
+ width: 960px;
30
+ background-color: #fff;
31
+ border-radius: 10px;
32
+ }
33
+ .depositPopPngBox {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: space-between;
37
+ padding-right: 24px;
38
+ padding-left: 24px;
39
+ .depositPopPng {
40
+ width: 444px;
41
+ height: 266px;
42
+ overflow: hidden;
43
+ background-color: #f6fbfe;
44
+ background-repeat: no-repeat;
45
+ background-position: top right;
46
+ background-size: contain;
47
+ border-radius: 8px;
48
+ }
49
+ .depositPopPng01 {
50
+ background-image: url('./imgs/png01.png');
51
+ }
52
+ .depositPopPng02 {
53
+ background-image: url('./imgs/png02.png');
54
+ }
55
+ }
56
+ .depositPopTxtBox {
57
+ display: flex;
58
+ // align-items: center;
59
+ flex-direction: column;
60
+ justify-content: space-between;
61
+ padding: 24px;
62
+ .depositPopTxt {
63
+ display: flex;
64
+ align-items: center;
65
+ color: var(--io-n-8, #354354);
66
+ font-weight: 400;
67
+ font-size: 14px;
68
+ font-family: PingFang SC;
69
+ font-style: normal;
70
+ line-height: normal;
71
+ line-height: 20px;
72
+ }
73
+ .depositPopClickIcon {
74
+ margin-right: 8px;
75
+ margin-left: 16px;
76
+ color: #165dff;
77
+ cursor: pointer;
78
+ }
79
+ .depositPopClickTxt {
80
+ color: #165dff;
81
+ cursor: pointer;
82
+ }
83
+ .depositPopTxt::before {
84
+ display: inline-block;
85
+ margin: 7px;
86
+ padding: 3px;
87
+ background-color: #354354;
88
+ border-radius: 3px;
89
+ content: '';
90
+ }
91
+ }
92
+ .depositPopFooter {
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: flex-end;
96
+ height: 80px;
97
+ padding-right: 24px;
98
+ border-top: 1px solid #f2f3f4;
99
+ // > :nth-child(1) {
100
+ // margin-right: 16px;
101
+ // color: #fff;
102
+ // background-color: #29bd52;
103
+ // border-color: #29bd52;
104
+ // }
105
+ }
106
+ .depositPopLinkPng {
107
+ width: 16px;
108
+ height: 16px;
109
+ overflow: hidden;
110
+ background-image: url('./imgs/link.png');
111
+ background-repeat: no-repeat;
112
+ background-position: top right;
113
+ background-size: contain;
114
+ }
115
+ }
@@ -0,0 +1,36 @@
1
+ .devModel {
2
+ box-sizing: border-box;
3
+ }
4
+ .devModel_radioList {
5
+ display: grid;
6
+ grid-column-gap: 10px;
7
+ grid-template-columns: repeat(4, 1fr);
8
+ align-items: center;
9
+ justify-content: center;
10
+ }
11
+ .devModel_radioList_item {
12
+ padding: 20px 0px;
13
+ color: #354354;
14
+ text-align: center;
15
+ background: #fafafb;
16
+ }
17
+ .devModel_radioList_active {
18
+ color: #165dff;
19
+ background: #e8efff;
20
+ }
21
+ .devModel_content {
22
+ margin: 0px 0px 24px;
23
+ padding: 0px 0px 24px;
24
+ border-bottom: 1px solid #f2f3f4;
25
+ }
26
+ .devModel_content h3 {
27
+ margin: 0px 0px 16px;
28
+ }
29
+ .devModel_content .buttonText {
30
+ margin: 0px 0px 0px 8px;
31
+ }
32
+ .devModel_content:last-child {
33
+ margin: 0px 0px 0px;
34
+ padding: 0px 0px 0px;
35
+ border-bottom: 0px solid #f2f3f4;
36
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: (props: {
4
+ onCloseModal: Function;
5
+ }) => React.JSX.Element;
6
+ export default _default;
@@ -0,0 +1,224 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
4
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
5
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
8
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
11
+ import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
12
+ import React, { useContext, useEffect, useState } from 'react';
13
+ import { Button, Form, Input, Select, notification } from 'antd';
14
+ import apis from '../../../../constants/api';
15
+ import request from '../../../../utils/ajax';
16
+ import './index.less';
17
+ var classNames = 'devModel';
18
+ export default (function (props) {
19
+ var _useState = useState([{
20
+ name: 'JS',
21
+ id: '206',
22
+ icon: 'a-js2'
23
+ }, {
24
+ name: 'IOS',
25
+ id: '175',
26
+ icon: 'ios1'
27
+ }, {
28
+ name: 'android',
29
+ id: '174',
30
+ icon: 'android1'
31
+ }, {
32
+ name: '更多',
33
+ id: '',
34
+ icon: 'gengduocaozuo2'
35
+ }]),
36
+ _useState2 = _slicedToArray(_useState, 2),
37
+ list = _useState2[0],
38
+ setList = _useState2[1];
39
+ var _useContext = useContext(BizGlobalDataContext),
40
+ router = _useContext.router,
41
+ currentApp = _useContext.currentApp;
42
+ var _useState3 = useState('206'),
43
+ _useState4 = _slicedToArray(_useState3, 2),
44
+ currentTypeId = _useState4[0],
45
+ setCurrentTypeId = _useState4[1];
46
+ // 选中事件
47
+ var _useState5 = useState(0),
48
+ _useState6 = _slicedToArray(_useState5, 2),
49
+ currentIndex = _useState6[0],
50
+ setCurrentIndex = _useState6[1];
51
+ var handleSelect = function handleSelect(currentId) {
52
+ setCurrentTypeId(currentId);
53
+ // 跳转调试路径
54
+ // window.open(`${window.location.href.split('/panel')[0]}/manage/dataAccess/guide/basic`)
55
+ if (currentId != '') {
56
+ router === null || router === void 0 ? void 0 : router.push({
57
+ name: 'router-dataAccess-guidePage',
58
+ params: {
59
+ datainId: currentId,
60
+ type: 'basic'
61
+ }
62
+ });
63
+ return;
64
+ }
65
+ router === null || router === void 0 ? void 0 : router.push({
66
+ name: 'router-dataAccess-guide'
67
+ });
68
+ };
69
+ // 调试
70
+ var _useState7 = useState(false),
71
+ _useState8 = _slicedToArray(_useState7, 2),
72
+ bugState = _useState8[0],
73
+ setBugState = _useState8[1];
74
+ // 进入测试
75
+ var _Form$useForm = Form.useForm(),
76
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
77
+ form = _Form$useForm2[0];
78
+ var _useState9 = useState(),
79
+ _useState10 = _slicedToArray(_useState9, 2),
80
+ personnelOptions = _useState10[0],
81
+ setPersonnelOptions = _useState10[1];
82
+ var validateForm = /*#__PURE__*/function () {
83
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
84
+ var values;
85
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
86
+ while (1) switch (_context.prev = _context.next) {
87
+ case 0:
88
+ _context.prev = 0;
89
+ _context.next = 3;
90
+ return form.validateFields();
91
+ case 3:
92
+ values = _context.sent;
93
+ // 表单验证是否通过
94
+ request(apis.saveDevManage, {
95
+ method: 'POST',
96
+ data: {
97
+ app_id: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) || 3,
98
+ demandId: values === null || values === void 0 ? void 0 : values.demandId,
99
+ testersId: values === null || values === void 0 ? void 0 : values.testersId
100
+ }
101
+ }).then(function (res) {
102
+ if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
103
+ notification.success({
104
+ message: '提交成功'
105
+ });
106
+ props.onCloseModal();
107
+ form.resetFields(); // 表单重置
108
+ return;
109
+ }
110
+ notification.error({
111
+ message: res === null || res === void 0 ? void 0 : res.msg
112
+ });
113
+ });
114
+ _context.next = 10;
115
+ break;
116
+ case 7:
117
+ _context.prev = 7;
118
+ _context.t0 = _context["catch"](0);
119
+ console.log(_context.t0, '验证失败');
120
+ case 10:
121
+ case "end":
122
+ return _context.stop();
123
+ }
124
+ }, _callee, null, [[0, 7]]);
125
+ }));
126
+ return function validateForm() {
127
+ return _ref.apply(this, arguments);
128
+ };
129
+ }();
130
+ useEffect(function () {
131
+ request(apis.companyUsers, {
132
+ method: 'get'
133
+ }).then(function (res) {
134
+ if (!res) throw new Error();
135
+ setPersonnelOptions(res.data);
136
+ });
137
+ }, []);
138
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
139
+ className: "".concat(classNames, "_content")
140
+ }, /*#__PURE__*/React.createElement("h3", null, "\u4EE3\u7801\u793A\u4F8B"), /*#__PURE__*/React.createElement("div", {
141
+ className: "".concat(classNames, "_radioList")
142
+ }, list.map(function (item, index) {
143
+ return /*#__PURE__*/React.createElement("div", {
144
+ key: item.id,
145
+ className: "".concat(classNames, "_radioList_item ").concat(index === currentIndex ? "".concat(classNames, "_radioList_active") : ''),
146
+ onClick: function onClick() {
147
+ setCurrentIndex(index);
148
+ handleSelect(item.id);
149
+ }
150
+ }, /*#__PURE__*/React.createElement(IconFont, {
151
+ type: item.icon,
152
+ size: 24
153
+ }), /*#__PURE__*/React.createElement("div", null, item.name));
154
+ }))), /*#__PURE__*/React.createElement("div", {
155
+ className: "".concat(classNames, "_content")
156
+ }, /*#__PURE__*/React.createElement("h3", null, "\u4EE3\u7801\u8C03\u8BD5"), /*#__PURE__*/React.createElement(Button, {
157
+ type: "primary",
158
+ onClick: function onClick() {
159
+ // window.open(window.location.origin+'/modules/data-real',"_blank")
160
+ if (currentTypeId == '') return;
161
+ setBugState(!bugState);
162
+ // manage/dataAccess/debug
163
+ // router?.push({
164
+ // name: 'router-dataAccess-debug',
165
+ // params:{datainId:currentTypeId}
166
+ // });
167
+ var _window$location = window.location,
168
+ origin = _window$location.origin,
169
+ pathname = _window$location.pathname;
170
+ window.open("".concat(origin).concat(pathname.split('0')[0], "0/manage/dataAccess/debug?datainId=").concat(currentTypeId));
171
+ }
172
+ }, bugState ? /*#__PURE__*/React.createElement(IconFont, {
173
+ type: "zanting"
174
+ }) : /*#__PURE__*/React.createElement(IconFont, {
175
+ type: "bofang"
176
+ }), /*#__PURE__*/React.createElement("span", {
177
+ className: "buttonText"
178
+ }, "\u7ACB\u5373\u8C03\u8BD5"))), /*#__PURE__*/React.createElement("div", {
179
+ className: "".concat(classNames, "_content")
180
+ }, /*#__PURE__*/React.createElement("h3", null, "\u8FDB\u5165\u6D4B\u8BD5"), /*#__PURE__*/React.createElement(Form, {
181
+ form: form,
182
+ labelCol: {
183
+ span: 4
184
+ },
185
+ wrapperCol: {
186
+ span: 20
187
+ },
188
+ initialValues: {
189
+ demandId: '',
190
+ testersId: ''
191
+ }
192
+ }, /*#__PURE__*/React.createElement(Form.Item, {
193
+ label: "\u9700\u6C42id",
194
+ name: "demandId",
195
+ rules: [{
196
+ required: true,
197
+ message: '请填写需求id'
198
+ }]
199
+ }, /*#__PURE__*/React.createElement(Input, {
200
+ maxLength: 20,
201
+ showCount: true
202
+ })), /*#__PURE__*/React.createElement(Form.Item, {
203
+ label: "\u6D4B\u8BD5\u4EBA\u5458",
204
+ name: "testersId",
205
+ rules: [{
206
+ required: true,
207
+ message: '请选择测试人员'
208
+ }]
209
+ }, /*#__PURE__*/React.createElement(Select, {
210
+ fieldNames: {
211
+ label: 'userName',
212
+ value: 'id'
213
+ },
214
+ options: personnelOptions,
215
+ showSearch: true
216
+ })), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
217
+ type: "primary",
218
+ onClick: validateForm
219
+ }, /*#__PURE__*/React.createElement(IconFont, {
220
+ type: "tijiao"
221
+ }), /*#__PURE__*/React.createElement("span", {
222
+ className: "buttonText"
223
+ }, "\u63D0\u4EA4\u6D4B\u8BD5"))))));
224
+ });
@@ -0,0 +1,36 @@
1
+ .devModel {
2
+ box-sizing: border-box;
3
+ &_radioList {
4
+ display: grid;
5
+ grid-column-gap: 10px;
6
+ grid-template-columns: repeat(4, 1fr);
7
+ align-items: center;
8
+ justify-content: center;
9
+ &_item {
10
+ padding: 20px 0px;
11
+ color: #354354;
12
+ text-align: center;
13
+ background: #fafafb;
14
+ }
15
+ &_active {
16
+ color: #165dff;
17
+ background: #e8efff;
18
+ }
19
+ }
20
+ &_content {
21
+ margin: 0px 0px 24px;
22
+ padding: 0px 0px 24px;
23
+ border-bottom: 1px solid #f2f3f4;
24
+ h3 {
25
+ margin: 0px 0px 16px;
26
+ }
27
+ .buttonText {
28
+ margin: 0px 0px 0px 8px;
29
+ }
30
+ }
31
+ &_content:last-child {
32
+ margin: 0px 0px 0px;
33
+ padding: 0px 0px 0px;
34
+ border-bottom: 0px solid #f2f3f4;
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const BizEditText: any;
3
+ export default BizEditText;
@@ -0,0 +1,123 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ import { Input, message } from 'antd';
8
+ import React, { useImperativeHandle, useRef, useState } from 'react';
9
+ import './index.less';
10
+ import { IconFont } from '@zgfe/business-lib';
11
+ var BizEditText = /*#__PURE__*/React.forwardRef(function (props, ref) {
12
+ var classPrefix = 'dm-create-meta-drawer-edit-text';
13
+ var inputRef = useRef(null);
14
+ // 最新内容
15
+ var _useState = useState(props.value),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ curTitle = _useState2[0],
18
+ setCurTitle = _useState2[1];
19
+ // 上次改变的内容
20
+ var _useState3 = useState(props.value),
21
+ _useState4 = _slicedToArray(_useState3, 2),
22
+ prevTitle = _useState4[0],
23
+ setPrevTitle = _useState4[1];
24
+ // 是否是编辑状态
25
+ var _useState5 = useState(false && props.canEdit),
26
+ _useState6 = _slicedToArray(_useState5, 2),
27
+ isEdit = _useState6[0],
28
+ setIsEdit = _useState6[1];
29
+ // 错误信息
30
+ var _useState7 = useState(''),
31
+ _useState8 = _slicedToArray(_useState7, 2),
32
+ errorText = _useState8[0],
33
+ setErrorText = _useState8[1];
34
+ // 暴露实例
35
+ useImperativeHandle(ref, function () {
36
+ return {
37
+ setEdit: function setEdit() {
38
+ setIsEdit(true);
39
+ inputRef.current.focus();
40
+ }
41
+ };
42
+ });
43
+ // 更改标题
44
+ var onBlur = function onBlur(e) {
45
+ var value = e.target.value.trim();
46
+ // if (props.required && !value) {
47
+ // inputRef.current.focus();
48
+ // setErrorText(`${props.name || '名称'}不能为空`);
49
+ // props.onChange && props.onChange(value);
50
+ // return;
51
+ // }
52
+ if (value && prevTitle && value === prevTitle) {
53
+ setIsEdit(false);
54
+ return;
55
+ }
56
+ if (props.onService) {
57
+ props.onService(value, changeService);
58
+ } else {
59
+ setIsEdit(false);
60
+ props.onChange && props.onChange(value);
61
+ }
62
+ };
63
+ /**
64
+ * 访问服务器回调
65
+ * @param error 是否编辑失败
66
+ * @param msg 报错信息
67
+ */
68
+ var changeService = function changeService(error, msg) {
69
+ if (error) {
70
+ if (!msg) {
71
+ setCurTitle(prevTitle);
72
+ } else {
73
+ setErrorText(msg);
74
+ }
75
+ } else {
76
+ setIsEdit(false);
77
+ setPrevTitle(curTitle);
78
+ message.success("".concat(props.name || '', "\u7F16\u8F91\u6210\u529F"));
79
+ }
80
+ };
81
+ var onChange = function onChange(e) {
82
+ setErrorText('');
83
+ setCurTitle(e.target.value.trim());
84
+ };
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: classPrefix
87
+ }, isEdit || props.isInput ? (/*#__PURE__*/React.createElement("div", {
88
+ className: "".concat(classPrefix, "-input")
89
+ }, /*#__PURE__*/React.createElement(Input, {
90
+ ref: inputRef,
91
+ className: "".concat(classPrefix, "-input-content"),
92
+ status: errorText && 'error',
93
+ value: curTitle,
94
+ required: props.required,
95
+ disabled: !props.canEdit,
96
+ autoFocus: true,
97
+ maxLength: props.max,
98
+ placeholder: "\u8BF7\u8F93\u5165".concat(props.name || ''),
99
+ onBlur: onBlur,
100
+ onChange: onChange
101
+ }), errorText ? /*#__PURE__*/React.createElement("span", {
102
+ className: "".concat(classPrefix, "-error-tip")
103
+ }, errorText) : null)) : (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
104
+ className: "".concat(classPrefix, "-content"),
105
+ style: {
106
+ color: props.value ? '#021429' : '#9AA1A9'
107
+ },
108
+ onClick: function onClick() {
109
+ setIsEdit(true);
110
+ }
111
+ }, props.value || props.placeholder || '请输入'), props.canEdit && !props.isOnlyTxt ? (/*#__PURE__*/React.createElement(IconFont, {
112
+ className: "".concat(classPrefix, "-icon"),
113
+ type: "bianji1",
114
+ onClick: function onClick() {
115
+ setIsEdit(true);
116
+ }
117
+ })) : null)));
118
+ });
119
+ BizEditText.defaultProps = {
120
+ required: true,
121
+ canEdit: true
122
+ };
123
+ export default BizEditText;
@@ -0,0 +1,44 @@
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+ .dm-create-meta-drawer-edit-text {
3
+ display: flex;
4
+ align-items: center;
5
+ &-input {
6
+ position: relative;
7
+ width: 350px;
8
+ height: 100%;
9
+ .ant-input {
10
+ background-color: #fff !important;
11
+ border-color: #fff;
12
+ &:not(.ant-input-status-error):hover {
13
+ border-color: @primary-color!important;
14
+ }
15
+ &:not(.ant-input-status-error):focus {
16
+ border-color: @primary-color!important;
17
+ }
18
+ }
19
+ }
20
+ &-error-tip {
21
+ position: absolute;
22
+ top: 100%;
23
+ left: 0;
24
+ color: @error-color;
25
+ line-height: 1.2;
26
+ }
27
+
28
+ &-content {
29
+ display: inline-block;
30
+ max-width: 330px;
31
+ height: @height-sm;
32
+ color: #021429;
33
+ // font-weight: bold;
34
+ font-size: 14px;
35
+ line-height: @height-sm;
36
+ .__default-overflow();
37
+ }
38
+ &-icon {
39
+ margin-left: @margin-xs;
40
+ color: #9aa1a9;
41
+ font-size: 16px !important;
42
+ cursor: pointer;
43
+ }
44
+ }
@@ -0,0 +1,48 @@
1
+ export interface TitleProps {
2
+ /**
3
+ * 标题
4
+ */
5
+ placeholder?: string;
6
+ /**
7
+ * 标题
8
+ */
9
+ name?: string;
10
+ /**
11
+ * 标题内容
12
+ */
13
+ value?: string;
14
+ /**
15
+ * 标题最大字数
16
+ */
17
+ max?: number;
18
+ /**
19
+ * 是否只有输入框类型
20
+ */
21
+ isInput?: boolean;
22
+ /**
23
+ * 是否只有文本,点击文本进入编辑
24
+ */
25
+ isOnlyTxt?: boolean;
26
+ /**
27
+ * 是否可编辑
28
+ */
29
+ canEdit?: boolean;
30
+ /**
31
+ * 标题是否必填
32
+ * @default true
33
+ */
34
+ required?: boolean;
35
+ /**
36
+ * 输入框宽度
37
+ * @default 350
38
+ */
39
+ width?: number;
40
+ /**
41
+ * 名称改变回调
42
+ */
43
+ onChange?: (value: string) => void;
44
+ /**
45
+ * 失焦时回调该方法
46
+ */
47
+ onService?: (value: string, callback: Function) => void;
48
+ }
@@ -0,0 +1 @@
1
+ export {};