|
|
@ -108,7 +108,7 @@ export default {
|
|
|
|
dialogTableVisible: false,
|
|
|
|
dialogTableVisible: false,
|
|
|
|
uploadDialog: false,
|
|
|
|
uploadDialog: false,
|
|
|
|
tableData: [],
|
|
|
|
tableData: [],
|
|
|
|
tableTh:[],
|
|
|
|
tableTh: [],
|
|
|
|
api: process.env.VUE_APP_BASE_API,
|
|
|
|
api: process.env.VUE_APP_BASE_API,
|
|
|
|
token: getToken()
|
|
|
|
token: getToken()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -191,16 +191,16 @@ export default {
|
|
|
|
this.dialogTableVisible = true
|
|
|
|
this.dialogTableVisible = true
|
|
|
|
const data = await getRedisFile(this.$store.getters.tenantId)
|
|
|
|
const data = await getRedisFile(this.$store.getters.tenantId)
|
|
|
|
this.tableData = JSON.parse(data.content)
|
|
|
|
this.tableData = JSON.parse(data.content)
|
|
|
|
this.tableTh = Object.keys(data.Header).map(e=>data.Header[e])
|
|
|
|
this.tableTh = Object.keys(data.Header).map(e => data.Header[e])
|
|
|
|
},
|
|
|
|
},
|
|
|
|
importf() {
|
|
|
|
importf() {
|
|
|
|
this.uploadDialog = true
|
|
|
|
this.uploadDialog = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async uploadSuccess(e){
|
|
|
|
async uploadSuccess(e) {
|
|
|
|
this.uploadDialog = false
|
|
|
|
this.uploadDialog = false
|
|
|
|
const data = await getRedisFile(this.$store.getters.tenantId)
|
|
|
|
const data = await getRedisFile(this.$store.getters.tenantId)
|
|
|
|
this.tableData = JSON.parse(data.content)
|
|
|
|
this.tableData = JSON.parse(data.content)
|
|
|
|
this.tableTh = Object.keys(data.Header).map(e=>data.Header[e])
|
|
|
|
this.tableTh = Object.keys(data.Header).map(e => data.Header[e])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|