fix: 删除页面console
This commit is contained in:
@@ -122,7 +122,6 @@ export default {
|
|||||||
let url = ''
|
let url = ''
|
||||||
this.terminal.height = document.body.clientHeight - 100
|
this.terminal.height = document.body.clientHeight - 100
|
||||||
this.terminal.width = document.body.clientWidth
|
this.terminal.width = document.body.clientWidth
|
||||||
console.log(this.term.cols, this.term.cols)
|
|
||||||
if (this.terminal.type === 'asset') {
|
if (this.terminal.type === 'asset') {
|
||||||
url = baseUrl + '/terminal.ws?width=' + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.term.cols + '&rows=' + this.term.rows + '&token=' + token + '&assetId=' + this.terminal.assetId + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid
|
url = baseUrl + '/terminal.ws?width=' + this.terminal.width + '&height=' + this.terminal.height + '&cols=' + this.term.cols + '&rows=' + this.term.rows + '&token=' + token + '&assetId=' + this.terminal.assetId + '&accountId=' + this.terminal.accountId + '&uuid=' + this.terminal.uuid
|
||||||
} else if (this.terminal.type === 'custom') {
|
} else if (this.terminal.type === 'custom') {
|
||||||
|
|||||||
@@ -585,7 +585,6 @@ export default {
|
|||||||
return '-'
|
return '-'
|
||||||
},
|
},
|
||||||
resetState (type) {
|
resetState (type) {
|
||||||
console.log(type)
|
|
||||||
if (type == 'sizeOrderType') {
|
if (type == 'sizeOrderType') {
|
||||||
this.dateOrderType = 0
|
this.dateOrderType = 0
|
||||||
this.nameOrderType = 0
|
this.nameOrderType = 0
|
||||||
|
|||||||
@@ -373,7 +373,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeSearchStr () {
|
changeSearchStr () {
|
||||||
console.log(this.searchStr, 'changeSearchStr')
|
|
||||||
const arr = this.searchStr.split(':')
|
const arr = this.searchStr.split(':')
|
||||||
if (arr.length > 1) {
|
if (arr.length > 1) {
|
||||||
this.setValueList(arr[1])
|
this.setValueList(arr[1])
|
||||||
@@ -475,21 +474,17 @@ export default {
|
|||||||
const findItem = this.selectArr.find(item => item.key === this.editTagObj.key)
|
const findItem = this.selectArr.find(item => item.key === this.editTagObj.key)
|
||||||
if (findItem) {
|
if (findItem) {
|
||||||
this.selectArr.splice(this.editTagIndex, 1)
|
this.selectArr.splice(this.editTagIndex, 1)
|
||||||
console.log(findItem, this.editDialogObj.value)
|
|
||||||
findItem.value = findItem.value.concat(this.editDialogObj.value)
|
findItem.value = findItem.value.concat(this.editDialogObj.value)
|
||||||
findItem.value = findItem.value.filter(function (item, index) {
|
findItem.value = findItem.value.filter(function (item, index) {
|
||||||
return findItem.value.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
return findItem.value.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
||||||
})
|
})
|
||||||
console.log(findItem.value)
|
|
||||||
} else {
|
} else {
|
||||||
this.selectArr[this.editTagIndex] = this.$loadsh.cloneDeep(this.editTagObj)
|
this.selectArr[this.editTagIndex] = this.$loadsh.cloneDeep(this.editTagObj)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
querySearch (queryString, cb) {
|
querySearch (queryString, cb) {
|
||||||
const restaurants = this.oldSearchList.map(item => { return { value: item.name } })
|
const restaurants = this.oldSearchList.map(item => { return { value: item.name } })
|
||||||
console.log(restaurants)
|
|
||||||
const results = queryString ? restaurants.filter(name => name.value.indexOf(queryString) !== -1) : restaurants
|
const results = queryString ? restaurants.filter(name => name.value.indexOf(queryString) !== -1) : restaurants
|
||||||
console.log(results)
|
|
||||||
cb(results)
|
cb(results)
|
||||||
},
|
},
|
||||||
handleSelect () {
|
handleSelect () {
|
||||||
|
|||||||
@@ -3560,7 +3560,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
jumpClick (id) {
|
jumpClick (id) {
|
||||||
const dom = document.getElementsByClassName('nz-explore-' + this.tabIndex)[0]
|
const dom = document.getElementsByClassName('nz-explore-' + this.tabIndex)[0]
|
||||||
console.log(dom)
|
|
||||||
dom.querySelector(id).scrollIntoView(true)
|
dom.querySelector(id).scrollIntoView(true)
|
||||||
},
|
},
|
||||||
selectMetricsLogs (val, icon, label) {
|
selectMetricsLogs (val, icon, label) {
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ const terminalFile = {
|
|||||||
state.externalTerminal = false
|
state.externalTerminal = false
|
||||||
}
|
}
|
||||||
if (data.isLogout) {
|
if (data.isLogout) {
|
||||||
console.log(state, self)
|
|
||||||
get('logout').then(() => {
|
get('logout').then(() => {
|
||||||
self.commit('logoutSuccess')
|
self.commit('logoutSuccess')
|
||||||
document.location.href = '/'
|
document.location.href = '/'
|
||||||
|
|||||||
Reference in New Issue
Block a user