搜素条件添加从外部传入参数
This commit is contained in:
@@ -186,7 +186,7 @@
|
|||||||
|
|
||||||
watch(() => unref(getApiOptions)?.queryApi,
|
watch(() => unref(getApiOptions)?.queryApi,
|
||||||
() => {
|
() => {
|
||||||
getBindValue.value?.autoLoad && toQuery()
|
unref(getTableOptions)?.autoLoad && toQuery()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 获取查询参数
|
// 获取查询参数
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user