|
@@ -28,10 +28,11 @@
|
|
|
<Search @clear="clear" @search="search" />
|
|
|
<el-button
|
|
|
class="button-sqaure"
|
|
|
- :icon="Download"
|
|
|
color="#ac014d"
|
|
|
- @click="downloadHandler"
|
|
|
- />
|
|
|
+ @click="exportHandler"
|
|
|
+ >
|
|
|
+ <i class="icon-export" />
|
|
|
+ </el-button>
|
|
|
<ColumnSet
|
|
|
class="button-sqaure"
|
|
|
:table-columns="tableColumns"
|
|
@@ -96,7 +97,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { Download } from '@element-plus/icons-vue'
|
|
|
import Search from '@/components/search/index.vue'
|
|
|
import Steps from '@/components/steps/index.vue'
|
|
|
import ColumnSet from '@/components/ColumnSet/index.vue'
|
|
@@ -262,7 +262,7 @@ const clear = () => {}
|
|
|
|
|
|
const tableRef = ref<InstanceType<typeof SimpleTable> | null>(null)
|
|
|
const { exportToExcel } = useTableExport()
|
|
|
-const downloadHandler = () => {
|
|
|
+const exportHandler = () => {
|
|
|
const table = tableRef.value!.table!
|
|
|
exportToExcel({ table })
|
|
|
}
|
|
@@ -310,7 +310,7 @@ const { cellClickHandler } = useTableCellClick(`${props.name}Goods`)
|
|
|
color: #519f6b;
|
|
|
}
|
|
|
.el-button {
|
|
|
- background-color: #d5327b;
|
|
|
+ // background-color: #d5327b;
|
|
|
border: none;
|
|
|
}
|
|
|
.button-sqaure {
|
|
@@ -320,7 +320,7 @@ const { cellClickHandler } = useTableCellClick(`${props.name}Goods`)
|
|
|
font-size: 16px;
|
|
|
margin-left: 24px;
|
|
|
&:first-of-type {
|
|
|
- margin-left: 35px;
|
|
|
+ margin-left: 19px;
|
|
|
}
|
|
|
}
|
|
|
}
|