|
@@ -211,29 +211,35 @@ export default {
|
|
|
},
|
|
|
// 操作按钮
|
|
|
operation() {
|
|
|
- return this.operationBtn({
|
|
|
- edit: {
|
|
|
- conditions: ({ row, index, column }) => {
|
|
|
- return row.status == 'SAVE'
|
|
|
+ if (this.pageType == 'list') {
|
|
|
+ return this.operationBtn({
|
|
|
+ edit: {
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.status == 'SAVE'
|
|
|
+ },
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ this.openDetailForm(row, 1)
|
|
|
+ }
|
|
|
},
|
|
|
- click: ({ row, index, column }) => {
|
|
|
- this.openDetailForm(row, 1)
|
|
|
- }
|
|
|
- },
|
|
|
- detail: {
|
|
|
- click: ({ row, index, column }) => {
|
|
|
- this.openDetailForm(row, 2)
|
|
|
- }
|
|
|
- },
|
|
|
- shenhe: {
|
|
|
- conditions: ({ row, index, column }) => {
|
|
|
- return row.status == 'WAIT'
|
|
|
+ detail: {
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ this.openDetailForm(row, 2)
|
|
|
+ }
|
|
|
},
|
|
|
- click: ({ row, index, column }) => {
|
|
|
- this.openDetailForm(row, 3)
|
|
|
+ shenhe: {
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
+ return row.status == 'WAIT'
|
|
|
+ },
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ this.openDetailForm(row, 3)
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ } else if (this.pageType == 'goodsder') {
|
|
|
+ return undefined
|
|
|
+ } else if (this.pageType == 'codeder') {
|
|
|
+ return undefined
|
|
|
+ }
|
|
|
},
|
|
|
// 保存
|
|
|
save() {
|