|  | @@ -13,6 +13,8 @@ import ImportButton from '/src/components/ImportButton/index.vue';
 | 
	
		
			
				|  |  |  import VerticalDivider from '/src/components/VerticalDivider/index.vue';
 | 
	
		
			
				|  |  |  import { productColumns } from '../ColumnsTsx';
 | 
	
		
			
				|  |  |  import DataTableSlot from '/@/views/product-manage/product-monitor/component/DataTableSlot.vue';
 | 
	
		
			
				|  |  | +import { deleteRow } from '../api';
 | 
	
		
			
				|  |  | +import { ElMessage } from 'element-plus';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  interface Parameter {
 | 
	
	
		
			
				|  | @@ -34,7 +36,7 @@ const { tableOptions, handlePageChange } = usePagination(fetchList);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const gridRef = ref();
 | 
	
		
			
				|  |  |  const gridOptions: any = reactive({
 | 
	
		
			
				|  |  | -  size: "mini",
 | 
	
		
			
				|  |  | +  size: 'mini',
 | 
	
		
			
				|  |  |    border: false,
 | 
	
		
			
				|  |  |    round: true,
 | 
	
		
			
				|  |  |    stripe: true,
 | 
	
	
		
			
				|  | @@ -78,7 +80,7 @@ const dialogVisible = ref(false);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const templateType = ref();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -onMounted( () => {
 | 
	
		
			
				|  |  | +onMounted(() => {
 | 
	
		
			
				|  |  |    fetchList();
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -145,9 +147,12 @@ function handleEdit(row: any) {
 | 
	
		
			
				|  |  |    rowData.value = row;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -function singleDelete(row: any) {
 | 
	
		
			
				|  |  | -  // dialogVisible.value = true;
 | 
	
		
			
				|  |  | -  rowData.value = row;
 | 
	
		
			
				|  |  | +async function singleDelete(row: any) {
 | 
	
		
			
				|  |  | +  const res = await useResponse(api.deleteRow, row);
 | 
	
		
			
				|  |  | +  if (res.code === 2000) {
 | 
	
		
			
				|  |  | +    ElMessage.success({ message: '删除成功', plain: true });
 | 
	
		
			
				|  |  | +    handleRefresh();
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  function downloadTemplate() {
 | 
	
	
		
			
				|  | @@ -159,9 +164,9 @@ defineExpose({ fetchList });
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  | -  <vxe-grid ref="gridRef" v-bind="gridOptions"
 | 
	
		
			
				|  |  | -            :auto-resize="true"
 | 
	
		
			
				|  |  | +  <vxe-grid ref="gridRef" :auto-resize="true"
 | 
	
		
			
				|  |  |              :sync-resize="true"
 | 
	
		
			
				|  |  | +            v-bind="gridOptions"
 | 
	
		
			
				|  |  |              @checkbox-change="selectChangeEvent"
 | 
	
		
			
				|  |  |              @checkbox-all="selectAllChangeEvent">
 | 
	
		
			
				|  |  |      <template #toolbar_buttons>
 |