filter visible if selected, different from friends, hosp, and services
This commit is contained in:
@@ -609,7 +609,8 @@ export default defineComponent({
|
||||
table: 'regions',
|
||||
key: 'idReg',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'regions', costanti.FILTER_TUTTI),
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'regions_hosp', costanti.FILTER_TUTTI),
|
||||
keycookie: '_hosp',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: null,
|
||||
@@ -621,7 +622,8 @@ export default defineComponent({
|
||||
table: 'provinces',
|
||||
key: 'idProvince',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'provinces', costanti.FILTER_TUTTI),
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'provinces_hosp', costanti.FILTER_TUTTI),
|
||||
keycookie: '_hosp',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: getFilterProvinceByRegion,
|
||||
@@ -633,7 +635,8 @@ export default defineComponent({
|
||||
table: 'cities',
|
||||
key: 'idCity',
|
||||
type: costanti.FieldType.select_by_server,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'cities', costanti.FILTER_TUTTI),
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'cities_hosp', costanti.FILTER_TUTTI),
|
||||
keycookie: '_hosp',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
useinput: true,
|
||||
@@ -642,18 +645,6 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
tablesel: 'cities',
|
||||
},
|
||||
{
|
||||
label: 'Visiblità',
|
||||
table: 'pub_to_share',
|
||||
key: 'pub_to_share',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||
addall: false,
|
||||
arrvalue: [],
|
||||
useinput: true,
|
||||
filter: null,
|
||||
tablesel: 'pub_to_share',
|
||||
},
|
||||
{
|
||||
label: 'Tipologia',
|
||||
table: toolsext.TABTYPEHOSP,
|
||||
|
||||
@@ -560,7 +560,11 @@ export default defineComponent({
|
||||
|
||||
function searchval(newval: any, table: any) {
|
||||
console.log('REFRR searchval', newval, table)
|
||||
tools.setCookie(tools.COOK_SEARCH + table, newval)
|
||||
const myrecfilt = searchList.value.find((rec) => rec.table === table)
|
||||
let keycookie = tools.COOK_SEARCH + table
|
||||
if (myrecfilt && myrecfilt.keycookie)
|
||||
keycookie += myrecfilt.keycookie
|
||||
tools.setCookie(keycookie, newval)
|
||||
|
||||
if (table === toolsext.TABSKILLS) {
|
||||
const recSector = searchList.value.find((rec) => rec.table === 'sectors')
|
||||
@@ -909,7 +913,7 @@ export default defineComponent({
|
||||
}*/
|
||||
}
|
||||
// if ((false && nosearch && props.finder) || (props.finder_noNull && nosearch)) {
|
||||
if ((props.finder_noNull || (props.finder_noNullFilters && filtersearch3and.values.length === 0)) && nosearch) {
|
||||
if ((props.finder_noNull || (props.finder_noNullFilters && getNumFilterSelected() === 0)) && nosearch) {
|
||||
returnedData.value = []
|
||||
returnedCount = 0
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user