@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.
- package/README.md +33 -33
- package/es/components/card/demo/index.js +6 -6
- package/es/components/card/index.js +6 -6
- package/es/components/card/index.less +87 -87
- package/es/components/pageLoading/index.less +7 -7
- package/es/components/picCircleSelect/bak/index copy 2.tsx.bak +92 -92
- package/es/components/picCircleSelect/bak/index copy 3.tsx.bak +58 -58
- package/es/components/picCircleSelect/bak/index copy 4.tsx.bak +66 -66
- package/es/components/picCircleSelect/bak/index copy 5.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy 6.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy.tsx.bak +41 -41
- package/es/components/picCircleSelect/bak/index.tsx.bak +48 -48
- package/es/components/picCircleSelect/bak/index1.tsx.bak +46 -46
- package/es/components/picCircleSelect/bak/index2.tsx.bak +104 -104
- package/es/components/picCircleSelect/demo/index.js +5 -5
- package/es/components/picCircleSelect/index.js +7 -8
- package/es/components/picCircleSelect/index.less +37 -37
- package/es/components/processCanvas/customNode/node_point.js +4 -4
- package/es/components/processCanvas/demo/index.js +5 -6
- package/es/components/processCanvas/index.js +11 -11
- package/es/components/processCanvas/styles/customNode.less +149 -149
- package/es/components/processCanvas/styles/index.less +34 -34
- package/es/components/processCanvas/toolbar.js +5 -5
- package/es/components/selectAppWrapper/index.js +14 -15
- package/es/components/settingTabs/index.js +5 -5
- package/es/components/settingTabs/index.less +51 -51
- package/es/constants/api.d.ts +13 -0
- package/es/constants/api.js +18 -2
- package/es/constants/icons/demo.css +539 -539
- package/es/constants/icons/demo_index.html +9871 -9871
- package/es/constants/icons/iconfont.css +1699 -1699
- package/es/constants/icons/iconfont.json +2956 -2956
- package/es/global.d.ts +4 -4
- package/es/modules/appSettings/appInfo/index.js +7 -7
- package/es/modules/appSettings/dataAccessFilter/index.js +5 -5
- package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
- package/es/modules/appSettings/virtualSource/index.js +7 -7
- package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
- package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
- package/es/modules/companySetting/appList/index.js +12 -12
- package/es/modules/companySetting/appList/index.less +126 -126
- package/es/modules/companySetting/application/applicationForm.js +9 -9
- package/es/modules/companySetting/application/applicationSetting.js +5 -5
- package/es/modules/companySetting/application/index.js +28 -28
- package/es/modules/companySetting/application/index.less +126 -126
- package/es/modules/companySetting/business/businessForm.js +7 -7
- package/es/modules/companySetting/business/index.js +27 -27
- package/es/modules/companySetting/business/index.less +92 -92
- package/es/modules/companySetting/cost/index.js +20 -20
- package/es/modules/companySetting/cost/index.less +38 -38
- package/es/modules/companySetting/department/index.js +16 -16
- package/es/modules/companySetting/department/index.less +157 -157
- package/es/modules/companySetting/edit/authConfig.js +5 -5
- package/es/modules/companySetting/edit/authConfigCEP.js +11 -11
- package/es/modules/companySetting/edit/authGroup.js +13 -13
- package/es/modules/companySetting/edit/authModule.js +18 -18
- package/es/modules/companySetting/edit/multiAuthModule.js +13 -13
- package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
- package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
- package/es/modules/companySetting/edit/styles/authModule.less +82 -82
- package/es/modules/companySetting/edit/styles/user.less +54 -54
- package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
- package/es/modules/companySetting/edit/user.js +14 -14
- package/es/modules/companySetting/edit/userGroup.js +16 -16
- package/es/modules/companySetting/index.js +29 -29
- package/es/modules/companySetting/index.less +90 -90
- package/es/modules/companySetting/info/index.js +7 -7
- package/es/modules/companySetting/info/index.less +42 -42
- package/es/modules/companySetting/mainPart/images/img2.svg +12 -12
- package/es/modules/companySetting/mainPart/index.js +28 -28
- package/es/modules/companySetting/mainPart/index.less +239 -239
- package/es/modules/companySetting/mainPart/mainPartForm.js +13 -13
- package/es/modules/companySetting/mainPart/mainPartSetting.js +5 -5
- package/es/modules/companySetting/mainPart/useColumns.js +16 -16
- package/es/modules/companySetting/operationLog/index.js +13 -13
- package/es/modules/companySetting/operationLog/index.less +33 -33
- package/es/modules/companySetting/role/index.js +23 -23
- package/es/modules/companySetting/role/index.less +296 -296
- package/es/modules/companySetting/role/setDataRangeDialog/index.js +2 -2
- package/es/modules/companySetting/role/setDataRangeDialog/index.less +37 -37
- package/es/modules/companySetting/style/common.less +79 -79
- package/es/modules/companySetting/style/reset.less +117 -117
- package/es/modules/companySetting/user/index.js +193 -24
- package/es/modules/companySetting/user/index.less +11 -0
- package/es/modules/companySetting/user/invite.js +14 -14
- package/es/modules/companySetting/virtualApp/config.js +8 -8
- package/es/modules/companySetting/virtualApp/index.js +12 -12
- package/es/modules/companySetting/virtualApp/panels/list.js +8 -9
- package/es/modules/companySetting/virtualApp/panels/sourceItem.js +7 -7
- package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
- package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
- package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
- package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
- package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
- package/es/modules/companySetting/wechatBinding/index.js +7 -7
- package/es/modules/companySetting/wechatBinding/index.less +58 -58
- package/es/modules/createDemand/collectionAttributeList.js +9 -9
- package/es/modules/createDemand/constants.js +17 -17
- package/es/modules/createDemand/demo/index.js +7 -7
- package/es/modules/createDemand/demo/selectPoint.js +13 -13
- package/es/modules/createDemand/index.js +39 -41
- package/es/modules/createDemand/styles/index.less +277 -277
- package/es/modules/createDemand_bf/collectionAttributeList.js +9 -9
- package/es/modules/createDemand_bf/constants.js +4 -4
- package/es/modules/createDemand_bf/index.js +35 -35
- package/es/modules/createDemand_bf/styles/index.less +222 -222
- package/es/modules/createProcess/components/index.less +52 -52
- package/es/modules/createProcess/components/processNode.js +11 -11
- package/es/modules/createProcess/index.js +17 -17
- package/es/modules/createProcess/index.less +114 -114
- package/es/modules/createProcess/title/index.js +11 -11
- package/es/modules/createProcess/title/index.less +53 -53
- package/es/modules/dealDemand/collectionAttributeList.js +9 -9
- package/es/modules/dealDemand/constants.js +7 -7
- package/es/modules/dealDemand/demo/index.js +7 -7
- package/es/modules/dealDemand/demo/selectPoint.js +13 -13
- package/es/modules/dealDemand/index.js +22 -24
- package/es/modules/dealDemand/styles/index.less +265 -265
- package/es/modules/demandManage/index.js +14 -15
- package/es/modules/demandManage/styles/index.less +210 -210
- package/es/modules/getPassword/index.js +10 -10
- package/es/modules/getPassword/index.less +122 -122
- package/es/modules/messageList/index.js +7 -8
- package/es/modules/messageList/index.less +81 -81
- package/es/modules/personalSetting/index.js +5 -5
- package/es/modules/personalSetting/info/index.js +5 -5
- package/es/modules/personalSetting/reset/index.js +5 -5
- package/es/modules/personalSetting/securityLog/index.js +14 -14
- package/es/modules/personalSetting/securityLog/index.less +11 -11
- package/es/modules/personalSetting/styles/unbinding.less +73 -73
- package/es/modules/personalSetting/unbinding/index.js +5 -5
- package/es/modules/pointMap/ImportModal/demo/index.js +5 -5
- package/es/modules/pointMap/ImportModal/index.js +14 -14
- package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
- package/es/modules/pointMap/demo/index.js +7 -7
- package/es/modules/pointMap/editTxt/index.js +11 -11
- package/es/modules/pointMap/editTxt/index.less +55 -55
- package/es/modules/pointMap/index.js +11 -11
- package/es/modules/pointMap/pageInfo.js +44 -46
- package/es/modules/pointMap/styles/index.less +38 -38
- package/es/modules/pointMap/styles/pageInfo.less +244 -244
- package/es/modules/pointMap/styles/tree.css +142 -0
- package/es/modules/pointMap/styles/tree.less +29 -0
- package/es/modules/pointMap/tree.js +75 -27
- package/es/modules/systemSetting/Dictionary.d.ts +3 -0
- package/es/modules/systemSetting/Dictionary.js +387 -0
- package/es/modules/systemSetting/DictionaryType.d.ts +14 -0
- package/es/modules/systemSetting/DictionaryType.js +203 -0
- package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.js +14 -14
- package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.less +14 -14
- package/es/modules/systemSetting/approvalmanage/index.js +5 -5
- package/es/modules/systemSetting/approvalmanage/index.less +5 -5
- package/es/modules/systemSetting/approvalmanage/processManage/index.js +13 -13
- package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
- package/es/modules/systemSetting/authUrl.js +15 -15
- package/es/modules/systemSetting/document-setting/index.d.ts +3 -0
- package/es/modules/systemSetting/document-setting/index.js +467 -0
- package/es/modules/systemSetting/img/empty-data.png +0 -0
- package/es/modules/systemSetting/index.css +111 -0
- package/es/modules/systemSetting/index.js +19 -8
- package/es/modules/systemSetting/index.less +117 -0
- package/es/modules/systemSetting/notice/configItem/index.less +21 -21
- package/es/modules/systemSetting/notice/edit/index.js +5 -5
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/es/modules/systemSetting/notice/index.js +11 -11
- package/es/requests/department.js +6 -6
- package/es/requests/role.js +6 -6
- package/es/types/companySetting.d.ts +1 -0
- package/es/utils/base64.js +0 -1
- package/es/utils/constants.js +0 -4
- package/es/utils/functionalPermissions.js +6 -8
- package/es/utils/util.js +16 -16
- package/package.json +9 -7
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
5
|
-
function
|
|
6
|
-
function
|
|
7
|
-
function
|
|
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 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; }
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
+
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); }
|
|
10
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
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."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
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; }
|
|
13
16
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
17
|
import './index.less';
|
|
15
|
-
import { Button, notification, Switch, Tooltip } from 'antd';
|
|
18
|
+
import { Button, notification, Switch, Tooltip, Form, Input, message } from 'antd';
|
|
19
|
+
import { InfoCircleOutlined } from '@ant-design/icons';
|
|
16
20
|
import request from './../../../utils/ajax';
|
|
17
21
|
import api from './../../../constants/api';
|
|
18
22
|
import Invite from './invite';
|
|
@@ -305,6 +309,10 @@ var User = function User(props) {
|
|
|
305
309
|
console.log(error);
|
|
306
310
|
});
|
|
307
311
|
};
|
|
312
|
+
var _useState33 = useState(),
|
|
313
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
314
|
+
currentRowData = _useState34[0],
|
|
315
|
+
setCurrentRowData = _useState34[1];
|
|
308
316
|
var columns = [{
|
|
309
317
|
with: 334,
|
|
310
318
|
title: '账号',
|
|
@@ -371,14 +379,14 @@ var User = function User(props) {
|
|
|
371
379
|
}, {
|
|
372
380
|
title: '状态',
|
|
373
381
|
render: function render(data) {
|
|
374
|
-
return /*#__PURE__*/React.createElement("div", null, !data.isAdmin && /*#__PURE__*/React.createElement(Switch, {
|
|
382
|
+
return /*#__PURE__*/React.createElement("div", null, !data.isAdmin && (/*#__PURE__*/React.createElement(Switch, {
|
|
375
383
|
size: "default",
|
|
376
384
|
disabled: !authority[10089],
|
|
377
385
|
checked: data.accountStatus === 1 ? true : false,
|
|
378
386
|
onChange: function onChange(checked) {
|
|
379
387
|
return onSwitchChange(checked, data);
|
|
380
388
|
}
|
|
381
|
-
}));
|
|
389
|
+
})));
|
|
382
390
|
}
|
|
383
391
|
}, {
|
|
384
392
|
title: '创建时间',
|
|
@@ -388,16 +396,21 @@ var User = function User(props) {
|
|
|
388
396
|
}
|
|
389
397
|
}, {
|
|
390
398
|
title: '操作',
|
|
391
|
-
|
|
399
|
+
width: 280,
|
|
392
400
|
fixed: 'right',
|
|
393
401
|
render: function render(data) {
|
|
394
402
|
return /*#__PURE__*/React.createElement("div", {
|
|
395
403
|
className: "operate"
|
|
396
|
-
},
|
|
404
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
405
|
+
onClick: function onClick() {
|
|
406
|
+
setMoveWorkModal(true);
|
|
407
|
+
setCurrentRowData(data);
|
|
408
|
+
}
|
|
409
|
+
}, "\u8F6C\u4EA4\u5DE5\u4F5C"), authority[10090] && /*#__PURE__*/React.createElement("a", {
|
|
397
410
|
onClick: function onClick() {
|
|
398
411
|
return showUserEditAuthEvent(data);
|
|
399
412
|
}
|
|
400
|
-
}, "\u7F16\u8F91"), authority[10091] && /*#__PURE__*/React.createElement("a", {
|
|
413
|
+
}, "\u7F16\u8F91"), authority[10091] && (/*#__PURE__*/React.createElement("a", {
|
|
401
414
|
title: "\u79FB\u51FA\u516C\u53F8",
|
|
402
415
|
style: {
|
|
403
416
|
visibility: data.id !== id && !data.isAdmin ? 'visible' : 'hidden'
|
|
@@ -405,14 +418,14 @@ var User = function User(props) {
|
|
|
405
418
|
onClick: function onClick() {
|
|
406
419
|
return removeUser(data);
|
|
407
420
|
}
|
|
408
|
-
}, "\u5220\u9664"), authority[10092] && /*#__PURE__*/React.createElement("a", {
|
|
421
|
+
}, "\u5220\u9664")), authority[10092] && (/*#__PURE__*/React.createElement("a", {
|
|
409
422
|
style: {
|
|
410
423
|
visibility: data.id !== id && !data.isAdmin ? 'visible' : 'hidden'
|
|
411
424
|
},
|
|
412
425
|
onClick: function onClick() {
|
|
413
426
|
return resetpwd(data);
|
|
414
427
|
}
|
|
415
|
-
}, "\u91CD\u7F6E\u5BC6\u7801"));
|
|
428
|
+
}, "\u91CD\u7F6E\u5BC6\u7801")));
|
|
416
429
|
}
|
|
417
430
|
}];
|
|
418
431
|
// 监听分页变化,如果页码发生变化则调用合并行方法
|
|
@@ -422,6 +435,113 @@ var User = function User(props) {
|
|
|
422
435
|
pageNo: pagination === null || pagination === void 0 ? void 0 : pagination.current
|
|
423
436
|
});
|
|
424
437
|
};
|
|
438
|
+
// 转交工作
|
|
439
|
+
var _useState35 = useState(false),
|
|
440
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
441
|
+
moveWorkModal = _useState36[0],
|
|
442
|
+
setMoveWorkModal = _useState36[1];
|
|
443
|
+
var _Form$useForm = Form.useForm(),
|
|
444
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
445
|
+
form = _Form$useForm2[0];
|
|
446
|
+
var _useState37 = useState(false),
|
|
447
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
|
448
|
+
btnLoading = _useState38[0],
|
|
449
|
+
setBtnLoading = _useState38[1];
|
|
450
|
+
var havePhone = function havePhone(phoneNumber) {
|
|
451
|
+
return request(api.setting.queryUserPage, {
|
|
452
|
+
method: 'post',
|
|
453
|
+
data: {
|
|
454
|
+
accurateEmail: phoneNumber,
|
|
455
|
+
pageNo: pageData.pageNo,
|
|
456
|
+
pageSize: 99999
|
|
457
|
+
}
|
|
458
|
+
}).then(function (res) {
|
|
459
|
+
return res.code === '101000' && res.data && res.data.list.length > 0 ? res.data.list : false;
|
|
460
|
+
}).catch(function (err) {
|
|
461
|
+
return false;
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
var handleEndMove = /*#__PURE__*/function () {
|
|
465
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
466
|
+
var value, havePhoneFlg;
|
|
467
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
468
|
+
while (1) switch (_context.prev = _context.next) {
|
|
469
|
+
case 0:
|
|
470
|
+
setBtnLoading(true);
|
|
471
|
+
_context.next = 3;
|
|
472
|
+
return form.validateFields();
|
|
473
|
+
case 3:
|
|
474
|
+
value = _context.sent;
|
|
475
|
+
if (value.toUser) {
|
|
476
|
+
_context.next = 8;
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
setNumber(_objectSpread(_objectSpread({}, validatePrimeNumber('error', '请输入账号')), {}, {
|
|
480
|
+
value: value.toUser
|
|
481
|
+
}));
|
|
482
|
+
setBtnLoading(false);
|
|
483
|
+
return _context.abrupt("return");
|
|
484
|
+
case 8:
|
|
485
|
+
_context.next = 10;
|
|
486
|
+
return havePhone(value.toUser);
|
|
487
|
+
case 10:
|
|
488
|
+
havePhoneFlg = _context.sent;
|
|
489
|
+
if (havePhoneFlg) {
|
|
490
|
+
_context.next = 15;
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
setNumber(_objectSpread(_objectSpread({}, validatePrimeNumber('error', '当前账号不存在')), {}, {
|
|
494
|
+
value: value.toUser
|
|
495
|
+
}));
|
|
496
|
+
setBtnLoading(false);
|
|
497
|
+
return _context.abrupt("return");
|
|
498
|
+
case 15:
|
|
499
|
+
setNumber(_objectSpread(_objectSpread({}, validatePrimeNumber('success', '')), {}, {
|
|
500
|
+
value: value.toUser
|
|
501
|
+
}));
|
|
502
|
+
request(api.setting.moveWorkApi, {
|
|
503
|
+
method: 'post',
|
|
504
|
+
data: {
|
|
505
|
+
userId: currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.id,
|
|
506
|
+
transferorId: havePhoneFlg[0].id
|
|
507
|
+
}
|
|
508
|
+
}).then(function (res) {
|
|
509
|
+
setBtnLoading(false);
|
|
510
|
+
if (res.code == '100000') {
|
|
511
|
+
message.success('交接成功!');
|
|
512
|
+
}
|
|
513
|
+
}).catch(function (err) {
|
|
514
|
+
setBtnLoading(false);
|
|
515
|
+
message.success('交接失败!,请联系管理员');
|
|
516
|
+
return false;
|
|
517
|
+
});
|
|
518
|
+
case 17:
|
|
519
|
+
case "end":
|
|
520
|
+
return _context.stop();
|
|
521
|
+
}
|
|
522
|
+
}, _callee);
|
|
523
|
+
}));
|
|
524
|
+
return function handleEndMove() {
|
|
525
|
+
return _ref.apply(this, arguments);
|
|
526
|
+
};
|
|
527
|
+
}();
|
|
528
|
+
var phoneNumb = function phoneNumb(phoneNumber) {
|
|
529
|
+
var reg = /(\d{3})\d{4}(\d{4})/;
|
|
530
|
+
var result = phoneNumber.replace(reg, '$1****$2');
|
|
531
|
+
return result;
|
|
532
|
+
};
|
|
533
|
+
var _useState39 = useState({
|
|
534
|
+
value: '11'
|
|
535
|
+
}),
|
|
536
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
537
|
+
number = _useState40[0],
|
|
538
|
+
setNumber = _useState40[1];
|
|
539
|
+
var validatePrimeNumber = function validatePrimeNumber(validateStatus, errorMsg) {
|
|
540
|
+
return {
|
|
541
|
+
validateStatus: validateStatus,
|
|
542
|
+
errorMsg: errorMsg
|
|
543
|
+
};
|
|
544
|
+
};
|
|
425
545
|
return /*#__PURE__*/React.createElement("div", {
|
|
426
546
|
className: "company-user"
|
|
427
547
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Invite, {
|
|
@@ -445,7 +565,7 @@ var User = function User(props) {
|
|
|
445
565
|
x: 1200,
|
|
446
566
|
y: 550
|
|
447
567
|
}
|
|
448
|
-
}), isAdmin ? /*#__PURE__*/React.createElement("div", {
|
|
568
|
+
}), isAdmin ? (/*#__PURE__*/React.createElement("div", {
|
|
449
569
|
className: "over-hand"
|
|
450
570
|
}, /*#__PURE__*/React.createElement("span", null, "\u79FB\u4EA4\u8D85\u7EA7\u7BA1\u7406\u5458\u6743\u9650\u7ED9"), /*#__PURE__*/React.createElement(BizSelect, {
|
|
451
571
|
enableSearch: true,
|
|
@@ -455,7 +575,7 @@ var User = function User(props) {
|
|
|
455
575
|
labelField: "email",
|
|
456
576
|
keyField: "id",
|
|
457
577
|
onChange: changeAdmin
|
|
458
|
-
})) : null), /*#__PURE__*/React.createElement(BizDialog, {
|
|
578
|
+
}))) : null), /*#__PURE__*/React.createElement(BizDialog, {
|
|
459
579
|
title: dialogTitle,
|
|
460
580
|
open: showDialog,
|
|
461
581
|
closable: true,
|
|
@@ -470,7 +590,7 @@ var User = function User(props) {
|
|
|
470
590
|
closable: true,
|
|
471
591
|
className: "setting-bizDialog",
|
|
472
592
|
onCancel: closePwdPanel,
|
|
473
|
-
footer: [pwdPanelUserConfig && pwdPanelUserConfig.id ? /*#__PURE__*/React.createElement(Button, {
|
|
593
|
+
footer: [pwdPanelUserConfig && pwdPanelUserConfig.id ? (/*#__PURE__*/React.createElement(Button, {
|
|
474
594
|
style: {
|
|
475
595
|
float: 'left'
|
|
476
596
|
},
|
|
@@ -478,7 +598,7 @@ var User = function User(props) {
|
|
|
478
598
|
onClick: function onClick() {
|
|
479
599
|
return removeUser(pwdPanelUserConfig);
|
|
480
600
|
}
|
|
481
|
-
}, "\u53D6\u6D88\u521B\u5EFA") : null, /*#__PURE__*/React.createElement(Button, {
|
|
601
|
+
}, "\u53D6\u6D88\u521B\u5EFA")) : null, /*#__PURE__*/React.createElement(Button, {
|
|
482
602
|
onClick: closePwdPanel
|
|
483
603
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
484
604
|
type: "primary",
|
|
@@ -492,6 +612,55 @@ var User = function User(props) {
|
|
|
492
612
|
marginRight: '8px'
|
|
493
613
|
},
|
|
494
614
|
className: "bsicon tishi"
|
|
495
|
-
}), "\u8BF7\u5C06\u4FE1\u606F\u590D\u5236\u53D1\u9001\u7ED9\u76F8\u5E94\u6210\u5458")))
|
|
615
|
+
}), "\u8BF7\u5C06\u4FE1\u606F\u590D\u5236\u53D1\u9001\u7ED9\u76F8\u5E94\u6210\u5458"))), /*#__PURE__*/React.createElement(BizDialog, {
|
|
616
|
+
title: "\u8F6C\u4EA4\u5DE5\u4F5C",
|
|
617
|
+
open: moveWorkModal,
|
|
618
|
+
closable: true,
|
|
619
|
+
className: "moveUser-bizDialog",
|
|
620
|
+
onCancel: function onCancel() {
|
|
621
|
+
return setMoveWorkModal(false);
|
|
622
|
+
},
|
|
623
|
+
footer: [/*#__PURE__*/React.createElement(Button, {
|
|
624
|
+
onClick: function onClick() {
|
|
625
|
+
setMoveWorkModal(false);
|
|
626
|
+
form.setFieldsValue({
|
|
627
|
+
toType: [],
|
|
628
|
+
toUser: ''
|
|
629
|
+
});
|
|
630
|
+
setNumber({
|
|
631
|
+
value: '',
|
|
632
|
+
errorMsg: ''
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}, "\u653E\u5F03"), /*#__PURE__*/React.createElement(Button, {
|
|
636
|
+
type: "primary",
|
|
637
|
+
loading: btnLoading,
|
|
638
|
+
onClick: handleEndMove
|
|
639
|
+
}, "\u786E\u5B9A\u8F6C\u4EA4")]
|
|
640
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
641
|
+
className: "moveUserTip"
|
|
642
|
+
}, /*#__PURE__*/React.createElement(InfoCircleOutlined, {
|
|
643
|
+
style: {
|
|
644
|
+
color: '#1890ff',
|
|
645
|
+
marginRight: '6px'
|
|
646
|
+
}
|
|
647
|
+
}), "\u6539\u529F\u80FD\u53EA\u4F1A\u8F6C\u4EA4\u8D44\u6E90\u7684\u6240\u5C5E\u5173\u7CFB\uFF0C\u4E0D\u4F1A\u8F6C\u4EA4\u8D26\u53F7\u7684\u6743\u9650"), /*#__PURE__*/React.createElement(Form, {
|
|
648
|
+
form: form,
|
|
649
|
+
labelCol: {
|
|
650
|
+
span: 6
|
|
651
|
+
},
|
|
652
|
+
wrapperCol: {
|
|
653
|
+
span: 18
|
|
654
|
+
}
|
|
655
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
656
|
+
label: "\u88AB\u8F6C\u4EA4\u7684\u8D26\u53F7"
|
|
657
|
+
}, /*#__PURE__*/React.createElement("span", null, (currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.telphone) && phoneNumb(currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.telphone), "\uFF08\u59D3\u540D\uFF1A", currentRowData === null || currentRowData === void 0 ? void 0 : currentRowData.username, "\uFF09")), /*#__PURE__*/React.createElement(Form.Item, {
|
|
658
|
+
label: "\u8F6C\u4EA4\u5230\u7684\u8D26\u53F7",
|
|
659
|
+
name: "toUser",
|
|
660
|
+
validateStatus: number.validateStatus,
|
|
661
|
+
help: number.errorMsg || ''
|
|
662
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
663
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u5E73\u53F0\u8D26\u53F7"
|
|
664
|
+
}))))));
|
|
496
665
|
};
|
|
497
666
|
export default User;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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 _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
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; } }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
14
|
import './index.less';
|
|
15
15
|
import { Button, Form, Input, notification, Radio, Select, TreeSelect } from 'antd';
|
|
@@ -342,7 +342,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
342
342
|
},
|
|
343
343
|
placeholder: "\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8",
|
|
344
344
|
treeData: departmentList
|
|
345
|
-
})), !isAdmin && /*#__PURE__*/React.createElement(Form.Item, {
|
|
345
|
+
})), !isAdmin && (/*#__PURE__*/React.createElement(Form.Item, {
|
|
346
346
|
name: 'accountStatus',
|
|
347
347
|
label: "\u72B6\u6001",
|
|
348
348
|
className: "account-status",
|
|
@@ -356,7 +356,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
356
356
|
value: 1
|
|
357
357
|
}, "\u6B63\u5E38"), /*#__PURE__*/React.createElement(Radio, {
|
|
358
358
|
value: 2
|
|
359
|
-
}, "\u505C\u7528"))), !(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id) && /*#__PURE__*/React.createElement(Form.Item, {
|
|
359
|
+
}, "\u505C\u7528")))), !(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id) && (/*#__PURE__*/React.createElement(Form.Item, {
|
|
360
360
|
name: 'password',
|
|
361
361
|
label: "\u5BC6\u7801",
|
|
362
362
|
rules: [{
|
|
@@ -369,6 +369,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
369
369
|
}, /*#__PURE__*/React.createElement(Input.Password, {
|
|
370
370
|
maxLength: 50,
|
|
371
371
|
placeholder: '请输入密码'
|
|
372
|
-
}))))));
|
|
372
|
+
})))))));
|
|
373
373
|
};
|
|
374
374
|
export default UserGroup;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
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, { useEffect, useState } from 'react';
|
|
8
8
|
import './styles/config.less';
|
|
9
9
|
import './styles/table.less';
|
|
@@ -112,7 +112,7 @@ var Config = function Config(props) {
|
|
|
112
112
|
className: "source-app-name"
|
|
113
113
|
}, "\u6E90\u5E94\u7528"), /*#__PURE__*/React.createElement("span", {
|
|
114
114
|
className: "source-app-events-num"
|
|
115
|
-
}, "\u5E94\u7528\u4E8B\u4EF6")), sourceApps.length ? /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
}, "\u5E94\u7528\u4E8B\u4EF6")), sourceApps.length ? (/*#__PURE__*/React.createElement("div", {
|
|
116
116
|
className: "real-app-list-body virtual-app-table-body"
|
|
117
117
|
}, sourceApps.map(function (realApp, index) {
|
|
118
118
|
return /*#__PURE__*/React.createElement(SourceItem, {
|
|
@@ -125,10 +125,10 @@ var Config = function Config(props) {
|
|
|
125
125
|
changeData(event_id, app_id, checked, index);
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
}))) : (/*#__PURE__*/React.createElement("div", {
|
|
129
129
|
className: "real-app-list-body virtual-app-table-body"
|
|
130
130
|
}, /*#__PURE__*/React.createElement("div", {
|
|
131
131
|
className: "real-app-list-item empty-data"
|
|
132
|
-
}, "\u6682\u65E0\u6570\u636E"))));
|
|
132
|
+
}, "\u6682\u65E0\u6570\u636E")))));
|
|
133
133
|
};
|
|
134
134
|
export default Config;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
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 _iterableToArrayLimit(
|
|
4
|
-
function _arrayWithHoles(
|
|
5
|
-
function _createForOfIteratorHelper(
|
|
6
|
-
function _unsupportedIterableToArray(
|
|
7
|
-
function _arrayLikeToArray(
|
|
3
|
+
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; } }
|
|
4
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
6
|
+
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; } }
|
|
7
|
+
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; }
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
9
9
|
import './styles/index.less';
|
|
10
10
|
import { Form, Input, Button, notification } from 'antd';
|
|
@@ -141,7 +141,7 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
141
141
|
setSelectApp(data);
|
|
142
142
|
setIsConfig(true);
|
|
143
143
|
};
|
|
144
|
-
return isConfig && selectApp ? /*#__PURE__*/React.createElement(Config, {
|
|
144
|
+
return isConfig && selectApp ? (/*#__PURE__*/React.createElement(Config, {
|
|
145
145
|
sourceApps: sourceApps,
|
|
146
146
|
virtualAppsIdMap: virtualAppsIdMap,
|
|
147
147
|
selectApp: selectApp,
|
|
@@ -153,18 +153,18 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
153
153
|
getCompanyAppList();
|
|
154
154
|
_editVirtualAppCallback && _editVirtualAppCallback(res);
|
|
155
155
|
}
|
|
156
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
})) : (/*#__PURE__*/React.createElement("div", {
|
|
157
157
|
className: "virtual-app-index"
|
|
158
158
|
}, /*#__PURE__*/React.createElement("div", {
|
|
159
159
|
className: "virtual-app-create"
|
|
160
|
-
}, status === 'list' ? /*#__PURE__*/React.createElement(Button, {
|
|
160
|
+
}, status === 'list' ? (/*#__PURE__*/React.createElement(Button, {
|
|
161
161
|
className: "btn-create",
|
|
162
162
|
type: "primary",
|
|
163
163
|
// size="normal"
|
|
164
164
|
onClick: function onClick() {
|
|
165
165
|
setStatus('create');
|
|
166
166
|
}
|
|
167
|
-
}, "\u65B0\u5EFA") : null, status === 'create' ? /*#__PURE__*/React.createElement("div", {
|
|
167
|
+
}, "\u65B0\u5EFA")) : null, status === 'create' ? (/*#__PURE__*/React.createElement("div", {
|
|
168
168
|
"v-show": "status === 'create'"
|
|
169
169
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
170
170
|
initialValues: {
|
|
@@ -197,7 +197,7 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
197
197
|
type: "primary",
|
|
198
198
|
className: "btn-submit",
|
|
199
199
|
htmlType: "submit"
|
|
200
|
-
}, "\u4FDD\u5B58")))) : null), ready ? /*#__PURE__*/React.createElement(VirtualAppList, {
|
|
200
|
+
}, "\u4FDD\u5B58"))))) : null), ready ? (/*#__PURE__*/React.createElement(VirtualAppList, {
|
|
201
201
|
virtualAppList: virtualAppList,
|
|
202
202
|
authConfig: authConfig,
|
|
203
203
|
id: id,
|
|
@@ -207,6 +207,6 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
207
207
|
_delVirtualAppCallback && _delVirtualAppCallback(res, formData);
|
|
208
208
|
},
|
|
209
209
|
gotoConfig: gotoConfig
|
|
210
|
-
}) : /*#__PURE__*/React.createElement(PageLoading, null));
|
|
210
|
+
})) : (/*#__PURE__*/React.createElement(PageLoading, null))));
|
|
211
211
|
};
|
|
212
212
|
export default VirtualApp;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
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(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
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, { useEffect, useState } from 'react';
|
|
8
8
|
import './../styles/list.less';
|
|
9
9
|
import './../styles/table.less';
|
|
@@ -55,7 +55,6 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
55
55
|
// }
|
|
56
56
|
// })
|
|
57
57
|
};
|
|
58
|
-
|
|
59
58
|
var onClickDelete = function onClickDelete(virtualApp) {
|
|
60
59
|
setCurrentDeleteItem(virtualApp);
|
|
61
60
|
setDeleteDialogShow(true);
|
|
@@ -119,7 +118,7 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
119
118
|
className: "data-source"
|
|
120
119
|
}, "\u6570\u636E\u6E90\u5E94\u7528"), /*#__PURE__*/React.createElement("span", {
|
|
121
120
|
className: "actions"
|
|
122
|
-
}, "\u64CD\u4F5C")), virtualAppList.length ? /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
}, "\u64CD\u4F5C")), virtualAppList.length ? (/*#__PURE__*/React.createElement("div", {
|
|
123
122
|
className: "virtual-app-list-body virtual-app-table-body"
|
|
124
123
|
}, virtualAppList.map(function (virtualApp) {
|
|
125
124
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -146,11 +145,11 @@ var VirtualApp = function VirtualApp(props) {
|
|
|
146
145
|
return onClickDelete(virtualApp);
|
|
147
146
|
}
|
|
148
147
|
})));
|
|
149
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
}))) : (/*#__PURE__*/React.createElement("div", {
|
|
150
149
|
className: "virtual-app-list-body virtual-app-table-body"
|
|
151
150
|
}, /*#__PURE__*/React.createElement("div", {
|
|
152
151
|
className: "virtual-app-list-item empty-data"
|
|
153
|
-
}, "\u6682\u65E0\u6570\u636E"))), /*#__PURE__*/React.createElement(BizDialog, {
|
|
152
|
+
}, "\u6682\u65E0\u6570\u636E")))), /*#__PURE__*/React.createElement(BizDialog, {
|
|
154
153
|
title: "\u5220\u9664\u865A\u62DF\u5E94\u7528",
|
|
155
154
|
open: deleteDialogShow,
|
|
156
155
|
closable: true,
|