首页完善

This commit is contained in:
danshihao
2023-12-29 11:02:34 +08:00
parent f3ef847baf
commit 10a84f1501
3 changed files with 13 additions and 2 deletions
@@ -47,6 +47,8 @@ export default {
dataSource: [],
// 已选数据id
targetKeys: [],
// 打开弹框传入的ids
ids: [],
// 多语言
locale: {
itemUnit: this.$t('dashboard.quickEnter.itemUnit'),
@@ -66,6 +68,7 @@ export default {
// 清空之前的数据,然后重新请求
this.dataSource = []
this.targetKeys = ids || []
this.ids = ids
this.getMenuList()
},
// 获取菜单列表
@@ -91,6 +94,11 @@ export default {
this.$message.warning(this.$t('dashboard.quickEnter.maxSelectedNine'))
return
}
// 如果进来的值和提交的值一样不提示操作成功
if (this.ids.join(',') === this.targetKeys.join(',')) {
this.close()
return
}
this.loading = true
saveQuickEntryModuleList({
permissionIds: this.targetKeys.join(',')
@@ -61,7 +61,7 @@ const map = [
{ name: '海外标准', srcName: 'overseas-standards' },
{ name: '用户管理', srcName: 'user-center' },
{ name: '联络人管理', srcName: 'contact-management' },
{ name: '自定义比', srcName: 'custom-comparison' },
{ name: '自定义比', srcName: 'custom-comparison' },
{ name: '角色管理', srcName: 'role-center' },
{ name: '资料中心', srcName: 'resource-center' },
{ name: '车型项目库', srcName: 'vehicle-project-library' },
@@ -172,6 +172,8 @@ export default {
}
}
.plus-div {
// (总高度 - 内边距 - 标题 - 上下边距) / 3
height: calc((306px - 48px - 31px - 20px) / 3);
cursor: pointer;
border: 1px dashed @primary-color;
box-sizing: border-box;
+2 -1
View File
@@ -5,7 +5,7 @@
<p class="left-p"><i class="iconfont icon-rukou left-icon"></i>{{ $t('dashboard.todoTask.todoTask') }}</p>
<p class="right-p" @click="handleMore">{{ $t('dashboard.todoTask.more') }}<i class="iconfont icon-right"></i></p>
</div>
<div class="content-wrapper">
<div class="content-wrapper" v-if="dataSource.length > 0">
<div class="content-item" v-for="item in dataSource" :key="item.id" @click="handleToDetail(item)">
<a-tooltip placement="top">
<template slot="title">{{item.prcName}}</template>
@@ -13,6 +13,7 @@
</a-tooltip>
</div>
</div>
<a-list :data-source="[]" v-else></a-list>
</a-spin>
</a-card>
</template>