- posso fare upload dell'immagine del prodotto dalla lista
- corretto import dati
This commit is contained in:
@@ -374,6 +374,7 @@ export const costanti = {
|
||||
listimages: 1024,
|
||||
exact: 2048,
|
||||
image: 3000,
|
||||
image_and_filename: 3100,
|
||||
imgcard: 3500,
|
||||
select_by_server: 4000,
|
||||
multiselect_by_server: 4010,
|
||||
|
||||
@@ -101,6 +101,7 @@ function AddCol(params: IColGridTable) {
|
||||
minlength: (params.minlength === undefined) ? 0 : params.minlength,
|
||||
filter_field: (params.filter_field === undefined) ? '' : params.filter_field,
|
||||
isadvanced_field: (params.isadvanced_field === undefined) ? false : params.isadvanced_field,
|
||||
path: (params.path === undefined) ? '' : params.path,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2040,7 +2041,7 @@ export const colTableProductInfos = [
|
||||
AddCol({ name: 'name', label_trans: 'products.name' }),
|
||||
AddCol({ name: 'description', label_trans: 'products.description', fieldtype: costanti.FieldType.html }),
|
||||
AddCol({ name: 'icon', label_trans: 'products.icon' }),
|
||||
AddCol({ name: 'img', label_trans: 'products.img' }),
|
||||
AddCol({ name: 'img', label_trans: 'products.img', fieldtype: costanti.FieldType.image_and_filename, path: 'upload/products/' }),
|
||||
AddCol({
|
||||
name: 'department',
|
||||
label_trans: 'products.department',
|
||||
|
||||
@@ -8363,6 +8363,15 @@ export const tools = {
|
||||
return inputString.replace(/[^\d.,]/g, '').replace(',', '.');
|
||||
},
|
||||
|
||||
escapeQuotes(stringa: string) {
|
||||
return stringa.replace(/"/g, '\\"');
|
||||
},
|
||||
|
||||
replaceQuotesWithSingleQuotes(jsonString: string) {
|
||||
return jsonString.replace(/"/g, "'");
|
||||
},
|
||||
|
||||
|
||||
removeescape(inputString: string): string {
|
||||
return inputString.replace('\\', '').replace(/"/g, '')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user