@zgfe/modules-settings 1.2.51-zhongyuan.1 → 1.2.51-zhongyuan.7
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/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/index.less +37 -37
- package/es/components/processCanvas/styles/customNode.less +149 -149
- package/es/components/processCanvas/styles/index.less +34 -34
- package/es/components/settingTabs/index.less +51 -51
- package/es/constants/api.d.ts +13 -0
- package/es/constants/api.js +18 -1
- 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/dataAccessFilter/index.less +5 -5
- 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.less +126 -126
- package/es/modules/companySetting/application/index.less +126 -126
- package/es/modules/companySetting/business/index.less +92 -92
- package/es/modules/companySetting/cost/index.less +38 -38
- package/es/modules/companySetting/department/index.less +157 -157
- 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/index.less +90 -90
- 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.less +239 -239
- package/es/modules/companySetting/operationLog/index.less +33 -33
- package/es/modules/companySetting/role/index.less +296 -296
- 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 +173 -4
- package/es/modules/companySetting/user/index.less +11 -0
- 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.less +58 -58
- package/es/modules/createDemand/styles/index.less +277 -277
- package/es/modules/createDemand_bf/styles/index.less +222 -222
- package/es/modules/createProcess/components/index.less +52 -52
- package/es/modules/createProcess/index.less +114 -114
- package/es/modules/createProcess/title/index.less +53 -53
- package/es/modules/dealDemand/styles/index.less +265 -265
- package/es/modules/demandManage/styles/index.less +210 -210
- package/es/modules/getPassword/index.less +122 -122
- package/es/modules/messageList/index.less +81 -81
- package/es/modules/personalSetting/securityLog/index.less +11 -11
- package/es/modules/personalSetting/styles/unbinding.less +73 -73
- package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
- package/es/modules/pointMap/editTxt/index.less +55 -55
- 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 +53 -4
- package/es/modules/systemSetting/Dictionary.d.ts +3 -0
- package/es/modules/systemSetting/Dictionary.js +383 -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.less +14 -14
- package/es/modules/systemSetting/approvalmanage/index.less +5 -5
- package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
- package/es/modules/systemSetting/authUrl.js +2 -2
- 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 +130 -0
- package/es/modules/systemSetting/index.js +13 -1
- package/es/modules/systemSetting/index.less +136 -0
- package/es/modules/systemSetting/notice/configItem/index.less +21 -21
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/es/types/companySetting.d.ts +1 -0
- package/package.json +6 -2
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
.system-setting-approval-process-content {
|
|
2
|
-
position: relative;
|
|
3
|
-
padding: 0 24px 16px;
|
|
4
|
-
}
|
|
5
|
-
.system-setting-approval-process-content-top {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: row;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
margin-bottom: 16px;
|
|
10
|
-
}
|
|
11
|
-
.system-setting-approval-process-content-top-left {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
gap: 16px;
|
|
15
|
-
align-items: center;
|
|
16
|
-
}
|
|
17
|
-
.system-setting-approval-process-disable-tip {
|
|
18
|
-
color: var(----1, #021429);
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
font-size: 14px;
|
|
21
|
-
font-family: 'PingFang SC';
|
|
22
|
-
font-style: normal;
|
|
23
|
-
line-height: normal;
|
|
24
|
-
}
|
|
25
|
-
.system-setting-approval-process-disable-tip-warn {
|
|
26
|
-
margin-top: 8px;
|
|
27
|
-
color: var(---, #fd9f41);
|
|
28
|
-
font-weight: 400;
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
font-family: 'PingFang SC';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
line-height: normal;
|
|
33
|
-
}
|
|
34
|
-
.system-setting-approval-process-txt {
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
text-overflow: ellipsis;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
1
|
+
.system-setting-approval-process-content {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: 0 24px 16px;
|
|
4
|
+
}
|
|
5
|
+
.system-setting-approval-process-content-top {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
margin-bottom: 16px;
|
|
10
|
+
}
|
|
11
|
+
.system-setting-approval-process-content-top-left {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
gap: 16px;
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
17
|
+
.system-setting-approval-process-disable-tip {
|
|
18
|
+
color: var(----1, #021429);
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-family: 'PingFang SC';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
line-height: normal;
|
|
24
|
+
}
|
|
25
|
+
.system-setting-approval-process-disable-tip-warn {
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
color: var(---, #fd9f41);
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
font-family: 'PingFang SC';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
line-height: normal;
|
|
33
|
+
}
|
|
34
|
+
.system-setting-approval-process-txt {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
@@ -120,7 +120,7 @@ var AuthUrl = function AuthUrl() {
|
|
|
120
120
|
menuCode: searchObj.menuCode
|
|
121
121
|
}
|
|
122
122
|
}).then(function (res) {
|
|
123
|
-
if (res.code == '100000') {
|
|
123
|
+
if (res && (res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
124
124
|
setDataSource(res.data);
|
|
125
125
|
}
|
|
126
126
|
});
|
|
@@ -152,7 +152,7 @@ var AuthUrl = function AuthUrl() {
|
|
|
152
152
|
methodType: values.methodType
|
|
153
153
|
}
|
|
154
154
|
}).then(function (res) {
|
|
155
|
-
if (res.code
|
|
155
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
156
156
|
setIsOpenModal(false);
|
|
157
157
|
setCurrentObj({
|
|
158
158
|
url: '',
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(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); }
|
|
13
|
+
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; }
|
|
14
|
+
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; } }
|
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
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;
|
|
Binary file
|