|
@ -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 { |
|
|