From e3f069b4fbb1ddcbc9f1c0832634200555789268 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期二, 22 三月 2022 17:42:53 +0800
Subject: [PATCH] 新增采集数据相关页面
---
src/cool/modules/base/views/menu.vue | 135 +++++++++++++++++++++++----------------------
1 files changed, 69 insertions(+), 66 deletions(-)
diff --git a/src/cool/modules/base/views/menu.vue b/src/cool/modules/base/views/menu.vue
index 6c72440..a760429 100644
--- a/src/cool/modules/base/views/menu.vue
+++ b/src/cool/modules/base/views/menu.vue
@@ -1,80 +1,82 @@
<template>
- <cl-crud :ref="setRefs('crud')" :on-refresh="onRefresh" @load="onLoad">
- <el-row type="flex">
- <cl-refresh-btn />
- <cl-add-btn />
- <cl-menu-quick @success="refresh()" v-if="isDev" />
- </el-row>
+ <cl-crud :ref="setRefs('crud')"
+ :on-refresh="onRefresh"
+ @load="onLoad">
+ <el-row type="flex">
+ <cl-refresh-btn />
+ <cl-add-btn />
+ <cl-menu-quick @success="refresh()"
+ v-if="isDev" />
+ </el-row>
- <el-row>
- <cl-table :ref="setRefs('table')" v-bind="table" @row-click="onRowClick">
- <!-- 鍚嶇О -->
- <template #column-name="{ scope }">
- <span>{{ scope.row.name }}</span>
- <el-tag
- v-if="!scope.row.isShow"
- size="mini"
- effect="dark"
- type="danger"
- style="margin-left: 10px"
- >闅愯棌</el-tag
- >
- </template>
+ <el-row>
+ <cl-table :ref="setRefs('table')"
+ v-bind="table"
+ @row-click="onRowClick">
+ <!-- 鍚嶇О -->
+ <template #column-name="{ scope }">
+ <span>{{ scope.row.name }}</span>
+ <el-tag v-if="!scope.row.isShow"
+ size="mini"
+ effect="dark"
+ type="danger"
+ style="margin-left: 10px">闅愯棌</el-tag>
+ </template>
- <!-- 鍥炬爣 -->
- <template #column-icon="{ scope }">
- <icon-svg :name="scope.row.icon" size="16px" style="margin-top: 5px" />
- </template>
+ <!-- 鍥炬爣 -->
+ <template #column-icon="{ scope }">
+ <icon-svg :name="scope.row.icon"
+ size="16px"
+ style="margin-top: 5px" />
+ </template>
- <!-- 鏉冮檺 -->
- <template #column-perms="{ scope }">
- <el-tag
- v-for="(item, index) in scope.row.permList"
- :key="index"
- size="mini"
- effect="dark"
- style="margin: 2px; letter-spacing: 0.5px"
- >{{ item }}</el-tag
- >
- </template>
+ <!-- 鏉冮檺 -->
+ <template #column-perms="{ scope }">
+ <el-tag v-for="(item, index) in scope.row.permList"
+ :key="index"
+ size="mini"
+ effect="dark"
+ style="margin: 2px; letter-spacing: 0.5px">{{ item }}</el-tag>
+ </template>
- <!-- 璺敱 -->
- <template #column-router="{ scope }">
- <el-link v-if="scope.row.type == 1" type="primary" :href="scope.row.router">{{
+ <!-- 璺敱 -->
+ <template #column-router="{ scope }">
+ <el-link v-if="scope.row.type == 1"
+ type="primary"
+ :href="scope.row.router">{{
scope.row.router
}}</el-link>
- <span v-else>{{ scope.row.router }}</span>
- </template>
+ <span v-else>{{ scope.row.router }}</span>
+ </template>
- <!-- 璺敱缂撳瓨 -->
- <template #column-keepAlive="{ scope }">
- <template v-if="scope.row.type == 1">
- <i v-if="scope.row.keepAlive" class="el-icon-check"></i>
- <i v-else class="el-icon-close"></i>
- </template>
- </template>
+ <!-- 璺敱缂撳瓨 -->
+ <template #column-keepAlive="{ scope }">
+ <template v-if="scope.row.type == 1">
+ <i v-if="scope.row.keepAlive"
+ class="el-icon-check"></i>
+ <i v-else
+ class="el-icon-close"></i>
+ </template>
+ </template>
- <!-- 琛屾柊澧� -->
- <template #slot-add="{ scope }">
- <el-button
- v-if="scope.row.type != 2"
- type="text"
- size="mini"
- @click="upsertAppend(scope.row)"
- >鏂板</el-button
- >
- </template>
- </cl-table>
- </el-row>
+ <!-- 琛屾柊澧� -->
+ <template #slot-add="{ scope }">
+ <el-button v-if="scope.row.type != 2"
+ type="text"
+ size="mini"
+ @click="upsertAppend(scope.row)">鏂板</el-button>
+ </template>
+ </cl-table>
+ </el-row>
- <el-row type="flex">
- <cl-flex1 />
- <cl-pagination :props="{ layout: 'total' }" />
- </el-row>
+ <el-row type="flex">
+ <cl-flex1 />
+ <cl-pagination :props="{ layout: 'total' }" />
+ </el-row>
- <!-- 缂栬緫 -->
- <cl-upsert v-bind="upsert" />
- </cl-crud>
+ <!-- 缂栬緫 -->
+ <cl-upsert v-bind="upsert" />
+ </cl-crud>
</template>
<script lang="ts">
@@ -139,6 +141,7 @@
// 鍒锋柊
function refresh() {
+ console.log("鍒锋柊鏂规硶鍐呮墦鍗�");
refs.value.crud.refresh();
}
--
Gitblit v1.9.1