"use strict";
/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunknocode_platform"] = self["webpackChunknocode_platform"] || []).push([[1867],{

/***/ "./src/constants/env.js":
/*!******************************!*\
  !*** ./src/constants/env.js ***!
  \******************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.ENV_APP = exports.ENV_ADMIN = void 0;\nvar ENV_ADMIN = exports.ENV_ADMIN = '0';\nvar ENV_APP = exports.ENV_APP = '1';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29uc3RhbnRzL2Vudi5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9jb25zdGFudHMvZW52LmpzPzNjZWIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IEVOVl9BRE1JTiA9ICcwJ1xuZXhwb3J0IGNvbnN0IEVOVl9BUFAgPSAnMSdcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/constants/env.js\n");

/***/ }),

/***/ "./src/utils/listSettingUtil.js":
/*!**************************************!*\
  !*** ./src/utils/listSettingUtil.js ***!
  \**************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.isEnumSelectedAll = exports.isEnumAllEmpty = exports.getUnqueId = exports.getTransferFilters = exports.getListItemSettingData = exports.getListFilterConfig = exports.getInputValue = exports.getFilters = exports.getCompareTypeCaptionByCompareType = exports.filterItemCompareTypes = exports.filterEmptyOrAllFilters = exports.filterDataTransform = exports.filterCompareTypes = void 0;\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\n/**\n * 应用首页数据转换工具函数\n */\n/**\n *从列数据获取配置列表的数据\n * @param {*} columns\n * @returns\n */\nvar VALUE_SELECT_COMPARE_TYPE = ['301', '302']; // 值输入类型是下拉的筛选条件比较类型\n\nvar getListItemSettingData = exports.getListItemSettingData = function getListItemSettingData() {\n  var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var data = [];\n  columns.forEach(function (item) {\n    var temp = {\n      key: '',\n      title: ''\n    };\n    temp.key = item.number;\n    temp.title = item.name;\n    data.push(temp);\n  });\n  return data;\n};\nvar filterItemCompareTypes = exports.filterItemCompareTypes = function filterItemCompareTypes(filterItem, configedFilterData, index) {\n  var exceptType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ['001'];\n  var currentIndex = (0, _findIndex.default)(configedFilterData).call(configedFilterData, function (item) {\n    return filterItem.fieldName === item.fieldName && (0, _includes.default)(exceptType).call(exceptType, item.compareType);\n  });\n  var item = configedFilterData[currentIndex];\n  if (item && index !== currentIndex) {\n    var _context;\n    var compareTypes = (0, _filter.default)(_context = filterItem.compareTypes).call(_context, function (v, i) {\n      return v.id !== item.compareType;\n    });\n    return _objectSpread(_objectSpread({}, filterItem), {}, {\n      compareTypes: compareTypes\n    });\n  }\n  return filterItem;\n};\nvar filterCompareTypes = exports.filterCompareTypes = function filterCompareTypes(filterItem, configedFilterData) {\n  var exceptType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ['001'];\n  var currentIndex = (0, _findIndex.default)(configedFilterData).call(configedFilterData, function (item) {\n    return filterItem.fieldName === item.fieldName && (0, _includes.default)(exceptType).call(exceptType, item.compareType);\n  });\n  var item = configedFilterData[currentIndex];\n  if (item) {\n    var _context2;\n    return (0, _filter.default)(_context2 = filterItem.compareTypes).call(_context2, function (v, i) {\n      return v.id !== item.compareType;\n    });\n  }\n  return filterItem.compareTypes;\n};\n\n// 同一个字段不能同时有两个等于的筛选条件， 需要做值转换\nvar filterDataTransform = exports.filterDataTransform = function filterDataTransform(configedFilterData, filterData) {\n  return configedFilterData === null || configedFilterData === void 0 ? void 0 : (0, _map.default)(configedFilterData).call(configedFilterData, function (v, index) {\n    var result = (filterData === null || filterData === void 0 ? void 0 : (0, _find.default)(filterData).call(filterData, function (item) {\n      return item.fieldName === v.fieldName;\n    })) || {};\n    result = filterItemCompareTypes(result, configedFilterData, index); // 同一个字段不能同时有两个等于的筛选条件\n    v = _objectSpread(_objectSpread({}, result), v);\n    v.compareTypeCaption = getCompareTypeCaptionByCompareType(result.compareTypes, v.compareType);\n    return v;\n  });\n};\nvar getCompareTypeCaptionByCompareType = exports.getCompareTypeCaptionByCompareType = function getCompareTypeCaptionByCompareType(compareTypes, compareType) {\n  var _filter$name;\n  var filter = compareTypes === null || compareTypes === void 0 ? void 0 : (0, _find.default)(compareTypes).call(compareTypes, function (item) {\n    return item.id === compareType;\n  });\n  return filter === null || filter === void 0 || (_filter$name = filter.name) === null || _filter$name === void 0 ? void 0 : _filter$name.zh_CN;\n};\nvar getUnqueId = exports.getUnqueId = function getUnqueId(item) {\n  return item.type === 'normal' ? item.fieldValue : item.type;\n};\nvar getFilters = exports.getFilters = function getFilters(configuredFilterItems, listFilterConfig) {\n  var filters = filterDataTransform(configuredFilterItems, listFilterConfig);\n  return filterEmptyOrAllFilters(filters);\n};\nvar isEnumSelectedAll = exports.isEnumSelectedAll = function isEnumSelectedAll(item) {\n  var _context3;\n  // 枚举类型且全选时\n  return item.compareType === '001' && !!(0, _find.default)(_context3 = item.value).call(_context3, function (v) {\n    return v.type === 'all';\n  });\n};\n\n// 仅有空白\nvar isEnumAllEmpty = exports.isEnumAllEmpty = function isEnumAllEmpty(item) {\n  var _context4;\n  return item.compareType === '001' && !!(0, _find.default)(_context4 = item.value).call(_context4, function (v) {\n    return v.type === 'empty';\n  }) && item.value.length === 1;\n};\nvar filterEmptyOrAllFilters = exports.filterEmptyOrAllFilters = function filterEmptyOrAllFilters() {\n  var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var exceptList = ['501', '502', '701', '702', '1701', '1702']; // \"为空\" \"不为空\"作为筛选条件是没有值的,\n  return (0, _map.default)(filters).call(filters, function (item) {\n    // 全选 或者 存在为空的非枚举筛选条件\n    if (isEnumSelectedAll(item) ||\n    // 全选\n    // (isEnumAllEmpty(item) && filters.find(filter => exceptList.includes(filter.compareType) && item.fieldName === filter.fieldName)) || // 只有一个为空项\n    !(0, _includes.default)(exceptList).call(exceptList, item.compareType) && (Array.isArray(item.value) && item.value.length === 0 || !item.value) // 非空类型值值为空\n    ) {\n      return null; // 返回null，保留原数组个数，因为筛选条件没有唯一id，删除是根据索引删除，因此个数不能变\n    } else {\n      return item;\n    }\n  });\n};\n\n// export const filterEmptyOrAllFilters = (filters) => {\n//   const exceptList = ['501', '502'] // \"为空\" \"不为空\"作为筛选条件是没有值的,\n//   return filters.filter(item => {\n//     // 全选 或者 存在为空的非枚举筛选条件\n//     if (\n//       isEnumSelectedAll(item) ||\n//       (isEnumAllEmpty(item) && filters.find(filter => exceptList.includes(filter.compareType) && item.fieldName === filter.fieldName))\n//     ) {\n//       return false\n//     } else if (!exceptList.includes(item.compareType)) {\n//       return Array.isArray(item.value) ? item.value.length > 0 : !!item.value\n//     }\n//     return !!item.value\n//   })\n// }\n\n// 筛选值转换成显示的值\nvar getTransferFilters = exports.getTransferFilters = function getTransferFilters() {\n  var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zh_CN';\n  return filters === null || filters === void 0 ? void 0 : (0, _map.default)(filters).call(filters, function (filter) {\n    var _filter$value;\n    // 过滤掉全选\n    if (!filter) return filter;\n    var newValue = filter === null || filter === void 0 || (_filter$value = filter.value) === null || _filter$value === void 0 ? void 0 : (0, _filter.default)(_filter$value).call(_filter$value, function (item) {\n      if ((0, _typeof2.default)(item) === 'object') {\n        return getUnqueId(item) !== 'all';\n      } else {\n        return item;\n      }\n    });\n    if ((0, _includes.default)(VALUE_SELECT_COMPARE_TYPE).call(VALUE_SELECT_COMPARE_TYPE, filter.compareType)) {\n      var _context5;\n      // 在/不在...中，值是下拉类型\n      newValue = (0, _map.default)(_context5 = filter.items).call(_context5, function (item) {\n        return item.name[locale];\n      });\n    } else {\n      var _newValue;\n      // 显示label作为条件描述\n      newValue = (_newValue = newValue) === null || _newValue === void 0 ? void 0 : (0, _map.default)(_newValue).call(_newValue, function (item) {\n        return (0, _typeof2.default)(item) === 'object' ? (item === null || item === void 0 ? void 0 : item.label) || (item === null || item === void 0 ? void 0 : item.fieldValue) || '' : item; // 单选\n      });\n    }\n    return _objectSpread(_objectSpread({}, filter), {}, {\n      value: newValue\n    });\n  });\n};\nvar getInputValue = exports.getInputValue = function getInputValue(selectedId, groupInfo, value) {\n  var _selectedId$filter;\n  var valueArr = selectedId === null || selectedId === void 0 || (_selectedId$filter = (0, _filter.default)(selectedId).call(selectedId, function (id) {\n    return id !== 'all';\n  })) === null || _selectedId$filter === void 0 ? void 0 : (0, _map.default)(_selectedId$filter).call(_selectedId$filter, function (id) {\n    var _value$find, _groupInfo$find;\n    return (value === null || value === void 0 || (_value$find = (0, _find.default)(value).call(value, function (info) {\n      return getUnqueId(info) === id;\n    })) === null || _value$find === void 0 ? void 0 : _value$find.label) || (groupInfo === null || groupInfo === void 0 || (_groupInfo$find = (0, _find.default)(groupInfo).call(groupInfo, function (info) {\n      return getUnqueId(info) === id;\n    })) === null || _groupInfo$find === void 0 ? void 0 : _groupInfo$find.label);\n  });\n  return valueArr.join(',');\n};\nvar getListFilterConfig = exports.getListFilterConfig = function getListFilterConfig(listItemConfig, listFilterConfig) {\n  var listItemConfigMap = {};\n  listItemConfig.forEach(function (item) {\n    listItemConfigMap[item.number] = item;\n  });\n  return listFilterConfig === null || listFilterConfig === void 0 ? void 0 : (0, _map.default)(listFilterConfig).call(listFilterConfig, function (item) {\n    var fieldName = item.fieldName;\n    return _objectSpread(_objectSpread({}, item), listItemConfigMap[fieldName] || {});\n  });\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/utils/listSettingUtil.js\n");

/***/ }),

/***/ "./src/utils/menuTableActions.ts":
/*!***************************************!*\
  !*** ./src/utils/menuTableActions.ts ***!
  \***************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.sendFooterDataSource = exports.onSavePageSize = exports.onSaveFormFilterSetting = exports.onDeleteItemsWithFilter = exports.onDeleteFormDataListItem = exports.loadFormListWithParams = exports.getUpdateFooterDataSource = exports.getStatInfoRow = exports.getStatInfo = exports.getOrderBy = exports.getNewFilters = exports.getInitFormDataList = exports.getFormDataListSetting = exports.getFormDataList = exports.getEnumFilterValue = exports.getColHeadFilters = exports.getColHeadFilterConfig = void 0;\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _ = __webpack_require__(/*! . */ \"./src/utils/index.tsx\");\nvar _menuTableUtil = __webpack_require__(/*! ./menuTableUtil */ \"./src/utils/menuTableUtil.js\");\nvar _listSettingUtil = __webpack_require__(/*! ./listSettingUtil */ \"./src/utils/listSettingUtil.js\");\nvar getFormDataList = exports.getFormDataList = /*#__PURE__*/function () {\n  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {\n    var appId, formId, env, listItemConfig, listFilters, pageNo, pageSize, searchKeywords, orderBy, viewAuth, schemaId, args, _yield$loadFormDataLi, dataSource, newPageSize, totalCount, newPageNo, lastPage;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          appId = _ref.appId, formId = _ref.formId, env = _ref.env, listItemConfig = _ref.listItemConfig, listFilters = _ref.listFilters, pageNo = _ref.pageNo, pageSize = _ref.pageSize, searchKeywords = _ref.searchKeywords, orderBy = _ref.orderBy, viewAuth = _ref.viewAuth, schemaId = _ref.schemaId;\n          if (viewAuth) {\n            _context.next = 3;\n            break;\n          }\n          return _context.abrupt(\"return\", {\n            dataSource: [],\n            pageSize: pageSize,\n            totalCount: 0,\n            pageNo: 1,\n            lastPage: true\n          });\n        case 3:\n          args = (0, _menuTableUtil.getArgs)(listFilters === null || listFilters === void 0 ? void 0 : listFilters[0], {\n            page_no: pageNo,\n            page_size: pageSize,\n            search: searchKeywords,\n            env: env,\n            order_by: orderBy,\n            schemaId: schemaId\n          });\n          _context.next = 6;\n          return (0, _apps.getFormDataList)(appId, formId, args);\n        case 6:\n          _yield$loadFormDataLi = _context.sent;\n          dataSource = _yield$loadFormDataLi.rows;\n          newPageSize = _yield$loadFormDataLi.pageSize;\n          totalCount = _yield$loadFormDataLi.totalCount;\n          newPageNo = _yield$loadFormDataLi.pageNo;\n          lastPage = _yield$loadFormDataLi.lastPage;\n          return _context.abrupt(\"return\", {\n            dataSource: dataSource,\n            pageSize: newPageSize,\n            totalCount: totalCount,\n            pageNo: newPageNo,\n            lastPage: lastPage\n          });\n        case 13:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  }));\n  return function getFormDataList(_x) {\n    return _ref2.apply(this, arguments);\n  };\n}();\nvar getInitFormDataList = exports.getInitFormDataList = /*#__PURE__*/function () {\n  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref3) {\n    var appId, formId, env, viewAuth, compareTypes, _ref5, listItemConfig, configuredFilterItems, listFilters, listFilterConfig, listStatInfo, formName, configuredPageSize, orderBy, orderInfo, args, data, dataSource, pageSize, totalCount, pageNo, lastPage, footerDataSource;\n    return _regenerator.default.wrap(function _callee2$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          appId = _ref3.appId, formId = _ref3.formId, env = _ref3.env, viewAuth = _ref3.viewAuth, compareTypes = _ref3.compareTypes;\n          if (!(!appId || !formId)) {\n            _context2.next = 3;\n            break;\n          }\n          return _context2.abrupt(\"return\");\n        case 3:\n          _context2.prev = 3;\n          _context2.next = 6;\n          return getFormDataListSetting({\n            appId: appId,\n            formId: formId,\n            env: env,\n            compareTypes: compareTypes\n          });\n        case 6:\n          _context2.t0 = _context2.sent;\n          if (_context2.t0) {\n            _context2.next = 9;\n            break;\n          }\n          _context2.t0 = {};\n        case 9:\n          _ref5 = _context2.t0;\n          listItemConfig = _ref5.listItemConfig;\n          configuredFilterItems = _ref5.configuredFilterItems;\n          listFilters = _ref5.listFilters;\n          listFilterConfig = _ref5.listFilterConfig;\n          listStatInfo = _ref5.listStatInfo;\n          formName = _ref5.formName;\n          configuredPageSize = _ref5.configuredPageSize;\n          orderBy = _ref5.orderBy;\n          orderInfo = _ref5.orderInfo;\n          if (viewAuth) {\n            _context2.next = 21;\n            break;\n          }\n          return _context2.abrupt(\"return\", {\n            dataSource: [],\n            footerDataSource: [],\n            pageSize: 20,\n            pageNo: 1,\n            totalCount: 0,\n            lastPage: true,\n            formName: formName,\n            loading: false,\n            listItemConfig: listItemConfig,\n            listFilterConfig: listFilterConfig,\n            listStatInfo: listStatInfo,\n            configuredFilterItems: configuredFilterItems,\n            listFilters: listFilters,\n            orderBy: orderBy,\n            orderInfo: orderInfo\n          });\n        case 21:\n          args = (0, _menuTableUtil.getArgs)(listFilters === null || listFilters === void 0 ? void 0 : listFilters[0], {\n            env: env,\n            page_size: configuredPageSize,\n            order_by: orderBy\n          });\n          _context2.next = 24;\n          return (0, _apps.getFormDataList)(appId, formId, args);\n        case 24:\n          data = _context2.sent;\n          dataSource = data.rows, pageSize = data.pageSize, totalCount = data.totalCount, pageNo = data.pageNo, lastPage = data.lastPage;\n          footerDataSource = (0, _menuTableUtil.getInitFooterDataSource)(listItemConfig, listStatInfo);\n          return _context2.abrupt(\"return\", {\n            dataSource: dataSource,\n            footerDataSource: footerDataSource,\n            pageSize: pageSize,\n            pageNo: pageNo,\n            totalCount: totalCount,\n            lastPage: lastPage,\n            formName: formName,\n            loading: false,\n            listItemConfig: listItemConfig,\n            listFilterConfig: listFilterConfig,\n            listStatInfo: listStatInfo,\n            configuredFilterItems: configuredFilterItems,\n            listFilters: listFilters,\n            orderBy: orderBy,\n            orderInfo: orderInfo\n          });\n        case 30:\n          _context2.prev = 30;\n          _context2.t1 = _context2[\"catch\"](3);\n          console.error(_context2.t1.message || '表单已被删除');\n          (0, _.showNotice)('error', _context2.t1.message || '表单已被删除');\n          // showNotice('error', '数据发生异常')\n        case 34:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee2, null, [[3, 30]]);\n  }));\n  return function getInitFormDataList(_x2) {\n    return _ref4.apply(this, arguments);\n  };\n}();\nvar getFormDataListSetting = exports.getFormDataListSetting = /*#__PURE__*/function () {\n  var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref6) {\n    var _formSetting$rows$, _formSetting$rows$2, _formSetting$rows$3, _formSetting$rows$4, _formSetting$rows$5, _formSetting$rows$6, _formSetting$rows$7, _formSetting$rows$8, _formSetting$rows$9;\n    var appId, formId, env, compareTypesMap, formSetting, listItemConfig, listFilterConfig, configuredFilterItems, listStatInfo, filters, formName, configuredPageSize, orderBy, orderInfo, newListFilterConfig;\n    return _regenerator.default.wrap(function _callee3$(_context3) {\n      while (1) switch (_context3.prev = _context3.next) {\n        case 0:\n          appId = _ref6.appId, formId = _ref6.formId, env = _ref6.env, compareTypesMap = _ref6.compareTypes;\n          _context3.next = 3;\n          return (0, _apps.getFormDataListSetting)(appId, formId, env);\n        case 3:\n          formSetting = _context3.sent;\n          listItemConfig = (formSetting === null || formSetting === void 0 || (_formSetting$rows$ = formSetting.rows[0]) === null || _formSetting$rows$ === void 0 ? void 0 : _formSetting$rows$.listItemConfig) || []; // 配置列表项\n          listFilterConfig = (formSetting === null || formSetting === void 0 || (_formSetting$rows$2 = formSetting.rows[0]) === null || _formSetting$rows$2 === void 0 ? void 0 : _formSetting$rows$2.listFilterConfig) || []; // 配置筛选项\n          configuredFilterItems = (formSetting === null || formSetting === void 0 || (_formSetting$rows$3 = formSetting.rows[0]) === null || _formSetting$rows$3 === void 0 ? void 0 : _formSetting$rows$3.configuredFilterItems) || []; // 已选配置筛选项\n          listStatInfo = (formSetting === null || formSetting === void 0 || (_formSetting$rows$4 = formSetting.rows[0]) === null || _formSetting$rows$4 === void 0 ? void 0 : _formSetting$rows$4.listStatInfo) || [];\n          filters = formSetting === null || formSetting === void 0 || (_formSetting$rows$5 = formSetting.rows[0]) === null || _formSetting$rows$5 === void 0 ? void 0 : _formSetting$rows$5.filters;\n          formName = (formSetting === null || formSetting === void 0 || (_formSetting$rows$6 = formSetting.rows[0]) === null || _formSetting$rows$6 === void 0 ? void 0 : _formSetting$rows$6.formName) || '';\n          configuredPageSize = formSetting === null || formSetting === void 0 || (_formSetting$rows$7 = formSetting.rows[0]) === null || _formSetting$rows$7 === void 0 ? void 0 : _formSetting$rows$7.configuredPageSize;\n          orderBy = (formSetting === null || formSetting === void 0 || (_formSetting$rows$8 = formSetting.rows[0]) === null || _formSetting$rows$8 === void 0 ? void 0 : _formSetting$rows$8.orderBy) || '';\n          orderInfo = (formSetting === null || formSetting === void 0 || (_formSetting$rows$9 = formSetting.rows[0]) === null || _formSetting$rows$9 === void 0 ? void 0 : _formSetting$rows$9.orderInfo) || [];\n          newListFilterConfig = (0, _listSettingUtil.getListFilterConfig)(listItemConfig, listFilterConfig);\n          return _context3.abrupt(\"return\", {\n            listItemConfig: listItemConfig,\n            listFilterConfig: newListFilterConfig,\n            configuredFilterItems: configuredFilterItems,\n            listFilters: filters,\n            listStatInfo: listStatInfo,\n            formName: formName,\n            configuredPageSize: configuredPageSize,\n            orderBy: orderBy,\n            orderInfo: orderInfo\n          });\n        case 15:\n        case \"end\":\n          return _context3.stop();\n      }\n    }, _callee3);\n  }));\n  return function getFormDataListSetting(_x3) {\n    return _ref7.apply(this, arguments);\n  };\n}();\nvar onSaveFormFilterSetting = exports.onSaveFormFilterSetting = function onSaveFormFilterSetting(params, env) {\n  return (0, _apps.sendFormFilterSetting)(params, env);\n};\n\n// 表单列表保存列设置暂时不发请求\n// export const onSaveFormListSetting = (appId, formId, env, keys, lockedKeys) => {\n//   const data = {\n//     data: [\n//       {\n//         appid: appId,\n//         formid: formId,\n//         fields: keys.join(','),\n//         lockedKeys: lockedKeys?.filter(item => item !== 'operate').join(',')\n//       }\n//     ]\n//   }\n//   return sendFormListSetting(data, env)\n// }\n\nvar onSavePageSize = exports.onSavePageSize = function onSavePageSize(appId, formId, env, pageSize) {\n  var data = {\n    data: [{\n      appId: appId,\n      formId: formId,\n      pageSize: pageSize\n    }]\n  };\n  return (0, _apps.sendPageSize)(data, env);\n};\nvar getOrderBy = exports.getOrderBy = /*#__PURE__*/function () {\n  var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(appId, formId, env, orderInfo) {\n    var _res$extra;\n    var data, res;\n    return _regenerator.default.wrap(function _callee4$(_context4) {\n      while (1) switch (_context4.prev = _context4.next) {\n        case 0:\n          data = {\n            data: [{\n              appId: appId,\n              formId: formId,\n              orderInfo: orderInfo\n            }]\n          };\n          _context4.next = 3;\n          return (0, _apps.sendColHeadSort)(data, env);\n        case 3:\n          res = _context4.sent;\n          return _context4.abrupt(\"return\", res === null || res === void 0 || (_res$extra = res.extra) === null || _res$extra === void 0 ? void 0 : _res$extra.orderBy);\n        case 5:\n        case \"end\":\n          return _context4.stop();\n      }\n    }, _callee4);\n  }));\n  return function getOrderBy(_x4, _x5, _x6, _x7) {\n    return _ref8.apply(this, arguments);\n  };\n}();\nvar getStatInfoRow = exports.getStatInfoRow = /*#__PURE__*/function () {\n  var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(appId, formId, env, params) {\n    var data;\n    return _regenerator.default.wrap(function _callee5$(_context5) {\n      while (1) switch (_context5.prev = _context5.next) {\n        case 0:\n          _context5.next = 2;\n          return (0, _apps.getStatInfoRow)(appId, formId, env, params);\n        case 2:\n          data = _context5.sent;\n          return _context5.abrupt(\"return\", data === null || data === void 0 ? void 0 : data.rows);\n        case 4:\n        case \"end\":\n          return _context5.stop();\n      }\n    }, _callee5);\n  }));\n  return function getStatInfoRow(_x8, _x9, _x10, _x11) {\n    return _ref9.apply(this, arguments);\n  };\n}();\nvar getStatInfo = exports.getStatInfo = /*#__PURE__*/function () {\n  var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(_ref10) {\n    var appId, formId, env, fieldName, listFilters, pageSize, pageNo, searchKeywords, schemaId, params, data;\n    return _regenerator.default.wrap(function _callee6$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          appId = _ref10.appId, formId = _ref10.formId, env = _ref10.env, fieldName = _ref10.fieldName, listFilters = _ref10.listFilters, pageSize = _ref10.pageSize, pageNo = _ref10.pageNo, searchKeywords = _ref10.searchKeywords, schemaId = _ref10.schemaId;\n          params = (0, _menuTableUtil.getArgs)(listFilters === null || listFilters === void 0 ? void 0 : listFilters[0], {\n            page_size: pageSize,\n            page_no: pageNo,\n            search: searchKeywords,\n            stat: fieldName,\n            schemaId: schemaId,\n            env: env\n          });\n          _context6.next = 4;\n          return (0, _apps.getStatInfo)(appId, formId, params);\n        case 4:\n          data = _context6.sent;\n          return _context6.abrupt(\"return\", data === null || data === void 0 ? void 0 : data.rows);\n        case 6:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee6);\n  }));\n  return function getStatInfo(_x12) {\n    return _ref11.apply(this, arguments);\n  };\n}();\nvar getColHeadFilterConfig = exports.getColHeadFilterConfig = /*#__PURE__*/function () {\n  var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(appId, formId, env, fieldName, filterRows, schemaId) {\n    var params, data, conf, configuredFilter, fieldFilterConfig, groupInfo;\n    return _regenerator.default.wrap(function _callee7$(_context7) {\n      while (1) switch (_context7.prev = _context7.next) {\n        case 0:\n          params = {\n            filter: '',\n            filterRows: filterRows\n          };\n          _context7.next = 3;\n          return (0, _apps.getColHeadFilter)({\n            appId: appId,\n            formId: formId,\n            env: env,\n            fieldName: fieldName,\n            schemaId: schemaId,\n            params: params\n          });\n        case 3:\n          data = _context7.sent;\n          conf = data === null || data === void 0 ? void 0 : data.rows[0];\n          configuredFilter = conf.configuredFilter, fieldFilterConfig = conf.fieldFilterConfig, groupInfo = conf.groupInfo;\n          return _context7.abrupt(\"return\", {\n            configuredFilter: configuredFilter,\n            fieldFilterConfig: fieldFilterConfig,\n            groupInfo: groupInfo\n          });\n        case 7:\n        case \"end\":\n          return _context7.stop();\n      }\n    }, _callee7);\n  }));\n  return function getColHeadFilterConfig(_x13, _x14, _x15, _x16, _x17, _x18) {\n    return _ref12.apply(this, arguments);\n  };\n}();\nvar getColHeadFilters = exports.getColHeadFilters = /*#__PURE__*/function () {\n  var _ref13 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(appId, formId, env, filterRows, headField) {\n    var _res$extra2;\n    var params, res, filters;\n    return _regenerator.default.wrap(function _callee8$(_context8) {\n      while (1) switch (_context8.prev = _context8.next) {\n        case 0:\n          params = {\n            data: [{\n              appid: appId,\n              formid: formId,\n              filterrows: filterRows\n            }]\n          };\n          _context8.next = 3;\n          return (0, _apps.sendColHeadFilter)(params, env, headField);\n        case 3:\n          res = _context8.sent;\n          filters = res === null || res === void 0 || (_res$extra2 = res.extra) === null || _res$extra2 === void 0 ? void 0 : _res$extra2.filters;\n          return _context8.abrupt(\"return\", filters);\n        case 6:\n        case \"end\":\n          return _context8.stop();\n      }\n    }, _callee8);\n  }));\n  return function getColHeadFilters(_x19, _x20, _x21, _x22, _x23) {\n    return _ref13.apply(this, arguments);\n  };\n}();\nvar sendFooterDataSource = exports.sendFooterDataSource = /*#__PURE__*/function () {\n  var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(appId, formId, env, fieldName, item, panelType) {\n    var params;\n    return _regenerator.default.wrap(function _callee9$(_context9) {\n      while (1) switch (_context9.prev = _context9.next) {\n        case 0:\n          if (!item || !panelType) {\n            params = [{\n              appid: appId,\n              formid: formId,\n              statinfo: [{\n                fieldName: fieldName,\n                rptType: 'none'\n              }]\n            }];\n          } else {\n            params = [{\n              appid: appId,\n              formid: formId,\n              statinfo: item.rptType === 'summary' ? [{\n                fieldName: fieldName,\n                rptType: item.rptType,\n                panelType: panelType\n              }] : [{\n                fieldValue: item.fieldValue,\n                fieldName: fieldName,\n                rptType: item.rptType,\n                panelType: panelType\n              }]\n            }];\n          }\n          _context9.next = 3;\n          return (0, _apps.sendStatInfo)(params, env);\n        case 3:\n        case \"end\":\n          return _context9.stop();\n      }\n    }, _callee9);\n  }));\n  return function sendFooterDataSource(_x24, _x25, _x26, _x27, _x28, _x29) {\n    return _ref14.apply(this, arguments);\n  };\n}();\nvar getNewFilters = exports.getNewFilters = /*#__PURE__*/function () {\n  var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(appId, formId, env, configuredFilterItems) {\n    var _res$extra3;\n    var data, res;\n    return _regenerator.default.wrap(function _callee10$(_context10) {\n      while (1) switch (_context10.prev = _context10.next) {\n        case 0:\n          data = {\n            data: [{\n              appid: appId,\n              formid: formId,\n              filterrows: configuredFilterItems\n            }]\n          };\n          _context10.next = 3;\n          return onSaveFormFilterSetting(data, env);\n        case 3:\n          res = _context10.sent;\n          return _context10.abrupt(\"return\", res === null || res === void 0 || (_res$extra3 = res.extra) === null || _res$extra3 === void 0 ? void 0 : _res$extra3.filters);\n        case 5:\n        case \"end\":\n          return _context10.stop();\n      }\n    }, _callee10);\n  }));\n  return function getNewFilters(_x30, _x31, _x32, _x33) {\n    return _ref15.apply(this, arguments);\n  };\n}();\nvar loadFormListWithParams = exports.loadFormListWithParams = /*#__PURE__*/function () {\n  var _ref17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(_ref16) {\n    var appId, formId, env, listItemConfig, listFilters, pageNo, pageSize, searchKeywords, orderBy, viewAuth, schemaId, _yield$getFormDataLis, dataSource, newPageSize, totalCount, newPageNo, lastPage;\n    return _regenerator.default.wrap(function _callee11$(_context11) {\n      while (1) switch (_context11.prev = _context11.next) {\n        case 0:\n          appId = _ref16.appId, formId = _ref16.formId, env = _ref16.env, listItemConfig = _ref16.listItemConfig, listFilters = _ref16.listFilters, pageNo = _ref16.pageNo, pageSize = _ref16.pageSize, searchKeywords = _ref16.searchKeywords, orderBy = _ref16.orderBy, viewAuth = _ref16.viewAuth, schemaId = _ref16.schemaId;\n          _context11.next = 3;\n          return getFormDataList({\n            appId: appId,\n            formId: formId,\n            env: env,\n            listItemConfig: listItemConfig,\n            listFilters: listFilters,\n            pageNo: pageNo,\n            pageSize: pageSize,\n            searchKeywords: searchKeywords,\n            orderBy: orderBy,\n            viewAuth: viewAuth,\n            schemaId: schemaId\n          });\n        case 3:\n          _yield$getFormDataLis = _context11.sent;\n          dataSource = _yield$getFormDataLis.dataSource;\n          newPageSize = _yield$getFormDataLis.pageSize;\n          totalCount = _yield$getFormDataLis.totalCount;\n          newPageNo = _yield$getFormDataLis.pageNo;\n          lastPage = _yield$getFormDataLis.lastPage;\n          return _context11.abrupt(\"return\", {\n            dataSource: dataSource,\n            pageSize: newPageSize,\n            pageNo: newPageNo,\n            totalCount: totalCount,\n            lastPage: lastPage\n          });\n        case 10:\n        case \"end\":\n          return _context11.stop();\n      }\n    }, _callee11);\n  }));\n  return function loadFormListWithParams(_x34) {\n    return _ref17.apply(this, arguments);\n  };\n}();\nvar getUpdateFooterDataSource = exports.getUpdateFooterDataSource = /*#__PURE__*/function () {\n  var _ref18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(appId, formId, env, pageNo, pageSize, listFilters, searchKeywords, listItemConfig, footerDataSource) {\n    var args, listStatInfo;\n    return _regenerator.default.wrap(function _callee12$(_context12) {\n      while (1) switch (_context12.prev = _context12.next) {\n        case 0:\n          args = (0, _menuTableUtil.getArgs)(listFilters === null || listFilters === void 0 ? void 0 : listFilters[0], {\n            page_no: pageNo,\n            page_size: pageSize,\n            search: searchKeywords\n          });\n          _context12.next = 3;\n          return getStatInfoRow(appId, formId, env, args);\n        case 3:\n          listStatInfo = _context12.sent;\n          return _context12.abrupt(\"return\", (0, _menuTableUtil.mergeUpdatedFooterDataSource)(listItemConfig, listStatInfo, footerDataSource));\n        case 5:\n        case \"end\":\n          return _context12.stop();\n      }\n    }, _callee12);\n  }));\n  return function getUpdateFooterDataSource(_x35, _x36, _x37, _x38, _x39, _x40, _x41, _x42, _x43) {\n    return _ref18.apply(this, arguments);\n  };\n}();\nvar onDeleteFormDataListItem = exports.onDeleteFormDataListItem = function onDeleteFormDataListItem(appId, formId, pkId) {\n  return (0, _apps.deleteFormDataListItem)(appId, formId, pkId);\n};\nvar onDeleteItemsWithFilter = exports.onDeleteItemsWithFilter = function onDeleteItemsWithFilter(appId, formId, schemaId, searchKeywords, params, orderBy) {\n  return (0, _apps.deleteFormDataListItemWithFilter)(appId, formId, schemaId, searchKeywords, params, orderBy);\n};\nvar getEnumFilterValue = exports.getEnumFilterValue = /*#__PURE__*/function () {\n  var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(appId, formId, env, configuredFilterItems, listFilterConfig, _ref19) {\n    var fieldName,\n      source,\n      schemaId,\n      filtersExceptFieldEnumType,\n      data,\n      items,\n      fieldFilterConfig,\n      _args13 = arguments;\n    return _regenerator.default.wrap(function _callee13$(_context13) {\n      while (1) switch (_context13.prev = _context13.next) {\n        case 0:\n          fieldName = _ref19.fieldName;\n          source = _args13.length > 6 && _args13[6] !== undefined ? _args13[6] : '';\n          schemaId = _args13.length > 7 ? _args13[7] : undefined;\n          filtersExceptFieldEnumType = (0, _menuTableUtil.getFiltersExceptFieldEnumType)(fieldName, configuredFilterItems); // 发送其余筛选条件去查询枚举值,即当前字段且是枚举类型的条件除外\n          _context13.next = 6;\n          return (0, _apps.getEnumFilterValue)(appId, formId, fieldName, filtersExceptFieldEnumType, env, source, schemaId);\n        case 6:\n          data = _context13.sent;\n          items = (0, _filter.default)(configuredFilterItems).call(configuredFilterItems, function (item) {\n            return item.fieldName === fieldName;\n          });\n          fieldFilterConfig = (0, _find.default)(listFilterConfig).call(listFilterConfig, function (item) {\n            return item.fieldName === fieldName;\n          });\n          return _context13.abrupt(\"return\", {\n            configuredFilter: {\n              enumEqCompareType: '001',\n              items: items\n            },\n            fieldFilterConfig: fieldFilterConfig,\n            groupInfo: data.rows\n          });\n        case 10:\n        case \"end\":\n          return _context13.stop();\n      }\n    }, _callee13);\n  }));\n  return function getEnumFilterValue(_x44, _x45, _x46, _x47, _x48, _x49) {\n    return _ref20.apply(this, arguments);\n  };\n}();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/utils/menuTableActions.ts\n");

/***/ })

}]);