|
|
@@ -82,7 +82,6 @@ import {
|
|
|
} from '@/api/asset'
|
|
|
import {
|
|
|
State,
|
|
|
- Access,
|
|
|
AssetType
|
|
|
} from '@/constant'
|
|
|
import {
|
|
|
@@ -133,7 +132,7 @@ export default {
|
|
|
type: 'invoke', render: [
|
|
|
{ label: '查看', on: this.onView },
|
|
|
{ label: '提交', render: this.canSubmit, on: this.onSubmit },
|
|
|
- { label: '删除', render: this.canDel, on: this.onDel }
|
|
|
+ { label: '删除', on: this.onDel }
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
@@ -177,9 +176,6 @@ export default {
|
|
|
canSubmit () {
|
|
|
return this.status === State.READY
|
|
|
},
|
|
|
- canDel () {
|
|
|
- return this.status === State.READY || this.status === State.REJECTED || this.accessSet.has(Access.DELETE_FORCE)
|
|
|
- },
|
|
|
to (type) {
|
|
|
if (this.type !== AssetType[type]) {
|
|
|
this.type = AssetType[type]
|