From f073133b9f54f484681c788ca55b10048447833e Mon Sep 17 00:00:00 2001
From: 幻雨堂 <13281837894@163.com>
Date: 星期四, 22 二月 2024 10:45:24 +0800
Subject: [PATCH] 指标数据

---
 src/views/td/data/index.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/views/td/data/index.vue b/src/views/td/data/index.vue
index d765c37..2815c98 100644
--- a/src/views/td/data/index.vue
+++ b/src/views/td/data/index.vue
@@ -29,16 +29,16 @@
       <template #header>
         <el-row :gutter="10" class="mb8">
           <el-col :span="1.5">
-            <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:data:add']">鏂板</el-button>
+            <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['td:data:add']">鏂板</el-button>
           </el-col>
           <el-col :span="1.5">
-            <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['system:data:edit']">淇敼</el-button>
+            <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['td:data:edit']">淇敼</el-button>
           </el-col>
           <el-col :span="1.5">
-            <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['system:data:remove']">鍒犻櫎</el-button>
+            <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['td:data:remove']">鍒犻櫎</el-button>
           </el-col>
           <el-col :span="1.5">
-            <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['system:data:export']">瀵煎嚭</el-button>
+            <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['td:data:export']">瀵煎嚭</el-button>
           </el-col>
           <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
@@ -57,10 +57,10 @@
         <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
           <template #default="scope">
             <el-tooltip content="淇敼" placement="top">
-              <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:data:edit']"></el-button>
+              <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['td:data:edit']"></el-button>
             </el-tooltip>
             <el-tooltip content="鍒犻櫎" placement="top">
-              <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:data:remove']"></el-button>
+              <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['td:data:remove']"></el-button>
             </el-tooltip>
           </template>
         </el-table-column>
@@ -103,8 +103,8 @@
 </template>
 
 <script setup name="Data" lang="ts">
-import { listData, getData, delData, addData, updateData } from '@/api/system/data';
-import { DataVO, DataQuery, DataForm } from '@/api/system/data/types';
+import { listData, getData, delData, addData, updateData } from '@/api/td/data';
+import { DataVO, DataQuery, DataForm } from '@/api/td/data/types';
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 
@@ -245,7 +245,7 @@
 
 /** 瀵煎嚭鎸夐挳鎿嶄綔 */
 const handleExport = () => {
-  proxy?.download('system/data/export', {
+  proxy?.download('td/data/export', {
     ...queryParams.value
   }, `data_${new Date().getTime()}.xlsx`)
 }

--
Gitblit v1.8.0