Merge pull request 'feat : 工单状态及电话拨打状态示例' (#10) from dj into master
Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/10
This commit is contained in:
@@ -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 (<Tag dictType={'work_order_status'} value={row.state}/>)
|
||||
} else {
|
||||
return '--'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'callState',
|
||||
label: '电话拨打状态',
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => {
|
||||
if (row.callState !== null) {
|
||||
return (<Tag dictType={'call_status'} value={row.callState}/>)
|
||||
} else {
|
||||
return '--'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'oper',
|
||||
label: '操作',
|
||||
|
||||
Reference in New Issue
Block a user