@zgfe/modules-settings 2.0.0-zhongyuan.25 → 2.0.0-zhongyuan.26

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.
@@ -21,6 +21,7 @@ import './styles/index.less';
21
21
  import apis from '../../constants/api';
22
22
  import request from '../../utils/ajax';
23
23
  import moment from 'moment';
24
+ import { demandTabList } from '../createDemand/constants';
24
25
  var sorterKey = {
25
26
  ascend: 'asc',
26
27
  descend: 'desc'
@@ -46,47 +47,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
46
47
  _useState4 = _slicedToArray(_useState3, 2),
47
48
  pageData = _useState4[0],
48
49
  setPageData = _useState4[1];
49
- var _useState5 = useState([{
50
- label: '设计',
51
- value: 1,
52
- key: 'nodename1',
53
- color: '#fda145'
54
- }, {
55
- label: '审核1',
56
- value: 2,
57
- key: 'nodename2',
58
- color: '#fb5547'
59
- }, {
60
- label: '审核2',
61
- value: 3,
62
- key: 'nodename3',
63
- color: '#fb5547'
64
- }, {
65
- label: '开发',
66
- value: 4,
67
- key: 'nodename4',
68
- color: '#165dff'
69
- }, {
70
- label: '测试',
71
- value: 5,
72
- key: 'nodename5',
73
- color: '#165dff'
74
- }, {
75
- label: '已完成',
76
- value: 6,
77
- key: 'finishedSum',
78
- color: '#2cbe54'
79
- }, {
80
- label: '已关闭',
81
- value: 7,
82
- key: 'closedSum',
83
- color: '#cccfd5'
84
- }, {
85
- label: '已超时',
86
- value: 8,
87
- key: 'overTimeSum',
88
- color: '#fda145'
89
- }]),
50
+ var _useState5 = useState(demandTabList),
90
51
  _useState6 = _slicedToArray(_useState5, 1),
91
52
  labelList = _useState6[0];
92
53
  var _useState7 = useState(route && route.query && route.query.demandKey || ''),
@@ -271,21 +232,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
271
232
  }
272
233
  }).then(function (res) {
273
234
  if (res === null || res === void 0 ? void 0 : res.data) {
274
- if (type === 'revocation') {
275
- request(apis.revocationDemand, {
276
- method: 'POST',
277
- data: {
278
- app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
279
- id: props.record.id
280
- }
281
- }).then(function (re) {
282
- props.onDeal && props.onDeal(type, res.data);
283
- getDemandStatistics();
284
- getDemandList();
285
- });
286
- } else {
287
- props.onDeal && props.onDeal(type, res.data);
288
- }
235
+ props.onDeal && props.onDeal(type, res.data);
289
236
  }
290
237
  // getDemandStatistics();
291
238
  // getDemandList();
@@ -325,32 +272,24 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
325
272
  color: "primary",
326
273
  type: "link",
327
274
  onClick: function onClick() {
328
- props.onDeal && props.onDeal('view', {
329
- data: props.record
275
+ props.onDeal && props.onDeal('revocation', {
276
+ appId: props.record.id,
277
+ approvalModule: props.record.approvalModule,
278
+ businessType: props.record.businessType,
279
+ completionTime: props.record.completionTime,
280
+ demandDescribe: props.record.demandDescrib,
281
+ demandName: props.record.demandName + '复制',
282
+ fileName: props.record.fileName,
283
+ filePath: props.record.filePath
330
284
  });
331
285
  }
332
286
  }, "\u590D\u5236"), /*#__PURE__*/React.createElement(Button, {
333
287
  color: "primary",
334
288
  type: "link",
335
- onClick: function onClick() {
336
- props.onDeal && props.onDeal('view', {
337
- data: props.record
338
- });
339
- }
340
- }, "\u7F16\u8F91"), !isDemo && props.record.isHandle && authority[17228364473] && (/*#__PURE__*/React.createElement("a", {
341
- style: {
342
- marginRight: 16
343
- },
344
- onClick: function onClick() {
345
- getDemand('deal');
346
- }
347
- }, "\u5904\u7406")
348
- // </Popover>
349
- ), !isDemo && props.record.revocation && (/*#__PURE__*/React.createElement("a", {
350
289
  onClick: function onClick() {
351
290
  getDemand('revocation');
352
291
  }
353
- }, "\u64A4\u56DE")));
292
+ }, "\u7F16\u8F91"));
354
293
  };
355
294
  //关闭功能
356
295
  var disableDemand = function disableDemand(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "2.0.0-zhongyuan.25",
3
+ "version": "2.0.0-zhongyuan.26",
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": "f3037c51831c77a9d50fc193ed7f31374b55f82f",
70
+ "gitHead": "848555469759c362b0f069f0d8a09216c8281f7e",
71
71
  "gitHooks": {
72
72
  "pre-commit": "lint-staged"
73
73
  }