fix : 优化工单列表样式

This commit is contained in:
2024-09-27 17:03:40 +08:00
parent f0c735e90d
commit 08b33132da
3 changed files with 17 additions and 7 deletions

View File

@@ -85,11 +85,14 @@ const searchConfig = reactive([
prop: 'createTime',
props: {
placeholder: '请选择',
type: 'datetime',
clearable: true,
checkStrictly: true
checkStrictly: true,
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
component: 'el-date-picker',
}, {
},
{
label: '处理时间',
prop: 'processedTime',
props: {
@@ -167,7 +170,14 @@ const tableConfig = reactive({
{
prop: 'operationUser',
label: '处理人',
align: 'center'
align: 'center',
currentRender: ({ row, index }) => {
if (row.operationUser) {
return row.operationUser
} else {
return '--'
}
}
},
{
@@ -211,7 +221,7 @@ const tableConfig = reactive({
let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' })
btn.push({ label: '关单', prem: auths.detail, func: () => handleClose(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'danger'})
return (
<div style={{ width: '100%' }}>
{

View File

@@ -212,7 +212,7 @@ const tableConfig = reactive({
let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' })
btn.push({ label: '关单', prem: auths.detail, func: () => handleClose(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'danger' })
return (
<div style={{ width: '100%' }}>
{

View File

@@ -202,7 +202,7 @@ const tableConfig = reactive({
let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' })
btn.push({ label: '关单', prem: auths.detail, func: () => handleClose(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'danger' })
return (
<div style={{ width: '100%' }}>
{