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

Loading…
Cancel
Save