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