zhangli 1 year ago
parent
commit
1efa420bf8
  1. 10
      src/components/Detail/src/Detail.vue

10
src/components/Detail/src/Detail.vue

@ -22,6 +22,7 @@
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
/> />
<Descriptions v-if="isBasic" :data="detailData" :schema="allSchemas.detailSchema" :columns="2" /> <Descriptions v-if="isBasic" :data="detailData" :schema="allSchemas.detailSchema" :columns="2" />
<Table <Table
@ -282,6 +283,7 @@ const { getList } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultFilterBtn(null), //
] ]
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
@ -350,6 +352,14 @@ const handleDelete = async (id: number) => {
await getList() await getList()
} catch { } } catch { }
} }
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
</script> </script>
<style lang="scss"> <style lang="scss">
.el-drawer__body { .el-drawer__body {

Loading…
Cancel
Save