CN-642 feat: 完善Dashboard - network overview - 新增app

This commit is contained in:
@changcode
2022-07-21 18:52:15 +08:00
parent e33dbe2ea2
commit aac1270705

View File

@@ -626,14 +626,19 @@ export default {
},
appTypeTabChange (val) {
this.appShowTypeTab = val.index
this.searcherApp = ''
},
searcherAppChange (val) {
if (val) {
if (this.appShowTypeTab === 0) {
this.addApp()
if (this.appShowTypeTab == 0) {
this.providerOptions = this.providerOptions.filter((t, i) => t.name.indexOf(val) > -1 || t.desc.indexOf(val) > -1)
} else if (this.appShowTypeTab === 1) {
}
if (this.appShowTypeTab == 1) {
this.appOptions = this.appOptions.filter((t, i) => t.name.indexOf(val) > -1 || t.desc.indexOf(val) > -1)
}
} else {
this.addApp()
}
},
appCheckedChange (app, num) {