🎨 优化字典管理
This commit is contained in:
parent
ed9632a5ea
commit
59ef6d2564
@ -22,7 +22,7 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-table :data="dataList">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||
<el-table-column label="字典编码" align="center" prop="dictCode" />
|
||||
<el-table-column label="字典标签" align="center" prop="dictLabel">
|
||||
<template #default="scope">
|
||||
@ -63,13 +63,11 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="样式属性" prop="cssClass">
|
||||
<!-- <el-input v-model="form.cssClass" placeholder="请输入样式属性" /> -->
|
||||
<el-select v-model="form.cssClass" clearable="">
|
||||
<el-option
|
||||
v-for="dict in cssClassOptions"
|
||||
:class="dict.value"
|
||||
:key="dict.value"
|
||||
:label="dict.label + '(' + dict.value + ')'"
|
||||
:value="dict.value"></el-option>
|
||||
<el-select v-model="form.cssClass" allow-create filterable clearable="">
|
||||
<el-option v-for="dict in cssClassOptions" :class="dict.value" :key="dict.value" :label="dict.label" :value="dict.value">
|
||||
<span style="float: left" :class="dict.value">{{ dict.label }}</span>
|
||||
<span style="float: right">{{ dict.value }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="显示排序" prop="dictSort">
|
||||
@ -77,11 +75,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="回显样式" prop="listClass">
|
||||
<el-select v-model="form.listClass">
|
||||
<el-option
|
||||
v-for="item in listClassOptions"
|
||||
:key="item.value"
|
||||
:label="item.label + '(' + item.value + ')'"
|
||||
:value="item.value"></el-option>
|
||||
<el-option v-for="item in listClassOptions" :key="item.value" :label="item.label + '(' + item.value + ')'" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
<el-table :data="typeList" v-loading="loading" border @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="字典编号" align="center" prop="dictId" width="100" sortable />
|
||||
<el-table-column label="字典类型" align="center" :show-overflow-tooltip="true">
|
||||
<el-table-column label="字典类型" :show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<el-link type="primary" @click="showDictData(scope.row)">{{ scope.row.dictType }}</el-link>
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user