ls-pro-common 3.0.72 → 3.0.74
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/hooks/useDtl/index.js
CHANGED
|
@@ -124,10 +124,11 @@ function useDtl(dtlParam) {
|
|
|
124
124
|
return _context.abrupt("return", false);
|
|
125
125
|
case 23:
|
|
126
126
|
if (!((result === null || result === void 0 ? void 0 : (_result$flag = result.flag) === null || _result$flag === void 0 ? void 0 : _result$flag.retCode) === '0')) {
|
|
127
|
-
_context.next =
|
|
127
|
+
_context.next = 30;
|
|
128
128
|
break;
|
|
129
129
|
}
|
|
130
130
|
showSuccess(result.flag.retMsg || '操作成功');
|
|
131
|
+
Object.assign(masterObject, values);
|
|
131
132
|
if (result.data) {
|
|
132
133
|
Object.assign(masterObject, result.data);
|
|
133
134
|
}
|
|
@@ -136,9 +137,9 @@ function useDtl(dtlParam) {
|
|
|
136
137
|
}
|
|
137
138
|
setEditItem({});
|
|
138
139
|
return _context.abrupt("return", true);
|
|
139
|
-
case 29:
|
|
140
|
-
return _context.abrupt("return", false);
|
|
141
140
|
case 30:
|
|
141
|
+
return _context.abrupt("return", false);
|
|
142
|
+
case 31:
|
|
142
143
|
case "end":
|
|
143
144
|
return _context.stop();
|
|
144
145
|
}
|
|
@@ -759,7 +760,7 @@ function useDtl(dtlParam) {
|
|
|
759
760
|
} else if (item.startsWith('sort=')) {
|
|
760
761
|
// sort=createTime desc => sort.createTime=desc
|
|
761
762
|
return item.replace('sort=', 'sort.').replace(' ', '=');
|
|
762
|
-
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=')) {
|
|
763
|
+
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=') || item.startsWith('resCode=')) {
|
|
763
764
|
return item;
|
|
764
765
|
} else {
|
|
765
766
|
//其它查询条件,添加 search.
|
|
@@ -558,7 +558,7 @@ function useSingle(inParam) {
|
|
|
558
558
|
} else if (item.startsWith('sort=')) {
|
|
559
559
|
// sort=createTime desc => sort.createTime=desc
|
|
560
560
|
return item.replace('sort=', 'sort.').replace(' ', '=');
|
|
561
|
-
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=')) {
|
|
561
|
+
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=') || item.startsWith('resCode=')) {
|
|
562
562
|
return item;
|
|
563
563
|
} else {
|
|
564
564
|
//其它查询条件,添加 search.
|
|
@@ -124,10 +124,11 @@ function useDtl(dtlParam) {
|
|
|
124
124
|
return _context.abrupt("return", false);
|
|
125
125
|
case 23:
|
|
126
126
|
if (!((result === null || result === void 0 ? void 0 : (_result$flag = result.flag) === null || _result$flag === void 0 ? void 0 : _result$flag.retCode) === '0')) {
|
|
127
|
-
_context.next =
|
|
127
|
+
_context.next = 30;
|
|
128
128
|
break;
|
|
129
129
|
}
|
|
130
130
|
showSuccess(result.flag.retMsg || '操作成功');
|
|
131
|
+
Object.assign(masterObject, values);
|
|
131
132
|
if (result.data) {
|
|
132
133
|
Object.assign(masterObject, result.data);
|
|
133
134
|
}
|
|
@@ -136,9 +137,9 @@ function useDtl(dtlParam) {
|
|
|
136
137
|
}
|
|
137
138
|
setEditItem({});
|
|
138
139
|
return _context.abrupt("return", true);
|
|
139
|
-
case 29:
|
|
140
|
-
return _context.abrupt("return", false);
|
|
141
140
|
case 30:
|
|
141
|
+
return _context.abrupt("return", false);
|
|
142
|
+
case 31:
|
|
142
143
|
case "end":
|
|
143
144
|
return _context.stop();
|
|
144
145
|
}
|
|
@@ -759,7 +760,7 @@ function useDtl(dtlParam) {
|
|
|
759
760
|
} else if (item.startsWith('sort=')) {
|
|
760
761
|
// sort=createTime desc => sort.createTime=desc
|
|
761
762
|
return item.replace('sort=', 'sort.').replace(' ', '=');
|
|
762
|
-
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=')) {
|
|
763
|
+
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=') || item.startsWith('resCode=')) {
|
|
763
764
|
return item;
|
|
764
765
|
} else {
|
|
765
766
|
//其它查询条件,添加 search.
|
|
@@ -558,7 +558,7 @@ function useSingle(inParam) {
|
|
|
558
558
|
} else if (item.startsWith('sort=')) {
|
|
559
559
|
// sort=createTime desc => sort.createTime=desc
|
|
560
560
|
return item.replace('sort=', 'sort.').replace(' ', '=');
|
|
561
|
-
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=')) {
|
|
561
|
+
} else if (item.startsWith('ifPage=') || item.startsWith('ifHistory=') || item.startsWith('resCode=')) {
|
|
562
562
|
return item;
|
|
563
563
|
} else {
|
|
564
564
|
//其它查询条件,添加 search.
|