Commit acf96b7f by yangzhi

fix:工单样式修改

parent 3415c1bc

1007 Bytes | W: | H:

594 Bytes | W: | H:

src/assets/work/complete.png
src/assets/work/complete.png
src/assets/work/complete.png
src/assets/work/complete.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -1224,7 +1224,7 @@ export default { ...@@ -1224,7 +1224,7 @@ export default {
{ {
label: '操作', label: '操作',
fixed: 'right', fixed: 'right',
width: 120, width: this.columnWidth(),
align: 'center', align: 'center',
render: item => ( render: item => (
<span> <span>
...@@ -1307,7 +1307,7 @@ export default { ...@@ -1307,7 +1307,7 @@ export default {
</span> </span>
)} )}
{item.orderStatus === 'IN_PROGRESS' && ( {item.orderStatus === 'IN_PROGRESS' && (
<span title="处理完成" class="icon-view icon-tools-view"> <span title="处理完成" class="icon-view">
<img <img
width="24" width="24"
height="24" height="24"
...@@ -1368,6 +1368,22 @@ export default { ...@@ -1368,6 +1368,22 @@ export default {
}, },
}, },
methods: { methods: {
columnWidth() {
if (this.statusCode === 'IN_PROGRESS') {
return '160'
} else if (this.statusCode === 'ARCHIVE') {
return '70'
} else if (
this.statusCode === 'PRE_HANDLING' ||
this.statusCode === 'PAUSEING' ||
this.statusCode === 'ACCEPTANCEING' ||
this.statusCode === 'CLOSED'
) {
return '90'
} else {
return '120'
}
},
// 排序 // 排序
sortChange(column) { sortChange(column) {
if (column.order === 'asc') { if (column.order === 'asc') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment