Merge pull request 'fix : 优化工单列表样式' (#113) from dd into master
Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/113
This commit is contained in:
@@ -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%' }}>
|
||||
{
|
||||
|
||||
@@ -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%' }}>
|
||||
{
|
||||
|
||||
@@ -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%' }}>
|
||||
{
|
||||
@@ -308,7 +308,7 @@ const handleDelete = async (row) => {
|
||||
console.log(info);
|
||||
if (info.code === 1000) {
|
||||
tableIns.value.refresh()
|
||||
ElMessage({
|
||||
ElMessage({
|
||||
message: '删除成功',
|
||||
type: 'success',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user