1
0
mirror of synced 2025-12-16 18:28:03 +08:00

搜素条件添加从外部传入参数

This commit is contained in:
qianlishi
2025-01-13 20:01:49 +08:00
parent da37c47b07
commit 8c8c287842
2 changed files with 7 additions and 2 deletions

View File

@@ -186,7 +186,7 @@
watch(() => unref(getApiOptions)?.queryApi, watch(() => unref(getApiOptions)?.queryApi,
() => { () => {
getBindValue.value?.autoLoad && toQuery() unref(getTableOptions)?.autoLoad && toQuery()
}) })
// 获取查询参数 // 获取查询参数

View File

@@ -22,7 +22,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue' import { onMounted, ref } from 'vue'
import { JsqCrud, useCrud } from '@/components/Base/Jsq-crud'; import { JsqCrud, useCrud } from '@/components/Base/Jsq-crud';
import { getFormSchemas, getTableButtons, getDialogRecordingSchemas, getTableColumns } from './utils/schemas'; import { getFormSchemas, getTableButtons, getDialogRecordingSchemas, getTableColumns } from './utils/schemas';
import { toGetPageList, toAddApi, toUpdateApi, toDeleteApi, toGetDataDetailApi } from '@/api/system/fileManage' import { toGetPageList, toAddApi, toUpdateApi, toDeleteApi, toGetDataDetailApi } from '@/api/system/fileManage'
@@ -97,6 +97,7 @@
schemas: getDialogRecordingSchemas() schemas: getDialogRecordingSchemas()
}, },
tableOptions: { tableOptions: {
autoLoad: false,
// navie table配置 // navie table配置
columns: columns, // 表格配置 columns: columns, // 表格配置
}, },
@@ -108,6 +109,10 @@
getDataByIdApi: toGetDataDetailApi // 查询详情页 getDataByIdApi: toGetDataDetailApi // 查询详情页
} }
}); });
onMounted(() => {
toQuery({ 'create_time': 'DESC' })
})
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>