fix: 修复report编辑按钮不会disabled的问题
This commit is contained in:
@@ -273,6 +273,7 @@ export default {
|
|||||||
for (let i = 0; i < response.data.data.list.length; i++) {
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
||||||
response.data.data.list[i].status = response.data.data.list[i].status + ''
|
response.data.data.list[i].status = response.data.data.list[i].status + ''
|
||||||
}
|
}
|
||||||
|
this.tableData = []
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.tableData = response.data.data.list.map(item => {
|
this.tableData = response.data.data.list.map(item => {
|
||||||
return {
|
return {
|
||||||
@@ -316,10 +317,17 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
} else {
|
} else {
|
||||||
const curRecord = this.batchDeleteObjs[0]
|
axios.get(`${api.reportTemp}/${this.batchDeleteObjs[0].id}`).then(response => {
|
||||||
this.initConfig(curRecord)
|
if (response.status === 200) {
|
||||||
this.object = curRecord
|
const curRecord = response.data.data
|
||||||
this.rightBox.show = true
|
if (curRecord.config) {
|
||||||
|
curRecord.config = JSON.parse(curRecord.config)
|
||||||
|
}
|
||||||
|
this.initConfig(curRecord)
|
||||||
|
this.object = curRecord
|
||||||
|
this.rightBox.show = true
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initConfig (u) {
|
initConfig (u) {
|
||||||
|
|||||||
Reference in New Issue
Block a user