{
prop: 'is_end',
label: '是否完成',
showOverflowTooltip: true,
minWidth: 100,
formatter: (row, column, cellValue) => {
//一般下拉获取数据
// return cellValue ? this.selectDictLabel(this.recordGoodsOptions, cellValue) : ''
//时间格式
//return this.$util.toDateString(cellValue * 1000)
//0比较特殊 所以不需要去用三元判断 否则0不会显示否 表格中会显示空
return this.selectDictLabel(this.isNotOptions, cellValue)
},
},
//任务是否完成
isNotOptions:[], //0否 1是
crated(){
// 任务是否完成 获取字典数据
this.getDicts('is_comp').then((res) => {
this.isNotOptions = res.data.data.data
})
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交