提交 780536c2 authored 作者: taojinlong's avatar taojinlong

fix: 数据集权限

上级 a72f2622
...@@ -334,7 +334,7 @@ import 'codemirror/addon/hint/sql-hint' ...@@ -334,7 +334,7 @@ import 'codemirror/addon/hint/sql-hint'
import 'codemirror/addon/hint/show-hint' import 'codemirror/addon/hint/show-hint'
// vue-cron // vue-cron
import cron from '@/components/cron/cron' import cron from '@/components/cron/cron'
import {hasDataPermission} from '@/utils/permission'
export default { export default {
name: 'UpdateInfo', name: 'UpdateInfo',
components: { codemirror, cron }, components: { codemirror, cron },
...@@ -422,7 +422,10 @@ export default { ...@@ -422,7 +422,10 @@ export default {
watch: { watch: {
table: { table: {
handler() { handler() {
this.listTask() if(hasDataPermission('manage',this.param.privileges)){
this.listTask()
}
this.listTaskLog() this.listTaskLog()
}, },
immediate: true immediate: true
...@@ -447,7 +450,9 @@ export default { ...@@ -447,7 +450,9 @@ export default {
} else { } else {
this.taskLastRequestComplete = false this.taskLastRequestComplete = false
} }
this.listTask(false) if(hasDataPermission('manage',this.param.privileges)){
this.listTask(false)
}
}, 10000) }, 10000)
}, },
beforeDestroy() { beforeDestroy() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论