@zgfe/modules-settings 1.2.51-zhongyuan.0 → 1.2.51-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 (173) hide show
  1. package/README.md +33 -33
  2. package/es/components/card/demo/index.js +6 -6
  3. package/es/components/card/index.js +6 -6
  4. package/es/components/card/index.less +87 -87
  5. package/es/components/pageLoading/index.less +7 -7
  6. package/es/components/picCircleSelect/bak/index copy 2.tsx.bak +92 -92
  7. package/es/components/picCircleSelect/bak/index copy 3.tsx.bak +58 -58
  8. package/es/components/picCircleSelect/bak/index copy 4.tsx.bak +66 -66
  9. package/es/components/picCircleSelect/bak/index copy 5.tsx.bak +116 -116
  10. package/es/components/picCircleSelect/bak/index copy 6.tsx.bak +116 -116
  11. package/es/components/picCircleSelect/bak/index copy.tsx.bak +41 -41
  12. package/es/components/picCircleSelect/bak/index.tsx.bak +48 -48
  13. package/es/components/picCircleSelect/bak/index1.tsx.bak +46 -46
  14. package/es/components/picCircleSelect/bak/index2.tsx.bak +104 -104
  15. package/es/components/picCircleSelect/demo/index.js +5 -5
  16. package/es/components/picCircleSelect/index.js +7 -8
  17. package/es/components/picCircleSelect/index.less +37 -37
  18. package/es/components/processCanvas/customNode/node_point.js +4 -4
  19. package/es/components/processCanvas/demo/index.js +5 -6
  20. package/es/components/processCanvas/index.js +11 -11
  21. package/es/components/processCanvas/styles/customNode.less +149 -149
  22. package/es/components/processCanvas/styles/index.less +34 -34
  23. package/es/components/processCanvas/toolbar.js +5 -5
  24. package/es/components/selectAppWrapper/index.js +14 -15
  25. package/es/components/settingTabs/index.js +5 -5
  26. package/es/components/settingTabs/index.less +51 -51
  27. package/es/constants/api.d.ts +13 -0
  28. package/es/constants/api.js +18 -2
  29. package/es/constants/icons/demo.css +539 -539
  30. package/es/constants/icons/demo_index.html +9871 -9871
  31. package/es/constants/icons/iconfont.css +1699 -1699
  32. package/es/constants/icons/iconfont.json +2956 -2956
  33. package/es/global.d.ts +4 -4
  34. package/es/modules/appSettings/appInfo/index.js +7 -7
  35. package/es/modules/appSettings/dataAccessFilter/index.js +5 -5
  36. package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
  37. package/es/modules/appSettings/virtualSource/index.js +7 -7
  38. package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
  39. package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
  40. package/es/modules/companySetting/appList/index.js +12 -12
  41. package/es/modules/companySetting/appList/index.less +126 -126
  42. package/es/modules/companySetting/application/applicationForm.js +9 -9
  43. package/es/modules/companySetting/application/applicationSetting.js +5 -5
  44. package/es/modules/companySetting/application/index.js +28 -28
  45. package/es/modules/companySetting/application/index.less +126 -126
  46. package/es/modules/companySetting/business/businessForm.js +7 -7
  47. package/es/modules/companySetting/business/index.js +27 -27
  48. package/es/modules/companySetting/business/index.less +92 -92
  49. package/es/modules/companySetting/cost/index.js +20 -20
  50. package/es/modules/companySetting/cost/index.less +38 -38
  51. package/es/modules/companySetting/department/index.js +16 -16
  52. package/es/modules/companySetting/department/index.less +157 -157
  53. package/es/modules/companySetting/edit/authConfig.js +5 -5
  54. package/es/modules/companySetting/edit/authConfigCEP.js +11 -11
  55. package/es/modules/companySetting/edit/authGroup.js +13 -13
  56. package/es/modules/companySetting/edit/authModule.js +18 -18
  57. package/es/modules/companySetting/edit/multiAuthModule.js +13 -13
  58. package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
  59. package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
  60. package/es/modules/companySetting/edit/styles/authModule.less +82 -82
  61. package/es/modules/companySetting/edit/styles/user.less +54 -54
  62. package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
  63. package/es/modules/companySetting/edit/user.js +14 -14
  64. package/es/modules/companySetting/edit/userGroup.js +16 -16
  65. package/es/modules/companySetting/index.js +29 -29
  66. package/es/modules/companySetting/index.less +90 -90
  67. package/es/modules/companySetting/info/index.js +7 -7
  68. package/es/modules/companySetting/info/index.less +42 -42
  69. package/es/modules/companySetting/mainPart/images/img2.svg +12 -12
  70. package/es/modules/companySetting/mainPart/index.js +28 -28
  71. package/es/modules/companySetting/mainPart/index.less +239 -239
  72. package/es/modules/companySetting/mainPart/mainPartForm.js +13 -13
  73. package/es/modules/companySetting/mainPart/mainPartSetting.js +5 -5
  74. package/es/modules/companySetting/mainPart/useColumns.js +16 -16
  75. package/es/modules/companySetting/operationLog/index.js +13 -13
  76. package/es/modules/companySetting/operationLog/index.less +33 -33
  77. package/es/modules/companySetting/role/index.js +23 -23
  78. package/es/modules/companySetting/role/index.less +296 -296
  79. package/es/modules/companySetting/role/setDataRangeDialog/index.js +2 -2
  80. package/es/modules/companySetting/role/setDataRangeDialog/index.less +37 -37
  81. package/es/modules/companySetting/style/common.less +79 -79
  82. package/es/modules/companySetting/style/reset.less +117 -117
  83. package/es/modules/companySetting/user/index.js +193 -24
  84. package/es/modules/companySetting/user/index.less +11 -0
  85. package/es/modules/companySetting/user/invite.js +14 -14
  86. package/es/modules/companySetting/virtualApp/config.js +8 -8
  87. package/es/modules/companySetting/virtualApp/index.js +12 -12
  88. package/es/modules/companySetting/virtualApp/panels/list.js +8 -9
  89. package/es/modules/companySetting/virtualApp/panels/sourceItem.js +7 -7
  90. package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
  91. package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
  92. package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
  93. package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
  94. package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
  95. package/es/modules/companySetting/wechatBinding/index.js +7 -7
  96. package/es/modules/companySetting/wechatBinding/index.less +58 -58
  97. package/es/modules/createDemand/collectionAttributeList.js +9 -9
  98. package/es/modules/createDemand/constants.js +17 -17
  99. package/es/modules/createDemand/demo/index.js +7 -7
  100. package/es/modules/createDemand/demo/selectPoint.js +13 -13
  101. package/es/modules/createDemand/index.js +39 -41
  102. package/es/modules/createDemand/styles/index.less +277 -277
  103. package/es/modules/createDemand_bf/collectionAttributeList.js +9 -9
  104. package/es/modules/createDemand_bf/constants.js +4 -4
  105. package/es/modules/createDemand_bf/index.js +35 -35
  106. package/es/modules/createDemand_bf/styles/index.less +222 -222
  107. package/es/modules/createProcess/components/index.less +52 -52
  108. package/es/modules/createProcess/components/processNode.js +11 -11
  109. package/es/modules/createProcess/index.js +17 -17
  110. package/es/modules/createProcess/index.less +114 -114
  111. package/es/modules/createProcess/title/index.js +11 -11
  112. package/es/modules/createProcess/title/index.less +53 -53
  113. package/es/modules/dealDemand/collectionAttributeList.js +9 -9
  114. package/es/modules/dealDemand/constants.js +7 -7
  115. package/es/modules/dealDemand/demo/index.js +7 -7
  116. package/es/modules/dealDemand/demo/selectPoint.js +13 -13
  117. package/es/modules/dealDemand/index.js +22 -24
  118. package/es/modules/dealDemand/styles/index.less +265 -265
  119. package/es/modules/demandManage/index.js +14 -15
  120. package/es/modules/demandManage/styles/index.less +210 -210
  121. package/es/modules/getPassword/index.js +10 -10
  122. package/es/modules/getPassword/index.less +122 -122
  123. package/es/modules/messageList/index.js +7 -8
  124. package/es/modules/messageList/index.less +81 -81
  125. package/es/modules/personalSetting/index.js +5 -5
  126. package/es/modules/personalSetting/info/index.js +5 -5
  127. package/es/modules/personalSetting/reset/index.js +5 -5
  128. package/es/modules/personalSetting/securityLog/index.js +14 -14
  129. package/es/modules/personalSetting/securityLog/index.less +11 -11
  130. package/es/modules/personalSetting/styles/unbinding.less +73 -73
  131. package/es/modules/personalSetting/unbinding/index.js +5 -5
  132. package/es/modules/pointMap/ImportModal/demo/index.js +5 -5
  133. package/es/modules/pointMap/ImportModal/index.js +14 -14
  134. package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
  135. package/es/modules/pointMap/demo/index.js +7 -7
  136. package/es/modules/pointMap/editTxt/index.js +11 -11
  137. package/es/modules/pointMap/editTxt/index.less +55 -55
  138. package/es/modules/pointMap/index.js +11 -11
  139. package/es/modules/pointMap/pageInfo.js +44 -46
  140. package/es/modules/pointMap/styles/index.less +38 -38
  141. package/es/modules/pointMap/styles/pageInfo.less +244 -244
  142. package/es/modules/pointMap/styles/tree.css +142 -0
  143. package/es/modules/pointMap/styles/tree.less +29 -0
  144. package/es/modules/pointMap/tree.js +75 -27
  145. package/es/modules/systemSetting/Dictionary.d.ts +3 -0
  146. package/es/modules/systemSetting/Dictionary.js +387 -0
  147. package/es/modules/systemSetting/DictionaryType.d.ts +14 -0
  148. package/es/modules/systemSetting/DictionaryType.js +203 -0
  149. package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.js +14 -14
  150. package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.less +14 -14
  151. package/es/modules/systemSetting/approvalmanage/index.js +5 -5
  152. package/es/modules/systemSetting/approvalmanage/index.less +5 -5
  153. package/es/modules/systemSetting/approvalmanage/processManage/index.js +13 -13
  154. package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
  155. package/es/modules/systemSetting/authUrl.js +15 -15
  156. package/es/modules/systemSetting/document-setting/index.d.ts +3 -0
  157. package/es/modules/systemSetting/document-setting/index.js +467 -0
  158. package/es/modules/systemSetting/img/empty-data.png +0 -0
  159. package/es/modules/systemSetting/index.css +111 -0
  160. package/es/modules/systemSetting/index.js +19 -8
  161. package/es/modules/systemSetting/index.less +117 -0
  162. package/es/modules/systemSetting/notice/configItem/index.less +21 -21
  163. package/es/modules/systemSetting/notice/edit/index.js +5 -5
  164. package/es/modules/systemSetting/notice/edit/index.less +26 -26
  165. package/es/modules/systemSetting/notice/index.js +11 -11
  166. package/es/requests/department.js +6 -6
  167. package/es/requests/role.js +6 -6
  168. package/es/types/companySetting.d.ts +1 -0
  169. package/es/utils/base64.js +0 -1
  170. package/es/utils/constants.js +0 -4
  171. package/es/utils/functionalPermissions.js +6 -8
  172. package/es/utils/util.js +16 -16
  173. package/package.json +9 -7
@@ -0,0 +1,467 @@
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ 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; }
8
+ 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); }
9
+ 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); }); }; }
10
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
11
+ 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."); }
12
+ 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; } }
13
+ 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; }
14
+ 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; } }
15
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
+ import React, { useEffect, useState, useRef, useContext } from 'react';
17
+ import { Button, Modal, Space, Table, Input, message, Radio, Upload, Select, Tooltip } from 'antd';
18
+ import { InboxOutlined, SearchOutlined } from '@ant-design/icons';
19
+ import { BizGlobalDataContext } from '@zgfe/business-lib';
20
+ import moment from 'moment';
21
+ import { queryCompanyUser } from '../../../requests/role';
22
+ import apis from '../../../constants/api';
23
+ import request from '../../../utils/ajax';
24
+ var Dragger = Upload.Dragger;
25
+ var pageName = 'DocumentSetting';
26
+ var confirm = Modal.confirm;
27
+ var beforeUpload = function beforeUpload(file) {
28
+ var isJpgOrPng = file.type == 'application/x-zip-compressed';
29
+ if (!isJpgOrPng) {
30
+ message.error('只能传入是ZIP文件');
31
+ }
32
+ var isLt2M = file.size / 1024 / 1024 < 100;
33
+ if (!isLt2M) {
34
+ message.error('文件不能大于100M');
35
+ }
36
+ return isJpgOrPng && isLt2M;
37
+ };
38
+ var downloadFile = function downloadFile(resData, name) {
39
+ var blob = resData.data;
40
+ var fileName = '';
41
+ if (name) {
42
+ var fileType = fileName.split('.')[1];
43
+ fileName = "".concat(name, ".").concat(fileType);
44
+ }
45
+ var href = URL.createObjectURL(blob);
46
+ var a = document.createElement('a');
47
+ a.href = href;
48
+ a.download = fileName;
49
+ a.click();
50
+ return null;
51
+ };
52
+ var DocumentSetting = function DocumentSetting() {
53
+ var _useContext = useContext(BizGlobalDataContext),
54
+ projectList = _useContext.projectList;
55
+ var _useState = useState(),
56
+ _useState2 = _slicedToArray(_useState, 2),
57
+ documentList = _useState2[0],
58
+ setDocumentList = _useState2[1];
59
+ var currentObj = useRef();
60
+ var columns = [{
61
+ title: '序号',
62
+ dataIndex: 'index',
63
+ key: 'index',
64
+ render: function render(_, obj, index) {
65
+ return index + 1;
66
+ }
67
+ }, {
68
+ title: '文档名称',
69
+ dataIndex: 'name',
70
+ key: 'name'
71
+ }, {
72
+ title: '创建时间',
73
+ dataIndex: 'createdTime',
74
+ key: 'createdTime',
75
+ sorter: function sorter(a, b) {
76
+ return moment(b.createdTime).valueOf() - moment(a.createdTime).valueOf();
77
+ },
78
+ render: function render(text) {
79
+ return moment(text).format('YYYY-MM-DD HH:mm:ss');
80
+ }
81
+ }, {
82
+ title: '操作',
83
+ key: 'operation',
84
+ render: function render(_, record) {
85
+ return /*#__PURE__*/React.createElement(Space, {
86
+ size: "middle"
87
+ }, /*#__PURE__*/React.createElement("a", {
88
+ onClick: function onClick() {
89
+ currentObj.current = record;
90
+ exportEvent();
91
+ }
92
+ }, "\u4E0B\u8F7D"), /*#__PURE__*/React.createElement("a", {
93
+ onClick: function onClick() {
94
+ setIsOpenShareModal(true);
95
+ currentObj.current = record;
96
+ }
97
+ }, "\u5206\u4EAB"), /*#__PURE__*/React.createElement("a", {
98
+ onClick: function onClick() {
99
+ currentObj.current = record;
100
+ confirm({
101
+ title: '提示',
102
+ content: '是否确定删除该文件!',
103
+ cancelText: '取消',
104
+ okText: '确定',
105
+ centered: true,
106
+ onOk: function onOk() {
107
+ deleteFile();
108
+ },
109
+ onCancel: function onCancel() {
110
+ console.log('Cancel');
111
+ }
112
+ });
113
+ }
114
+ }, "\u5220\u9664"));
115
+ }
116
+ }];
117
+ var exportEvent = /*#__PURE__*/function () {
118
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
119
+ var _currentObj$current, _currentObj$current2;
120
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
121
+ while (1) switch (_context.prev = _context.next) {
122
+ case 0:
123
+ request(apis.setting.downloadDocument, {
124
+ method: 'POST',
125
+ data: {
126
+ id: (_currentObj$current = currentObj.current) === null || _currentObj$current === void 0 ? void 0 : _currentObj$current.id
127
+ },
128
+ responseType: 'blob',
129
+ fileName: (_currentObj$current2 = currentObj.current) === null || _currentObj$current2 === void 0 ? void 0 : _currentObj$current2.name
130
+ }).then(function (res) {
131
+ console.log(res, '');
132
+ });
133
+ case 1:
134
+ case "end":
135
+ return _context.stop();
136
+ }
137
+ }, _callee);
138
+ }));
139
+ return function exportEvent() {
140
+ return _ref.apply(this, arguments);
141
+ };
142
+ }();
143
+ // 删除文件
144
+ var deleteFile = function deleteFile() {
145
+ var _currentObj$current3;
146
+ request(apis.setting.deleteDocumentFile, {
147
+ method: 'post',
148
+ data: {
149
+ id: (_currentObj$current3 = currentObj.current) === null || _currentObj$current3 === void 0 ? void 0 : _currentObj$current3.id
150
+ }
151
+ }).then(function (res) {
152
+ if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
153
+ message.success('删除成功');
154
+ getFileList();
155
+ } else {
156
+ message.error('删除失败,联系管理员');
157
+ }
158
+ });
159
+ };
160
+ var _useState3 = useState(false),
161
+ _useState4 = _slicedToArray(_useState3, 2),
162
+ documentFlagLoading = _useState4[0],
163
+ setDocumentFlagLoading = _useState4[1];
164
+ var _useState5 = useState(''),
165
+ _useState6 = _slicedToArray(_useState5, 2),
166
+ searchValue = _useState6[0],
167
+ setSearchValue = _useState6[1];
168
+ // 文件上传
169
+ var _useState7 = useState(false),
170
+ _useState8 = _slicedToArray(_useState7, 2),
171
+ isOpenUploadModal = _useState8[0],
172
+ setIsOpenUploadModal = _useState8[1];
173
+ var handleValueCancel = function handleValueCancel() {
174
+ setIsOpenUploadModal(false);
175
+ setDocumentFlagLoading(false);
176
+ };
177
+ var _useState9 = useState(),
178
+ _useState10 = _slicedToArray(_useState9, 2),
179
+ fileList = _useState10[0],
180
+ setFileList = _useState10[1];
181
+ var props = {
182
+ name: 'file',
183
+ multiple: true,
184
+ beforeUpload: beforeUpload,
185
+ onChange: function onChange(info) {
186
+ var status = info.file.status;
187
+ if (status !== 'uploading') {
188
+ console.log(info.file, info.fileList);
189
+ }
190
+ if (status === 'done') {
191
+ setFileList(info.fileList[0].originFileObj);
192
+ } else if (status === 'error') {
193
+ message.error("".concat(info.file.name, " file upload failed."));
194
+ }
195
+ },
196
+ onDrop: function onDrop(e) {
197
+ console.log('Dropped files', e.dataTransfer.files);
198
+ }
199
+ };
200
+ var saveFile = function saveFile() {
201
+ var formData = new FormData();
202
+ formData.append('file', fileList);
203
+ request(apis.setting.uploadDocumentFile, {
204
+ method: 'post',
205
+ data: formData
206
+ }).then(function (res) {
207
+ if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
208
+ message.success('上传成功');
209
+ setIsOpenUploadModal(false);
210
+ setFileList(undefined);
211
+ getFileList();
212
+ } else {
213
+ message.error('上传失败,联系管理员');
214
+ }
215
+ });
216
+ };
217
+ // 共享
218
+ var _useState11 = useState(false),
219
+ _useState12 = _slicedToArray(_useState11, 2),
220
+ isOpenShareModal = _useState12[0],
221
+ setIsOpenShareModal = _useState12[1];
222
+ var _useState13 = useState(),
223
+ _useState14 = _slicedToArray(_useState13, 2),
224
+ currentShareType = _useState14[0],
225
+ setCurrentShareType = _useState14[1];
226
+ var _useState15 = useState([]),
227
+ _useState16 = _slicedToArray(_useState15, 2),
228
+ adminOptionList = _useState16[0],
229
+ setAdminOptionList = _useState16[1]; // 成员列表
230
+ var _useState17 = useState([]),
231
+ _useState18 = _slicedToArray(_useState17, 2),
232
+ currentAppArr = _useState18[0],
233
+ setCurrentAppArr = _useState18[1]; // 选中的应用id
234
+ var _useState19 = useState([]),
235
+ _useState20 = _slicedToArray(_useState19, 2),
236
+ currentUserArr = _useState20[0],
237
+ setCurrentUserArr = _useState20[1]; // 选中的成员id
238
+ var handleShareCancel = function handleShareCancel() {
239
+ setIsOpenShareModal(false);
240
+ setCurrentUserArr([]);
241
+ setCurrentAppArr([]);
242
+ setCurrentShareType(1);
243
+ };
244
+ var onShareChange = function onShareChange(e) {
245
+ setCurrentShareType(e.target.value);
246
+ setCurrentUserArr([]);
247
+ setCurrentAppArr([]);
248
+ };
249
+ useEffect(function () {
250
+ // 获取成员列表数据
251
+ queryRoleUserList(null);
252
+ getFileList();
253
+ }, []);
254
+ var getFileList = function getFileList() {
255
+ var searchValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
256
+ setDocumentFlagLoading(true);
257
+ request(apis.setting.getDocumentFileList, {
258
+ method: 'get',
259
+ params: {
260
+ name: searchValue
261
+ }
262
+ }).then(function (res) {
263
+ if (res && (res === null || res === void 0 ? void 0 : res.code) == '100000') {
264
+ setDocumentList(res.data);
265
+ } else {
266
+ message.error('查询失败,联系管理员');
267
+ }
268
+ }).finally(function () {
269
+ setDocumentFlagLoading(false);
270
+ });
271
+ };
272
+ var queryRoleUserList = function queryRoleUserList(ids) {
273
+ queryCompanyUser({
274
+ id: ids
275
+ }).then(function (res) {
276
+ if (res === null || res === void 0 ? void 0 : res.data) {
277
+ setAdminOptionList(res === null || res === void 0 ? void 0 : res.data);
278
+ }
279
+ }).catch(function (err) {
280
+ setAdminOptionList([]);
281
+ console.error(err);
282
+ });
283
+ };
284
+ var handleAppSelect = function handleAppSelect(value) {
285
+ setCurrentAppArr(value);
286
+ };
287
+ var handleUserSelect = function handleUserSelect(value) {
288
+ setCurrentUserArr(value);
289
+ };
290
+ var saveShare = function saveShare() {};
291
+ // end
292
+ return /*#__PURE__*/React.createElement("div", {
293
+ className: "".concat(pageName),
294
+ id: "DocumentSetting1",
295
+ style: {
296
+ padding: '16px'
297
+ }
298
+ }, /*#__PURE__*/React.createElement("div", {
299
+ className: "".concat(pageName, "-header")
300
+ }, "\u6587\u6863\u5E93"), /*#__PURE__*/React.createElement("div", {
301
+ className: "".concat(pageName, "-search")
302
+ }, /*#__PURE__*/React.createElement(Input, {
303
+ bordered: false,
304
+ prefix: /*#__PURE__*/React.createElement(SearchOutlined, null),
305
+ placeholder: "\u641C\u7D22\u6587\u6863\u540D\u79F0",
306
+ style: {
307
+ width: 200
308
+ },
309
+ value: searchValue,
310
+ onChange: function onChange(e) {
311
+ (e === null || e === void 0 ? void 0 : e.target) && setSearchValue(function () {
312
+ var _e$target, _e$target2;
313
+ getFileList(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
314
+ return e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value;
315
+ });
316
+ }
317
+ }), /*#__PURE__*/React.createElement(Button, {
318
+ type: "primary",
319
+ onClick: function onClick() {
320
+ return setIsOpenUploadModal(true);
321
+ }
322
+ }, "\u4E0A\u4F20")), /*#__PURE__*/React.createElement(Table, {
323
+ columns: columns,
324
+ loading: documentFlagLoading,
325
+ dataSource: documentList,
326
+ pagination: false
327
+ }), /*#__PURE__*/React.createElement(Modal, {
328
+ title: "\u4E0A\u4F20",
329
+ okText: "\u786E\u5B9A",
330
+ cancelText: "\u53D6\u6D88",
331
+ open: isOpenUploadModal,
332
+ onCancel: handleValueCancel,
333
+ onOk: saveFile
334
+ }, /*#__PURE__*/React.createElement(Dragger, _objectSpread({}, props), /*#__PURE__*/React.createElement("p", {
335
+ className: "ant-upload-drag-icon"
336
+ }, /*#__PURE__*/React.createElement(InboxOutlined, null)), /*#__PURE__*/React.createElement("p", {
337
+ className: "ant-upload-text"
338
+ }, "\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\u6216", /*#__PURE__*/React.createElement("span", {
339
+ style: {
340
+ color: '#165Dff'
341
+ }
342
+ }, "\u70B9\u51FB\u4E0A\u4F20")), /*#__PURE__*/React.createElement("p", {
343
+ className: "ant-upload-hint"
344
+ }, "\u652F\u6301ZIP,RAR\u683C\u5F0F\uFF08\u6700\u5927100M\uFF09"))), /*#__PURE__*/React.createElement(Modal, {
345
+ title: "\u5171\u4EAB",
346
+ okText: "\u786E\u5B9A",
347
+ cancelText: "\u53D6\u6D88",
348
+ open: isOpenShareModal,
349
+ onCancel: handleShareCancel,
350
+ onOk: saveShare,
351
+ destroyOnClose: true
352
+ }, /*#__PURE__*/React.createElement("p", {
353
+ style: {
354
+ margin: '0px 0px 10px'
355
+ }
356
+ }, "\u53EF\u4EE5\u67E5\u770B\u5E76\u4E0B\u8F7D\u6587\u4EF6\u7684\u6210\u5458"), /*#__PURE__*/React.createElement(Radio.Group, {
357
+ onChange: onShareChange,
358
+ value: currentShareType,
359
+ defaultValue: currentShareType,
360
+ style: {
361
+ width: '100%',
362
+ border: '1px solid #eee',
363
+ padding: '6px'
364
+ }
365
+ }, /*#__PURE__*/React.createElement(Space, {
366
+ direction: "vertical",
367
+ style: {
368
+ width: '100%'
369
+ },
370
+ size: 20
371
+ }, /*#__PURE__*/React.createElement(Radio, {
372
+ value: 1
373
+ }, "\u6240\u4EE5\u6210\u5458"), /*#__PURE__*/React.createElement(Radio, {
374
+ value: 2
375
+ }, "\u6307\u5B9A\u5E94\u7528\uFF08\u6240\u6709\u62E5\u6709\u8BE5\u5E94\u7528\u6743\u9650\u7684\u89D2\u8272\uFF09"), currentShareType == 2 ? (/*#__PURE__*/React.createElement(React.Fragment, null, currentAppArr.length > 2 ? (/*#__PURE__*/React.createElement(Tooltip, {
376
+ title: function title() {
377
+ return projectList.filter(function (o) {
378
+ return currentAppArr.includes(o.projectId);
379
+ }).map(function (a) {
380
+ return a.projectName;
381
+ }).join();
382
+ }
383
+ }, /*#__PURE__*/React.createElement(Select, {
384
+ mode: "multiple",
385
+ maxTagCount: 3,
386
+ style: {
387
+ width: '320px',
388
+ marginLeft: '24px'
389
+ },
390
+ placeholder: "\u8BF7\u6307\u5B9A\u5E94\u7528",
391
+ value: currentAppArr,
392
+ fieldNames: {
393
+ label: 'projectName',
394
+ value: 'projectId'
395
+ },
396
+ options: projectList,
397
+ onChange: handleAppSelect
398
+ }))) : (/*#__PURE__*/React.createElement(Select, {
399
+ mode: "multiple",
400
+ maxTagCount: 3,
401
+ style: {
402
+ width: '320px',
403
+ marginLeft: '24px'
404
+ },
405
+ placeholder: "\u8BF7\u6307\u5B9A\u5E94\u7528",
406
+ value: currentAppArr,
407
+ fieldNames: {
408
+ label: 'projectName',
409
+ value: 'projectId'
410
+ },
411
+ options: projectList,
412
+ onChange: handleAppSelect
413
+ })))) : null, /*#__PURE__*/React.createElement(Radio, {
414
+ value: 3
415
+ }, "\u6307\u5B9A\u6210\u5458"), currentShareType == 3 ? (/*#__PURE__*/React.createElement(React.Fragment, null, currentUserArr.length > 2 ? (/*#__PURE__*/React.createElement(Tooltip, {
416
+ title: function title() {
417
+ return adminOptionList.filter(function (o) {
418
+ return currentUserArr.includes(o.id);
419
+ }).map(function (a) {
420
+ return a.username;
421
+ }).join();
422
+ }
423
+ }, /*#__PURE__*/React.createElement(Select, {
424
+ mode: "multiple",
425
+ maxTagCount: 3,
426
+ showSearch: true,
427
+ value: currentUserArr,
428
+ filterOption: function filterOption(input, option) {
429
+ var _option$label;
430
+ return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
431
+ },
432
+ style: {
433
+ width: '320px',
434
+ marginLeft: '24px'
435
+ },
436
+ placeholder: "\u8BF7\u6307\u5B9A\u6210\u5458",
437
+ fieldNames: {
438
+ label: 'username',
439
+ value: 'id'
440
+ },
441
+ options: adminOptionList,
442
+ onChange: handleUserSelect
443
+ }))) : (/*#__PURE__*/React.createElement(Select, {
444
+ mode: "multiple",
445
+ maxTagCount: 3,
446
+ showSearch: true,
447
+ value: currentUserArr,
448
+ filterOption: function filterOption(input, option) {
449
+ var _option$label2;
450
+ return ((_option$label2 = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label2 !== void 0 ? _option$label2 : '').toLowerCase().includes(input.toLowerCase());
451
+ },
452
+ style: {
453
+ width: '320px',
454
+ marginLeft: '24px'
455
+ },
456
+ placeholder: "\u8BF7\u6307\u5B9A\u6210\u5458",
457
+ fieldNames: {
458
+ label: 'username',
459
+ value: 'id'
460
+ },
461
+ options: adminOptionList,
462
+ onChange: handleUserSelect
463
+ })))) : null, /*#__PURE__*/React.createElement(Radio, {
464
+ value: 4
465
+ }, "\u4EC5\u81EA\u5DF1")))));
466
+ };
467
+ export default DocumentSetting;
@@ -13,3 +13,114 @@
13
13
  justify-content: space-between;
14
14
  margin: 0px 0px 16px;
15
15
  }
16
+ .DictionaryPage .ant-tabs-nav {
17
+ padding-right: 10%;
18
+ }
19
+ .DictionaryPage-header {
20
+ position: relative;
21
+ }
22
+ .DictionaryPage-header-search {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ margin: 0px 0px 16px;
27
+ }
28
+ .DictionaryPage-header-search .ant-btn {
29
+ color: #407fff;
30
+ border-color: #407fff;
31
+ }
32
+ .DictionaryPage-tabsRight-text {
33
+ position: absolute;
34
+ top: 13%;
35
+ right: 0;
36
+ width: 10%;
37
+ color: #165dff;
38
+ text-align: center;
39
+ vertical-align: middle;
40
+ border-left: 1px solid #ccc;
41
+ cursor: pointer;
42
+ }
43
+ .DictionaryPage-modal {
44
+ color: #021429;
45
+ }
46
+ .DictionaryPage-modal-header {
47
+ height: 50px;
48
+ padding: 0px 16px;
49
+ line-height: 50px;
50
+ background-color: #f2f3f4;
51
+ }
52
+ .DictionaryPage-modal-header-left {
53
+ display: inline-block;
54
+ width: 80%;
55
+ vertical-align: middle;
56
+ }
57
+ .DictionaryPage-modal-header-operation {
58
+ display: inline-block;
59
+ width: 20%;
60
+ text-align: center;
61
+ vertical-align: middle;
62
+ }
63
+ .DictionaryPage-modal .DictionaryPage-modal-content {
64
+ padding: 10px 16px 0px;
65
+ }
66
+ .DictionaryPage-modal-content {
67
+ height: 292px;
68
+ overflow-y: auto;
69
+ }
70
+ .DictionaryPage-modal-content-item {
71
+ display: flex;
72
+ align-items: center;
73
+ height: 50px;
74
+ line-height: 50px;
75
+ border-bottom: 1px solid #f2f3f4;
76
+ }
77
+ .DictionaryPage-modal-content-itemLeft {
78
+ position: relative;
79
+ display: inline-block;
80
+ flex: 1;
81
+ height: 100%;
82
+ }
83
+ .DictionaryPage-modal-content-itemLeft .error-tip {
84
+ position: absolute;
85
+ bottom: -28px;
86
+ left: 3px;
87
+ width: 100%;
88
+ color: red;
89
+ font-size: 14px;
90
+ letter-spacing: 1px;
91
+ }
92
+ .DictionaryPage-modal-content-itemRight {
93
+ display: inline-block;
94
+ width: 40px;
95
+ color: #165dff;
96
+ text-align: center;
97
+ cursor: pointer;
98
+ }
99
+ .DictionaryPage-modal-content .ant-typography.ant-typography-ellipsis.ant-typography-single-line {
100
+ height: 50px;
101
+ margin-bottom: 0px;
102
+ line-height: 50px;
103
+ border-bottom: 1px solid #f2f3f4;
104
+ }
105
+ .DictionaryPage-modal-content .ant-typography-edit {
106
+ float: right;
107
+ width: 20%;
108
+ text-align: center;
109
+ }
110
+ .DictionaryPage-modal-footer {
111
+ display: flex;
112
+ align-items: center;
113
+ justify-content: space-between;
114
+ margin: 16px 0px;
115
+ }
116
+ .DocumentSetting-header {
117
+ height: 48px;
118
+ line-height: 48px;
119
+ border-bottom: 1px solid #e8efff;
120
+ }
121
+ .DocumentSetting-search {
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: space-between;
125
+ margin: 16px 0px 16px;
126
+ }
@@ -1,14 +1,15 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
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
7
  import React, { useContext, useState } from 'react';
8
8
  import { DesktopOutlined } from '@ant-design/icons';
9
9
  import Notice from './notice';
10
10
  import Approvalmanage from './approvalmanage';
11
11
  import SettingTabs from '../../components/settingTabs';
12
+ import Dictionary from './Dictionary';
12
13
  import { DemoManage } from '@zgfe/modules-demo-manage';
13
14
  import { BizGlobalDataContext } from '@zgfe/business-lib';
14
15
  import CreateProcess from '../createProcess';
@@ -71,7 +72,17 @@ var SystemSetting = function SystemSetting(_ref) {
71
72
  key: '5',
72
73
  label: '接口管理',
73
74
  content: /*#__PURE__*/React.createElement(AuthUrl, null)
74
- }];
75
+ }, {
76
+ key: '6',
77
+ label: '字典管理',
78
+ content: /*#__PURE__*/React.createElement(Dictionary, null)
79
+ }
80
+ // {
81
+ // key: '7',
82
+ // label: '文档库',
83
+ // content: <DocumentSetting />,
84
+ // },
85
+ ];
75
86
  if ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.isAdmin) && /demomanage/i.test(window.location.search)) {
76
87
  items.push({
77
88
  key: '2',
@@ -87,7 +98,7 @@ var SystemSetting = function SystemSetting(_ref) {
87
98
  onClick: function onClick(e) {
88
99
  return setKey(e[0]);
89
100
  }
90
- }), isShowProcess ? /*#__PURE__*/React.createElement("div", {
101
+ }), isShowProcess ? (/*#__PURE__*/React.createElement("div", {
91
102
  className: 'system-setting-approval-process-create-bg'
92
103
  }, /*#__PURE__*/React.createElement(CreateProcess, {
93
104
  data: processData,
@@ -99,6 +110,6 @@ var SystemSetting = function SystemSetting(_ref) {
99
110
  setIsShowProcess(false);
100
111
  refreshList && refreshList();
101
112
  }
102
- })) : null);
113
+ }))) : null);
103
114
  };
104
115
  export default SystemSetting;