字典
This commit is contained in:
@@ -67,7 +67,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.$dict.load('integralCalcType', 'electionMethod').then(()=> {
|
||||
this.$dict.load('tfx_status', 'tfx_listType').then(()=> {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
@@ -76,9 +76,16 @@ export default {
|
||||
return [
|
||||
{slot: "accessUrl", align: "left"},
|
||||
{prop: "userName", label: "上传人", align: "center"},
|
||||
{prop: "type", label: "任务分类", align: "center",dict:"electionMethod"},
|
||||
{prop: "type", label: "任务分类", align: "center",dict:"tfx_listType"},
|
||||
{prop: "createTime", label: "上传时间", align: "center"},
|
||||
{prop: "status", label: "状态", align: "center"},
|
||||
{
|
||||
prop: "status",
|
||||
label: "状态",
|
||||
align: "center",
|
||||
render: (h, {row}) => {
|
||||
return h('span', {style: {color: this.dict.getColor('tfx_status', row.status)}}, this.dict.getLabel('tfx_status', row.status))
|
||||
},
|
||||
},
|
||||
{prop: "auditUserName", label: "处理人", align: "center"},
|
||||
{slot: "options"},
|
||||
]
|
||||
|
||||
@@ -67,9 +67,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.$dict.load('integralCalcType', 'electionMethod').then(()=> {
|
||||
this.getList()
|
||||
})
|
||||
this.getList()
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
|
||||
Reference in New Issue
Block a user