@titaui/pc 1.12.6 → 1.12.8
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/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/index.js +4 -2
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/common-share/publishMblog.js +4 -2
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +4 -2
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
- package/lib/components/create-okr-modal/index.js +201 -134
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +95 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
- package/lib/components/create-okr-modal/request-api.js +16 -12
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/create-okr-modal/utils/helper.js +6 -2
- package/lib/components/drawer-manager/drawerWrapper.js +4 -2
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/eReport/eReportLists/reportList.js +29 -30
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/firework/index.js +6 -2
- package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
- package/lib/components/grid-layout/util/network.js +10 -6
- package/lib/components/nav-top/components/menu/index.js +3 -3
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
- package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
- package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
- package/lib/components/okr-detail/components/header/edit-name.js +80 -41
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
- package/lib/components/okr-detail/components/header/o-classify.js +154 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/o-classify.js +4 -2
- package/lib/components/okr-detail/components/o-progress-update/index.js +14 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +7 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +178 -66
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +19 -15
- package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
- package/lib/components/okr-detail/detail-footer/index.js +4 -2
- package/lib/components/okr-detail/detail-header/index.js +23 -15
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +29 -27
- package/lib/components/okr-detail/request-apis.js +79 -71
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +7 -3
- package/lib/components/okr-flow/export-modal/index.js +10 -29
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
- package/lib/components/okr-flow/request-apis.js +6 -2
- package/lib/components/okr-flow/root-node/index.js +4 -2
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +10 -6
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-progress-modal/index.js +4 -2
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +7 -5
- package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
- package/lib/components/okr-share/common-painter/openDataPainter.js +15 -8
- package/lib/components/okr-share/common-painter/utils.js +187 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
- package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
- package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
- package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
- package/lib/components/okr-share/pink-card/index.js +26 -14
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +24 -20
- package/lib/components/open-data-painter/index.js +12 -7
- package/lib/components/period-selector/helper/index.js +6 -2
- package/lib/components/search-key-handle/index.js +12 -10
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
- package/lib/components/survey-model/request-api.js +6 -2
- package/lib/components/task-relation-modal/index.js +6 -4
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
- package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/work-relation/index.js +6 -4
- package/lib/components/task-tree/task-item-node/e-project.js +4 -2
- package/lib/components/task-tree/task-item-node/e-task.js +4 -2
- package/lib/components/toast/index.js +12 -8
- package/lib/components/upload/components/uploadedPreview.js +17 -17
- package/lib/components/upload/index.js +23 -23
- package/lib/components/upvote/index.js +6 -4
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +14 -14
- package/lib/components/user-selector/searched-panel/index.js +4 -4
- package/lib/components/version-change-modal/index.js +6 -4
- package/lib/components/version-change-modal/request-api.js +6 -2
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components/weekly-report/card.js +4 -12
- package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
- package/lib/components/weekly-report/common-painter/drawName.js +6 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
- package/lib/components/weekly-report/index.js +6 -4
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/pages/group-management/groupInterface.js +6 -2
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +15 -15
- package/lib/pages/new-okr-list/request-api.js +18 -14
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +4 -2
- package/lib/pages/okr-map/request-apis.js +6 -2
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/open-data.js +216 -66
- package/lib/utils/request-v1.js +6 -2
- package/lib/utils/request.js +6 -2
- package/lib/utils/tita-okr-cycle.js +3 -3
- package/package.json +2 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -25,6 +27,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
25
27
|
|
|
26
28
|
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; }
|
|
27
29
|
|
|
30
|
+
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, $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 generator._invoke = function (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); } }; }(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; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return 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, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), 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 (object) { var 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; }
|
|
31
|
+
|
|
28
32
|
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); } }
|
|
29
33
|
|
|
30
34
|
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); }); }; }
|
|
@@ -40,7 +44,7 @@ var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
|
40
44
|
|
|
41
45
|
var getKrs = function getKrs(_ref) {
|
|
42
46
|
var okrId = _ref.okrId;
|
|
43
|
-
return (0, _request.rpost)(
|
|
47
|
+
return (0, _request.rpost)('v1')("okr/task/kr?okrId=".concat(okrId), {
|
|
44
48
|
sortType: 1,
|
|
45
49
|
work_id: okrId,
|
|
46
50
|
startNum: 1,
|
|
@@ -49,7 +53,7 @@ var getKrs = function getKrs(_ref) {
|
|
|
49
53
|
app_id: 1,
|
|
50
54
|
app_type: 1,
|
|
51
55
|
to_user_id: userId,
|
|
52
|
-
detail_type:
|
|
56
|
+
detail_type: 'pq',
|
|
53
57
|
appId: 1,
|
|
54
58
|
appType: 1,
|
|
55
59
|
taskType: 0,
|
|
@@ -64,7 +68,7 @@ exports.getKrs = getKrs;
|
|
|
64
68
|
var updateKrPrincipal = function updateKrPrincipal(_ref2) {
|
|
65
69
|
var kr = _ref2.kr,
|
|
66
70
|
user = _ref2.user;
|
|
67
|
-
return (0, _request.rpost)(
|
|
71
|
+
return (0, _request.rpost)('v1')("WorkMileStone/UpdatePrincipal?workMileStoneId=".concat(kr.mileStoneId), {
|
|
68
72
|
endDate: kr.endDate,
|
|
69
73
|
mileStoneName: kr.mileStoneName,
|
|
70
74
|
principalId: user.userId,
|
|
@@ -79,7 +83,7 @@ exports.updateKrPrincipal = updateKrPrincipal;
|
|
|
79
83
|
var updateConfidenceIndex = function updateConfidenceIndex(_ref3) {
|
|
80
84
|
var kr = _ref3.kr,
|
|
81
85
|
confidenceIndex = _ref3.confidenceIndex;
|
|
82
|
-
return (0, _request.rpost)(
|
|
86
|
+
return (0, _request.rpost)('v1')("kr/updateConfidenceIndex?workMileStoneId=".concat(kr.mileStoneId), {
|
|
83
87
|
confidenceIndex: confidenceIndex
|
|
84
88
|
});
|
|
85
89
|
};
|
|
@@ -88,10 +92,14 @@ exports.updateConfidenceIndex = updateConfidenceIndex;
|
|
|
88
92
|
|
|
89
93
|
var updateOkrName = function updateOkrName(_ref4) {
|
|
90
94
|
var workId = _ref4.workId,
|
|
91
|
-
workName = _ref4.workName
|
|
92
|
-
|
|
95
|
+
workName = _ref4.workName,
|
|
96
|
+
workNameRichText = _ref4.workNameRichText,
|
|
97
|
+
aiteUsers = _ref4.aiteUsers;
|
|
98
|
+
return (0, _request.rpost)('v1')('okr/name', {
|
|
93
99
|
workId: workId,
|
|
94
|
-
workName: workName
|
|
100
|
+
workName: workName,
|
|
101
|
+
workNameRichText: workNameRichText,
|
|
102
|
+
aiteUsers: aiteUsers
|
|
95
103
|
});
|
|
96
104
|
};
|
|
97
105
|
|
|
@@ -99,9 +107,9 @@ exports.updateOkrName = updateOkrName;
|
|
|
99
107
|
|
|
100
108
|
var getOkrDetail = function getOkrDetail(_ref5) {
|
|
101
109
|
var okrId = _ref5.okrId;
|
|
102
|
-
return (0, _request.rget)(
|
|
110
|
+
return (0, _request.rget)('v1')("okr/detailInfo?okrId=".concat(okrId)).then(function (headInfo) {
|
|
103
111
|
if (headInfo.Code != 1) {
|
|
104
|
-
throw headInfo.Message.replace(/项目/g, (0, _getLocale.getLocale)(
|
|
112
|
+
throw headInfo.Message.replace(/项目/g, (0, _getLocale.getLocale)('Mod_Objective'));
|
|
105
113
|
}
|
|
106
114
|
|
|
107
115
|
return headInfo.Data;
|
|
@@ -111,7 +119,7 @@ var getOkrDetail = function getOkrDetail(_ref5) {
|
|
|
111
119
|
exports.getOkrDetail = getOkrDetail;
|
|
112
120
|
|
|
113
121
|
var getOkrApprovalSettingInfo = function getOkrApprovalSettingInfo() {
|
|
114
|
-
return (0, _request.rget)(
|
|
122
|
+
return (0, _request.rget)('v1')('WorkManageSetting/GetOkrApproval');
|
|
115
123
|
};
|
|
116
124
|
|
|
117
125
|
exports.getOkrApprovalSettingInfo = getOkrApprovalSettingInfo;
|
|
@@ -119,7 +127,7 @@ exports.getOkrApprovalSettingInfo = getOkrApprovalSettingInfo;
|
|
|
119
127
|
var updateClassify = function updateClassify(_ref6) {
|
|
120
128
|
var okrId = _ref6.okrId,
|
|
121
129
|
okrClassify = _ref6.okrClassify;
|
|
122
|
-
return (0, _request.rpost)(
|
|
130
|
+
return (0, _request.rpost)('v1')("okr/update/classify?okrId=".concat(okrId), {
|
|
123
131
|
okrClassify: okrClassify
|
|
124
132
|
});
|
|
125
133
|
};
|
|
@@ -127,9 +135,9 @@ var updateClassify = function updateClassify(_ref6) {
|
|
|
127
135
|
exports.updateClassify = updateClassify;
|
|
128
136
|
|
|
129
137
|
var updateOkrPrincipal = function updateOkrPrincipal(params) {
|
|
130
|
-
return (0, _request.rpost)(
|
|
138
|
+
return (0, _request.rpost)('v1')('Work/Deliver', _objectSpread({}, params), {
|
|
131
139
|
headers: {
|
|
132
|
-
|
|
140
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
133
141
|
},
|
|
134
142
|
transformRequest: _qs["default"].stringify
|
|
135
143
|
});
|
|
@@ -141,7 +149,7 @@ var updateKrDate = function updateKrDate(_ref7) {
|
|
|
141
149
|
var kr = _ref7.kr,
|
|
142
150
|
startDate = _ref7.startDate,
|
|
143
151
|
endDate = _ref7.endDate;
|
|
144
|
-
return (0, _request.rpost)(
|
|
152
|
+
return (0, _request.rpost)('v1')("WorkMileStone/UpdateDate?workMileStoneId=".concat(kr.mileStoneId), {
|
|
145
153
|
startDate: startDate,
|
|
146
154
|
endDate: endDate
|
|
147
155
|
});
|
|
@@ -150,24 +158,24 @@ var updateKrDate = function updateKrDate(_ref7) {
|
|
|
150
158
|
exports.updateKrDate = updateKrDate;
|
|
151
159
|
|
|
152
160
|
var updateKrProgressAndStatus = function updateKrProgressAndStatus(params) {
|
|
153
|
-
return (0, _request.rpost)(
|
|
161
|
+
return (0, _request.rpost)('v1')('kr/progressAndStatus/update', params);
|
|
154
162
|
};
|
|
155
163
|
|
|
156
164
|
exports.updateKrProgressAndStatus = updateKrProgressAndStatus;
|
|
157
165
|
|
|
158
166
|
var updateProgress = function updateProgress(params) {
|
|
159
|
-
return (0, _request.rpost)(
|
|
167
|
+
return (0, _request.rpost)('v2')('Work/progress', _objectSpread({}, params));
|
|
160
168
|
};
|
|
161
169
|
|
|
162
170
|
exports.updateProgress = updateProgress;
|
|
163
171
|
|
|
164
172
|
var createNewKr = function createNewKr(params) {
|
|
165
|
-
return (0, _request.rpost)(
|
|
173
|
+
return (0, _request.rpost)('v1')('kr/add', _objectSpread({
|
|
166
174
|
MileStoneType: 3,
|
|
167
175
|
confidenceIndex: 5
|
|
168
176
|
}, params), {
|
|
169
177
|
headers: {
|
|
170
|
-
|
|
178
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
171
179
|
},
|
|
172
180
|
transformRequest: _qs["default"].stringify
|
|
173
181
|
});
|
|
@@ -182,36 +190,36 @@ var getPraiseComments = function getPraiseComments(params) {
|
|
|
182
190
|
count = _params$count === void 0 ? 9999 : _params$count,
|
|
183
191
|
_params$objType = params.objType,
|
|
184
192
|
objType = _params$objType === void 0 ? 10 : _params$objType;
|
|
185
|
-
return (0, _request.rget)(
|
|
193
|
+
return (0, _request.rget)('v1')("praise/get?objId=".concat(objId, "&start=").concat(start, "&count=").concat(count, "&objType=").concat(objType));
|
|
186
194
|
};
|
|
187
195
|
|
|
188
196
|
exports.getPraiseComments = getPraiseComments;
|
|
189
197
|
|
|
190
198
|
var addPraise = function addPraise(feedId, type) {
|
|
191
|
-
return (0, _request.rpost)(
|
|
199
|
+
return (0, _request.rpost)('v1')("praise/feed?feedId=".concat(feedId, "&praiseType=").concat(type));
|
|
192
200
|
};
|
|
193
201
|
|
|
194
202
|
exports.addPraise = addPraise;
|
|
195
203
|
|
|
196
204
|
var cancelPraise = function cancelPraise(feedId) {
|
|
197
|
-
return (0, _request.rpost)(
|
|
205
|
+
return (0, _request.rpost)('v1')("praise/feed/cancel?feedId=".concat(feedId));
|
|
198
206
|
};
|
|
199
207
|
|
|
200
208
|
exports.cancelPraise = cancelPraise;
|
|
201
209
|
|
|
202
210
|
var getFeedById = function getFeedById(feedId, commentCount) {
|
|
203
|
-
return (0, _request.rget)(
|
|
211
|
+
return (0, _request.rget)('v2')("user/feed/GetById?feed_id=".concat(feedId, "&comment_count=").concat(commentCount));
|
|
204
212
|
};
|
|
205
213
|
|
|
206
214
|
exports.getFeedById = getFeedById;
|
|
207
215
|
|
|
208
216
|
var updateParentId = /*#__PURE__*/function () {
|
|
209
|
-
var _ref8 = _asyncToGenerator( /*#__PURE__*/
|
|
210
|
-
return
|
|
217
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
218
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
211
219
|
while (1) {
|
|
212
220
|
switch (_context.prev = _context.next) {
|
|
213
221
|
case 0:
|
|
214
|
-
return _context.abrupt("return", (0, _request.rpost)(
|
|
222
|
+
return _context.abrupt("return", (0, _request.rpost)('v1')("okr/updateParentId?okrId=".concat(params.okrId, "&parentId=").concat(params.parentId, "&parentType=").concat(params.parentId != 0 ? params.parentType : 0)));
|
|
215
223
|
|
|
216
224
|
case 1:
|
|
217
225
|
case "end":
|
|
@@ -229,13 +237,13 @@ var updateParentId = /*#__PURE__*/function () {
|
|
|
229
237
|
exports.updateParentId = updateParentId;
|
|
230
238
|
|
|
231
239
|
var cancelParentOkr = function cancelParentOkr(okrId) {
|
|
232
|
-
return (0, _request.rpost)(
|
|
240
|
+
return (0, _request.rpost)('v1')("okr/updateParentId?okrId=".concat(okrId, "&parentId=0&parentType=0"));
|
|
233
241
|
};
|
|
234
242
|
|
|
235
243
|
exports.cancelParentOkr = cancelParentOkr;
|
|
236
244
|
|
|
237
245
|
var getOrg = function getOrg() {
|
|
238
|
-
return (0, _request.rget)(
|
|
246
|
+
return (0, _request.rget)('v1')('org/Get');
|
|
239
247
|
};
|
|
240
248
|
|
|
241
249
|
exports.getOrg = getOrg;
|
|
@@ -243,9 +251,9 @@ exports.getOrg = getOrg;
|
|
|
243
251
|
var getKrsByCondition = function getKrsByCondition(_ref9) {
|
|
244
252
|
var okrId = _ref9.okrId,
|
|
245
253
|
condition = _ref9.condition;
|
|
246
|
-
return (0, _request.rpost)(
|
|
254
|
+
return (0, _request.rpost)('v1')("okr/task/kr?okrId=".concat(okrId), condition, {
|
|
247
255
|
headers: {
|
|
248
|
-
|
|
256
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
249
257
|
},
|
|
250
258
|
transformRequest: _qs["default"].stringify
|
|
251
259
|
}).then(function (resp) {
|
|
@@ -256,13 +264,13 @@ var getKrsByCondition = function getKrsByCondition(_ref9) {
|
|
|
256
264
|
exports.getKrsByCondition = getKrsByCondition;
|
|
257
265
|
|
|
258
266
|
var deleteKr = function deleteKr(mileStoneId) {
|
|
259
|
-
return (0, _request.rpost)(
|
|
267
|
+
return (0, _request.rpost)('v1')("WorkMileStone/Delete?workMileStoneId=".concat(mileStoneId));
|
|
260
268
|
};
|
|
261
269
|
|
|
262
270
|
exports.deleteKr = deleteKr;
|
|
263
271
|
|
|
264
272
|
var updateKrName = function updateKrName(params) {
|
|
265
|
-
return (0, _request.rpost)(
|
|
273
|
+
return (0, _request.rpost)('v1')("WorkMileStone/UpdateName?workMileStoneId=".concat(params.workMileStoneId), params);
|
|
266
274
|
};
|
|
267
275
|
|
|
268
276
|
exports.updateKrName = updateKrName;
|
|
@@ -270,12 +278,12 @@ exports.updateKrName = updateKrName;
|
|
|
270
278
|
var updateTaskPrincipal = function updateTaskPrincipal(_ref10) {
|
|
271
279
|
var task_id = _ref10.task_id,
|
|
272
280
|
to_user_id = _ref10.to_user_id;
|
|
273
|
-
return (0, _request.rpost)(
|
|
281
|
+
return (0, _request.rpost)('v1')('task/UpdatePrincipal', {
|
|
274
282
|
task_id: task_id,
|
|
275
283
|
to_user_id: to_user_id
|
|
276
284
|
}, {
|
|
277
285
|
headers: {
|
|
278
|
-
|
|
286
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
279
287
|
},
|
|
280
288
|
transformRequest: _qs["default"].stringify
|
|
281
289
|
});
|
|
@@ -288,14 +296,14 @@ var updateTaskDate = function updateTaskDate(_ref11) {
|
|
|
288
296
|
endDate = _ref11.endDate,
|
|
289
297
|
startDate = _ref11.startDate,
|
|
290
298
|
isLongTerm = _ref11.isLongTerm;
|
|
291
|
-
return (0, _request.rpost)(
|
|
299
|
+
return (0, _request.rpost)('v1')("task/UpdateTaskDate?task_id=".concat(task_id), {
|
|
292
300
|
task_id: task_id,
|
|
293
301
|
Deadline: endDate,
|
|
294
302
|
StartDate: startDate,
|
|
295
303
|
IsLongTerm: isLongTerm
|
|
296
304
|
}, {
|
|
297
305
|
headers: {
|
|
298
|
-
|
|
306
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
299
307
|
},
|
|
300
308
|
transformRequest: _qs["default"].stringify
|
|
301
309
|
});
|
|
@@ -306,12 +314,12 @@ exports.updateTaskDate = updateTaskDate;
|
|
|
306
314
|
var updateTaskStatus = function updateTaskStatus(_ref12) {
|
|
307
315
|
var task_id = _ref12.task_id,
|
|
308
316
|
status = _ref12.status;
|
|
309
|
-
return (0, _request.rput)(
|
|
317
|
+
return (0, _request.rput)('v1')("PlanV2/UpdateStatus?plan_item_id=".concat(task_id, "&Status=").concat(status), {
|
|
310
318
|
plan_item_id: task_id,
|
|
311
319
|
Status: status
|
|
312
320
|
}, {
|
|
313
321
|
headers: {
|
|
314
|
-
|
|
322
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
315
323
|
},
|
|
316
324
|
transformRequest: _qs["default"].stringify
|
|
317
325
|
});
|
|
@@ -324,7 +332,7 @@ var cancelRel = function cancelRel(_ref13) {
|
|
|
324
332
|
objType = _ref13.objType,
|
|
325
333
|
okrId = _ref13.okrId,
|
|
326
334
|
taskId = _ref13.taskId;
|
|
327
|
-
return (0, _request.rpost)(
|
|
335
|
+
return (0, _request.rpost)('v1')('okr/task/cancelrel', {
|
|
328
336
|
krId: krId,
|
|
329
337
|
objType: objType,
|
|
330
338
|
okrId: okrId,
|
|
@@ -338,13 +346,13 @@ exports.cancelRel = cancelRel;
|
|
|
338
346
|
var setTaskPriority = function setTaskPriority(_ref14) {
|
|
339
347
|
var task_id = _ref14.task_id,
|
|
340
348
|
priority = _ref14.priority;
|
|
341
|
-
return (0, _request.rpost)(
|
|
349
|
+
return (0, _request.rpost)('v2')("task/SetTaskPriority?task_id=".concat(task_id, "&priority=").concat(priority), {});
|
|
342
350
|
};
|
|
343
351
|
|
|
344
352
|
exports.setTaskPriority = setTaskPriority;
|
|
345
353
|
|
|
346
354
|
var krChangeOrder = function krChangeOrder(params) {
|
|
347
|
-
return (0, _request.rpost)(
|
|
355
|
+
return (0, _request.rpost)('v1')("workMileStone/drag?workId=".concat(params.workId), params);
|
|
348
356
|
}; // type: 1 上级查看 2 更新
|
|
349
357
|
|
|
350
358
|
|
|
@@ -355,14 +363,14 @@ var remindAction = function remindAction(_ref15) {
|
|
|
355
363
|
work_id = _ref15.work_id,
|
|
356
364
|
_ref15$type = _ref15.type,
|
|
357
365
|
type = _ref15$type === void 0 ? 1 : _ref15$type;
|
|
358
|
-
return (0, _request.rpost)(
|
|
366
|
+
return (0, _request.rpost)('v1')("work/notify/message?toUserId=".concat(toUserId), {
|
|
359
367
|
objId: work_id,
|
|
360
|
-
content:
|
|
368
|
+
content: '',
|
|
361
369
|
toUserId: toUserId,
|
|
362
|
-
templateId: type === 1 ?
|
|
370
|
+
templateId: type === 1 ? 'TitaFeedSystem.Work.Okr.Message.RemindSuperiorLookOkrInfo' : 'TitaFeedSystem.Work.Okr.Message.RemindSubUpdateProgress'
|
|
363
371
|
}, {
|
|
364
372
|
headers: {
|
|
365
|
-
|
|
373
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
366
374
|
},
|
|
367
375
|
transformRequest: _qs["default"].stringify
|
|
368
376
|
});
|
|
@@ -371,14 +379,14 @@ var remindAction = function remindAction(_ref15) {
|
|
|
371
379
|
exports.remindAction = remindAction;
|
|
372
380
|
|
|
373
381
|
var getOkrUsers = function getOkrUsers(workId) {
|
|
374
|
-
return (0, _request.rget)(
|
|
382
|
+
return (0, _request.rget)('v1')("okr/users?workId=".concat(workId));
|
|
375
383
|
};
|
|
376
384
|
|
|
377
385
|
exports.getOkrUsers = getOkrUsers;
|
|
378
386
|
|
|
379
387
|
var addComment = function addComment(data) {
|
|
380
|
-
return (0, _request.rpost)(
|
|
381
|
-
Content: data.Content ||
|
|
388
|
+
return (0, _request.rpost)('v2')('comment/Add', _objectSpread(_objectSpread({}, data), {}, {
|
|
389
|
+
Content: data.Content || ' '
|
|
382
390
|
}));
|
|
383
391
|
}; // okr request
|
|
384
392
|
|
|
@@ -386,19 +394,19 @@ var addComment = function addComment(data) {
|
|
|
386
394
|
exports.addComment = addComment;
|
|
387
395
|
|
|
388
396
|
var updateOkrVisibility = function updateOkrVisibility(data) {
|
|
389
|
-
return (0, _request.rpost)(
|
|
397
|
+
return (0, _request.rpost)('v2')('work/visiblity', data);
|
|
390
398
|
};
|
|
391
399
|
|
|
392
400
|
exports.updateOkrVisibility = updateOkrVisibility;
|
|
393
401
|
|
|
394
402
|
var addUser = function addUser(addUserId, okrId, relation) {
|
|
395
|
-
return (0, _request.rpost)(
|
|
403
|
+
return (0, _request.rpost)('v2')('work/addUser', {
|
|
396
404
|
relation: relation,
|
|
397
405
|
toUserIds: addUserId,
|
|
398
406
|
workId: okrId
|
|
399
407
|
}, {
|
|
400
408
|
headers: {
|
|
401
|
-
|
|
409
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
402
410
|
},
|
|
403
411
|
transformRequest: _qs["default"].stringify
|
|
404
412
|
});
|
|
@@ -407,13 +415,13 @@ var addUser = function addUser(addUserId, okrId, relation) {
|
|
|
407
415
|
exports.addUser = addUser;
|
|
408
416
|
|
|
409
417
|
var deleteUser = function deleteUser(delUserId, okrId, relation) {
|
|
410
|
-
return (0, _request.rdelete)(
|
|
418
|
+
return (0, _request.rdelete)('v2')("work/deleteUser?toUserIds=".concat(delUserId, "&workId=").concat(okrId, "&relation=").concat(relation));
|
|
411
419
|
};
|
|
412
420
|
|
|
413
421
|
exports.deleteUser = deleteUser;
|
|
414
422
|
|
|
415
423
|
var workDelete = function workDelete(data) {
|
|
416
|
-
return (0, _request.rdelete)(
|
|
424
|
+
return (0, _request.rdelete)('v1')("okr/deleteV2?workId=".concat(data.workId), {
|
|
417
425
|
data: data
|
|
418
426
|
});
|
|
419
427
|
};
|
|
@@ -421,11 +429,11 @@ var workDelete = function workDelete(data) {
|
|
|
421
429
|
exports.workDelete = workDelete;
|
|
422
430
|
|
|
423
431
|
var start = function start(okrId) {
|
|
424
|
-
return (0, _request.rpost)(
|
|
432
|
+
return (0, _request.rpost)('v1')('okr/Start', {
|
|
425
433
|
work_id: okrId
|
|
426
434
|
}, {
|
|
427
435
|
headers: {
|
|
428
|
-
|
|
436
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
429
437
|
},
|
|
430
438
|
transformRequest: _qs["default"].stringify
|
|
431
439
|
});
|
|
@@ -434,11 +442,11 @@ var start = function start(okrId) {
|
|
|
434
442
|
exports.start = start;
|
|
435
443
|
|
|
436
444
|
var close = function close(okrId) {
|
|
437
|
-
return (0, _request.rpost)(
|
|
445
|
+
return (0, _request.rpost)('v1')('okr/Close', {
|
|
438
446
|
work_id: okrId
|
|
439
447
|
}, {
|
|
440
448
|
headers: {
|
|
441
|
-
|
|
449
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
442
450
|
},
|
|
443
451
|
transformRequest: _qs["default"].stringify
|
|
444
452
|
});
|
|
@@ -447,9 +455,9 @@ var close = function close(okrId) {
|
|
|
447
455
|
exports.close = close;
|
|
448
456
|
|
|
449
457
|
var updateOCommitType = function updateOCommitType(params) {
|
|
450
|
-
return (0, _request.rpost)(
|
|
458
|
+
return (0, _request.rpost)('v1')("okr/update/okrType?okrId=".concat(params.okrId), params, {
|
|
451
459
|
headers: {
|
|
452
|
-
|
|
460
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
453
461
|
},
|
|
454
462
|
transformRequest: _qs["default"].stringify
|
|
455
463
|
});
|
|
@@ -458,7 +466,7 @@ var updateOCommitType = function updateOCommitType(params) {
|
|
|
458
466
|
exports.updateOCommitType = updateOCommitType;
|
|
459
467
|
|
|
460
468
|
var saveODesc = function saveODesc(workId, description) {
|
|
461
|
-
return (0, _request.rpost)(
|
|
469
|
+
return (0, _request.rpost)('v1')('okr/description', {
|
|
462
470
|
workId: workId,
|
|
463
471
|
description: description
|
|
464
472
|
});
|
|
@@ -467,9 +475,9 @@ var saveODesc = function saveODesc(workId, description) {
|
|
|
467
475
|
exports.saveODesc = saveODesc;
|
|
468
476
|
|
|
469
477
|
var transferPrincipal = function transferPrincipal(workId, email, toUserId) {
|
|
470
|
-
return (0, _request.rpost)(
|
|
478
|
+
return (0, _request.rpost)('v1')('Work/Deliver', "work_id=".concat(workId, "&to_user_id=").concat(toUserId), {
|
|
471
479
|
headers: {
|
|
472
|
-
|
|
480
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
473
481
|
}
|
|
474
482
|
});
|
|
475
483
|
};
|
|
@@ -477,7 +485,7 @@ var transferPrincipal = function transferPrincipal(workId, email, toUserId) {
|
|
|
477
485
|
exports.transferPrincipal = transferPrincipal;
|
|
478
486
|
|
|
479
487
|
var updateOClassify = function updateOClassify(classify, workId) {
|
|
480
|
-
return (0, _request.rpost)(
|
|
488
|
+
return (0, _request.rpost)('v1')("okr/update/classify?okrId=".concat(workId), {
|
|
481
489
|
work_id: workId,
|
|
482
490
|
okrClassify: classify
|
|
483
491
|
});
|
|
@@ -489,7 +497,7 @@ var updateVisibility = function updateVisibility(workId, visibility) {
|
|
|
489
497
|
var areaUserIds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
490
498
|
var areaOrgIds = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
491
499
|
var areaGroupIds = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
492
|
-
return (0, _request.rpost)(
|
|
500
|
+
return (0, _request.rpost)('v2')('work/visiblity', {
|
|
493
501
|
workId: workId,
|
|
494
502
|
visibility: visibility,
|
|
495
503
|
areaUserIds: areaUserIds,
|
|
@@ -502,19 +510,19 @@ var updateVisibility = function updateVisibility(workId, visibility) {
|
|
|
502
510
|
exports.updateVisibility = updateVisibility;
|
|
503
511
|
|
|
504
512
|
var addUserRelation = function addUserRelation(workId, relation, addUser) {
|
|
505
|
-
return (0, _request.rpost)(
|
|
513
|
+
return (0, _request.rpost)('v2')("work/addUserByObj?workId=".concat(workId, "&relation=").concat(relation), addUser);
|
|
506
514
|
};
|
|
507
515
|
|
|
508
516
|
exports.addUserRelation = addUserRelation;
|
|
509
517
|
|
|
510
518
|
var getProgress = function getProgress(workId) {
|
|
511
|
-
return (0, _request.rget)(
|
|
519
|
+
return (0, _request.rget)('v1')("okr/GetProgress?work_id=".concat(workId, "&count=10000"));
|
|
512
520
|
};
|
|
513
521
|
|
|
514
522
|
exports.getProgress = getProgress;
|
|
515
523
|
|
|
516
524
|
var updateProgressDesc = function updateProgressDesc(commentId, workId, content) {
|
|
517
|
-
return (0, _request.rpost)(
|
|
525
|
+
return (0, _request.rpost)('v1')("progress/updateContent?commentId=".concat(commentId, "&objId=").concat(workId, "&objType=62"), {
|
|
518
526
|
content: content
|
|
519
527
|
});
|
|
520
528
|
};
|
|
@@ -522,25 +530,25 @@ var updateProgressDesc = function updateProgressDesc(commentId, workId, content)
|
|
|
522
530
|
exports.updateProgressDesc = updateProgressDesc;
|
|
523
531
|
|
|
524
532
|
var deleteProgressDesc = function deleteProgressDesc(commentId, workId) {
|
|
525
|
-
return (0, _request.rpost)(
|
|
533
|
+
return (0, _request.rpost)('v1')("progress/delete?commentId=".concat(commentId, "&objId=").concat(workId, "&objType=62"));
|
|
526
534
|
};
|
|
527
535
|
|
|
528
536
|
exports.deleteProgressDesc = deleteProgressDesc;
|
|
529
537
|
|
|
530
538
|
var getRelProgress = function getRelProgress(workId) {
|
|
531
|
-
return (0, _request.rget)(
|
|
539
|
+
return (0, _request.rget)('v1')("okr/detail/relProgress?okrId=".concat(workId));
|
|
532
540
|
};
|
|
533
541
|
|
|
534
542
|
exports.getRelProgress = getRelProgress;
|
|
535
543
|
|
|
536
544
|
var getRelWorks = function getRelWorks(okrId) {
|
|
537
|
-
return (0, _request.rget)(
|
|
545
|
+
return (0, _request.rget)('v1')("okr/detail/relWorks?okrId=".concat(okrId));
|
|
538
546
|
};
|
|
539
547
|
|
|
540
548
|
exports.getRelWorks = getRelWorks;
|
|
541
549
|
|
|
542
550
|
var updateChildOkrWeight = function updateChildOkrWeight(data) {
|
|
543
|
-
return (0, _request.rpost)(
|
|
551
|
+
return (0, _request.rpost)('v1')('okr/weight/save', {
|
|
544
552
|
OkrWeights: _toConsumableArray(data)
|
|
545
553
|
}, {
|
|
546
554
|
// "headers": { "Content-Type": "application/x-www-form-urlencoded" },
|
|
@@ -551,7 +559,7 @@ var updateChildOkrWeight = function updateChildOkrWeight(data) {
|
|
|
551
559
|
exports.updateChildOkrWeight = updateChildOkrWeight;
|
|
552
560
|
|
|
553
561
|
var updateOScore = function updateOScore(score, workId) {
|
|
554
|
-
return (0, _request.rpost)(
|
|
562
|
+
return (0, _request.rpost)('v2')('work/score', {
|
|
555
563
|
manualScore: score,
|
|
556
564
|
workId: workId
|
|
557
565
|
});
|
|
@@ -17,6 +17,8 @@ var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
19
19
|
|
|
20
|
+
var _openData = require("../../../../../utils/open-data");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -33,7 +35,7 @@ var renderTitle = function renderTitle(index, title, id) {
|
|
|
33
35
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
36
|
className: "kr-progress__order"
|
|
35
37
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
36
|
-
text: title,
|
|
38
|
+
text: (0, _openData.parseString)(title),
|
|
37
39
|
maxWidth: 600,
|
|
38
40
|
exClass: "kr-progress__title-text"
|
|
39
41
|
}));
|