@titaui/pc 1.10.81 → 1.10.83
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.
|
@@ -31,6 +31,8 @@ var _default = /*#__PURE__*/function () {
|
|
|
31
31
|
cb(_menus.PAGE_MY_PART_OKR);
|
|
32
32
|
} else if (this.isMyTargetOkr()) {
|
|
33
33
|
cb(_menus.PAGE_MY_TARGET_OKR);
|
|
34
|
+
} else if (this.isTargetUser()) {
|
|
35
|
+
return null;
|
|
34
36
|
} else {
|
|
35
37
|
cb(_menus.PAGE_MY_OWNER_OKR);
|
|
36
38
|
}
|
|
@@ -43,6 +45,8 @@ var _default = /*#__PURE__*/function () {
|
|
|
43
45
|
} else if (this.isOkrCases()) {
|
|
44
46
|
cb(_menus.PAGE_OKR_CASES);
|
|
45
47
|
}
|
|
48
|
+
|
|
49
|
+
return null;
|
|
46
50
|
}
|
|
47
51
|
}, {
|
|
48
52
|
key: "isMyOkr",
|
|
@@ -62,6 +66,12 @@ var _default = /*#__PURE__*/function () {
|
|
|
62
66
|
var search = this.history.location.search;
|
|
63
67
|
return !!search.match(/relation[\s]*?=[\s]*?3/);
|
|
64
68
|
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "isTargetUser",
|
|
71
|
+
value: function isTargetUser() {
|
|
72
|
+
var search = this.history.location.search;
|
|
73
|
+
return !!search.match(/toUserId[\s]*?=[\d]+/);
|
|
74
|
+
}
|
|
65
75
|
}, {
|
|
66
76
|
key: "isOkr",
|
|
67
77
|
value: function isOkr() {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.tita-okrdt-tree__o-child-node-prefix::before {
|
|
57
|
-
content:
|
|
57
|
+
content: '';
|
|
58
58
|
width: 9px;
|
|
59
59
|
height: 12px;
|
|
60
60
|
background: url(../../images/O.svg) transparent no-repeat 50% 50%;
|
|
@@ -73,7 +73,9 @@
|
|
|
73
73
|
|
|
74
74
|
.child-okrs-weight__content {
|
|
75
75
|
padding: 10px 32px 8px;
|
|
76
|
+
max-height: 300px;
|
|
76
77
|
min-height: 90px;
|
|
78
|
+
overflow: auto;
|
|
77
79
|
box-sizing: border-box;
|
|
78
80
|
display: flex;
|
|
79
81
|
flex-direction: column;
|
|
@@ -105,7 +107,7 @@
|
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
.child-okrs-weight__item-precls:before {
|
|
108
|
-
content:
|
|
110
|
+
content: '';
|
|
109
111
|
width: 10px;
|
|
110
112
|
height: 8px;
|
|
111
113
|
border-radius: 50%;
|
|
@@ -47,6 +47,10 @@ var fetchAssetsVersion = function fetchAssetsVersion() {
|
|
|
47
47
|
},
|
|
48
48
|
objectName: "superset_assets_version"
|
|
49
49
|
}).then(function (res) {
|
|
50
|
+
if (!res.data) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
return transMetasToTableData(res.data.list);
|
|
51
55
|
});
|
|
52
56
|
};
|
|
@@ -70,6 +74,10 @@ var fetchAssetsUri = function fetchAssetsUri(version) {
|
|
|
70
74
|
},
|
|
71
75
|
objectName: "superset_assets"
|
|
72
76
|
}).then(function (res) {
|
|
77
|
+
if (!res.data) {
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
|
|
73
81
|
sessionStorage.setItem("".concat(storageKey, "version"), JSON.stringify(transMetasToTableData(res.data.list)));
|
|
74
82
|
return transMetasToTableData(res.data.list);
|
|
75
83
|
});
|