fix(dict.vue):不能批量删除的问题
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
>
|
||||
<el-form-item>
|
||||
<el-button type="success" :icon="Plus" @click="handleAdd">新增</el-button>
|
||||
<el-button type="danger" :icon="Delete" :disabled="state.single" @click="handleDelete">删除
|
||||
<el-button type="danger" :icon="Delete" :disabled="state.multiple" @click="handleDelete">删除
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<el-col :span="12" :xs="24">
|
||||
<el-card class="box-card">
|
||||
<template #header>
|
||||
<svg-icon color="#000" icon-class="dict"/>
|
||||
<svg-icon color="#333" icon-class="education"/>
|
||||
字典列表
|
||||
</template>
|
||||
<!-- 字典列表子组件 -->
|
||||
@@ -15,11 +15,10 @@
|
||||
<el-col :span="12" :xs="24">
|
||||
<el-card class="box-card">
|
||||
<template #header>
|
||||
<svg-icon color="#333" v-if=" state.dictCode" icon-class="education" />
|
||||
<span v-if=" state.dictCode" style="margin:0 5px;">字典</span>
|
||||
<svg-icon color="#333" icon-class="dict"/>
|
||||
<span style="margin:0 5px;">字典数据项列表</span>
|
||||
<el-tag type="primary" v-if=" state.dictCode" size="small">{{ state.dictName }}</el-tag>
|
||||
<span v-if=" state.dictCode" style="margin-left: 5px">数据项</span>
|
||||
<el-tag type="warning" v-if=" !state.dictCode" size="small">未选择字典</el-tag>
|
||||
<el-tag type="warning" v-else size="small">未选择字典</el-tag>
|
||||
</template>
|
||||
<!-- 字典项组件 -->
|
||||
<dict-item :dictName="state.dictName" :dictCode='state.dictCode'/>
|
||||
@@ -42,10 +41,10 @@ const state = reactive({
|
||||
})
|
||||
|
||||
const handleDictClick = (dictRow: any) => {
|
||||
if(dictRow){
|
||||
if (dictRow) {
|
||||
state.dictName = dictRow.name
|
||||
state.dictCode = dictRow.code
|
||||
}else{
|
||||
} else {
|
||||
state.dictName = ''
|
||||
state.dictCode = ''
|
||||
}
|
||||
|
||||
@@ -4,19 +4,20 @@
|
||||
<el-col :span="10" :xs="24">
|
||||
<el-card class="box-card" shadow="always">
|
||||
<template #header>
|
||||
<svg-icon color="#000" icon-class="menu"/> 菜单列表
|
||||
<svg-icon color="#333" icon-class="menu"/> 菜单列表
|
||||
</template>
|
||||
<menu-table @menuClick="handleMenuClick"/>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="14" :xs="24">
|
||||
<el-card class="box-card" shadow="always">
|
||||
<div slot="header">
|
||||
<template #header>
|
||||
<svg-icon color="#333" icon-class="perm"/>
|
||||
<b v-if=" state.dictCode" style="margin-right: 5px">菜单</b>
|
||||
<el-tag type="success" v-if=" state.dictCode"><b>{{ state.dictName }}</b></el-tag>
|
||||
<b v-if=" state.dictCode" style="margin-left: 5px">数据权限</b>
|
||||
<el-tag type="warning" v-if=" !state.dictCode">未选择菜单</el-tag>
|
||||
</div>
|
||||
<b v-if=" state.dictCode" style="margin-left: 5px"></b>
|
||||
<el-tag type="warning" v-if=" !state.dictCode" size="small">权限列表</el-tag>
|
||||
</template>
|
||||
<perm-table :menuId="state.menuId" :menuName="state.menuName"/>
|
||||
</el-card>
|
||||
</el-col>
|
||||
|
||||
Reference in New Issue
Block a user