@zgfe/modules-settings 2.0.0-zhongyuan.22 → 2.0.0-zhongyuan.24

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.
@@ -402,7 +402,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
402
402
  onChange: function onChange(e) {
403
403
  return setDemandName(e.target.value);
404
404
  },
405
- placeholder: "\u8BF7\u8F93\u5165\u9700\u6C42\u540D\u79F0/\u521B\u5EFA\u8005",
405
+ placeholder: "\u8BF7\u8F93\u5165\u9700\u6C42\u540D\u79F0",
406
406
  prefix: /*#__PURE__*/React.createElement(IconFont, {
407
407
  type: "sousuo"
408
408
  })
@@ -27,10 +27,9 @@ import util from '../../utils/util';
27
27
  import request from '../../utils/ajax';
28
28
  import apis from '../../constants/api';
29
29
  import PicCircleSelect from '../../components/picCircleSelect';
30
- import constants from '../../utils/constants';
31
30
  import { uuid } from '@antv/x6/lib/util/string/uuid';
32
31
  var getImgUrl = function getImgUrl(src, pageId) {
33
- return constants.regExp.url.test(src) ? src : "".concat(window.location.origin, "/web/img/report/").concat(pageId, "/").concat(src);
32
+ return src.indexOf('data:image') != -1 ? src : "".concat(window.location.origin, "/web/img/report/").concat(pageId, "/").concat(src);
34
33
  // return constants.regExp.url.test(src)
35
34
  // ? src
36
35
  // : `${'https://test01.zhugeapi.com'}/web/img/report/${pageId}/${src}`;
@@ -164,8 +163,11 @@ var PageInfo = function PageInfo(props) {
164
163
  setIsHasData(!!res.data.detail);
165
164
  setDescribe(res.data.detail ? res.data.detail.pageDescribe : '');
166
165
  setId(res.data.detail ? res.data.detail.id : undefined);
167
- setImgPath(res.data.detail && res.data.detail.imgUrl ? getImgUrl(res.data.detail.imgUrl, props.pageData.id) : undefined);
168
- setImgUrl(res.data.detail ? res.data.detail.uuid : undefined);
166
+ setImgPath(res.data.detail && res.data.detail.zosImgUrl ? getImgUrl(res.data.detail.zosImgUrl, props.pageData.id) : undefined);
167
+ setImgUrl(res.data.detail ? {
168
+ uuid: res.data.detail.uuid,
169
+ zosFileKey: res.data.detail.zosFileKey
170
+ } : undefined);
169
171
  // getPointTree()
170
172
  setEventAttrList(res.data.eventInfos ? res.data.eventInfos.map(function (item, index) {
171
173
  return {
@@ -175,7 +177,7 @@ var PageInfo = function PageInfo(props) {
175
177
  describe: item.pointDescribe,
176
178
  pointSelect: item.pointSelect,
177
179
  pv: item.pv,
178
- imgPath: item.imgUrl ? getImgUrl(item.imgUrl, props.pageData.id) : '',
180
+ imgPath: item.zosImgUrl ? getImgUrl(item.zosImgUrl, props.pageData.id) : '',
179
181
  key: uuid(),
180
182
  index: index,
181
183
  approvalStatus: item.approvalStatus,
@@ -539,8 +541,8 @@ var PageInfo = function PageInfo(props) {
539
541
  render: function render(imgPath1, record, index) {
540
542
  return /*#__PURE__*/React.createElement("div", {
541
543
  className: "".concat(classPrefix, "-content-img-select")
542
- }, imgPath1 || record.imgUrl ? (/*#__PURE__*/React.createElement(Image, {
543
- src: imgPath1 || record.imgUrl,
544
+ }, imgPath1 || record.zosImgUrl ? (/*#__PURE__*/React.createElement(Image, {
545
+ src: imgPath1 || record.zosImgUrl,
544
546
  preview: {
545
547
  mask: (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconFont, {
546
548
  type: "a-yanjingkai"
@@ -242,6 +242,7 @@ var pointMap = function pointMap(props) {
242
242
  });
243
243
  getPointTree();
244
244
  } else if (selectedKeys && param.id === selectedKeys[0] && param.isDel) {
245
+ getPointTree();
245
246
  setSelectedKeys(undefined);
246
247
  props.onChangePage(undefined);
247
248
  props.refreshPage && props.refreshPage();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.0.0-zhongyuan.22",
3
+ "version": "2.0.0-zhongyuan.24",
4
4
  "private": false,
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "1ee83a86691ee23b82839dfee22dad18423bade4",
70
+ "gitHead": "b1559ccf3344d2aa7af139bcc912db33b791177d",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }