diff --git a/src/components/CaseCommon/caseList.vue b/src/components/CaseCommon/caseList.vue index d17fc63..9486ff1 100644 --- a/src/components/CaseCommon/caseList.vue +++ b/src/components/CaseCommon/caseList.vue @@ -50,6 +50,37 @@ } } }, + tableColumns: { + type: Array, + default() { + return [ + { + text: '案卷编号', + value: 'caseid' + }, + { + text: '节点名称', + value: 'caseStateName' + }, + { + text: '信息来源', + value: 'sourceName' + }, + { + text: '案卷类别', + value: 'eorcName' + }, + { + text: '所剩时间', + value: 'remainingTime' + }, + { + text: '问题描述', + value: 'description' + } + ] + } + }, total: { type: Number, default: 0 @@ -57,32 +88,6 @@ }, data() { return { - tableColumns: [ - { - text: '案卷编号', - value: 'caseid' - }, - { - text: '节点名称', - value: 'caseStateName' - }, - { - text: '信息来源', - value: 'sourceName' - }, - { - text: '案卷类别', - value: 'eorcName' - }, - { - text: '所剩时间', - value: 'remainingTime' - }, - { - text: '问题描述', - value: 'description' - } - ] } }, methods: {