feat: 高级筛选阈值回显

pull/73/head
刘释隆 1 year ago
parent dab66f78ee
commit b0a67b9ac3

@ -92,14 +92,6 @@ onBeforeMount(async () => {
configStore.$subscribe(() => {
const config = configStore.getConfig
const customConfig = configStore.getCustomConfig
console.log("config", config);
console.log("customConfig", customConfig);
console.log("customObjRef.value", customObjRef.value);
console.log("customTempObjRef.value", customTempObjRef.value, );
console.log("getFilterConfig", configStore.getFilterConfig,);
console.log("isEqual(asideValue, configStore.getAsideValue)", isEqual(asideValue, configStore.getAsideValue), );
console.log("configStore的getAsideValue", configStore.getAsideValue, );
console.log( "getAsideValue", asideValue);
if((configFilterRef.value.length > 0 && isEqual(configFilterRef.value, configStore.getFilterConfig)) && customObjRef.value && isEqual(customObjRef.value, customTempObjRef.value)) {
return
}
@ -157,6 +149,7 @@ configStore.$subscribe(() => {
console.log("asideValue直接处理后的结果", asideValue);
console.log("customTempObjRef.value", customTempObjRef.value);
let tempobj = cloneDeep(asideValue);
console.log("tempObj", tempobj);
configStore.setAsideValue(tempobj);
}
// console.log("showKeys", showKeys);
@ -235,7 +228,9 @@ function updateComponent(key, e) {
console.log("tempAsideValue跟新值", configStore.getAsideValue, asideValue);
// let tempAsideValue = configStore.getAsideValue || asideValue;
let tempobj = cloneDeep(asideValue);
console.log(tempobj,'tempobj')
tempobj[key] = e;
console.log(tempobj, 'tempobj After')
customObjRef.value = tempobj;
// asideValue = Object.assign({}, asideValue, tempobj);
console.log("asideValue跟新值", tempobj);

@ -152,7 +152,7 @@ function unformatValue(searchfield: string, searchvalue: any) {
}
// 80,90
if (searchfield === "izsimilarity") return searchvalue.split(",");
// if (searchfield === "izsimilarity") return searchvalue.split(",");
return searchvalue;
}
@ -191,15 +191,15 @@ const logicOptions = ref([]);
const similarityOptions = [
{
label: "80%-90%",
value: [80, 90],
value: '80,90',
},
{
label: "95%-100%",
value: [95, 100],
value: '95,100',
},
{
label: "100%-100%",
value: [100, 100],
value: '100,100',
},
];
@ -255,7 +255,6 @@ watch(
function getOptions(key: string) {
if (key === "izsimilarity") return similarityOptions;
const getterName = `get${key}`;
const options = unref(dicStore[getterName]);
return options || [];
@ -277,7 +276,7 @@ function leaveHandler() {
function edit(editFilter: any) {
currentStatus.value = "edit";
console.log(editFilter,'editFilter')
const { searchname, ocrUsersearchchildList, id } = editFilter;
currentEditId = id;
formValue.name = searchname;

Loading…
Cancel
Save