diff --git a/src/views/task-management/all-work-order/index.vue b/src/views/task-management/all-work-order/index.vue index a906a32..d0dc3a6 100644 --- a/src/views/task-management/all-work-order/index.vue +++ b/src/views/task-management/all-work-order/index.vue @@ -7,12 +7,17 @@ const router = useRouter() const tableIns = ref() +//todo 外部模拟数据, 接口一出来, 直接在下方 tableConfig 的api处填写就行 const mockData=ref([ { workOrderNumber:1211, + state:0, + callState:0 }, { workOrderNumber:232, + state:1, + callState:1 }, ]) const auths = reactive({ @@ -44,6 +49,32 @@ const tableConfig = reactive({ label: '工单号', align: 'center' }, + { + prop: 'state', + label: '工单状态', + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } + }, + { + prop: 'callState', + label: '电话拨打状态', + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.callState !== null) { + return () + } else { + return '--' + } + } + }, { prop: 'oper', label: '操作',