1
0
mirror of synced 2025-11-06 04:20:54 +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,
() => {
getBindValue.value?.autoLoad && toQuery()
unref(getTableOptions)?.autoLoad && toQuery()
})
// 获取查询参数

View File

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