diff --git a/src/views/iot/product/product/index.vue b/src/views/iot/product/product/index.vue
index 23395bc8..c02c785e 100644
--- a/src/views/iot/product/product/index.vue
+++ b/src/views/iot/product/product/index.vue
@@ -37,6 +37,15 @@
>
新增
+
+ 导出
+
@@ -44,17 +53,36 @@
-
-
- {{ scope.row.name }}
-
-
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
-
-
-
-
-
查看
+
+ 编辑
+
{
loading.value = true
@@ -184,6 +218,21 @@ const handleDelete = async (id: number) => {
} catch {}
}
+/** 导出按钮操作 */
+const handleExport = async () => {
+ try {
+ // 导出的二次确认
+ await message.exportConfirm()
+ // 发起导出
+ exportLoading.value = true
+ const data = await ProductApi.exportProduct(queryParams)
+ download.excel(data, '物联网产品.xls')
+ } catch {
+ } finally {
+ exportLoading.value = false
+ }
+}
+
/** 初始化 **/
onMounted(() => {
getList()