|
@@ -152,6 +152,9 @@
|
|
|
flag: {
|
|
flag: {
|
|
|
type: String
|
|
type: String
|
|
|
},
|
|
},
|
|
|
|
|
+ typeCode: {
|
|
|
|
|
+ type: String
|
|
|
|
|
+ },
|
|
|
Grade: {
|
|
Grade: {
|
|
|
type: String,
|
|
type: String,
|
|
|
default: ''
|
|
default: ''
|
|
@@ -319,12 +322,12 @@
|
|
|
this.initData()
|
|
this.initData()
|
|
|
},
|
|
},
|
|
|
initTableHeader () {
|
|
initTableHeader () {
|
|
|
- console.log(this.flag, 'this.flag')
|
|
|
|
|
- if (this.flag == '01') {
|
|
|
|
|
|
|
+ console.log(this.typeCode, 'this.typeCode')
|
|
|
|
|
+ if (this.typeCode == '01') {
|
|
|
setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
|
this.dynamicTableColumns = res.data.items
|
|
this.dynamicTableColumns = res.data.items
|
|
|
})
|
|
})
|
|
|
- } else if (this.flag == '02') {
|
|
|
|
|
|
|
+ } else if (this.typeCode == '02') {
|
|
|
setapi.initBbTableHeader(this.$axios).then(res => {
|
|
setapi.initBbTableHeader(this.$axios).then(res => {
|
|
|
this.dynamicTableColumns = res.data.items
|
|
this.dynamicTableColumns = res.data.items
|
|
|
})
|
|
})
|