<div class="m__sub_content">
<el-table
:data="tableData"
height="100%"
size="mini"
style="width: 100%;"
>
<el-table-column
prop="name"
label=""
width="80"
>
</el-table-column>
<el-table-column
prop="address"
label=""
width="80"
>
</el-table-column>
<el-table-column
prop="address"
label=""
>
</el-table-column>
<el-table-column
prop="address"
label=""
>
<template slot-scope="scope">
<el-tag
size="mini"
:type="FormatStatus(scope.row.state).type"
> <i :class="FormatStatus(scope.row.state).icon"></i>{{ FormatStatus(scope.row.status).txt }}</el-tag>
</template>
</el-table-column>
<el-table-column
prop="address"
label=""
>
</el-table-column>
<el-table-column
prop="address"
label=""
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="data"
label=""
>
</el-table-column>
<el-table-column label="">
<template slot-scope="scope">
<!-- <el-button
size="mini"
@click="handleEdit(scope.$index, scope.row)">Edit</el-button> -->
<div
class="operate"
style="display:flex"
>
<i
v-show="isShowload(scope.row)"
class="iconfont icon-xiazai"
title=""
@click="downLoad(scope.row)"
></i>
<i
class="iconfont icon-bianji"
title=""
></i>
<i
class="iconfont icon-shanchu"
title=""
@click="deleteCurrentLine(scope.row)"
></i>
</div>
</template>
</el-table-column>
</el-table>
< hr >
I would like to ask if my table data depends on tableData,. The current business logic is to change the style of I that the front end will download when you click to download.
how do you operate it? Usually I use scope.row to get the current line when there is data in the backend.
but there is no corresponding data value for this I here. How to change-sharp-sharp-sharp problem description separately
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)