<span class="font_col" @click.stop >
<i class="state_img"><img src="@/public/image/Ts_state.png" alt="" :style="fontstyle(item.state)"></i>
<i class="icon1 icon2" :style="fontstyle(item.state)">{
{item.state}}</i>
</span>
先遍历数据获取状态 值 ,并赋值相应的文字
if(this.Tsheetlist[i].state == 0){
this.Tsheetlist[i].state = '1111'
}if(stateT == 1){
this.Tsheetlist[i].state = '2222'
}if(stateT == 3){
this.Tsheetlist[i].state = '333'
}if(stateT == 4){
this.Tsheetlist[i].state = '44'
}
添加监听钩子函数
computed: {
fontstyle() {
return (icontent) => {
if (icontent === "111"){
return { 'color&#