|
@@ -1,17 +1,14 @@
|
|
|
<script lang="ts" setup>
|
|
|
/**
|
|
|
* @Name: Table.vue
|
|
|
- * @Description:
|
|
|
+ * @Description: 商品列表表格
|
|
|
* @Author: Cheney
|
|
|
*/
|
|
|
|
|
|
import { Download, Message, Money, Open, Operation, Refresh } from '@element-plus/icons-vue';
|
|
|
-import { usePagination } from '/@/utils/usePagination';
|
|
|
-import { useTableData } from '/@/utils/useTableData';
|
|
|
import * as api from '/@/views/product-list/api';
|
|
|
import PermissionButton from '/@/components/PermissionButton/index.vue';
|
|
|
import { productColumns } from '/@/views/product-list/ColumnsTsx';
|
|
|
-import { useResponse } from '/@/utils/useResponse';
|
|
|
import EditDrawer from '/@/views/product-list/component/EditDrawer.vue';
|
|
|
import NoticeDialog from '/@/views/product-list/component/NoticeDialog.vue';
|
|
|
import ImportButton from '/@/components/ImportButton/index.vue';
|
|
@@ -61,6 +58,8 @@ const rowData = ref({});
|
|
|
|
|
|
const dialogVisible = ref(false);
|
|
|
|
|
|
+const templateType = ref();
|
|
|
+
|
|
|
onBeforeMount(() => {
|
|
|
fetchList();
|
|
|
});
|
|
@@ -82,6 +81,7 @@ function handleRefresh() {
|
|
|
async function batchOpen() {
|
|
|
const ids = Array.from(checkedList.value);
|
|
|
await useResponse(api.updateShopDetail, { ids, status: 1 });
|
|
|
+ checkedList.value.clear();
|
|
|
await fetchList();
|
|
|
}
|
|
|
|
|
@@ -117,10 +117,8 @@ function handleNotice(row: any) {
|
|
|
rowData.value = row;
|
|
|
}
|
|
|
|
|
|
-const value = ref();
|
|
|
-
|
|
|
function downloadTemplate() {
|
|
|
- console.log('111=> ');
|
|
|
+ // console.log('111=> ');
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -135,13 +133,14 @@ function downloadTemplate() {
|
|
|
</PermissionButton>
|
|
|
<VerticalDivider class="px-1" style="margin-left: 7px;" />
|
|
|
<div class="custom-el-input">
|
|
|
- <el-select v-model="value" placeholder="Select" style="width: 190px">
|
|
|
+ <el-select v-model="templateType" placeholder="Select" style="width: 190px">
|
|
|
<template #prefix>
|
|
|
<div class="flex items-center">
|
|
|
- <el-button link style="margin-left: 0px; font-size: 14px" type="success"
|
|
|
+ <el-button bg size="small" style="margin-left: -7px; font-size: 14px; border-radius: 20px;" text
|
|
|
+ type="success"
|
|
|
@click.stop="downloadTemplate">下载
|
|
|
</el-button>
|
|
|
- <VerticalDivider />
|
|
|
+ <VerticalDivider style="margin-left: 7px" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<el-option label="商品通知模板" value="item1" />
|