venus-design 0.3.5 → 0.3.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.
@@ -74,3 +74,9 @@ export declare function getSecByUserSecId(secId: number): Promise<any>;
74
74
  export declare function getFormDesignList(id: any): Promise<any>;
75
75
  export declare function loginOutService(params: any): Promise<any>;
76
76
  export declare function onChangePassword(data: any): Promise<any>;
77
+ /**
78
+ * 根据模板id查询excel模板中字段列表json串 【待修改】
79
+ * 返回的data中有两个字段{data:模板字段列表,spreadjson:"整个工作表的json字符串"}
80
+ */
81
+ export declare function excelFieldTable(tempid: number): Promise<any>;
82
+ export declare function downloadExcelTemplateUrl(prefix: string): string;
@@ -945,6 +945,11 @@ function _loginOutService() {
945
945
  export function onChangePassword(_x30) {
946
946
  return _onChangePassword.apply(this, arguments);
947
947
  }
948
+
949
+ /**
950
+ * 根据模板id查询excel模板中字段列表json串 【待修改】
951
+ * 返回的data中有两个字段{data:模板字段列表,spreadjson:"整个工作表的json字符串"}
952
+ */
948
953
  function _onChangePassword() {
949
954
  _onChangePassword = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(data) {
950
955
  return _regeneratorRuntime().wrap(function _callee36$(_context36) {
@@ -961,4 +966,19 @@ function _onChangePassword() {
961
966
  }, _callee36);
962
967
  }));
963
968
  return _onChangePassword.apply(this, arguments);
969
+ }
970
+ export function excelFieldTable(tempid) {
971
+ return request("/template/info/loadsource/".concat(tempid), {
972
+ method: 'get',
973
+ prefix: '/workhour'
974
+ });
975
+ }
976
+
977
+ /*
978
+ * 导出Excel模板
979
+ */
980
+ export function downloadExcelTemplateUrl(prefix) {
981
+ var host = hostMap[prefix][process.env.BUILD_ENV || "production"];
982
+ var prefixStr = process.env.ENV === 'production' ? host : "/" + prefix || "/workhour";
983
+ return "".concat(prefixStr, "/pmplan/download/template");
964
984
  }
@@ -7,7 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
9
  import React from 'react';
10
- import { dataToEnum, isNotNullVenus, storage, VENUS_TABLE_COLUMNENUM_TYPE, VENUS_TABLE_COLUMNFILTER_TYPE, VENUS_TABLE_COLUMNRENDER_TYPE } from "./..";
10
+ import { dataToEnum, IconFont, isNotNullVenus, storage, VENUS_TABLE_COLUMNENUM_TYPE, VENUS_TABLE_COLUMNFILTER_TYPE, VENUS_TABLE_COLUMNRENDER_TYPE } from "./..";
11
11
  import { VENUS_ConflictFlag_Image_Url } from "./staticAttr";
12
12
 
13
13
  /**
@@ -184,15 +184,14 @@ export var handleConflictFlag = function handleConflictFlag(column, record, acti
184
184
  placement: "top",
185
185
  color: "geekblue",
186
186
  key: "green"
187
- }, /*#__PURE__*/React.createElement("img", {
187
+ },
188
+ /*#__PURE__*/
189
+ //@ts-ignore
190
+ React.createElement(IconFont, {
188
191
  style: {
189
- width: 20,
190
- height: 20
191
- },
192
- onClick: function onClick() {
193
- return actions[v.actionFun](record);
192
+ fontSize: 20
194
193
  },
195
- src: require("/assets/warnIcon/" + v.iconPath)
194
+ type: VENUS_ConflictFlag_Image_Url[v.iconPath] || "null"
196
195
  })) : null)];
197
196
  }));
198
197
  }
@@ -376,10 +376,10 @@ export var addRenderFunction = function addRenderFunction(name, renderFn) {
376
376
 
377
377
  //警告标识提示框弹出位置
378
378
  export var VENUS_ConflictFlag_Image_Url = {
379
- "planAdjust.png": "planAdjust.png",
380
- "annex.png": "annex.png",
381
- "approved.png": "approved.png",
382
- "complete.png": "complete.png",
383
- "extension.png": "extension.png",
384
- "submit.png": "submit.png"
379
+ "planAdjust.png": "icon-edit",
380
+ "annex.png": "icon-annex_line",
381
+ "approved.png": "icon-approved",
382
+ "complete.png": "icon-complete",
383
+ "extension.png": "icon-Extension-1",
384
+ "submit.png": "icon-submit"
385
385
  };
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { default as CheckBoxInput } from './CheckBoxInput';
11
11
  export { default as VenusUploadSecLevelForm } from './VenusUploadForm';
12
12
  export { default as UploadImage } from './UploadImage';
13
13
  export { default as NotificationManager, notifier } from './NotificationManager';
14
- export { getUserInfo, getLockScreenTime, getMenuConfig, addMenuConfig, editMenuConfig, getUserMenu, getMenus, getDifyConfigs, deleteFile, validateLogin, deleteNewFile, downloadFile, venusAi, uploadFile, updateSecLevelId, fileByAssId, mnLoginDify, refreshTokenFn, getFileData, getUserOrgTreeList, getRoleList, getVenusAdjust, getColumnData, getFormData, getDetailColumnData, getSecLevelDataList, getExpressionList, getUserListBySecLevelId, getDictItemByType, getDataListBase, getDataListTable, getUserList, listAppData, getAppByUser, SelectBysceneIdAndCreateBy, Wftrack, getSecByUserSecId, getFormDesignList, loginOutService, onChangePassword } from './Config/api';
14
+ export { getUserInfo, getLockScreenTime, getMenuConfig, addMenuConfig, editMenuConfig, getUserMenu, getMenus, getDifyConfigs, deleteFile, validateLogin, deleteNewFile, downloadFile, venusAi, uploadFile, updateSecLevelId, fileByAssId, mnLoginDify, refreshTokenFn, getFileData, getUserOrgTreeList, getRoleList, getVenusAdjust, getColumnData, getFormData, getDetailColumnData, getSecLevelDataList, getExpressionList, getUserListBySecLevelId, getDictItemByType, getDataListBase, getDataListTable, getUserList, listAppData, getAppByUser, SelectBysceneIdAndCreateBy, Wftrack, getSecByUserSecId, getFormDesignList, loginOutService, onChangePassword, excelFieldTable, downloadExcelTemplateUrl } from './Config/api';
15
15
  export { default as request } from './Config/request';
16
16
  export { default as storage, checkCookieAuth } from './Config/storage';
17
17
  export { LIVE_ACCESS_TOKEN, LIVE_REFRESH_TOKEN, VENUS_PROJECT_INFO, LIVE_ACCESS_TOKEN_EXPIRES_TIME, LIVE_REFRESH_TOKEN_EXPIRES_TIME, HISTORY_PATHNAME, QUICK_ENTRY_OPEN, DATE_FORMAT, DATETIME_FORMAT, SPECIAL_DATETIME_FORMAT, SPECIAL_DATETIME_FORMAT_30, SPECIAL_DATETIME_FORMAT_00, ADMIN_APP_TOKEN, BUCKET, chromeWin32, chromeWin64, MAX_SIZE, chromeMac } from './Config/constants';
@@ -19,6 +19,7 @@ export { default as proxy, hostMap } from './Config/proxy';
19
19
  export { default as VenusWorkDetail } from './VenusWorkDetail';
20
20
  export { default as VenusCard } from './VenusCard';
21
21
  export { default as VenusCardStyle } from './VenusCard/style.less';
22
+ export { default as SelectRoleAndUser } from './Approval/components/SelectRoleAndUser';
22
23
  export { thousandSeparator, unitWanNum, tableUnitWanNum, getCookieDomain, getUrlParams, getUrlSearchStr, renderMillion, isNotNullVenus, renderFileNameAndIds, renderFileNameAndIdsNew, renderTableFileNameAndIds, haveSecLevel, haveSecLevelNew, isValidDate, getweek, formatLarkAvatar, isVenusStrNotNull, getApp, encrypt, initOwnerApp, getDefaultMenu, getDifyConfig, getDifyUserNames, onMnLoginDify, deleteSessionKeysWithPrefix, } from './Config/utils';
23
24
  export { default as AuthButton, ButtonPath, checkPathname, getRouteMap, AddButtonNew, EditButton, ADDButtona, DetailButton, CommonButton, VenusButton, AddButton, AButton } from './AuthButton';
24
25
  export { default as DataView } from './DataView';
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ export { default as CheckBoxInput } from "./CheckBoxInput";
11
11
  export { default as VenusUploadSecLevelForm } from "./VenusUploadForm";
12
12
  export { default as UploadImage } from "./UploadImage";
13
13
  export { default as NotificationManager, notifier } from "./NotificationManager";
14
- export { getUserInfo, getLockScreenTime, getMenuConfig, addMenuConfig, editMenuConfig, getUserMenu, getMenus, getDifyConfigs, deleteFile, validateLogin, deleteNewFile, downloadFile, venusAi, uploadFile, updateSecLevelId, fileByAssId, mnLoginDify, refreshTokenFn, getFileData, getUserOrgTreeList, getRoleList, getVenusAdjust, getColumnData, getFormData, getDetailColumnData, getSecLevelDataList, getExpressionList, getUserListBySecLevelId, getDictItemByType, getDataListBase, getDataListTable, getUserList, listAppData, getAppByUser, SelectBysceneIdAndCreateBy, Wftrack, getSecByUserSecId, getFormDesignList, loginOutService, onChangePassword } from "./Config/api";
14
+ export { getUserInfo, getLockScreenTime, getMenuConfig, addMenuConfig, editMenuConfig, getUserMenu, getMenus, getDifyConfigs, deleteFile, validateLogin, deleteNewFile, downloadFile, venusAi, uploadFile, updateSecLevelId, fileByAssId, mnLoginDify, refreshTokenFn, getFileData, getUserOrgTreeList, getRoleList, getVenusAdjust, getColumnData, getFormData, getDetailColumnData, getSecLevelDataList, getExpressionList, getUserListBySecLevelId, getDictItemByType, getDataListBase, getDataListTable, getUserList, listAppData, getAppByUser, SelectBysceneIdAndCreateBy, Wftrack, getSecByUserSecId, getFormDesignList, loginOutService, onChangePassword, excelFieldTable, downloadExcelTemplateUrl } from "./Config/api";
15
15
  export { default as request } from "./Config/request";
16
16
  export { default as storage, checkCookieAuth } from "./Config/storage";
17
17
  export { LIVE_ACCESS_TOKEN, LIVE_REFRESH_TOKEN, VENUS_PROJECT_INFO, LIVE_ACCESS_TOKEN_EXPIRES_TIME, LIVE_REFRESH_TOKEN_EXPIRES_TIME, HISTORY_PATHNAME, QUICK_ENTRY_OPEN, DATE_FORMAT, DATETIME_FORMAT, SPECIAL_DATETIME_FORMAT, SPECIAL_DATETIME_FORMAT_30, SPECIAL_DATETIME_FORMAT_00, ADMIN_APP_TOKEN, BUCKET, chromeWin32, chromeWin64, MAX_SIZE, chromeMac } from "./Config/constants";
@@ -19,6 +19,7 @@ export { default as proxy, hostMap } from "./Config/proxy";
19
19
  export { default as VenusWorkDetail } from "./VenusWorkDetail";
20
20
  export { default as VenusCard } from "./VenusCard";
21
21
  export { default as VenusCardStyle } from "./VenusCard/style.less";
22
+ export { default as SelectRoleAndUser } from "./Approval/components/SelectRoleAndUser";
22
23
  export { thousandSeparator, unitWanNum, tableUnitWanNum, getCookieDomain, getUrlParams, getUrlSearchStr, renderMillion, isNotNullVenus, renderFileNameAndIds, renderFileNameAndIdsNew, renderTableFileNameAndIds, haveSecLevel, haveSecLevelNew, isValidDate, getweek, formatLarkAvatar, isVenusStrNotNull, getApp, encrypt, initOwnerApp, getDefaultMenu, getDifyConfig, getDifyUserNames, onMnLoginDify, deleteSessionKeysWithPrefix } from "./Config/utils";
23
24
  export { default as AuthButton, ButtonPath, checkPathname, getRouteMap, AddButtonNew, EditButton, ADDButtona, DetailButton, CommonButton, VenusButton, AddButton, AButton } from "./AuthButton";
24
25
  export { default as DataView } from "./DataView";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venus-design",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "venus all compoments",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",