Merge pull request 'fix : 优化工单列表样式' (#113) from dd into master

Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/113
This commit is contained in:
2024-09-27 09:03:57 +00:00
3 changed files with 17 additions and 7 deletions

View File

@@ -85,11 +85,14 @@ const searchConfig = reactive([
prop: 'createTime', prop: 'createTime',
props: { props: {
placeholder: '请选择', placeholder: '请选择',
type: 'datetime',
clearable: true, clearable: true,
checkStrictly: true checkStrictly: true,
valueFormat: 'YYYY-MM-DD HH:mm:ss',
}, },
component: 'el-date-picker', component: 'el-date-picker',
}, { },
{
label: '处理时间', label: '处理时间',
prop: 'processedTime', prop: 'processedTime',
props: { props: {
@@ -167,7 +170,14 @@ const tableConfig = reactive({
{ {
prop: 'operationUser', prop: 'operationUser',
label: '处理人', 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 = [] let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' }) 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: () => 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 ( return (
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
{ {

View File

@@ -202,7 +202,7 @@ const tableConfig = reactive({
let btn = [] let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' }) 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: () => 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 ( return (
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
{ {

View File

@@ -202,7 +202,7 @@ const tableConfig = reactive({
let btn = [] let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' }) 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: () => 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 ( return (
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
{ {
@@ -308,7 +308,7 @@ const handleDelete = async (row) => {
console.log(info); console.log(info);
if (info.code === 1000) { if (info.code === 1000) {
tableIns.value.refresh() tableIns.value.refresh()
ElMessage({ ElMessage({
message: '删除成功', message: '删除成功',
type: 'success', type: 'success',
}) })