From 9e5caf43d7059cd5b28703b138e95b7f4df94699 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 27 九月 2024 17:00:42 +0800
Subject: [PATCH] 首页图表
---
src/views/system/contract/contract/index.vue | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/views/system/contract/contract/index.vue b/src/views/system/contract/contract/index.vue
index 60df1bb..1d99865 100644
--- a/src/views/system/contract/contract/index.vue
+++ b/src/views/system/contract/contract/index.vue
@@ -31,24 +31,24 @@
plain
icon="el-icon-plus"
size="mini"
- v-hasPermi="['system:contract:import']"
+ v-hasPermi="['system:contract:add']"
@click="handleImport"
>鏂板</el-button
>
</el-col>
</el-row>
- <el-row v-loading="loading" :gutter="20">
+ <el-row v-if="contractList && contractList.length > 0" v-loading="loading" :gutter="20">
<el-col
- :span="8"
+ :span="6"
v-for="(item, index) in contractList"
:key="index"
style="margin-bottom: 10px"
>
<el-card :body-style="{ padding: '0px' }">
- <ImagePreview
+ <el-image
style="width: 100%; height: 187px"
fit="cover"
- :src="item.attachment"
+ :src="require('../../../../assets/images/ht.jpg')"
class="image"
/>
<div style="padding: 14px">
@@ -68,6 +68,7 @@
</el-card>
</el-col>
</el-row>
+ <el-empty v-else description="鏆傛棤鏁版嵁"></el-empty>
<!-- 鍚堝悓璇︽儏 -->
<el-dialog
@@ -79,13 +80,13 @@
<el-form label-position="left" inline class="table-expand">
<el-collapse v-model="activeNames">
<el-collapse-item
- v-for="name, index in ruleName"
+ v-for="(name, index) in ruleName"
:key="index"
:title="name"
>
<div
class="inline-input-container"
- v-for="item, index in ruleData"
+ v-for="(item, index) in ruleData"
:key="index"
>
<el-tooltip :content="
--
Gitblit v1.8.0