|  | @@ -6,15 +6,17 @@
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import { Delete, Download, InfoFilled, Plus, Refresh, Upload } from '@element-plus/icons-vue';
 | 
	
		
			
				|  |  | -import * as api from '../api';
 | 
	
		
			
				|  |  | -import PermissionButton from '/src/components/PermissionButton/index.vue';
 | 
	
		
			
				|  |  | -import EditDrawer from './EditDrawer.vue';
 | 
	
		
			
				|  |  | -import ImportButton from '/src/components/ImportButton/index.vue';
 | 
	
		
			
				|  |  | -import VerticalDivider from '/src/components/VerticalDivider/index.vue';
 | 
	
		
			
				|  |  | +import { ElMessage } from 'element-plus';
 | 
	
		
			
				|  |  | +import { usePagination } from '/@/utils/usePagination';
 | 
	
		
			
				|  |  | +import { useTableData } from '/@/utils/useTableData';
 | 
	
		
			
				|  |  |  import { productColumns } from '../ColumnsTsx';
 | 
	
		
			
				|  |  |  import DataTableSlot from '/@/views/product-manage/product-monitor/component/DataTableSlot.vue';
 | 
	
		
			
				|  |  | +import PermissionButton from '/src/components/PermissionButton/index.vue';
 | 
	
		
			
				|  |  | +import VerticalDivider from '/src/components/VerticalDivider/index.vue';
 | 
	
		
			
				|  |  | +import ImportButton from '/src/components/ImportButton/index.vue';
 | 
	
		
			
				|  |  | +import EditDrawer from './EditDrawer.vue';
 | 
	
		
			
				|  |  |  import CreateDialog from '/@/views/product-manage/product-monitor/component/createDialog.vue';
 | 
	
		
			
				|  |  | -import { ElMessage } from 'element-plus';
 | 
	
		
			
				|  |  | +import * as api from '../api';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  interface Parameter {
 | 
	
	
		
			
				|  | @@ -77,9 +79,7 @@ const editOpen = ref(false);
 | 
	
		
			
				|  |  |  const createOpen = ref(false);
 | 
	
		
			
				|  |  |  const rowData = ref({});
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const dialogVisible = ref(false);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -const templateType = ref();
 | 
	
		
			
				|  |  | +const templateType = ref('item1');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  onMounted(() => {
 | 
	
		
			
				|  |  |    fetchList();
 | 
	
	
		
			
				|  | @@ -107,7 +107,6 @@ async function fetchList() {
 | 
	
		
			
				|  |  |    await useTableData(api.getTableData, query, gridOptions);
 | 
	
		
			
				|  |  |    await gridRef.value.loadColumn(productColumns);
 | 
	
		
			
				|  |  |    gridOptions.showHeader = Boolean(gridOptions.data?.length);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  function handleRefresh() {
 | 
	
	
		
			
				|  | @@ -231,25 +230,20 @@ defineExpose({ fetchList });
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |            <template #actions="{ confirm, cancel }">
 | 
	
		
			
				|  |  |              <el-button size="small" @click="cancel">No!</el-button>
 | 
	
		
			
				|  |  | -            <el-button
 | 
	
		
			
				|  |  | -                size="small"
 | 
	
		
			
				|  |  | -                type="danger"
 | 
	
		
			
				|  |  | -                @click="confirm"
 | 
	
		
			
				|  |  | -            >
 | 
	
		
			
				|  |  | -              Yes?
 | 
	
		
			
				|  |  | -            </el-button>
 | 
	
		
			
				|  |  | +            <el-button size="small" type="danger" @click="confirm">Yes?</el-button>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-popconfirm>
 | 
	
		
			
				|  |  |          <PermissionButton :icon="Plus" plain round type="primary" @click="handleCreate">
 | 
	
		
			
				|  |  |            新 增
 | 
	
		
			
				|  |  |          </PermissionButton>
 | 
	
		
			
				|  |  |          <div class="custom-el-input">
 | 
	
		
			
				|  |  | -          <el-select v-model="templateType" placeholder="Select" style="width: 190px">
 | 
	
		
			
				|  |  | +          <el-select v-model="templateType" style="width: 190px">
 | 
	
		
			
				|  |  |              <template #prefix>
 | 
	
		
			
				|  |  |                <div class="flex items-center">
 | 
	
		
			
				|  |  | -                <el-button bg size="small" style="margin-left: -7px; font-size: 14px; border-radius: 29px;" text
 | 
	
		
			
				|  |  | -                           type="success"
 | 
	
		
			
				|  |  | -                           @click.stop="downloadTemplate">下载
 | 
	
		
			
				|  |  | +                <el-button size="small" type="success" text
 | 
	
		
			
				|  |  | +                           style="margin-left: -7px; font-size: 14px; border-radius: 29px;"
 | 
	
		
			
				|  |  | +                           @click.stop="downloadTemplate">
 | 
	
		
			
				|  |  | +                  下载
 | 
	
		
			
				|  |  |                  </el-button>
 | 
	
		
			
				|  |  |                  <VerticalDivider style="margin-left: 7px" />
 | 
	
		
			
				|  |  |                </div>
 |