|
@@ -28,8 +28,8 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="颜色" width="100">
|
|
<el-table-column label="颜色" width="100">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
- <span v-if="row.color" :style="{ display: 'inline-block', width: '20px', height: '20px', backgroundColor: row.color, borderRadius: '4px', verticalAlign: 'middle', border: '1px solid #ddd' }"></span>
|
|
|
|
|
- <span style="margin-left: 6px; color: #999;">{{ row.color || '-' }}</span>
|
|
|
|
|
|
|
+ <span v-if="row.color" :style="{ display: 'inline-block', width: '20px', height: '20px', backgroundColor: row.color, borderRadius: '4px', verticalAlign: 'middle', border: '1px solid var(--adm-border-base)' }"></span>
|
|
|
|
|
+ <span style="margin-left: 6px; color: var(--adm-text-45);">{{ row.color || '-' }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="sortOrder" label="排序" width="70">
|
|
<el-table-column prop="sortOrder" label="排序" width="70">
|
|
@@ -39,9 +39,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" width="80">
|
|
<el-table-column label="状态" width="80">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="row.status === 1 || row.status === 'ACTIVE' ? 'success' : 'danger'" size="small">
|
|
|
|
|
- {{ row.status === 1 || row.status === 'ACTIVE' ? '启用' : '停用' }}
|
|
|
|
|
- </el-tag>
|
|
|
|
|
|
|
+ <StatusTag :type="row.status === 1 || row.status === 'ACTIVE' ? 'success' : 'danger'" size="small" :text="row.status === 1 || row.status === 'ACTIVE' ? '启用' : '停用'" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="180" fixed="right">
|
|
<el-table-column label="操作" width="180" fixed="right">
|
|
@@ -85,8 +83,8 @@
|
|
|
|
|
|
|
|
<el-dialog title="操作成功" :visible.sync="successDialogVisible" width="400px" :close-on-click-modal="false">
|
|
<el-dialog title="操作成功" :visible.sync="successDialogVisible" width="400px" :close-on-click-modal="false">
|
|
|
<div style="text-align:center;padding:10px 0">
|
|
<div style="text-align:center;padding:10px 0">
|
|
|
- <i class="el-icon-success" style="color:#67C23A;font-size:32px"></i>
|
|
|
|
|
- <p style="margin:12px 0 0;font-size:16px;color:#303133">保存成功</p>
|
|
|
|
|
|
|
+ <i class="el-icon-success" style="color:var(--adm-success);font-size:32px"></i>
|
|
|
|
|
+ <p style="margin:12px 0 0;font-size:16px;color:var(--adm-text-88)">保存成功</p>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
|
<el-button type="primary" @click="handleContinue">继续添加</el-button>
|
|
<el-button type="primary" @click="handleContinue">继续添加</el-button>
|
|
@@ -249,13 +247,4 @@ export default {
|
|
|
.article-category {
|
|
.article-category {
|
|
|
padding: 20px;
|
|
padding: 20px;
|
|
|
}
|
|
}
|
|
|
-.sort-header {
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- user-select: none;
|
|
|
|
|
- font-weight: 500;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
-}
|
|
|
|
|
-.sort-header:hover {
|
|
|
|
|
- color: #409eff;
|
|
|
|
|
-}
|
|
|
|
|
</style>
|
|
</style>
|