mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	refactor:vue3 export function
This commit is contained in:
		@@ -21,10 +21,6 @@ const { register, tableObject, methods } = useTable<TenantVO>({
 | 
			
		||||
})
 | 
			
		||||
const { getList, setSearchParams, delList, exportList } = methods
 | 
			
		||||
 | 
			
		||||
// 导出操作
 | 
			
		||||
const handleExport = async () => {
 | 
			
		||||
  await exportList('租户数据.xls')
 | 
			
		||||
}
 | 
			
		||||
// ========== 套餐 ==========
 | 
			
		||||
const tenantPackageId = ref() // 套餐
 | 
			
		||||
const tenantPackageOptions = ref<TenantPackageVO[]>([]) //套餐列表
 | 
			
		||||
@@ -129,7 +125,7 @@ onMounted(async () => {
 | 
			
		||||
        type="warning"
 | 
			
		||||
        v-hasPermi="['system:tenant:export']"
 | 
			
		||||
        :loading="tableObject.exportLoading"
 | 
			
		||||
        @click="handleExport"
 | 
			
		||||
        @click="exportList('租户数据.xls')"
 | 
			
		||||
      >
 | 
			
		||||
        <Icon icon="ep:download" class="mr-5px" /> {{ t('action.export') }}
 | 
			
		||||
      </el-button>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user