• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

表格中是否显示、显示状态变更


Recommended Posts

1.按钮是否显示

埃尔-表格-列label=' Operation ' width=' 90 ' align=' center ' fixed=' right

模板槽-范围="范围"

El-button type=' text ' size=' small '

v-if='scope.row.user!='在线存款' @click='detail()'

细节/el按钮

/模板

/El-表格-列

按钮中控制显示判断是否显示

2.三目运算

El-table-column prop=' Status ' label=' Status ' width=' 150 ' align=' center

模板槽-范围="范围"

{{scope.row.status==1?成功: scope.row.status==2?

批准:范围。划。状态==3?已取消":"} }

/模板

/El-表格-列

3.根据状态不同,显示状态不同

当状态为成功,重试按钮置灰

效果:

作者:指尖架构141319

链接:https://www。金淑。com/p/6 ed 7 c 6d 100 a 7

来源:简书

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处100 .10qtml5czy5tv5200.png

埃尔-表格-列标签='操作最小宽度='90 '对齐='居中'固定='向右'

模板槽-范围="范围"

El-button type=' text ' v-if=' scope。划。记录状态==1 ' disabled=' true ' size=' small ' @ click=' retry(作用域。行)'重试/el-button

El-button type=' text ' v-if=' scope。划。记录状态!=1' size='small '重试/el-button

El-button type=' text ' size=' small ' @ click=' detail(scope。行)'详情/el-button

/模板

/El-表格-列

Link to comment
Share on other sites