@zgfe/modules-dm 1.0.42-alpha.8 → 1.0.56-zhongyuan.1
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.
- package/es/components/demo.js +1 -1
- package/es/constants/api.d.ts +37 -0
- package/es/constants/api.js +62 -1
- package/es/index.d.ts +4 -3
- package/es/index.js +4 -3
- package/es/modules/CutsModal.d.ts +66 -0
- package/es/modules/CutsModal.js +52 -0
- package/es/modules/{dataCollection → dataManage}/collectionAttributeList.d.ts +3 -0
- package/es/modules/dataManage/collectionAttributeList.js +943 -0
- package/es/modules/{dataCollection → dataManage}/collectionEventList.d.ts +6 -0
- package/es/modules/dataManage/collectionEventList.js +883 -0
- package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
- package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
- package/es/modules/{dataCollection → dataManage}/components/createVirtualDrawer.js +20 -20
- package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
- package/es/modules/dataManage/components/creditPop/index.d.ts +5 -0
- package/es/modules/dataManage/components/creditPop/index.js +89 -0
- package/es/modules/dataManage/components/creditPop/index.less +121 -0
- package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteConfirm.js +36 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
- package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/depositPop/index.d.ts +5 -0
- package/es/modules/dataManage/components/depositPop/index.js +89 -0
- package/es/modules/dataManage/components/depositPop/index.less +115 -0
- package/es/modules/dataManage/components/developModal/index.css +36 -0
- package/es/modules/dataManage/components/developModal/index.d.ts +5 -0
- package/es/modules/dataManage/components/developModal/index.js +224 -0
- package/es/modules/dataManage/components/developModal/index.less +36 -0
- package/es/modules/dataManage/components/editTxt/index.d.ts +5 -0
- package/es/modules/dataManage/components/editTxt/index.js +123 -0
- package/es/modules/dataManage/components/editTxt/index.less +44 -0
- package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
- package/es/modules/{dataCollection → dataManage}/components/eventFilter/index.js +13 -13
- package/es/modules/{dataCollection → dataManage}/components/eventFilter/styles/index.less +1 -1
- package/es/modules/{dataCollection → dataManage}/components/eventGroupingDrawer.js +44 -47
- package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +2 -0
- package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importAttrDialog/index.js +157 -0
- package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +2 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importMetaDialog/index.js +157 -0
- package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
- package/es/modules/{dataCollection → dataManage}/components/selectAttributes.js +10 -10
- package/es/modules/{dataCollection → dataManage}/components/tablePlus.d.ts +4 -0
- package/es/modules/dataManage/components/tablePlus.js +1207 -0
- package/es/modules/{dataCollection → dataManage}/components/virtualTablePlus.js +10 -10
- package/es/modules/dataManage/demo/index.js +79 -16
- package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
- package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
- package/es/modules/dataManage/detailedData/index.d.ts +24 -0
- package/es/modules/dataManage/detailedData/index.js +403 -0
- package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
- package/es/modules/dataManage/detailedData/useColumns.js +135 -0
- package/es/modules/dataManage/index.d.ts +9 -19
- package/es/modules/dataManage/index.js +176 -17
- package/es/modules/dataManage/styles/detailed.less +74 -0
- package/es/modules/dataManage/styles/index.less +1177 -18
- package/es/modules/{dataCollection → dataManage}/types.d.ts +8 -0
- package/es/modules/dataManage/types.js +1 -0
- package/es/modules/{dataCollection → dataManage}/virtualEventList.js +13 -13
- package/es/modules/dataMap/component/data.d.ts +7 -0
- package/es/modules/dataMap/component/data.js +257 -0
- package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
- package/es/modules/dataMap/component/drawerAdd.js +376 -0
- package/es/modules/dataMap/component/leftTree.d.ts +6 -0
- package/es/modules/dataMap/component/leftTree.js +227 -0
- package/es/modules/dataMap/component/rightDetail.d.ts +7 -0
- package/es/modules/dataMap/component/rightDetail.js +680 -0
- package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
- package/es/modules/dataMap/component/selectAttr.js +92 -0
- package/es/modules/dataMap/css/index.css +163 -0
- package/es/modules/dataMap/css/index.less +177 -0
- package/es/modules/dataMap/demo/index.d.ts +2 -0
- package/es/modules/dataMap/demo/index.js +6 -0
- package/es/modules/dataMap/img/empty-data.png +0 -0
- package/es/modules/dataMap/index.d.ts +2 -0
- package/es/modules/dataMap/index.js +80 -0
- package/es/modules/dataMap/mapDetail.d.ts +3 -0
- package/es/modules/dataMap/mapDetail.js +44 -0
- package/es/modules/dataMap/mapSetting.d.ts +6 -0
- package/es/modules/dataMap/mapSetting.js +148 -0
- package/es/modules/dataPlan/addEventOrUser.js +31 -30
- package/es/modules/dataPlan/addPlan.js +29 -27
- package/es/modules/dataPlan/eventList.js +2 -2
- package/es/modules/dataPlan/index.js +10 -10
- package/es/modules/dataPlan/search.js +6 -5
- package/es/modules/dataPlan/tablePlus.js +3 -3
- package/es/modules/dataPlan/userAttributeList.js +5 -5
- package/es/modules/dataReal/css/index.css +48 -0
- package/es/modules/dataReal/css/index.less +51 -0
- package/es/modules/dataReal/demo/index.d.ts +2 -0
- package/es/modules/dataReal/demo/index.js +6 -0
- package/es/modules/dataReal/index1.d.ts +28 -0
- package/es/modules/dataReal/index1.js +215 -0
- package/es/modules/dataReal/table.d.ts +5 -0
- package/es/modules/dataReal/table.js +258 -0
- package/es/store/index.js +11 -11
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +9 -1
- package/package.json +8 -4
- package/es/modules/dataCollection/collectionAttributeList.js +0 -508
- package/es/modules/dataCollection/collectionEventList.js +0 -466
- package/es/modules/dataCollection/components/tablePlus.js +0 -676
- package/es/modules/dataCollection/index.d.ts +0 -19
- package/es/modules/dataCollection/index.js +0 -93
- package/es/modules/dataCollection/styles/index.less +0 -842
- /package/es/modules/{dataCollection → dataManage}/components/createVirtualDrawer.d.ts +0 -0
- /package/es/modules/{dataCollection/components/eventFilter → dataManage/components/editTxt}/types.js +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventFilter/index.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventFilter/types.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage/components/eventFilter}/types.js +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventGroupingDrawer.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventItem.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/eventItem.js +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/selectAttributes.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/components/virtualTablePlus.d.ts +0 -0
- /package/es/modules/{dataCollection → dataManage}/virtualEventList.d.ts +0 -0
|
@@ -0,0 +1,883 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
4
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
6
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
8
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
9
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
10
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
15
|
+
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
16
|
+
import { Input, Button, Select, Modal, message, Drawer, Pagination, Dropdown, Typography, Form, notification } from 'antd';
|
|
17
|
+
import { DownOutlined } from '@ant-design/icons';
|
|
18
|
+
import request from '../../utils/ajax';
|
|
19
|
+
import apis from '../../constants/api';
|
|
20
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
21
|
+
import './styles/index.less';
|
|
22
|
+
import TablePlus from './components/tablePlus';
|
|
23
|
+
import _ from 'lodash';
|
|
24
|
+
import { getAppID } from '../../utils';
|
|
25
|
+
import CollectionAttributeList from './collectionAttributeList';
|
|
26
|
+
import EventGroupingDrawer from './components/eventGroupingDrawer';
|
|
27
|
+
import CreateMetaDrawer from './components/createMetaDrawer';
|
|
28
|
+
import { DmContext } from '../../store';
|
|
29
|
+
import CreditPop from './components/creditPop';
|
|
30
|
+
import DepositPop from './components/depositPop';
|
|
31
|
+
import ImportModal from './components/importMetaDialog';
|
|
32
|
+
import DevModal from './components/developModal';
|
|
33
|
+
import moment from 'moment';
|
|
34
|
+
var CollectionEventList = function CollectionEventList(props) {
|
|
35
|
+
var classPrefix = 'event-list';
|
|
36
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
37
|
+
currentApp = _useContext.currentApp,
|
|
38
|
+
authority = _useContext.authority,
|
|
39
|
+
route = _useContext.route,
|
|
40
|
+
isDemo = _useContext.isDemo;
|
|
41
|
+
var _useContext2 = useContext(DmContext),
|
|
42
|
+
state = _useContext2.state;
|
|
43
|
+
var _useState = useState(0),
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
total = _useState2[0],
|
|
46
|
+
setTotal = _useState2[1];
|
|
47
|
+
// 加载中
|
|
48
|
+
var _useState3 = useState(true),
|
|
49
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
50
|
+
loading = _useState4[0],
|
|
51
|
+
setLoading = _useState4[1];
|
|
52
|
+
// 渲染数据
|
|
53
|
+
var _useState5 = useState([]),
|
|
54
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
55
|
+
tableHandleData = _useState6[0],
|
|
56
|
+
setTableHandleData = _useState6[1];
|
|
57
|
+
// 原数据
|
|
58
|
+
var _useState7 = useState([]),
|
|
59
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
60
|
+
tableHandleDataBasics = _useState8[0],
|
|
61
|
+
setTableHandleDataBasics = _useState8[1];
|
|
62
|
+
// 分组select数据
|
|
63
|
+
var _useState9 = useState([]),
|
|
64
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
65
|
+
groupOptions = _useState10[0],
|
|
66
|
+
setgroupOptions = _useState10[1];
|
|
67
|
+
// 事件分组管理
|
|
68
|
+
var _useState11 = useState(false),
|
|
69
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
70
|
+
eventGroupingShow = _useState12[0],
|
|
71
|
+
setEventGroupingShow = _useState12[1];
|
|
72
|
+
// 创建元事件
|
|
73
|
+
var _useState13 = useState(false),
|
|
74
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
75
|
+
createMetaShow = _useState14[0],
|
|
76
|
+
setCreateMetaShow = _useState14[1];
|
|
77
|
+
var _useState15 = useState(false),
|
|
78
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
79
|
+
isShowCreditPop = _useState16[0],
|
|
80
|
+
setIsShowCreditPop = _useState16[1];
|
|
81
|
+
var _useState17 = useState(false),
|
|
82
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
83
|
+
isShowDepositPop = _useState18[0],
|
|
84
|
+
setIsShowDepositPop = _useState18[1];
|
|
85
|
+
// 导入事件弹窗
|
|
86
|
+
var _useState19 = useState(false),
|
|
87
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
88
|
+
openImportModal = _useState20[0],
|
|
89
|
+
setOpenImportModal = _useState20[1];
|
|
90
|
+
// 开发管理弹框
|
|
91
|
+
var _useState21 = useState(false),
|
|
92
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
93
|
+
isDevModalState = _useState22[0],
|
|
94
|
+
setIsDevModalState = _useState22[1];
|
|
95
|
+
var _useState23 = useState(false),
|
|
96
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
97
|
+
isTextReport = _useState24[0],
|
|
98
|
+
setIsTextReport = _useState24[1];
|
|
99
|
+
var _useState25 = useState(false),
|
|
100
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
101
|
+
isExportData = _useState26[0],
|
|
102
|
+
setIsExportData = _useState26[1];
|
|
103
|
+
// 埋点平台列表
|
|
104
|
+
var _useState27 = useState([{
|
|
105
|
+
label: '全部埋点平台',
|
|
106
|
+
value: -1
|
|
107
|
+
}, {
|
|
108
|
+
label: 'JS',
|
|
109
|
+
value: 206
|
|
110
|
+
}, {
|
|
111
|
+
label: 'Android',
|
|
112
|
+
value: 175
|
|
113
|
+
}, {
|
|
114
|
+
label: 'IOS',
|
|
115
|
+
value: 174
|
|
116
|
+
}, {
|
|
117
|
+
label: '其他',
|
|
118
|
+
value: 99
|
|
119
|
+
}]),
|
|
120
|
+
_useState28 = _slicedToArray(_useState27, 1),
|
|
121
|
+
maidianList = _useState28[0];
|
|
122
|
+
var _useState29 = useState([-1]),
|
|
123
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
124
|
+
currentMaidian = _useState30[0],
|
|
125
|
+
setCurrentMaidian = _useState30[1];
|
|
126
|
+
// 分组元素有任意一个收藏,筛选收藏时保留分组标题
|
|
127
|
+
var markTypeHandle = function markTypeHandle(item) {
|
|
128
|
+
var _markTypeFlag = 0;
|
|
129
|
+
item.eventList.map(function (_item) {
|
|
130
|
+
_item.mark_type == 1 ? _markTypeFlag = 1 : null;
|
|
131
|
+
});
|
|
132
|
+
return _markTypeFlag;
|
|
133
|
+
};
|
|
134
|
+
var dataFinish = function dataFinish(data, refreshFlag) {
|
|
135
|
+
var _tempArr = [];
|
|
136
|
+
var _tempGroupOptions = [{
|
|
137
|
+
value: -999,
|
|
138
|
+
label: '所有分组'
|
|
139
|
+
}];
|
|
140
|
+
var _tempTotal = 0;
|
|
141
|
+
data.map(function (item, index) {
|
|
142
|
+
!props.isSelect && !props.isSingleSelect && _tempArr.push({
|
|
143
|
+
key: index,
|
|
144
|
+
groupId: item.groupId,
|
|
145
|
+
groupName: item.groupName,
|
|
146
|
+
event_name: '',
|
|
147
|
+
alias_name: '',
|
|
148
|
+
insert_time: '',
|
|
149
|
+
last_insert_time: '',
|
|
150
|
+
event_hidden: 0,
|
|
151
|
+
is_stop: 0,
|
|
152
|
+
event_attrs: [],
|
|
153
|
+
event_id: index,
|
|
154
|
+
is_delete: 0,
|
|
155
|
+
owner: '',
|
|
156
|
+
mark_type: markTypeHandle(item)
|
|
157
|
+
});
|
|
158
|
+
_tempGroupOptions.push({
|
|
159
|
+
value: item.groupId,
|
|
160
|
+
label: item.groupName == null ? '未分组' : item.groupName
|
|
161
|
+
});
|
|
162
|
+
item.eventList.map(function (_item, _index) {
|
|
163
|
+
if (_item.owner !== 'zg_vtl') {
|
|
164
|
+
_item._groupId = item.groupId;
|
|
165
|
+
_item.key = index + '-' + _index;
|
|
166
|
+
if (_item.is_delete == 0) {
|
|
167
|
+
_tempArr.push(_item);
|
|
168
|
+
_tempTotal++;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
setTotal(_tempTotal);
|
|
174
|
+
setgroupOptions(_tempGroupOptions);
|
|
175
|
+
if (!refreshFlag) {
|
|
176
|
+
setPageNumber(1);
|
|
177
|
+
setTableHandleData(_tempArr);
|
|
178
|
+
}
|
|
179
|
+
if (eventAttrsData) {
|
|
180
|
+
_tempArr.map(function (item) {
|
|
181
|
+
if (item.event_id === eventAttrsData.event_id) {
|
|
182
|
+
setEventAttrsData(item);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
setTableHandleDataBasics(_tempArr);
|
|
187
|
+
setLoading(false);
|
|
188
|
+
};
|
|
189
|
+
// 刷新数据
|
|
190
|
+
var refreshHandle = function refreshHandle() {
|
|
191
|
+
queryList(true);
|
|
192
|
+
// setEventAttrListShow(false);
|
|
193
|
+
};
|
|
194
|
+
var queryList = function queryList(refreshFlag) {
|
|
195
|
+
request(apis.queryCollectionEventList, {
|
|
196
|
+
method: 'post',
|
|
197
|
+
data: {
|
|
198
|
+
appId: getAppID(currentApp),
|
|
199
|
+
platform: 0,
|
|
200
|
+
isAll: true
|
|
201
|
+
}
|
|
202
|
+
}).then(function (res) {
|
|
203
|
+
if (!res) throw new Error();
|
|
204
|
+
dataFinish(res.data, refreshFlag);
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
// 初始化列表
|
|
208
|
+
useEffect(function () {
|
|
209
|
+
queryList();
|
|
210
|
+
}, []);
|
|
211
|
+
// 初始化列表
|
|
212
|
+
useEffect(function () {
|
|
213
|
+
if (route && route.query && route.query.key) {
|
|
214
|
+
filterHandlePublic(props.queryKey == '', 'event_name', props.queryKey);
|
|
215
|
+
}
|
|
216
|
+
}, [props.queryKey]);
|
|
217
|
+
// 控制修改分组名弹框 显示隐藏
|
|
218
|
+
var _useState31 = useState(false),
|
|
219
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
220
|
+
eventNameShow = _useState32[0],
|
|
221
|
+
setEventNameShow = _useState32[1];
|
|
222
|
+
var _useState33 = useState(''),
|
|
223
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
224
|
+
eventNameInput = _useState34[0],
|
|
225
|
+
setEventNameInput = _useState34[1];
|
|
226
|
+
// 创建事件分组
|
|
227
|
+
var createEventGroup = function createEventGroup() {
|
|
228
|
+
if (eventNameInput == '') {
|
|
229
|
+
message.error('请输入分组名称');
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
request(apis.upsertEventGroup, {
|
|
233
|
+
method: 'post',
|
|
234
|
+
data: {
|
|
235
|
+
eventGroupName: eventNameInput,
|
|
236
|
+
appId: getAppID(currentApp),
|
|
237
|
+
platform: 0
|
|
238
|
+
}
|
|
239
|
+
}).then(function (res) {
|
|
240
|
+
if (res.code == '00') {
|
|
241
|
+
message.success('创建成功');
|
|
242
|
+
queryList();
|
|
243
|
+
setEventNameInput('');
|
|
244
|
+
setEventNameShow(false);
|
|
245
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
// 筛选:显示状态 | 采集状态
|
|
250
|
+
var eventActiveFilter = function eventActiveFilter(e, type) {
|
|
251
|
+
filterHandlePublic(e == -1, type, e);
|
|
252
|
+
};
|
|
253
|
+
// 筛选分组
|
|
254
|
+
var handleSelectChange = function handleSelectChange(e) {
|
|
255
|
+
filterHandlePublic(e == -999, 'groupId', e);
|
|
256
|
+
};
|
|
257
|
+
// 筛选事件
|
|
258
|
+
var eventNameChange = function eventNameChange(e) {
|
|
259
|
+
var _value = e.currentTarget.value;
|
|
260
|
+
filterHandlePublic(_value == '', 'event_name', _value);
|
|
261
|
+
};
|
|
262
|
+
// 筛选收藏
|
|
263
|
+
var markTypeFilter = function markTypeFilter(markActive) {
|
|
264
|
+
filterHandlePublic(!markActive, 'mark_type');
|
|
265
|
+
};
|
|
266
|
+
// 埋点平台id搜索
|
|
267
|
+
var isIncludeMaidian = function isIncludeMaidian(platformStr, value) {
|
|
268
|
+
if (value == -1) return true;
|
|
269
|
+
if (!platformStr || !value) return;
|
|
270
|
+
return platformStr === null || platformStr === void 0 ? void 0 : platformStr.split(',').includes(value + '');
|
|
271
|
+
};
|
|
272
|
+
var _useState35 = useState([]),
|
|
273
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
274
|
+
filterTypeData = _useState36[0],
|
|
275
|
+
setfilterTypeData = _useState36[1];
|
|
276
|
+
var _useState37 = useState([]),
|
|
277
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
|
278
|
+
groupData = _useState38[0],
|
|
279
|
+
setGroupData = _useState38[1]; // 分组数据操作条
|
|
280
|
+
useEffect(function () {
|
|
281
|
+
// 判断不同type的筛选条件
|
|
282
|
+
var _judgeFun = function _judgeFun(item, filterItem) {
|
|
283
|
+
var _item$alias_name, _item$event_name;
|
|
284
|
+
switch (filterItem.type) {
|
|
285
|
+
case 'mark_type':
|
|
286
|
+
return item.mark_type == 1;
|
|
287
|
+
case 'event_name':
|
|
288
|
+
return item.alias_name !== undefined && item.alias_name !== null && ((_item$alias_name = item.alias_name) === null || _item$alias_name === void 0 ? void 0 : _item$alias_name.indexOf(filterItem.value)) !== -1 || item.event_name !== null && ((_item$event_name = item.event_name) === null || _item$event_name === void 0 ? void 0 : _item$event_name.indexOf(filterItem.value)) !== -1;
|
|
289
|
+
case 'groupId':
|
|
290
|
+
return item._groupId == filterItem.value || item.groupId == filterItem.value;
|
|
291
|
+
case 'maidian_platform':
|
|
292
|
+
return isIncludeMaidian(item.platformStr, filterItem.value) || item.groupId == filterItem.value;
|
|
293
|
+
case 'event_hidden':
|
|
294
|
+
return item.event_hidden == filterItem.value || item.groupId != undefined;
|
|
295
|
+
case 'is_stop':
|
|
296
|
+
return item.is_stop == filterItem.value || item.groupId != undefined;
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
var _groupData = [];
|
|
300
|
+
var clearEmptyGroupFlag = false;
|
|
301
|
+
// 多条件同时筛选
|
|
302
|
+
var _tableHandleData = [];
|
|
303
|
+
tableHandleDataBasics.map(function (item) {
|
|
304
|
+
if (item.groupId != undefined) {
|
|
305
|
+
_groupData.push(item);
|
|
306
|
+
}
|
|
307
|
+
var falg = true;
|
|
308
|
+
filterTypeData.map(function (filterItem) {
|
|
309
|
+
if (!_judgeFun(item, filterItem)) {
|
|
310
|
+
falg = false;
|
|
311
|
+
if (filterItem.type == 'event_hidden' || filterItem.type == 'is_stop') clearEmptyGroupFlag = true;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
falg && _tableHandleData.push(item);
|
|
315
|
+
});
|
|
316
|
+
setGroupData(_groupData);
|
|
317
|
+
var total = 0;
|
|
318
|
+
_tableHandleData.map(function (item) {
|
|
319
|
+
if (item._groupId != undefined) {
|
|
320
|
+
total++;
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
setTotal(total);
|
|
324
|
+
// 过滤空组 , event_hidden 和 is_stop,触发
|
|
325
|
+
var clearEmptyGroup = function clearEmptyGroup(data) {
|
|
326
|
+
var _data = _.cloneDeep(data);
|
|
327
|
+
_.remove(_data, function (item) {
|
|
328
|
+
var flag = false;
|
|
329
|
+
data.map(function (item2) {
|
|
330
|
+
if (item.groupId && item.groupId == item2._groupId) {
|
|
331
|
+
flag = true;
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
// console.log(item, flag);
|
|
335
|
+
return item.groupId != undefined && !flag;
|
|
336
|
+
});
|
|
337
|
+
return _data;
|
|
338
|
+
};
|
|
339
|
+
setPageNumber(1);
|
|
340
|
+
if (!clearEmptyGroupFlag) {
|
|
341
|
+
setTableHandleData(_tableHandleData);
|
|
342
|
+
} else {
|
|
343
|
+
setTableHandleData(clearEmptyGroup(_tableHandleData));
|
|
344
|
+
}
|
|
345
|
+
}, [filterTypeData, tableHandleDataBasics]);
|
|
346
|
+
// 是否已包含筛选type
|
|
347
|
+
var filterHas = function filterHas(type) {
|
|
348
|
+
var flag = false;
|
|
349
|
+
filterTypeData.map(function (item) {
|
|
350
|
+
if (item.type == type) {
|
|
351
|
+
flag = true;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
return flag;
|
|
355
|
+
};
|
|
356
|
+
// 处理各种筛选数据
|
|
357
|
+
var filterHandlePublic = function filterHandlePublic(filterFlag, type, value) {
|
|
358
|
+
if (filterFlag) {
|
|
359
|
+
// 取消筛选
|
|
360
|
+
var data = _.cloneDeep(filterTypeData);
|
|
361
|
+
_.remove(data, function (x) {
|
|
362
|
+
return x.type == type;
|
|
363
|
+
});
|
|
364
|
+
setfilterTypeData(data);
|
|
365
|
+
} else {
|
|
366
|
+
if (!filterHas(type)) {
|
|
367
|
+
setfilterTypeData([].concat(_toConsumableArray(filterTypeData), [{
|
|
368
|
+
type: type,
|
|
369
|
+
value: value
|
|
370
|
+
}]));
|
|
371
|
+
} else {
|
|
372
|
+
setfilterTypeData(filterTypeData.map(function (item) {
|
|
373
|
+
if (item.type == type) {
|
|
374
|
+
item.value = value;
|
|
375
|
+
}
|
|
376
|
+
return item;
|
|
377
|
+
}));
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
var _useState39 = useState(false),
|
|
382
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
383
|
+
eventAttrListShow = _useState40[0],
|
|
384
|
+
setEventAttrListShow = _useState40[1];
|
|
385
|
+
var _useState41 = useState(),
|
|
386
|
+
_useState42 = _slicedToArray(_useState41, 2),
|
|
387
|
+
eventAttrsData = _useState42[0],
|
|
388
|
+
setEventAttrsData = _useState42[1];
|
|
389
|
+
var eventAttrDataHandle = function eventAttrDataHandle(data) {
|
|
390
|
+
setEventAttrsData(data);
|
|
391
|
+
setEventAttrListShow(true);
|
|
392
|
+
};
|
|
393
|
+
var _useState43 = useState(1),
|
|
394
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
395
|
+
pageNumber = _useState44[0],
|
|
396
|
+
setPageNumber = _useState44[1];
|
|
397
|
+
var _useState45 = useState(10),
|
|
398
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
399
|
+
pageSize = _useState46[0],
|
|
400
|
+
setPageSize = _useState46[1];
|
|
401
|
+
var _useState47 = useState([]),
|
|
402
|
+
_useState48 = _slicedToArray(_useState47, 2),
|
|
403
|
+
tableRenderData = _useState48[0],
|
|
404
|
+
setTableRenderData = _useState48[1];
|
|
405
|
+
useEffect(function () {
|
|
406
|
+
setPageNumber(1);
|
|
407
|
+
}, [tableHandleData]);
|
|
408
|
+
useEffect(function () {
|
|
409
|
+
var paginationData = [];
|
|
410
|
+
var arr = [];
|
|
411
|
+
var count = 0;
|
|
412
|
+
tableHandleData.map(function (item) {
|
|
413
|
+
if (item._groupId != undefined) {
|
|
414
|
+
count++;
|
|
415
|
+
}
|
|
416
|
+
arr.push(item);
|
|
417
|
+
if (count == pageSize) {
|
|
418
|
+
paginationData.push(arr);
|
|
419
|
+
count = 0;
|
|
420
|
+
arr = [];
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
if (arr.length > 0) {
|
|
424
|
+
paginationData.push(arr);
|
|
425
|
+
count = 0;
|
|
426
|
+
arr = [];
|
|
427
|
+
}
|
|
428
|
+
// 当前页需要展示的数据
|
|
429
|
+
var _renderData = paginationData[pageNumber - 1];
|
|
430
|
+
// 临时数组,搜索时使用,存储已添加的分组id
|
|
431
|
+
var _tempGroupIdList = [];
|
|
432
|
+
// 临时渲染数据,搜索时使用,存放处理后的数据(含分组信息)
|
|
433
|
+
var _tempRenderData = [];
|
|
434
|
+
if (_renderData && _renderData.length > 0 && _renderData[0].groupId == undefined) {
|
|
435
|
+
_renderData.map(function (item) {
|
|
436
|
+
groupData.map(function (_item) {
|
|
437
|
+
if (_item.groupId === item._groupId && _tempGroupIdList.indexOf(item._groupId) === -1) {
|
|
438
|
+
_tempGroupIdList.push(item._groupId);
|
|
439
|
+
_tempRenderData.push(_item);
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
_tempRenderData.push(item);
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
setTableRenderData(_tempRenderData.length > 0 ? _tempRenderData : _renderData);
|
|
446
|
+
}, [pageNumber, pageSize, tableHandleData]);
|
|
447
|
+
// 分页处理
|
|
448
|
+
var onPaginationChange = function onPaginationChange(pageNumber, pageSize) {
|
|
449
|
+
setPageNumber(pageNumber);
|
|
450
|
+
setPageSize(pageSize);
|
|
451
|
+
};
|
|
452
|
+
var exportEvent = function exportEvent() {
|
|
453
|
+
request(apis.exportEvent, {
|
|
454
|
+
method: 'POST',
|
|
455
|
+
data: {
|
|
456
|
+
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
457
|
+
},
|
|
458
|
+
responseType: 'blob',
|
|
459
|
+
fileName: "\u5143\u4E8B\u4EF6\u5217\u8868_".concat(moment().format('YYYYMMDD'))
|
|
460
|
+
}).then(function (res) {});
|
|
461
|
+
};
|
|
462
|
+
var items = [{
|
|
463
|
+
key: '2',
|
|
464
|
+
disabled: !authority[1700636282],
|
|
465
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
466
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
467
|
+
onClick: function onClick() {
|
|
468
|
+
return setEventGroupingShow(true);
|
|
469
|
+
}
|
|
470
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
471
|
+
type: "guanli",
|
|
472
|
+
size: 16,
|
|
473
|
+
className: "creditPopClickIcon"
|
|
474
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406")))
|
|
475
|
+
}, {
|
|
476
|
+
key: '3',
|
|
477
|
+
disabled: isDemo || !authority[1722837260],
|
|
478
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
479
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
480
|
+
onClick: function onClick() {
|
|
481
|
+
return setOpenImportModal(true);
|
|
482
|
+
}
|
|
483
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
484
|
+
type: "xiazai1",
|
|
485
|
+
size: 16,
|
|
486
|
+
className: "creditPopClickIcon"
|
|
487
|
+
}), " ", /*#__PURE__*/React.createElement("span", null, "\u5BFC\u5165\u4E8B\u4EF6")))
|
|
488
|
+
}, {
|
|
489
|
+
key: '4',
|
|
490
|
+
disabled: isDemo || !authority[1722837261],
|
|
491
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
492
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
493
|
+
onClick: exportEvent
|
|
494
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
495
|
+
type: "daochu1",
|
|
496
|
+
size: 16,
|
|
497
|
+
className: "creditPopClickIcon"
|
|
498
|
+
}), " ", /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u4E8B\u4EF6")))
|
|
499
|
+
}, {
|
|
500
|
+
key: '5',
|
|
501
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
502
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
503
|
+
onClick: function onClick() {
|
|
504
|
+
return setIsDevModalState(true);
|
|
505
|
+
}
|
|
506
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
507
|
+
type: "icon-shishigailan",
|
|
508
|
+
size: 16,
|
|
509
|
+
className: "creditPopClickIcon"
|
|
510
|
+
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u5F00\u53D1\u7BA1\u7406")))
|
|
511
|
+
}, {
|
|
512
|
+
key: '6',
|
|
513
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
514
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
515
|
+
onClick: function onClick() {
|
|
516
|
+
return setIsTextReport(true);
|
|
517
|
+
}
|
|
518
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
519
|
+
type: "baogao",
|
|
520
|
+
size: 16,
|
|
521
|
+
className: "creditPopClickIcon"
|
|
522
|
+
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u751F\u6210\u6D4B\u8BD5\u62A5\u544A")))
|
|
523
|
+
}, {
|
|
524
|
+
key: '7',
|
|
525
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
526
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
527
|
+
onClick: function onClick() {
|
|
528
|
+
return setIsExportData(true);
|
|
529
|
+
}
|
|
530
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
531
|
+
type: "daochu1",
|
|
532
|
+
size: 16,
|
|
533
|
+
className: "creditPopClickIcon"
|
|
534
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u6570\u636E\u5305")))
|
|
535
|
+
}];
|
|
536
|
+
// 提交测试报告
|
|
537
|
+
var _Form$useForm = Form.useForm(),
|
|
538
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
539
|
+
formReport = _Form$useForm2[0];
|
|
540
|
+
var submitReport = /*#__PURE__*/function () {
|
|
541
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
542
|
+
var values;
|
|
543
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
544
|
+
while (1) switch (_context.prev = _context.next) {
|
|
545
|
+
case 0:
|
|
546
|
+
_context.prev = 0;
|
|
547
|
+
_context.next = 3;
|
|
548
|
+
return formReport.validateFields();
|
|
549
|
+
case 3:
|
|
550
|
+
values = _context.sent;
|
|
551
|
+
request(apis.createExport, {
|
|
552
|
+
method: 'get',
|
|
553
|
+
params: {
|
|
554
|
+
demandId: values === null || values === void 0 ? void 0 : values.demandId
|
|
555
|
+
},
|
|
556
|
+
responseType: 'blob',
|
|
557
|
+
fileName: "\u6D4B\u8BD5\u62A5\u544A_".concat(moment().format('YYYYMMDD'))
|
|
558
|
+
}).then(function (res) {});
|
|
559
|
+
notification.success({
|
|
560
|
+
message: '生成测试报告成功!'
|
|
561
|
+
});
|
|
562
|
+
setIsTextReport(false);
|
|
563
|
+
_context.next = 12;
|
|
564
|
+
break;
|
|
565
|
+
case 9:
|
|
566
|
+
_context.prev = 9;
|
|
567
|
+
_context.t0 = _context["catch"](0);
|
|
568
|
+
console.log(_context.t0, '测试报告验证失败');
|
|
569
|
+
case 12:
|
|
570
|
+
case "end":
|
|
571
|
+
return _context.stop();
|
|
572
|
+
}
|
|
573
|
+
}, _callee, null, [[0, 9]]);
|
|
574
|
+
}));
|
|
575
|
+
return function submitReport() {
|
|
576
|
+
return _ref.apply(this, arguments);
|
|
577
|
+
};
|
|
578
|
+
}();
|
|
579
|
+
// 导出数据包
|
|
580
|
+
var _Form$useForm3 = Form.useForm(),
|
|
581
|
+
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
582
|
+
formExport = _Form$useForm4[0];
|
|
583
|
+
var submitExport = /*#__PURE__*/function () {
|
|
584
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
585
|
+
var values;
|
|
586
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
587
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
588
|
+
case 0:
|
|
589
|
+
_context2.prev = 0;
|
|
590
|
+
_context2.next = 3;
|
|
591
|
+
return formExport.validateFields();
|
|
592
|
+
case 3:
|
|
593
|
+
values = _context2.sent;
|
|
594
|
+
request(apis.exportData, {
|
|
595
|
+
method: 'get',
|
|
596
|
+
params: {
|
|
597
|
+
demandId: values === null || values === void 0 ? void 0 : values.demandId
|
|
598
|
+
},
|
|
599
|
+
responseType: 'blob',
|
|
600
|
+
fileName: "\u6570\u636E\u5305_".concat(moment().format('YYYYMMDD'))
|
|
601
|
+
}).then(function (res) {});
|
|
602
|
+
notification.success({
|
|
603
|
+
message: '生成数据包成功!'
|
|
604
|
+
});
|
|
605
|
+
setIsExportData(false);
|
|
606
|
+
_context2.next = 12;
|
|
607
|
+
break;
|
|
608
|
+
case 9:
|
|
609
|
+
_context2.prev = 9;
|
|
610
|
+
_context2.t0 = _context2["catch"](0);
|
|
611
|
+
console.log(_context2.t0, '测试数据包失败');
|
|
612
|
+
case 12:
|
|
613
|
+
case "end":
|
|
614
|
+
return _context2.stop();
|
|
615
|
+
}
|
|
616
|
+
}, _callee2, null, [[0, 9]]);
|
|
617
|
+
}));
|
|
618
|
+
return function submitExport() {
|
|
619
|
+
return _ref2.apply(this, arguments);
|
|
620
|
+
};
|
|
621
|
+
}();
|
|
622
|
+
var handleSelectMaidianChange = function handleSelectMaidianChange(value) {
|
|
623
|
+
if (value === -1) {
|
|
624
|
+
var current = maidianList.map(function (item) {
|
|
625
|
+
return item.value;
|
|
626
|
+
});
|
|
627
|
+
setCurrentMaidian(Array.from(current));
|
|
628
|
+
filterHandlePublic(false, 'maidian_platform', value);
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
631
|
+
setCurrentMaidian([value]);
|
|
632
|
+
filterHandlePublic(false, 'maidian_platform', value);
|
|
633
|
+
};
|
|
634
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
635
|
+
className: classPrefix
|
|
636
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
637
|
+
className: "".concat(classPrefix, "-top-box")
|
|
638
|
+
}, groupOptions.length > 0 && (/*#__PURE__*/React.createElement(Select, {
|
|
639
|
+
defaultValue: -999,
|
|
640
|
+
className: "top-select",
|
|
641
|
+
onChange: handleSelectChange,
|
|
642
|
+
options: groupOptions,
|
|
643
|
+
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
644
|
+
type: "xiangxia",
|
|
645
|
+
style: {
|
|
646
|
+
color: '#5f6085'
|
|
647
|
+
}
|
|
648
|
+
})
|
|
649
|
+
})), /*#__PURE__*/React.createElement(Input, {
|
|
650
|
+
defaultValue: props.queryKey || '',
|
|
651
|
+
className: "top-input",
|
|
652
|
+
onChange: eventNameChange,
|
|
653
|
+
placeholder: "\u8BF7\u8F93\u5165\u4E8B\u4EF6\u540D\u79F0\u6216\u522B\u540D",
|
|
654
|
+
prefix: /*#__PURE__*/React.createElement(IconFont, {
|
|
655
|
+
type: "sousuo"
|
|
656
|
+
})
|
|
657
|
+
}), /*#__PURE__*/React.createElement(Select, {
|
|
658
|
+
defaultValue: -1,
|
|
659
|
+
className: "top-select",
|
|
660
|
+
onChange: handleSelectMaidianChange,
|
|
661
|
+
options: maidianList,
|
|
662
|
+
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
663
|
+
type: "xiangxia",
|
|
664
|
+
style: {
|
|
665
|
+
color: '#5f6085'
|
|
666
|
+
}
|
|
667
|
+
})
|
|
668
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
669
|
+
className: "top-total"
|
|
670
|
+
}, "\u5171", /*#__PURE__*/React.createElement("span", null, total), "\u6761"), /*#__PURE__*/React.createElement("div", {
|
|
671
|
+
className: "top-button"
|
|
672
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
673
|
+
shape: "round",
|
|
674
|
+
type: 'primary',
|
|
675
|
+
className: "button ".concat(!authority[1722837199] ? 'disabled' : ''),
|
|
676
|
+
disabled: !authority[1722837199],
|
|
677
|
+
onClick: function onClick() {
|
|
678
|
+
return setCreateMetaShow(true);
|
|
679
|
+
}
|
|
680
|
+
}, "\u521B\u5EFA\u5143\u4E8B\u4EF6"), /*#__PURE__*/React.createElement(Dropdown, {
|
|
681
|
+
menu: {
|
|
682
|
+
items: items,
|
|
683
|
+
selectable: false
|
|
684
|
+
},
|
|
685
|
+
trigger: ['click'],
|
|
686
|
+
placement: "bottomRight"
|
|
687
|
+
}, /*#__PURE__*/React.createElement(Typography.Link, null, /*#__PURE__*/React.createElement(Button, {
|
|
688
|
+
shape: "round",
|
|
689
|
+
className: "button ".concat(!authority[1700636282] ? 'disabled' : '')
|
|
690
|
+
}, "\u66F4\u591A\u64CD\u4F5C ", /*#__PURE__*/React.createElement(DownOutlined, null)))), route && route.query && route.query.type == 1 && (/*#__PURE__*/React.createElement("div", {
|
|
691
|
+
className: "".concat(classPrefix, "-pop-btn"),
|
|
692
|
+
onClick: function onClick() {
|
|
693
|
+
setIsShowCreditPop(true);
|
|
694
|
+
}
|
|
695
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
696
|
+
type: "maidianguanli",
|
|
697
|
+
size: 16,
|
|
698
|
+
className: "creditPopClickIcon"
|
|
699
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u57CB\u70B9\u5F15\u5BFC"))), route && route.query && route.query.type == 2 && (/*#__PURE__*/React.createElement("div", {
|
|
700
|
+
className: "".concat(classPrefix, "-pop-btn"),
|
|
701
|
+
onClick: function onClick() {
|
|
702
|
+
setIsShowDepositPop(true);
|
|
703
|
+
}
|
|
704
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
705
|
+
type: "maidianguanli",
|
|
706
|
+
size: 16,
|
|
707
|
+
className: "creditPopClickIcon"
|
|
708
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u57CB\u70B9\u5F15\u5BFC"))))), /*#__PURE__*/React.createElement(TablePlus, {
|
|
709
|
+
loading: loading,
|
|
710
|
+
tableHandleData: tableRenderData,
|
|
711
|
+
Refresh: refreshHandle,
|
|
712
|
+
eventActiveFilter: eventActiveFilter,
|
|
713
|
+
markTypeFilter: markTypeFilter,
|
|
714
|
+
isOpen: props.isOpen,
|
|
715
|
+
queryPlanData: props.queryPlanData,
|
|
716
|
+
eventAttrDataHandle: eventAttrDataHandle,
|
|
717
|
+
total: total,
|
|
718
|
+
groupData: groupData,
|
|
719
|
+
selectEventList: props.selectEventList,
|
|
720
|
+
setSelectEventList: props.setSelectEventList,
|
|
721
|
+
isSingleSelect: props.isSingleSelect
|
|
722
|
+
}), /*#__PURE__*/React.createElement(Pagination, {
|
|
723
|
+
style: {
|
|
724
|
+
textAlign: 'right'
|
|
725
|
+
},
|
|
726
|
+
showQuickJumper: true,
|
|
727
|
+
showSizeChanger: total > 10,
|
|
728
|
+
defaultCurrent: 1,
|
|
729
|
+
current: pageNumber,
|
|
730
|
+
total: total,
|
|
731
|
+
onChange: onPaginationChange
|
|
732
|
+
}), /*#__PURE__*/React.createElement(Drawer, {
|
|
733
|
+
className: "".concat(classPrefix, "-drawer"),
|
|
734
|
+
width: '70%',
|
|
735
|
+
title: /*#__PURE__*/React.createElement("div", null, "\u67E5\u770B\u4E8B\u4EF6\u5C5E\u6027"),
|
|
736
|
+
placement: "right",
|
|
737
|
+
destroyOnClose: true,
|
|
738
|
+
onClose: function onClose() {
|
|
739
|
+
return setEventAttrListShow(false);
|
|
740
|
+
},
|
|
741
|
+
open: eventAttrListShow
|
|
742
|
+
}, /*#__PURE__*/React.createElement(CollectionAttributeList, {
|
|
743
|
+
isOpen: props.isOpen,
|
|
744
|
+
queryPlanData: props.queryPlanData,
|
|
745
|
+
eventAttrsData: eventAttrsData,
|
|
746
|
+
source: "event",
|
|
747
|
+
Refresh: refreshHandle
|
|
748
|
+
})), /*#__PURE__*/React.createElement(EventGroupingDrawer, {
|
|
749
|
+
eventGroupingShow: eventGroupingShow,
|
|
750
|
+
setEventGroupingShow: setEventGroupingShow,
|
|
751
|
+
refresh: refreshHandle,
|
|
752
|
+
source: "collection"
|
|
753
|
+
}), /*#__PURE__*/React.createElement(CreateMetaDrawer, {
|
|
754
|
+
isShow: createMetaShow,
|
|
755
|
+
onSubmit: function onSubmit() {
|
|
756
|
+
refreshHandle();
|
|
757
|
+
setCreateMetaShow(false);
|
|
758
|
+
},
|
|
759
|
+
selectTreeName: props.selectTreeName,
|
|
760
|
+
onClose: function onClose() {
|
|
761
|
+
return setCreateMetaShow(false);
|
|
762
|
+
}
|
|
763
|
+
}), openImportModal ? (/*#__PURE__*/React.createElement(ImportModal, {
|
|
764
|
+
onCancel: function onCancel() {
|
|
765
|
+
setOpenImportModal(false);
|
|
766
|
+
},
|
|
767
|
+
onSuccess: function onSuccess() {
|
|
768
|
+
refreshHandle();
|
|
769
|
+
setOpenImportModal(false);
|
|
770
|
+
}
|
|
771
|
+
})) : null, /*#__PURE__*/React.createElement(Modal, {
|
|
772
|
+
title: "\u521B\u5EFA\u5206\u7EC4",
|
|
773
|
+
className: "creact-group",
|
|
774
|
+
destroyOnClose: true,
|
|
775
|
+
getContainer: false,
|
|
776
|
+
open: eventNameShow,
|
|
777
|
+
onOk: createEventGroup,
|
|
778
|
+
onCancel: function onCancel() {
|
|
779
|
+
setEventNameShow(false);
|
|
780
|
+
setEventNameInput('');
|
|
781
|
+
}
|
|
782
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
783
|
+
style: {
|
|
784
|
+
marginBottom: 24
|
|
785
|
+
},
|
|
786
|
+
placeholder: "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D",
|
|
787
|
+
value: eventNameInput,
|
|
788
|
+
maxLength: 20,
|
|
789
|
+
onChange: function onChange(e) {
|
|
790
|
+
return setEventNameInput(e.currentTarget.value);
|
|
791
|
+
}
|
|
792
|
+
})), isShowCreditPop && (/*#__PURE__*/React.createElement(CreditPop, {
|
|
793
|
+
onClose: function onClose() {
|
|
794
|
+
setIsShowCreditPop(false);
|
|
795
|
+
}
|
|
796
|
+
})), isShowDepositPop && (/*#__PURE__*/React.createElement(DepositPop, {
|
|
797
|
+
onClose: function onClose() {
|
|
798
|
+
setIsShowDepositPop(false);
|
|
799
|
+
}
|
|
800
|
+
})), /*#__PURE__*/React.createElement(Modal, {
|
|
801
|
+
title: "\u5F00\u53D1\u7BA1\u7406",
|
|
802
|
+
centered: true,
|
|
803
|
+
open: isDevModalState,
|
|
804
|
+
onOk: function onOk() {
|
|
805
|
+
return setIsDevModalState(false);
|
|
806
|
+
},
|
|
807
|
+
onCancel: function onCancel() {
|
|
808
|
+
setIsDevModalState(false);
|
|
809
|
+
},
|
|
810
|
+
width: 520,
|
|
811
|
+
destroyOnClose: true,
|
|
812
|
+
footer: null
|
|
813
|
+
}, /*#__PURE__*/React.createElement(DevModal, {
|
|
814
|
+
onCloseModal: function onCloseModal() {
|
|
815
|
+
return setIsDevModalState(false);
|
|
816
|
+
}
|
|
817
|
+
})), /*#__PURE__*/React.createElement(Modal, {
|
|
818
|
+
title: "\u6D4B\u8BD5\u62A5\u544A",
|
|
819
|
+
centered: true,
|
|
820
|
+
okText: "\u5BFC\u51FA\u7ED3\u679C",
|
|
821
|
+
open: isTextReport,
|
|
822
|
+
onOk: submitReport,
|
|
823
|
+
onCancel: function onCancel() {
|
|
824
|
+
return setIsTextReport(false);
|
|
825
|
+
},
|
|
826
|
+
destroyOnClose: true,
|
|
827
|
+
width: 520
|
|
828
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
829
|
+
form: formReport,
|
|
830
|
+
labelCol: {
|
|
831
|
+
span: 4
|
|
832
|
+
},
|
|
833
|
+
wrapperCol: {
|
|
834
|
+
span: 20
|
|
835
|
+
},
|
|
836
|
+
initialValues: {
|
|
837
|
+
demandId: ''
|
|
838
|
+
}
|
|
839
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
840
|
+
label: "\u9700\u6C42ID",
|
|
841
|
+
name: "demandId",
|
|
842
|
+
rules: [{
|
|
843
|
+
required: true,
|
|
844
|
+
message: '请输入需求ID'
|
|
845
|
+
}]
|
|
846
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
847
|
+
maxLength: 20,
|
|
848
|
+
showCount: true
|
|
849
|
+
})))), /*#__PURE__*/React.createElement(Modal, {
|
|
850
|
+
title: "\u5BFC\u51FA\u6570\u636E\u5305",
|
|
851
|
+
centered: true,
|
|
852
|
+
okText: "\u5BFC\u51FA",
|
|
853
|
+
open: isExportData,
|
|
854
|
+
onOk: submitExport,
|
|
855
|
+
onCancel: function onCancel() {
|
|
856
|
+
return setIsExportData(false);
|
|
857
|
+
},
|
|
858
|
+
destroyOnClose: true,
|
|
859
|
+
width: 520
|
|
860
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
861
|
+
form: formExport,
|
|
862
|
+
labelCol: {
|
|
863
|
+
span: 4
|
|
864
|
+
},
|
|
865
|
+
wrapperCol: {
|
|
866
|
+
span: 20
|
|
867
|
+
},
|
|
868
|
+
initialValues: {
|
|
869
|
+
demandId: ''
|
|
870
|
+
}
|
|
871
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
872
|
+
label: "\u9700\u6C42ID",
|
|
873
|
+
name: "demandId",
|
|
874
|
+
rules: [{
|
|
875
|
+
required: true,
|
|
876
|
+
message: '请输入需求ID'
|
|
877
|
+
}]
|
|
878
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
879
|
+
maxLength: 20,
|
|
880
|
+
showCount: true
|
|
881
|
+
})))));
|
|
882
|
+
};
|
|
883
|
+
export default CollectionEventList;
|