Skip to content

Commit b6475e1

Browse files
author
shenshuo
committed
添加 对标签有权限的用户才能访问当前标签
1 parent 4fb5e1a commit b6475e1

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

src/api/task-other.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ export const getTagtree= (key, value) => {
1212
})
1313
}
1414

15+
export const getAuthTaglist= () => {
16+
return axios.request({
17+
url: '/task/other/v1/record/tag_auth/',
18+
method: 'get'
19+
})
20+
}
21+
1522
export const getTaglist= ( page, limit, key, value) => {
1623
return axios.request({
1724
url: '/task/other/v1/record/tag/',
@@ -25,6 +32,7 @@ export const getTaglist= ( page, limit, key, value) => {
2532
})
2633
}
2734

35+
2836
export const operationTag= (data, meth) => {
2937
return axios.request({
3038
url: '/task/other/v1/record/tag/',
@@ -239,7 +247,7 @@ export const operationDockerrepository = (data, meth) => {
239247
})
240248
}
241249

242-
// 发布应用
250+
// 应用配置
243251
export const getPublishlist = (key, value) => {
244252
return axios.request({
245253
url: '/task/other/v2/task_other/publish_cd/',

src/view/tasks-center/task-submit/mysql-audit.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</template>
4747

4848
<script>
49-
import { getTaglist, getDBlist, getMysqlAudit,operationMysqlAudit} from '@/api/task-other'
49+
import { getAuthTaglist, getDBlist, getMysqlAudit,operationMysqlAudit} from '@/api/task-other'
5050
import { getuserlist } from '@/api/user'
5151
export default {
5252
data() {
@@ -90,7 +90,7 @@ export default {
9090
},
9191
// 获取标签列表
9292
getAllTagList () {
93-
getTaglist(1, 888).then(res => {
93+
getAuthTaglist().then(res => {
9494
if (res.data.code === 0) {
9595
this.allTagList = res.data.data
9696
} else {

src/view/tasks-center/task-submit/mysql-optimize.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</template>
6868

6969
<script>
70-
import { getTaglist, getMySQLOpt, operationMySQLOpt} from '@/api/task-other'
70+
import { getAuthTaglist, getMySQLOpt, operationMySQLOpt} from '@/api/task-other'
7171
import { logWSUrl } from '@/api/task-other'
7272
export default {
7373
data() {
@@ -103,7 +103,7 @@ export default {
103103
},
104104
// 获取标签列表
105105
getAllTagList () {
106-
getTaglist(1, 888).then(res => {
106+
getAuthTaglist().then(res => {
107107
if (res.data.code === 0) {
108108
this.allTagList = res.data.data
109109
} else {

src/view/tasks-center/task-submit/task-custom-proxy.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</template>
7777

7878
<script>
79-
import { getTaglist, getCustomtaskProxy, operationCustomtaskProxy} from '@/api/task-other'
79+
import { getAuthTaglist, getCustomtaskProxy, operationCustomtaskProxy} from '@/api/task-other'
8080
import { getTemplist } from "@/api/task";
8181
import { getuserlist } from '@/api/user'
8282
export default {
@@ -125,7 +125,7 @@ export default {
125125
},
126126
// 获取标签列表
127127
getAllTagList () {
128-
getTaglist(1, 888).then(res => {
128+
getAuthTaglist().then(res => {
129129
if (res.data.code === 0) {
130130
this.allTagList = res.data.data
131131
} else {

src/view/tasks-center/task-submit/task-custom.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</template>
7171

7272
<script>
73-
import { getTaglist, getCustomtask, operationCustomtask} from '@/api/task-other'
73+
import { getAuthTaglist, getCustomtask, operationCustomtask} from '@/api/task-other'
7474
import { getTemplist } from "@/api/task";
7575
import { getuserlist } from '@/api/user'
7676
export default {
@@ -122,7 +122,7 @@ export default {
122122
},
123123
// 获取标签列表
124124
getAllTagList () {
125-
getTaglist(1, 888).then(res => {
125+
getAuthTaglist().then(res => {
126126
if (res.data.code === 0) {
127127
this.allTagList = res.data.data
128128
} else {

0 commit comments

Comments
 (0)