|
@@ -31,16 +31,7 @@
|
|
|
</el-badge>
|
|
|
</div>
|
|
|
<empty desc="暂无需要处理异常" v-if="!activeList.length"/>
|
|
|
- <el-button @click="$router.push({
|
|
|
- path: item[0].url,
|
|
|
- query: {
|
|
|
- ...item[0].query,
|
|
|
- tag: $route.query.tag,
|
|
|
- filter_type: item[0].errorType,
|
|
|
- organId: search.organId || undefined,
|
|
|
- [item[0].resultKey]: item[0].resultKey ? (item[0].result || []).join(',') : undefined
|
|
|
- }
|
|
|
- })"
|
|
|
+ <el-button @click="handle(item)"
|
|
|
style="width: 100%;color: #303133;margin-left: 0;"
|
|
|
v-else
|
|
|
v-for="(item, index) in activeList"
|
|
@@ -80,6 +71,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { Searchs } from '@/helpers'
|
|
|
import { getIndexError } from '@/views/main/api'
|
|
|
import { createNotification } from '@/helpers/notification'
|
|
|
import { errorType } from '@/views/main/constant'
|
|
@@ -152,6 +144,19 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
permission,
|
|
|
+ handle(item) {
|
|
|
+ new Searchs().removeByKey(item[0].url)
|
|
|
+ this.$router.push({
|
|
|
+ path: item[0].url,
|
|
|
+ query: {
|
|
|
+ ...item[0].query,
|
|
|
+ tag: this.$route.query.tag,
|
|
|
+ filter_type: item[0].errorType,
|
|
|
+ organId: this.search.organId || undefined,
|
|
|
+ [item[0].resultKey]: item[0].resultKey ? (item[0].result || []).join(',') : undefined
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
changeTag(type) {
|
|
|
this.$router.replace({
|
|
|
query: {
|