el-tag标签属性type没有primary修正

This commit is contained in:
shijing 2023-11-24 10:33:13 +08:00
parent a79651d7b7
commit db3e181254
14 changed files with 44 additions and 44 deletions

View File

@ -104,7 +104,7 @@
methods: {
getTagType(type){
if(type==30){
return "primary"
return ""
}else if(type==40){
return "success"
}else if(type=='到岗'){

View File

@ -24,8 +24,8 @@
<li v-for="item in msgList" v-bind:key="item.id">
<div style="width: 100%; padding: 10px">
<div style="width: 35%; float: left">
<el-span style="color:red:float:left" v-for="items in item.event_.cates_" :key="items.id"
:label="items.name" :value="items.id">{{ items.name }}</el-span>
<span style="color:red:float:left" v-for="items in item.event_.cates_" :key="items.id"
:label="items.name" :value="items.id">{{ items.name }}</span>
</div>
<div style="width: 32%; float: left">
<p>{{ item.event_.create_time }}</p>
@ -69,7 +69,7 @@
</el-dropdown>
</div>
<el-dialog v-model="searchVisible" :width="700" title="搜索" custom-class="drawerBG" center destroy-on-close>
<el-dialog v-model="searchVisible" :width="700" title="搜索" class="drawerBG" center destroy-on-close>
<search @success="searchVisible = false"></search>
</el-dialog>
</template>

View File

@ -112,12 +112,12 @@
<el-table-column label="#" type="index" width="50"></el-table-column>
<el-table-column label="事件种类">
<template #default="scope">
<el-span
<span
v-for="item in scope.row.event_.cates_"
:key="item.id"
:label="item.name"
:value="item.id"
>{{ item.name }}</el-span
>{{ item.name }}</span
>
</template>
</el-table-column>
@ -134,14 +134,14 @@
<el-table-column label="是否可处理" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.can_handle"></el-span>
<el-span v-else></el-span>
<span v-if="scope.row.can_handle"></span>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="是否已读" prop="is_read">
<template #default="scope">
<el-span v-if="scope.row.is_read" color="green">已读</el-span>
<el-span v-else>未读</el-span>
<span v-if="scope.row.is_read" color="green">已读</span>
<span v-else>未读</span>
</template>
</el-table-column>

View File

@ -142,8 +142,8 @@
</el-table-column>
<el-table-column label="事件处理状态" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.handle_user == null">未处理</el-span>
<el-span v-else>已处理</el-span>
<span v-if="scope.row.handle_user == null">未处理</span>
<span v-else>已处理</span>
</template>
</el-table-column>
@ -160,14 +160,14 @@
<el-table-column label="是否可处理" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.can_handle"></el-span>
<el-span v-else></el-span>
<span v-if="scope.row.can_handle"></span>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="是否已读" prop="is_read">
<template #default="scope">
<el-span v-if="scope.row.is_read" color="green">已读</el-span>
<el-span v-else>未读</el-span>
<span v-if="scope.row.is_read" color="green">已读</span>
<span v-else>未读</span>
</template>
</el-table-column>

View File

@ -62,8 +62,8 @@
</el-table-column>
<el-table-column label="事件处理状态" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.handle_user==null">未处理</el-span>
<el-span v-else>已处理</el-span>
<span v-if="scope.row.handle_user==null">未处理</span>
<span v-else>已处理</span>
</template>
</el-table-column>
@ -81,14 +81,14 @@
<el-table-column label="是否可处理" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.can_handle"></el-span>
<el-span v-else></el-span>
<span v-if="scope.row.can_handle"></span>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="是否已读" prop="is_read">
<template #default="scope">
<el-span v-if="scope.row.is_read" color="green">已读</el-span>
<el-span v-else>未读</el-span>
<span v-if="scope.row.is_read" color="green">已读</span>
<span v-else>未读</span>
</template>
</el-table-column>

View File

@ -192,8 +192,8 @@
</el-table-column>
<el-table-column label="事件处理状态" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.handle_user == null">未处理</el-span>
<el-span v-else>已处理</el-span>
<span v-if="scope.row.handle_user == null">未处理</span>
<span v-else>已处理</span>
</template>
</el-table-column>
@ -210,14 +210,14 @@
<el-table-column label="是否可处理" prop="can_handle">
<template #default="scope">
<el-span v-if="scope.row.can_handle"></el-span>
<el-span v-else></el-span>
<span v-if="scope.row.can_handle"></span>
<span v-else></span>
</template>
</el-table-column>
<el-table-column label="是否已读" prop="is_read">
<template #default="scope">
<el-span v-if="scope.row.is_read" color="green">已读</el-span>
<el-span v-else>未读</el-span>
<span v-if="scope.row.is_read" color="green">已读</span>
<span v-else>未读</span>
</template>
</el-table-column>

View File

@ -11,8 +11,8 @@
<scTable ref="table" :apiObj="apiObj" :params="params" row-key="id" fit stripe hideDo :height="tableHeight">
<el-table-column label="事件种类">
<template #default="scope">
<el-span v-for="item in scope.row.cates_" :key="item.id" :label="item.name" :value="item.id">{{
item.name }}/</el-span>
<span v-for="item in scope.row.cates_" :key="item.id" :label="item.name" :value="item.id">{{
item.name }}/</span>
</template>
</el-table-column>
<el-table-column label="发生区域" prop="area_.name"></el-table-column>

View File

@ -39,7 +39,7 @@
<el-table-column label="人员类型" prop="employee_.type">
<template #default="scope">
<span v-if="scope.row.employee_ ">
<el-tag type="primary" v-if="scope.row.employee_.type!=''&&scope.row.employee_.type =='employee'">正式员工</el-tag>
<el-tag v-if="scope.row.employee_.type!=''&&scope.row.employee_.type =='employee'">正式员工</el-tag>
<el-tag type="success" v-if="scope.row.employee_.type!=''&&scope.row.employee_.type=='remployee'">相关方</el-tag>
<el-tag type="warning" v-if="scope.row.employee_.type!=''&&scope.row.employee_.type=='visitor'">访客</el-tag>
</span>

View File

@ -131,7 +131,7 @@
<el-table-column label="人员类型" prop="employee_.type">
<template #default="scope">
<span v-if="scope.row.employee_ ">
<el-tag type="primary" v-if="scope.row.employee_.type!=''&&scope.row.employee_.type =='employee'">正式员工</el-tag>
<el-tag v-if="scope.row.employee_.type!=''&&scope.row.employee_.type =='employee'">正式员工</el-tag>
<el-tag type="success" v-if="scope.row.employee_.type!=''&&scope.row.employee_.type=='remployee'">相关方</el-tag>
<el-tag type="warning" v-if="scope.row.employee_.type!=''&&scope.row.employee_.type=='visitor'">访客</el-tag>
</span>

View File

@ -23,7 +23,7 @@
</el-table-column>
<el-table-column label="物料类别" prop="type">
<template #default="scope">
<span><el-tag type="primary">{{ typeOptions[scope.row.type] }}</el-tag>
<span><el-tag>{{ typeOptions[scope.row.type] }}</el-tag>
<el-tag type="warning" v-if="scope.row.is_assemb"></el-tag>
<el-tag type="warning" v-if="scope.row.process_name">{{ scope.row.process_name }}</el-tag>
<el-tag type="warning" v-if="scope.row.is_hidden"></el-tag></span>

View File

@ -27,7 +27,7 @@
</el-table-column>
<el-table-column label="任务状态" prop="state">
<template #default="scope">
<el-tag v-if="scope.row.state!==40" type="primary">
<el-tag v-if="scope.row.state!==40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">
@ -91,7 +91,7 @@
</el-table-column>
<el-table-column label="任务状态" prop="state">
<template #default="scope">
<el-tag v-if="scope.row.state!==40" type="primary">
<el-tag v-if="scope.row.state!==40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">
@ -153,7 +153,7 @@
</el-table-column>
<el-table-column label="任务状态" prop="state">
<template #default="scope">
<el-tag v-if="scope.row.state!==40" type="primary">
<el-tag v-if="scope.row.state!==40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">
@ -299,7 +299,7 @@
</el-table-column>
<el-table-column label="状态" prop="state" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.state!==40" type="primary">
<el-tag v-if="scope.row.state!==40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">

View File

@ -21,12 +21,12 @@
</el-table-column>
<el-table-column label="操作人">
<template #default="scope">
<el-span v-if="scope.row.participant_">{{
<span v-if="scope.row.participant_">{{
scope.row.participant_.name
}}</el-span>
<el-span v-if="scope.row.participant_str">{{
}}</span>
<span v-if="scope.row.participant_str">{{
scope.row.participant_str
}}</el-span>
}}</span>
</template>
</el-table-column>
<el-table-column label="操作属性">

View File

@ -242,7 +242,7 @@
</el-table-column>
<el-table-column label="状态" prop="state">
<template #default="scope">
<el-tag v-if="scope.row.state !== 40" type="primary">
<el-tag v-if="scope.row.state !== 40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">
@ -284,7 +284,7 @@
</el-table-column>
<el-table-column label="状态" prop="state">
<template #default="scope">
<el-tag v-if="scope.row.state !== 40" type="primary">
<el-tag v-if="scope.row.state !== 40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">

View File

@ -43,7 +43,7 @@
</el-table-column>
<el-table-column label="状态" prop="state">
<template #default="scope">
<el-tag v-if="scope.row.state!==40" type="primary">
<el-tag v-if="scope.row.state!==40">
{{ state_[scope.row.state] }}
</el-tag>
<el-tag v-else type="success">