@epie/bi-crud 2.0.49 → 2.0.50
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/lib/bi-crud.esm.js +10 -0
- package/lib/bi-crud.umd.js +10 -0
- package/package.json +1 -1
package/lib/bi-crud.esm.js
CHANGED
|
@@ -30540,6 +30540,14 @@ function useRender$1(ctx) {
|
|
|
30540
30540
|
};
|
|
30541
30541
|
}
|
|
30542
30542
|
|
|
30543
|
+
/** 从 crud.params 去掉行内筛选项,避免 refresh 用 Object.assign 合并时残留已清空字段 */
|
|
30544
|
+
function unsetInlineSearchParams(crud, items) {
|
|
30545
|
+
for (const item of items || []) {
|
|
30546
|
+
if (item?.prop) {
|
|
30547
|
+
unset(crud.params, item.prop);
|
|
30548
|
+
}
|
|
30549
|
+
}
|
|
30550
|
+
}
|
|
30543
30551
|
const epieInlineSearchProps = () => ({
|
|
30544
30552
|
data: {
|
|
30545
30553
|
type: Object,
|
|
@@ -30570,6 +30578,7 @@ var EpieInlineSearch = defineComponent({
|
|
|
30570
30578
|
const loading = ref(false);
|
|
30571
30579
|
// 重置数据
|
|
30572
30580
|
function reset() {
|
|
30581
|
+
unsetInlineSearchParams(crud, props.items || []);
|
|
30573
30582
|
for (const i in form) {
|
|
30574
30583
|
delete form[i];
|
|
30575
30584
|
}
|
|
@@ -30579,6 +30588,7 @@ var EpieInlineSearch = defineComponent({
|
|
|
30579
30588
|
// const form = Form.value?.getForm();
|
|
30580
30589
|
async function next(params) {
|
|
30581
30590
|
loading.value = true;
|
|
30591
|
+
unsetInlineSearchParams(crud, props.items || []);
|
|
30582
30592
|
await crud.refresh({
|
|
30583
30593
|
...form,
|
|
30584
30594
|
page: 1,
|
package/lib/bi-crud.umd.js
CHANGED
|
@@ -30543,6 +30543,14 @@
|
|
|
30543
30543
|
};
|
|
30544
30544
|
}
|
|
30545
30545
|
|
|
30546
|
+
/** 从 crud.params 去掉行内筛选项,避免 refresh 用 Object.assign 合并时残留已清空字段 */
|
|
30547
|
+
function unsetInlineSearchParams(crud, items) {
|
|
30548
|
+
for (const item of items || []) {
|
|
30549
|
+
if (item?.prop) {
|
|
30550
|
+
unset(crud.params, item.prop);
|
|
30551
|
+
}
|
|
30552
|
+
}
|
|
30553
|
+
}
|
|
30546
30554
|
const epieInlineSearchProps = () => ({
|
|
30547
30555
|
data: {
|
|
30548
30556
|
type: Object,
|
|
@@ -30573,6 +30581,7 @@
|
|
|
30573
30581
|
const loading = vue.ref(false);
|
|
30574
30582
|
// 重置数据
|
|
30575
30583
|
function reset() {
|
|
30584
|
+
unsetInlineSearchParams(crud, props.items || []);
|
|
30576
30585
|
for (const i in form) {
|
|
30577
30586
|
delete form[i];
|
|
30578
30587
|
}
|
|
@@ -30582,6 +30591,7 @@
|
|
|
30582
30591
|
// const form = Form.value?.getForm();
|
|
30583
30592
|
async function next(params) {
|
|
30584
30593
|
loading.value = true;
|
|
30594
|
+
unsetInlineSearchParams(crud, props.items || []);
|
|
30585
30595
|
await crud.refresh({
|
|
30586
30596
|
...form,
|
|
30587
30597
|
page: 1,
|