Przeglądaj źródła

fix: 修复 el-button 的错误提示

yanglzh 1 miesiąc temu
rodzic
commit
74150e5078

+ 1 - 1
src/components/vue3cron/vue3cron.vue

@@ -1,7 +1,7 @@
 
 <template>
   <div class="vue3-cron-div">
-    <el-button class="language" type="text">
+    <el-button class="language" text type="primary">
     </el-button>
     <el-tabs type="border-card">
       <el-tab-pane>

+ 0 - 1
src/layout/navMenu/vertical.vue

@@ -62,7 +62,6 @@ export default defineComponent({
 		});
 		// 获取父级菜单数据
 		const menuLists = computed(() => {
-			console.log(props.menuList)
 			return <any>props.menuList;
 		});
 		// 获取布局配置信息

+ 1 - 1
src/views/apihub/component/edit.vue

@@ -14,7 +14,7 @@
         <span class="dialog-title">{{ formData.id ? '编辑API' : '新增API' }}</span>
         <div class="dialog-tools">
           <el-button
-            type="text"
+            text type="primary"
             @click="toggleFullscreen"
           >
             <el-icon :size="20">

+ 1 - 1
src/views/iot/device/category/index.vue

@@ -33,7 +33,7 @@
         <el-table-column :label="$t('message.tableI18nColumn.operation')" align="center" width="140" fixed="right">
           <template #default="scope">
             <!-- 新增 -->
-            <el-button size="small" type="text" @click="onOpenAdd(scope.row)" v-auth="'add'">{{ $t('message.tableI18nAction.add') }}</el-button>
+            <el-button size="small" text type="primary" @click="onOpenAdd(scope.row)" v-auth="'add'">{{ $t('message.tableI18nAction.add') }}</el-button>
             <!-- 修改 -->
             <el-button size="small" text type="warning" @click="onOpenEdit(scope.row)" v-auth="'edit'">{{ $t('message.tableI18nAction.edit') }}</el-button>
             <!-- 删除 -->

+ 1 - 1
src/views/iot/device/instance/component/chart.vue

@@ -5,7 +5,7 @@
 				<div class="dialog-header">
 					<h4 :id="titleId" :class="titleClass">{{ data.name + `(${data.key})` }}</h4>
 					<div class="dialog-header-actions">
-						<el-button type="text" @click="toggleFullscreen" class="fullscreen-btn">
+						<el-button text type="primary" @click="toggleFullscreen" class="fullscreen-btn">
 							<i class="iconfont" :class="!isFullscreen ? 'icon-fullscreen' : 'icon-tuichuquanping'"></i>
 						</el-button>
 					</div>

+ 2 - 2
src/views/iot/network/server/component/list.vue

@@ -16,12 +16,12 @@
     <el-table-column align="center" label="操作" width="200" v-col="'auth'">
       <template #default="scope">
 
-        <el-button @click="toDetail(scope.row.id)" size="small" type="text" v-auth="'detail'">详情</el-button>
+        <el-button @click="toDetail(scope.row.id)" size="small" text type="primary" v-auth="'detail'">详情</el-button>
         <el-button size="small" link key="info" type="info" v-auth="'edit'" @click="toEdit(scope.row.id)">编辑</el-button>
 
         <el-popover placement="bottom" :width="170" trigger="click">
           <template #reference>
-            <el-button size="small" type="text" class="more-btn" @click="isShowMore = !isShowMore" v-auth="'more'">更多
+            <el-button size="small" text type="primary" class="more-btn" @click="isShowMore = !isShowMore" v-auth="'more'">更多
               <i style="margin-left: 2px;" :class="isShowMore ? 'fa fa-angle-down' : 'fa fa-angle-up'"></i>
             </el-button>
           </template>

+ 2 - 2
src/views/iot/network/tunnel/component/list.vue

@@ -13,11 +13,11 @@
     </el-table-column>
     <el-table-column align="center" label="操作" v-col="'auth'" width="160">
       <template #default="scope">
-        <el-button @click="toDetail(scope.row.id)" size="small" v-auth="'detail'" type="text">详情</el-button>
+        <el-button @click="toDetail(scope.row.id)" size="small" v-auth="'detail'" text type="primary">详情</el-button>
         <el-button size="small" link key="info" type="info" v-auth="'edit'" @click="toEdit(scope.row.id)">编辑</el-button>
         <el-popover placement="bottom" :width="160" trigger="click">
           <template #reference>
-            <el-button size="small" type="text" v-auth="'more'" class="more-btn" @click="isShowMore = !isShowMore">更多
+            <el-button size="small" text type="primary" v-auth="'more'" class="more-btn" @click="isShowMore = !isShowMore">更多
               <i style="margin-left: 2px;" :class="isShowMore ? 'fa fa-angle-down' : 'fa fa-angle-up'"></i>
             </el-button>
           </template>

+ 1 - 1
src/views/iot/operate/remoteconf/index.vue

@@ -53,7 +53,7 @@
           <el-table-column prop="gmtCreate" label="版本更新时间"></el-table-column>
           <el-table-column label="操作" width="200">
             <template #default="scope">
-              <el-button size="small" type="text" @click="look(scope.row, scope.$index)">查看</el-button>
+              <el-button size="small" text type="primary" @click="look(scope.row, scope.$index)">查看</el-button>
             </template>
           </el-table-column>
         </el-table>

+ 3 - 3
src/views/modules/assess/component/addItem.vue

@@ -33,9 +33,9 @@
 				</el-table-column>
 				<el-table-column align="center" label="操作" width="160">
 					<template #default="scope">
-						<el-button size="small" type="text" @click="onOpenEditSign(scope.row)">编辑</el-button>
-						<el-button size="small" type="text" @click="onRowDel(scope.row)">删除</el-button>
-						<el-button size="small" type="text" @click="onRowDetail(scope.row)">任务接口</el-button>
+						<el-button size="small" text type="primary" @click="onOpenEditSign(scope.row)">编辑</el-button>
+						<el-button size="small" text type="primary" @click="onRowDel(scope.row)">删除</el-button>
+						<el-button size="small" text type="primary" @click="onRowDetail(scope.row)">任务接口</el-button>
 					</template>
 				</el-table-column>
 			</el-table>

+ 3 - 3
src/views/modules/assess/component/editItem.vue

@@ -27,9 +27,9 @@
 				</el-table-column>
 				<el-table-column align="center" label="操作" width="160">
 					<template #default="scope">
-						<el-button size="small" type="text" @click="onOpenEditSign(scope.row, scope.$index)">编辑</el-button>
-						<el-button size="small" type="text" @click="onRowDel(scope.row, scope.$index)">删除</el-button>
-						<el-button size="small" type="text" @click="onRowDetail(scope.row)">任务接口</el-button>
+						<el-button size="small" text type="primary" @click="onOpenEditSign(scope.row, scope.$index)">编辑</el-button>
+						<el-button size="small" text type="primary" @click="onRowDel(scope.row, scope.$index)">删除</el-button>
+						<el-button size="small" text type="primary" @click="onRowDetail(scope.row)">任务接口</el-button>
 					</template>
 				</el-table-column>
 			</el-table>

+ 3 - 3
src/views/modules/assess/index.vue

@@ -21,9 +21,9 @@
         <el-table-column align="left" prop="explain" v-col="'explain'" label="描述" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="操作" width="180" v-col="'handle'">
           <template #default="scope">
-            <el-button size="small" type="text" @click="onOpenEditItem(scope.row)" v-auth="'edit'">编辑</el-button>
-            <el-button size="small" type="text" @click="onRowDel(scope.row)" v-auth="'del'">删除</el-button>
-            <el-button size="small" type="text" @click="onOpenDetailItem(scope.row)" v-auth="'detail'">详细信息</el-button>
+            <el-button size="small" text type="primary" @click="onOpenEditItem(scope.row)" v-auth="'edit'">编辑</el-button>
+            <el-button size="small" text type="primary" @click="onRowDel(scope.row)" v-auth="'del'">删除</el-button>
+            <el-button size="small" text type="primary" @click="onOpenDetailItem(scope.row)" v-auth="'detail'">详细信息</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 1 - 1
src/views/system/manage/blacklist/index.vue

@@ -62,7 +62,7 @@
             <el-button size="small" text type="info" @click="onRowDel(scope.row)" v-auth="'del'">删除</el-button>
             <el-popover placement="bottom" :width="154" trigger="click">
               <template #reference>
-                <el-button size="small" type="text" class="more-btn" @click="isShowMore = !isShowMore" v-auth="'more'">更多
+                <el-button size="small" text type="primary" class="more-btn" @click="isShowMore = !isShowMore" v-auth="'more'">更多
                   <i style="margin-left: 2px;" :class="isShowMore ? 'fa fa-angle-down' : 'fa fa-angle-up'"></i>
                 </el-button>
               </template>

+ 1 - 1
src/views/system/manage/dept/index.vue

@@ -45,7 +45,7 @@
         <el-table-column prop="createdAt" label="创建时间" v-col="'createdAt'" align="center" min-width="180"></el-table-column>
         <el-table-column label="操作" align="center" width="140" v-col="'handle'">
           <template #default="scope">
-            <el-button size="small" type="text" @click="onOpenAddDept(scope.row)" v-auth="'add'">新增</el-button>
+            <el-button size="small" text type="primary" @click="onOpenAddDept(scope.row)" v-auth="'add'">新增</el-button>
             <el-button size="small" text type="warning" @click="onOpenEditDept(scope.row)" v-auth="'edit'">修改</el-button>
             <el-button size="small" text type="info" @click="onTabelRowDel(scope.row)" v-auth="'del'">删除</el-button>
           </template>

+ 1 - 1
src/views/system/manage/org/index.vue

@@ -48,7 +48,7 @@
         <el-table-column prop="createdAt" label="创建时间" align="center" min-width="180" v-col="'createdAt'"></el-table-column>
         <el-table-column label="操作" align="center" v-col="'handle'" width="140">
           <template #default="scope">
-            <el-button size="small" type="text" @click="onOpenAddDept(scope.row)" v-auth="'add'">新增</el-button>
+            <el-button size="small" text type="primary" @click="onOpenAddDept(scope.row)" v-auth="'add'">新增</el-button>
             <el-button size="small" text type="warning" @click="onOpenEditDept(scope.row)" v-auth="'edit'">修改</el-button>
             <el-button size="small" text type="info" @click="onTabelRowDel(scope.row)" v-auth="'del'">删除</el-button>
           </template>

+ 2 - 2
src/views/system/manage/role/index.vue

@@ -46,12 +46,12 @@
       <el-table-column prop="createdAt" v-col="'createdAt'" label="创建时间" width="170" align="center"></el-table-column>
       <el-table-column label="操作" width="220" v-col="'handle'" align="center" fixed="right">
         <template #default="scope">
-          <el-button size="small" type="text" @click="onOpenEditRole(scope.row)" v-auth="'edit'">修改</el-button>
+          <el-button size="small" text type="primary" @click="onOpenEditRole(scope.row)" v-auth="'edit'">修改</el-button>
           <el-button size="small" text type="info" @click="onRowDel(scope.row)" v-auth="'del'">删除</el-button>
           <el-button size="small" text type="success" @click="permission(scope.row)" v-auth="'role-premission'">角色权限</el-button>
           <el-button size="small" text type="info" @click="dataPermission(scope.row)" v-auth="'data-premission'">数据权限</el-button>
           <!-- <el-dropdown size="small">
-              <el-button type="text" size="small" style="margin-top:1px;margin-left:10px">更多
+              <el-button text type="primary" size="small" style="margin-top:1px;margin-left:10px">更多
                 <el-icon>
                   <ele-ArrowDown />
                 </el-icon>

+ 2 - 2
src/views/system/menu/index.vue

@@ -59,11 +59,11 @@
 			</el-table-column>
 			<el-table-column label="操作" v-col="'handle'" width="200" align="center" fixed="right">
 				<template #default="scope">
-					<el-button v-if="!scope.row.menuType" size="small" type="text" @click="onOpenAddMenu(scope.row)" v-auth="'add'">新增</el-button>
+					<el-button v-if="!scope.row.menuType" size="small" text type="primary" @click="onOpenAddMenu(scope.row)" v-auth="'add'">新增</el-button>
 					<el-button size="small" text type="warning" @click="onOpenEditMenu(scope.row)" v-auth="'edit'">修改</el-button>
 					<el-button size="small" text type="info" @click="onTabelRowDel(scope.row)" v-auth="'del'">删除</el-button>
 					<el-dropdown v-if="scope.row.menuType">
-						<el-button type="text" size="small" style="margin-top: 1px; margin-left: 10px" v-auth="'more'"
+						<el-button text type="primary" size="small" style="margin-top: 1px; margin-left: 10px" v-auth="'more'"
 							>更多
 							<el-icon>
 								<ele-ArrowDown />

+ 1 - 1
src/views/system/monitor/online/index.vue

@@ -33,7 +33,7 @@
         <el-table-column label="操作系统" v-col="'os'" show-overflow-tooltip align="center" prop="os" />
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-col="'handle'" width="100">
           <template #default="scope">
-            <el-button type="text" @click="handleForceLogout(scope.row)" v-auth="'out'">强退</el-button>
+            <el-button text type="primary" @click="handleForceLogout(scope.row)" v-auth="'out'">强退</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 1 - 1
src/views/system/monitor/operLog/index.vue

@@ -86,7 +86,7 @@
       <!-- <el-table-column label="操作信息" show-overflow-tooltip prop="msg" /> -->
       <el-table-column label="操作" v-col="'handle'" width="80" align="center" fixed="right">
         <template #default="scope">
-          <el-button size="small" type="text" @click="onOpenDetail(scope.row)" v-auth="'detail'">详细</el-button>
+          <el-button size="small" text type="primary" @click="onOpenDetail(scope.row)" v-auth="'detail'">详细</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 2 - 2
src/views/system/monitor/task-logs/index.vue

@@ -226,13 +226,13 @@ const { loading: detailLoading, doLoading: doDetailLoad } = useLoading(async (id
       </el-table-column>
       <el-table-column label="操作" align="center" v-col="'handle'" width="180">
         <template #default="scope">
-          <el-button type="text" size="small" v-auth="'detail'" @click="doDetailLoad(scope.row.id)" v-loading="detailLoading && detailForm.id === scope.row.id">
+          <el-button text type="primary" size="small" v-auth="'detail'" @click="doDetailLoad(scope.row.id)" v-loading="detailLoading && detailForm.id === scope.row.id">
             <el-icon>
               <ele-Eye />
             </el-icon>
             查看
           </el-button>
-          <el-button type="text" size="small" @click="delSingle(scope.row.id)" v-auth="'del'">删除</el-button>
+          <el-button text type="primary" size="small" @click="delSingle(scope.row.id)" v-auth="'del'">删除</el-button>
         </template>
       </el-table-column>
     </el-table>