@titaui/pc 1.16.28 → 1.16.29-beta.2

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.
@@ -28,6 +28,8 @@ var _default = /*#__PURE__*/function () {
28
28
  cb(_menus.PAGE_SURVEY_MANAGE);
29
29
  } else if (this.isMyInvolved()) {
30
30
  cb(_menus.PAGE_SURVEY_MY_INVOLVED);
31
+ } else if (this.isAssessSettings()) {
32
+ cb(_menus.PAGE_SURVEY_ASSESS_SETTINGS);
31
33
  }
32
34
 
33
35
  return null;
@@ -44,6 +46,12 @@ var _default = /*#__PURE__*/function () {
44
46
  var pathname = this.history.location.pathname;
45
47
  return pathname.match(/survey\/manage/);
46
48
  }
49
+ }, {
50
+ key: "isAssessSettings",
51
+ value: function isAssessSettings() {
52
+ var pathname = this.history.location.pathname;
53
+ return pathname.match(/survey\/assess-settings/);
54
+ }
47
55
  }]);
48
56
 
49
57
  return _default;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.defaultRefObject = exports["default"] = exports.PAGE_SURVEY_MY_INVOLVED = exports.PAGE_SURVEY_MANAGE = void 0;
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_SURVEY_MY_INVOLVED = exports.PAGE_SURVEY_MANAGE = exports.PAGE_SURVEY_ASSESS_SETTINGS = void 0;
7
7
 
8
8
  var _index = require("../../components/menu-tree/tree-node/index");
9
9
 
@@ -24,6 +24,8 @@ var PAGE_SURVEY_MANAGE = 'surveymanage';
24
24
  exports.PAGE_SURVEY_MANAGE = PAGE_SURVEY_MANAGE;
25
25
  var PAGE_SURVEY_MY_INVOLVED = 'surveymyinvolved';
26
26
  exports.PAGE_SURVEY_MY_INVOLVED = PAGE_SURVEY_MY_INVOLVED;
27
+ var PAGE_SURVEY_ASSESS_SETTINGS = 'assesssettings';
28
+ exports.PAGE_SURVEY_ASSESS_SETTINGS = PAGE_SURVEY_ASSESS_SETTINGS;
27
29
 
28
30
  var surveyMenus = /*#__PURE__*/function () {
29
31
  function surveyMenus(props) {
@@ -43,6 +45,20 @@ var surveyMenus = /*#__PURE__*/function () {
43
45
  type: _index.MENU_ITEM_NOE,
44
46
  href: '#/survey/my-involved',
45
47
  isShow: true
48
+ }, {
49
+ icon: "",
50
+ label: '基础设置',
51
+ key: "other",
52
+ type: _index.GROUP_NAME_NODE,
53
+ href: "",
54
+ isShow: props.isShowSurveyManage
55
+ }, {
56
+ icon: 'setting',
57
+ label: '评估设置',
58
+ key: PAGE_SURVEY_ASSESS_SETTINGS,
59
+ type: _index.MENU_ITEM_NOE,
60
+ href: '#/survey/assess-settings',
61
+ isShow: props.isShowSurveyManage
46
62
  }];
47
63
  }
48
64
 
@@ -117,7 +117,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
117
117
  targetOffset: [0, 0]
118
118
  } : _props$popupAlign,
119
119
  _props$enableDimissio = props.enableDimissionSwitch,
120
- enableDimissionSwitch = _props$enableDimissio === void 0 ? false : _props$enableDimissio;
120
+ enableDimissionSwitch = _props$enableDimissio === void 0 ? false : _props$enableDimissio,
121
+ staffStatusDefault = props.staffStatusDefault;
121
122
 
122
123
  var _useState = (0, _react.useState)([]),
123
124
  _useState2 = _slicedToArray(_useState, 2),
@@ -129,7 +130,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
129
130
  selectedText = _useState4[0],
130
131
  setSelectedText = _useState4[1];
131
132
 
132
- var _useState5 = (0, _react.useState)(_enum.StaffStatus.OnTheJob),
133
+ var _useState5 = (0, _react.useState)((staffStatusDefault === null || staffStatusDefault === void 0 ? void 0 : staffStatusDefault.toString()) || _enum.StaffStatus.OnTheJob),
133
134
  _useState6 = _slicedToArray(_useState5, 2),
134
135
  staffStatus = _useState6[0],
135
136
  setStaffStatus = _useState6[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.16.28",
3
+ "version": "1.16.29-beta.2",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",