This commit is contained in:
liuye
2022-11-03 10:23:35 +08:00
parent 5f46e2f3d0
commit 73980d8dde
2 changed files with 11 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ export default {
} }
}, },
created () { created () {
this.$dict.load('integralCalcType', 'electionMethod').then(()=> { this.$dict.load('tfx_status', 'tfx_listType').then(()=> {
this.getList() this.getList()
}) })
}, },
@@ -76,9 +76,16 @@ export default {
return [ return [
{slot: "accessUrl", align: "left"}, {slot: "accessUrl", align: "left"},
{prop: "userName", label: "上传人", align: "center"}, {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: "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"}, {prop: "auditUserName", label: "处理人", align: "center"},
{slot: "options"}, {slot: "options"},
] ]

View File

@@ -67,9 +67,7 @@ export default {
} }
}, },
created () { created () {
this.$dict.load('integralCalcType', 'electionMethod').then(()=> { this.getList()
this.getList()
})
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),