Skip to content

Commit

Permalink
移除调式日志
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Jan 13, 2025
1 parent dc6f500 commit 7d322f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
const filterFormSchema = await getObjectFieldsFilterFormSchema(ctx);
const keywordsSearchBoxName = ctx.keywordsSearchBoxName || "__keywords";
const onSearchScript = `
console.log("=getObjectFieldsFilterBarSchema==onSearchScript===event.data====", event.data);
let isLookup = event.data.isLookup;
let __lookupField = event.data.__lookupField;
const scope = event.context.scoped;
Expand All @@ -122,7 +121,6 @@ export async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
}
__changedFilterFormValuesKey += lookupTag;
}
console.log("=getObjectFieldsFilterBarSchema==onSearchScript====__changedFilterFormValues===", changedFilterFormValues);
if(crud){
let crudData = crud.getData();
crudData[__changedFilterFormValuesKey] = changedFilterFormValues;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
}

const onChangeScript = `
console.log("==getObjectHeaderQuickSearchBox====onChangeScript=onChangeScript===", event.data);
const scope = event.context.scoped;
let crud = SteedosUI.getClosestAmisComponentByType(scope, "crud");
// let crudService = crud && SteedosUI.getClosestAmisComponentByType(crud.context, "service", {name: "service_object_table_crud"});
Expand Down Expand Up @@ -147,9 +146,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
}
__changedFilterFormValuesKey += lookupTag;
}
console.log("===getObjectHeaderQuickSearchBox====onSearchScript==__changedFilterFormValues====", JSON.stringify(event.data[__changedFilterFormValuesKey]));
setTimeout(function(){
console.log("==onChangeScript==onSearchScript====setTimeout===__changedFilterFormValues====", JSON.stringify(event.data[__changedFilterFormValuesKey]));
filterForm && filterForm.setValues(event.data[__changedFilterFormValuesKey]);
}, 500);
`;
Expand Down Expand Up @@ -457,7 +454,6 @@ export function getObjectFooterToolbar(mainObject, formFactor, options) {
export async function getObjectFilter(objectSchema, fields, options) {
const fieldsFilterBarSchema = await getObjectListHeaderFieldsFilterBar(objectSchema, null, options);
let onSubmitSuccScript = `
console.log("=getObjectFilter==onSubmitSuccScript===event.data====", event.data);
let isLookup = event.data.isLookup;
if(isLookup){
return;
Expand All @@ -480,7 +476,6 @@ export async function getObjectFilter(objectSchema, fields, options) {
// 使用event.data的话,并不能拿到本地存储中的过滤条件,所以需要从filterFormService中取。
let filterFormValues = filterFormService.getData();
filterFormValues = JSON.parse(JSON.stringify(filterFormValues)); //只取当层数据域中数据,去除__super层数据
console.log("=getObjectFilter==onSubmitSuccScript===filterFormValues====", filterFormValues);
let isFieldsFilterEmpty = SteedosUI.isFilterFormValuesEmpty(filterFormValues);
let crud = SteedosUI.getClosestAmisComponentByType(scope, "crud");
const changedFilterFormValues = _.pickBy(filterFormValues, function(n,k){return /^__searchable__/.test(k);});
Expand All @@ -494,7 +489,6 @@ export async function getObjectFilter(objectSchema, fields, options) {
}
__changedFilterFormValuesKey += lookupTag;
}
console.log("=getObjectFilter==onSubmitSuccScript===changedFilterFormValues====", changedFilterFormValues);
if(crud){
let crudData = crud.getData();
crudData[__changedFilterFormValuesKey] = changedFilterFormValues;
Expand All @@ -505,7 +499,6 @@ export async function getObjectFilter(objectSchema, fields, options) {
crudService && crudService.setData({isFieldsFilterEmpty});
`;
let onChangeScript = `
console.log("=getObjectFilter==onChangeScript===event.data====", event.data);
let isLookup = event.data.isLookup;
let __lookupField = event.data.__lookupField;
const scope = event.context.scoped;
Expand All @@ -529,7 +522,6 @@ export async function getObjectFilter(objectSchema, fields, options) {
}
__changedFilterFormValuesKey += lookupTag;
}
console.log("=getObjectFilter==onChangeScript===changedFilterFormValues====", changedFilterFormValues);
if(crud){
let crudData = crud.getData();
crudData[__changedFilterFormValuesKey] = changedFilterFormValues;
Expand Down

0 comments on commit 7d322f7

Please sign in to comment.