去掉 tag 动画

START
鹿和sa0ChunLuyu 2 years ago
parent d35aeefad9
commit 60b8aa93bf

@ -256,7 +256,7 @@ onMounted(() => {
<el-table-column property="remark" label="备注"/>
<el-table-column label="状态" width="120">
<template #default="scope">
<el-tag :type="Number(scope.row.status) === 1 ? 'success' : 'warning'">
<el-tag disable-transitions :type="Number(scope.row.status) === 1 ? 'success' : 'warning'">
{{ Number(scope.row.status) === 1 ? '可用' : '停用' }}
</el-tag>
</template>

@ -413,7 +413,7 @@ const AdminResetPassword = async () => {
</el-table-column>
<el-table-column label="权限组" width="300">
<template #default="scope">
<el-tag :type="Number(scope.row.admin_auth_group) === -1 ? 'warning' : 'success'">
<el-tag disable-transitions :type="Number(scope.row.admin_auth_group) === -1 ? 'warning' : 'success'">
<span v-if="Number(scope.row.admin_auth_group) === -1"></span>
<span v-else-if="!scope.row.admin_auth_group_name">未分配权限组</span>
<span v-else>{{ scope.row.admin_auth_group_name }}</span>
@ -422,14 +422,14 @@ const AdminResetPassword = async () => {
</el-table-column>
<el-table-column label="密码状态" width="120">
<template #default="scope">
<el-tag :type="Number(scope.row.initial_password) === 1 ? 'warning' : 'success'">
<el-tag disable-transitions :type="Number(scope.row.initial_password) === 1 ? 'warning' : 'success'">
{{ Number(scope.row.initial_password) === 1 ? '未修改' : '已修改' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="状态" width="120">
<template #default="scope">
<el-tag :type="Number(scope.row.status) === 1 ? 'success' : 'warning'">
<el-tag disable-transitions :type="Number(scope.row.status) === 1 ? 'success' : 'warning'">
{{ Number(scope.row.status) === 1 ? '可用' : '停用' }}
</el-tag>
</template>

@ -451,19 +451,19 @@ onMounted(() => {
<el-table-column label="名称" prop="name"/>
<el-table-column label="类型" width="120">
<template #default="scope">
<el-tag type="success">{{ type_arr[scope.row.type - 1] }}</el-tag>
<el-tag disable-transitions type="success">{{ type_arr[scope.row.type - 1] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="归属类型" width="120">
<template #default="scope">
<el-tag v-if="scope.row.client === 0"></el-tag>
<el-tag v-else-if="scope.row.client === 1" type="warning">后台</el-tag>
<el-tag disable-transitions v-if="scope.row.client === 0"></el-tag>
<el-tag disable-transitions v-else-if="scope.row.client === 1" type="warning">后台</el-tag>
</template>
</el-table-column>
<el-table-column label="登录类型" width="120">
<template #default="scope">
<el-tag v-if="scope.row.login === 1" type="warning"></el-tag>
<el-tag v-else-if="scope.row.login === 2" type="success">随时获取</el-tag>
<el-tag disable-transitions v-if="scope.row.login === 1" type="warning"></el-tag>
<el-tag disable-transitions v-else-if="scope.row.login === 2" type="success">随时获取</el-tag>
</template>
</el-table-column>
<el-table-column label="备注" prop="remark"/>

@ -174,9 +174,9 @@ const txtShowClick = async (data) => {
<el-tag disable-transitions w-full type="info">类型</el-tag>
</div>
<div ml-2>
<el-tag v-if="scope.row.method === 'GET'" type="success">GET</el-tag>
<el-tag v-else-if="scope.row.method === 'POST'">POST</el-tag>
<el-tag v-else type="warning">{{ scope.row.method }}</el-tag>
<el-tag disable-transitions v-if="scope.row.method === 'GET'" type="success">GET</el-tag>
<el-tag disable-transitions v-else-if="scope.row.method === 'POST'">POST</el-tag>
<el-tag disable-transitions v-else type="warning">{{ scope.row.method }}</el-tag>
</div>
</div>
<div my-1 class="input_line_wrapper">
@ -209,7 +209,7 @@ const txtShowClick = async (data) => {
<el-tag disable-transitions w-full type="info">存储类型</el-tag>
</div>
<div ml-2>
<el-tag :type="scope.row.type === 1 ? '' : 'success'">{{
<el-tag disable-transitions :type="scope.row.type === 1 ? '' : 'success'">{{
scope.row.type === 1 ? '数据库' : '文件'
}}
</el-tag>
@ -220,7 +220,7 @@ const txtShowClick = async (data) => {
<el-tag disable-transitions w-full type="info">返回码</el-tag>
</div>
<div ml-2>
<el-tag :type="Number(scope.row.code) === 200 ? 'success' : 'warning'">
<el-tag disable-transitions :type="Number(scope.row.code) === 200 ? 'success' : 'warning'">
{{ !!scope.row.code ? scope.row.code : '未处理完成' }}
</el-tag>
</div>

Loading…
Cancel
Save