@titaui/pc 1.10.82-beta.2 → 1.10.82-beta.20
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/.husky/pre-commit +1 -1
- package/lib/components/avatar/name-avatar/index.css +1 -0
- package/lib/components/avatar/name-avatar/index.js +22 -13
- package/lib/components/button/rect-btn/index.css +25 -11
- package/lib/components/button/rect-btn/index.js +8 -4
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/drawer/index.css +11 -0
- package/lib/components/drawer/index.js +31 -6
- package/lib/components/drawer-manager/index.js +25 -27
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +12 -3
- package/lib/components/dynamic/online-broadcast/data.js +7 -7
- package/lib/components/e-priority/index.js +11 -5
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/icon-button-list/index.css +1 -1
- package/lib/components/img-viewer/index.css +7 -0
- package/lib/components/img-viewer/index.js +47 -8
- package/lib/components/menus/export-modules/demo-menus/menus.js +1 -23
- package/lib/components/menus/export-modules/okr-menus/menu-highlight.js +10 -0
- package/lib/components/nav-top/index.js +6 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +4 -3
- package/lib/components/okr-detail/detail-header/constant.js +53 -0
- package/lib/components/okr-detail/detail-header/index.js +11 -2
- package/lib/components/okr-flow/child-node/index.css +54 -15
- package/lib/components/okr-flow/child-node/work-node.js +19 -3
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +26 -2
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -9
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +32 -14
- package/lib/components/okr-flow/request-apis.js +11 -4
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/utils/index.js +43 -26
- package/lib/components/okr-flow/utils/tree-handler.js +14 -3
- package/lib/components/okr-progress-modal/index.css +16 -15
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +14 -8
- package/lib/components/period-selector/index.js +3 -0
- package/lib/components/superset-charts/components/chart/index.js +8 -36
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +8 -0
- package/lib/components/survey-model/contact.js +93 -0
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +259 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-relation-modal/index.css +2 -2
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +4 -0
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +4 -0
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +4 -0
- package/lib/components/task-relation-modal/tree-node/o-node/index.css +4 -0
- package/lib/components/task-relation-modal/tree-node/work-node/index.css +4 -0
- package/lib/components/textarea/index.css +120 -0
- package/lib/components/textarea/index.js +257 -0
- package/lib/components/wechat-btn/index.css +4 -0
- package/lib/components/wechat-btn/index.js +134 -38
- package/lib/index.js +125 -77
- package/lib/pages/new-okr-list/header/common.js +52 -0
- package/lib/pages/new-okr-list/header/index.css +45 -0
- package/lib/pages/new-okr-list/header/index.js +28 -16
- package/lib/pages/new-okr-list/header/operate-record.js +88 -0
- package/lib/pages/new-okr-list/index.js +28 -15
- package/lib/pages/new-okr-list/list/index.js +19 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +6 -1
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +47 -13
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +27 -17
- package/lib/pages/okr-map/number-select/index.css +4 -1
- package/lib/pages/okr-map/number-select/index.js +1 -1
- package/lib/utils/auth.js +60 -3
- package/lib/utils/bs-global.js +14 -2
- package/lib/utils/format-time.js +8 -1
- package/lib/utils/open-data.js +5 -1
- package/package.json +1 -1
package/lib/utils/auth.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.hasSuperior = exports.OAuth = exports.KRAuth = exports.EAuth = exports.DynamicManagerAuth = exports.ChildAuth = exports.BaseAuth = void 0;
|
|
8
|
+
exports.hasSuperior = exports.OAuth = exports.MyRole = exports.KRAuth = exports.EAuth = exports.DynamicManagerAuth = exports.ChildAuth = exports.BaseAuth = void 0;
|
|
9
9
|
|
|
10
10
|
var _bsGlobal = require("./bs-global");
|
|
11
11
|
|
|
@@ -289,6 +289,63 @@ var ChildAuth = /*#__PURE__*/function (_BaseAuth5) {
|
|
|
289
289
|
}]);
|
|
290
290
|
|
|
291
291
|
return ChildAuth;
|
|
292
|
-
}(BaseAuth);
|
|
292
|
+
}(BaseAuth); // 上面的权限我没动,但我这个应该是全的
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
exports.ChildAuth = ChildAuth;
|
|
296
|
+
|
|
297
|
+
var MyRole = /*#__PURE__*/function () {
|
|
298
|
+
function MyRole() {
|
|
299
|
+
_classCallCheck(this, MyRole);
|
|
300
|
+
|
|
301
|
+
this.loginUserInfo = (0, _bsGlobal.getBSGlobal)("loginUserInfo");
|
|
302
|
+
this.role_label = {
|
|
303
|
+
1: 'assistant',
|
|
304
|
+
// 助理或者说动态管理员
|
|
305
|
+
2: 'supreManager',
|
|
306
|
+
// 超管
|
|
307
|
+
3: 'manage',
|
|
308
|
+
// 普通管理员,比如okr管理员,项目管理员,这时候就要去判断别的字段
|
|
309
|
+
4: 'adminManager' // 后台管理员
|
|
310
|
+
|
|
311
|
+
};
|
|
312
|
+
this.isLeader = this.loginUserInfo.IsLeader;
|
|
313
|
+
this.isBoss = this.loginUserInfo.IsBoss;
|
|
314
|
+
this.isSuperManager = this.loginUserInfo.Role === 2; // 超管
|
|
315
|
+
|
|
316
|
+
this.isAssistant = this.loginUserInfo.Role === 1; // 助理或者说动态管理员
|
|
317
|
+
|
|
318
|
+
this.isOkrManager = this.loginUserInfo.IsOkrManager; // 目标管理员
|
|
319
|
+
|
|
320
|
+
this.isWorkManager = this.loginUserInfo.IsWorkManager; // 项目管理员
|
|
321
|
+
|
|
322
|
+
this.isAdminManager = this.loginUserInfo.Role === 4; // 后台管理员
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_createClass(MyRole, [{
|
|
326
|
+
key: "getRole",
|
|
327
|
+
value: function getRole() {
|
|
328
|
+
if (this.isBoss) {
|
|
329
|
+
return '老板';
|
|
330
|
+
} else if (this.isSuperManager) {
|
|
331
|
+
return '超管';
|
|
332
|
+
} else if (this.isAssistant) {
|
|
333
|
+
return '助理';
|
|
334
|
+
} else if (this.isOkrManager) {
|
|
335
|
+
return '目标管理员';
|
|
336
|
+
} else if (this.isWorkManager) {
|
|
337
|
+
return '项目管理员';
|
|
338
|
+
} else if (this.isAdminManager) {
|
|
339
|
+
return '后台管理员';
|
|
340
|
+
} else if (this.isLeader) {
|
|
341
|
+
return '部门领导';
|
|
342
|
+
} else {
|
|
343
|
+
return '员工';
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}]);
|
|
347
|
+
|
|
348
|
+
return MyRole;
|
|
349
|
+
}();
|
|
293
350
|
|
|
294
|
-
exports.
|
|
351
|
+
exports.MyRole = MyRole;
|
package/lib/utils/bs-global.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.hasWebHead = exports.getVersion = exports.getUserInfo = exports.getUploadMaxSize = exports.getTenantInfo = exports.getSource = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getAppHead = exports.formatNum = exports["default"] = void 0;
|
|
6
|
+
exports.hasWebHead = exports.getVersion = exports.getUserInfo = exports.getUploadMaxSize = exports.getTenantInfo = exports.getSource = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getAppHead = exports.formatNum = exports["default"] = exports.VERSION_MAP = void 0;
|
|
7
7
|
exports.isWx = isWx;
|
|
8
8
|
|
|
9
9
|
var getUserInfo = function getUserInfo() {
|
|
@@ -105,9 +105,21 @@ var hasWebHead = function hasWebHead(webHeadName) {
|
|
|
105
105
|
return webHead.findIndex(function (a) {
|
|
106
106
|
return a.AppId === webHeadMap[webHeadName];
|
|
107
107
|
}) !== -1;
|
|
108
|
-
};
|
|
108
|
+
}; // 版本判断
|
|
109
|
+
|
|
109
110
|
|
|
110
111
|
exports.hasWebHead = hasWebHead;
|
|
112
|
+
var VERSION_MAP = {
|
|
113
|
+
1: "试用版",
|
|
114
|
+
2: "标准版",
|
|
115
|
+
3: "个人版",
|
|
116
|
+
6: "旗舰版",
|
|
117
|
+
8: "考核版",
|
|
118
|
+
9: "专业版",
|
|
119
|
+
10: "OKR版",
|
|
120
|
+
100: "OKR模板购买"
|
|
121
|
+
};
|
|
122
|
+
exports.VERSION_MAP = VERSION_MAP;
|
|
111
123
|
var _default = {
|
|
112
124
|
hasWebHead: hasWebHead
|
|
113
125
|
};
|
package/lib/utils/format-time.js
CHANGED
|
@@ -167,5 +167,12 @@ var showNextMonthFirstDay = function showNextMonthFirstDay() {
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
exports.showNextMonthFirstDay = showNextMonthFirstDay;
|
|
170
|
-
var _default =
|
|
170
|
+
var _default = {
|
|
171
|
+
getTimeString: getTimeString,
|
|
172
|
+
timeFormat: timeFormat,
|
|
173
|
+
showWeekFirstDay: showWeekFirstDay,
|
|
174
|
+
showMonthFirstDay: showMonthFirstDay,
|
|
175
|
+
showNextWeekFirstDay: showNextWeekFirstDay,
|
|
176
|
+
showNextMonthFirstDay: showNextMonthFirstDay
|
|
177
|
+
};
|
|
171
178
|
exports["default"] = _default;
|
package/lib/utils/open-data.js
CHANGED
|
@@ -336,6 +336,10 @@ exports.parseHtmlAndTextTag = parseHtmlAndTextTag;
|
|
|
336
336
|
var _default = {
|
|
337
337
|
OpenUserName: OpenUserName,
|
|
338
338
|
OpenDepartmentName: OpenDepartmentName,
|
|
339
|
-
isWechat: isWechat
|
|
339
|
+
isWechat: isWechat,
|
|
340
|
+
isPlatform: isPlatform,
|
|
341
|
+
parseString: parseString,
|
|
342
|
+
parseTag: parseTag,
|
|
343
|
+
parseHtmlAndTextTag: parseHtmlAndTextTag
|
|
340
344
|
};
|
|
341
345
|
exports["default"] = _default;
|