@bit-sun/business-component 2.4.8 → 2.4.9
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/dist/index.esm.js
CHANGED
|
@@ -26265,7 +26265,7 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
26265
26265
|
res = _ref3[0];
|
|
26266
26266
|
var resD = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
26267
26267
|
var data = resD.data;
|
|
26268
|
-
if (
|
|
26268
|
+
if (judgeIsRequestSuccess(resD)) {
|
|
26269
26269
|
if (data) {
|
|
26270
26270
|
var businessType = data.businessType,
|
|
26271
26271
|
fieldGroup = data.code,
|
package/dist/index.js
CHANGED
|
@@ -26285,7 +26285,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
26285
26285
|
res = _ref3[0];
|
|
26286
26286
|
var resD = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
26287
26287
|
var data = resD.data;
|
|
26288
|
-
if (
|
|
26288
|
+
if (judgeIsRequestSuccess(resD)) {
|
|
26289
26289
|
if (data) {
|
|
26290
26290
|
var businessType = data.businessType,
|
|
26291
26291
|
fieldGroup = data.code,
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import FieldsSettingsTable from './components/FieldsSettingsTable';
|
|
|
9
9
|
import { isEmpty } from "lodash"
|
|
10
10
|
import './index.less';
|
|
11
11
|
import { getUserId } from '@/utils/LocalstorageUtils';
|
|
12
|
-
import {
|
|
12
|
+
import { judgeIsRequestSuccess } from '@/utils/requestUtils';
|
|
13
13
|
|
|
14
14
|
function iterFileds (fields) {
|
|
15
15
|
let filedsValue = [];
|
|
@@ -303,7 +303,7 @@ const JsonQueryTable = React.memo(props => {
|
|
|
303
303
|
]).then(([res] )=> {
|
|
304
304
|
const resD = res?.data || {}
|
|
305
305
|
const { data } = resD;
|
|
306
|
-
if (
|
|
306
|
+
if (judgeIsRequestSuccess(resD)) {
|
|
307
307
|
if(data){
|
|
308
308
|
const { businessType, code:fieldGroup, moduleType, moduleRelationId } = data;
|
|
309
309
|
setModuleParams({
|