Commit e824211d authored by Xuguangxing's avatar Xuguangxing

feat: 开放清除缓存按钮

parent 3583fc0c
...@@ -169,7 +169,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) { ...@@ -169,7 +169,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
{ {
key: 'shareCoverImage' key: 'shareCoverImage'
}, },
] ];
get propsSchema() { get propsSchema() {
return [...this.titleSchema, ...this.bottomSchema, ...this.floatSchema, ...this.otherProps]; return [...this.titleSchema, ...this.bottomSchema, ...this.floatSchema, ...this.otherProps];
} }
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div v-if="!hideAdd" class="toolBarStyle"> <div v-if="!hideAdd" class="toolBarStyle">
<h3>查询数据</h3> <h3>查询数据</h3>
<div> <div>
<Button type="warning" class="btnStyle" @click="$emit('clearCache')">清除缓存</Button>
<Button type="primary" class="btnStyle" @click="newEvent()">新增</Button> <Button type="primary" class="btnStyle" @click="newEvent()">新增</Button>
<slot></slot> <slot></slot>
</div> </div>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:columns="columns" :columns="columns"
:request="query" :request="query"
@newBtnClick="addPage" @newBtnClick="addPage"
@clearCache="refreshData"
> >
</QGTable> </QGTable>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment