CN-162 代理接口调试页面开发

This commit is contained in:
hyx
2021-11-11 23:28:52 +08:00
parent 98846fd2da
commit ced8281959
7 changed files with 590 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ export default {
},
data () {
return {
importBox: { show: false, title: this.$t('overall.import'), type: 1,width:'600px' },
importBox: { show: false, title: this.$t('overall.import'), type: 1, width: '600px' },
importFile: null,
importFileList: [],
importResult: null,
@@ -145,12 +145,12 @@ export default {
},
exportAll () {
const params = JSON.parse(JSON.stringify(this.params))
if (this.params2){
Object.keys(this.params2).forEach(key=>{
if ( params[key] ) {
if ( params[key].prototype.toString.call(val) === '[object Object]' ){
Object.assign(params[key],this.params2[key])
} else if (params[key].prototype.toString.call(val) === '[object Array]'){
if (this.params2) {
Object.keys(this.params2).forEach(key => {
if (params[key]) {
if (params[key].prototype.toString.call(val) === '[object Object]') {
Object.assign(params[key], this.params2[key])
} else if (params[key].prototype.toString.call(val) === '[object Array]') {
params[key].concat(this.params2[key])
}
} else {