|
|
@ -3,26 +3,10 @@
|
|
|
|
<div class="filtrate-row">
|
|
|
|
<div class="filtrate-row">
|
|
|
|
<slot name="search"></slot>
|
|
|
|
<slot name="search"></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-list">
|
|
|
|
<div class="table-list">
|
|
|
|
<div class="table-pagination">
|
|
|
|
<div class="table-pagination">
|
|
|
|
<div class="table-operation">
|
|
|
|
<div class="table-operation">
|
|
|
|
<el-button
|
|
|
|
<slot name="operation"></slot>
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
v-show="options.add"
|
|
|
|
|
|
|
|
icon="Plus"
|
|
|
|
|
|
|
|
@click="clickAdd()"
|
|
|
|
|
|
|
|
>录入</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
v-show="options.export"
|
|
|
|
|
|
|
|
icon="Download"
|
|
|
|
|
|
|
|
@click="clickExport()"
|
|
|
|
|
|
|
|
>导出</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="table-el">
|
|
|
|
<div class="table-el">
|
|
|
|
<slot name="table"></slot>
|
|
|
|
<slot name="table"></slot>
|
|
|
@ -37,23 +21,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
type: Object,
|
|
|
|
|
|
|
|
default: {
|
|
|
|
|
|
|
|
add: true, //录入
|
|
|
|
|
|
|
|
export: true, //导出
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
const emits = defineEmits(["handlerAdd", "handlerExport"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const clickAdd = () => {
|
|
|
|
|
|
|
|
emits("handlerAdd");
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
const clickExport = () => {
|
|
|
|
|
|
|
|
emits("handlerExport");
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|