diff --git a/src/components/image-detail.vue b/src/components/image-detail.vue index a716100b93c1cfc7f19dab0109e87c6afd4cf064..8a9bcea1e599186f43c3658b0f2063b7c17bfc10 100644 --- a/src/components/image-detail.vue +++ b/src/components/image-detail.vue @@ -86,7 +86,8 @@ export default { }, }, methods: { - showDialog(image) { + showDialog(image,id) { + image.id = id this.image = image; this.imageData = []; this.getImageDetail(); @@ -152,7 +153,7 @@ export default { }, getImageDetail() { this.$http - .get(`/apaas/hubApi/image/imageDetails/${this.image.name}`) + .get(`/apaas/hubApi/image/imageDetails/${this.image.name}?app_id=${this.image.id}`) .then(({ data }) => { this.imageData = data.data || []; }) diff --git a/src/components/table/table-um.vue b/src/components/table/table-um.vue index 594e840cebcf87cbf27a36c9e612b9bf135a252b..758732963b12bf9e5a3eb3b80910359624052607 100644 --- a/src/components/table/table-um.vue +++ b/src/components/table/table-um.vue @@ -89,12 +89,12 @@ 分配 - 已分配 + 已分配 diff --git a/src/pages/workbench/workPlace.vue b/src/pages/workbench/workPlace.vue index 81f9f81201a27a3907d3b428bcc67fcaaf4419b5..dbbc1f18250148611232b0de4904e88f5518c00e 100644 --- a/src/pages/workbench/workPlace.vue +++ b/src/pages/workbench/workPlace.vue @@ -253,6 +253,9 @@ + @@ -334,6 +341,7 @@ import tableUm from "@/components/table/table-um"; import ListPagination from "@/components/comments-pagination"; import helper from "@/services/helper.js"; import dashBoard from "../../components/e-charts/dashboard"; +import allotInfoConfirm from "@/components/allot-info-confirm"; import { formatDateTime_date } from "@/utils/common"; import { mapGetters, mapState } from "vuex"; import { getCookie } from "../../services/cookie"; @@ -753,7 +761,7 @@ export default { { prop: "sqzt", label: "操作", - width: "110px", + width: "80px", align: "center", type: "Button", btnList: [ @@ -761,9 +769,9 @@ export default { label: "分配", type: "distribut" }, - { - label: "已分配" - } + // { + // label: "已分配" + // } ] } ] @@ -1054,7 +1062,8 @@ export default { components: { tableUm, ListPagination, - dashBoard + dashBoard, + allotInfoConfirm }, computed: { ...mapGetters(["level"]), @@ -1394,9 +1403,14 @@ export default { }) .catch(function(response) {}); }, + allotSuccess() { + // this.init(this.tempFliter); + this.get_service_list() + }, //分配接口调用 distribut(val) { console.log(val); + this.$refs.allotConfirm.getDetail(val.apply_id); }, manage_func(n) { console.log(n); diff --git a/src/pages/workbench/yygl/app_detail.vue b/src/pages/workbench/yygl/app_detail.vue index 85e4d58a4ec582536a33639a022a5207ed496f1b..aeaf46fbb0544530f70aee503cc1c903bf4fa469 100644 --- a/src/pages/workbench/yygl/app_detail.vue +++ b/src/pages/workbench/yygl/app_detail.vue @@ -292,6 +292,7 @@ export default { }, created() { + console.log(this.$route); if(this.userInfo){ this.now_user = this.level this.getServiceInfo(); @@ -305,6 +306,9 @@ export default { this.get_options() this.get_file_name() this.get_app_code() + if((this.now_user==0||this.now_user==4)&&this.$route.query.source=='apply'){ + this.service_arr[0].splice(1, 2); + } }, mounted() { this.header_arr = [ @@ -339,7 +343,7 @@ export default { }, methods: { showImageDetail(item) { - this.$refs.imageDetail.showDialog(item); + this.$refs.imageDetail.showDialog(item,this.$route.params.id); }, getCurrentUser() { this.$api.user.getNowUser().then(({ data }) => { diff --git a/src/pages/workbench/yygl/yyglList.vue b/src/pages/workbench/yygl/yyglList.vue index 837345f9b847757380bdd9761fb348220f69aee7..08b580f8ef2c332e4eadbb2f4efd5cc77a7a98f8 100644 --- a/src/pages/workbench/yygl/yyglList.vue +++ b/src/pages/workbench/yygl/yyglList.vue @@ -1268,7 +1268,7 @@ export default { `${this.detailsUrl + [item.app_id, item.deploy_id, item.id + "/" + item.app_id][ this.type - ]}` + ]}?source=${item.source}` ); }, detailItemDeploy(item) {