高级查询组件暂时去掉,引用删除
This commit is contained in:
parent
9f755a2308
commit
efb850693e
|
@ -33,9 +33,6 @@
|
||||||
<template #dargVerify="{ model, field }">
|
<template #dargVerify="{ model, field }">
|
||||||
<BasicDragVerify v-model:value="model[field]" />
|
<BasicDragVerify v-model:value="model[field]" />
|
||||||
</template>
|
</template>
|
||||||
<template #superQuery="{ model, field }">
|
|
||||||
<super-query :config="superQueryConfig" @search="(value)=>handleSuperQuery(value, model, field)"/>
|
|
||||||
</template>
|
|
||||||
</BasicForm>
|
</BasicForm>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -78,20 +75,6 @@
|
||||||
keyword.value = value;
|
keyword.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
const superQueryConfig = {
|
|
||||||
name:{ title: "名称", view: "text", type: "string", order: 1 },
|
|
||||||
birthday:{ title: "生日", view: "date", type: "string", order: 2 },
|
|
||||||
age:{ title: "年龄", view: "number", type: "number", order: 4 },
|
|
||||||
sex:{ title: "性别", view: "list", type: "string", dictCode: "sex", order: 5 },
|
|
||||||
bpmStatus:{ title: "流程状态", view: "list_multi", type: "string", dictCode: "bpm_status", order: 6 },
|
|
||||||
}
|
|
||||||
function handleSuperQuery(value, model, field){
|
|
||||||
if(value){
|
|
||||||
let str = decodeURI(value.superQueryParams)
|
|
||||||
console.log(str)
|
|
||||||
model[field] = str
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
schemas,
|
schemas,
|
||||||
|
@ -101,8 +84,6 @@
|
||||||
submitButtonOptions,
|
submitButtonOptions,
|
||||||
onSearch: useDebounceFn(onSearch, 300),
|
onSearch: useDebounceFn(onSearch, 300),
|
||||||
searchParams,
|
searchParams,
|
||||||
superQueryConfig,
|
|
||||||
handleSuperQuery,
|
|
||||||
handleReset: () => {
|
handleReset: () => {
|
||||||
keyword.value = '';
|
keyword.value = '';
|
||||||
},
|
},
|
||||||
|
|
|
@ -60,8 +60,6 @@
|
||||||
}}</a-button>
|
}}</a-button>
|
||||||
<a-button preIcon="ant-design:import-outlined" type="primary" @click="handleImport">弹窗导入</a-button>
|
<a-button preIcon="ant-design:import-outlined" type="primary" @click="handleImport">弹窗导入</a-button>
|
||||||
|
|
||||||
<super-query :config="superQueryConfig" @search="handleSuperQuery"/>
|
|
||||||
|
|
||||||
<a-dropdown v-if="checkedKeys.length > 0">
|
<a-dropdown v-if="checkedKeys.length > 0">
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu>
|
<a-menu>
|
||||||
|
@ -99,7 +97,6 @@
|
||||||
import { useGo } from '/@/hooks/web/usePage';
|
import { useGo } from '/@/hooks/web/usePage';
|
||||||
import { router } from '/@/router';
|
import { router } from '/@/router';
|
||||||
import { filterObj } from '/@/utils/common/compUtils';
|
import { filterObj } from '/@/utils/common/compUtils';
|
||||||
import SuperQuery from '/@/components/jeecg/super/superquery/SuperQuery.vue'
|
|
||||||
|
|
||||||
const go = useGo();
|
const go = useGo();
|
||||||
const checkedKeys = ref<Array<string | number>>([]);
|
const checkedKeys = ref<Array<string | number>>([]);
|
||||||
|
@ -266,17 +263,6 @@
|
||||||
}
|
}
|
||||||
//自定义查询----end---------
|
//自定义查询----end---------
|
||||||
|
|
||||||
const superQueryConfig = reactive({
|
|
||||||
name:{ title: "名称", view: "text", type: "string", order: 1 },
|
|
||||||
sex:{ title: "性别", view: "list", type: "string", dictCode:'sex', order: 2 },
|
|
||||||
});
|
|
||||||
|
|
||||||
function handleSuperQuery(params) {
|
|
||||||
Object.keys(params).map(k=>{
|
|
||||||
queryParam[k] = params[k]
|
|
||||||
});
|
|
||||||
searchQuery();
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.jeecg-basic-table-form-container {
|
.jeecg-basic-table-form-container {
|
||||||
|
|
Loading…
Reference in New Issue