Commit d9ecc911 authored by 徐一鸣's avatar 徐一鸣

云资源李彪调试

parent d382a007
...@@ -59,25 +59,27 @@ export default { ...@@ -59,25 +59,27 @@ export default {
sunbmitText: "", sunbmitText: "",
submit: null, submit: null,
}, },
tempFilter: null,
}), }),
computed: {}, computed: {},
methods: { methods: {
init(filter) { init(filter) {
// console.log(filter); // console.log(filter);
this.tempFilter = filter;
this.$http this.$http
.get("/apaas/service/v3/resource/user/apply/list", { .get("/apaas/service/v3/resource/apply/approveList", {
params: { params: {
search: filter.keyword, search: filter.keyword,
page: filter.page, page: filter.page,
limit: filter.size, limit: filter.size,
depart: "", state: filter.state,
state1: filter.state1,
}, },
}) })
.then(({ data }) => { .then(({ data }) => {
this.listTotal = data.total; this.listTotal = data.total;
this.listData = data.data.cloud_apply_list; this.listData = data.data;
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error);
...@@ -87,7 +89,9 @@ export default { ...@@ -87,7 +89,9 @@ export default {
this.$refs.dialog.show(); this.$refs.dialog.show();
}, },
detailAction(item) { detailAction(item) {
console.log("detailAction"); this.$router.push({
path: `/fwgl/${this.level}/${this.type}/cloud_detail/${item.id}`,
});
}, },
approveAction(item) { approveAction(item) {
this.dialogInfo.msg = "该工作区域的申请通过还是拒绝?"; this.dialogInfo.msg = "该工作区域的申请通过还是拒绝?";
...@@ -118,12 +122,12 @@ export default { ...@@ -118,12 +122,12 @@ export default {
this.level = parseInt(this.$route.params.level); this.level = parseInt(this.$route.params.level);
this.type = parseInt(this.$route.params.type); this.type = parseInt(this.$route.params.type);
let warnFlag = this.$route.query.warn || false; let warnFlag = this.$route.query.warn == 1 ? true : false;
this.otherFilter = [ this.otherFilter = [
{ {
name: "审批状态", name: "审批状态",
prop: "state1", prop: "state",
default: "", default: "",
options: [ options: [
{ {
...@@ -148,7 +152,7 @@ export default { ...@@ -148,7 +152,7 @@ export default {
this.listHeader = [ this.listHeader = [
{ {
label: "工作区域名称", label: "工作区域名称",
prop: "name_space", prop: "namespace",
type: "button", type: "button",
callback: this.detailAction, callback: this.detailAction,
}, },
...@@ -202,12 +206,14 @@ export default { ...@@ -202,12 +206,14 @@ export default {
}, },
{ {
label: "申请类型", label: "申请类型",
prop: "type",
align: "center", align: "center",
getText(item) {
return item.apply_type === 0 ? "初次申请" : "资源调整";
},
}, },
{ {
label: "所属组织", label: "所属组织",
prop: "org_name", prop: "department_name",
}, },
{ {
label: "用户申请时间", label: "用户申请时间",
......
...@@ -1486,7 +1486,9 @@ export default { ...@@ -1486,7 +1486,9 @@ export default {
); );
}, // 审批服务 }, // 审批服务
cloudDetail(item) { cloudDetail(item) {
console.log("cloudDetail - " + item.name); this.$router.push({
path: `/fwgl/${this.level}/${this.type}/cloud_detail/${item.id}`,
});
}, },
cloudAllot(item) { cloudAllot(item) {
this.$refs.allotConfirm.getDetail(item.apply_id); this.$refs.allotConfirm.getDetail(item.apply_id);
...@@ -1996,7 +1998,7 @@ export default { ...@@ -1996,7 +1998,7 @@ export default {
this.$router.push({ this.$router.push({
path: `/fwgl/${this.level}/${this.type}/approveWorkspace`, path: `/fwgl/${this.level}/${this.type}/approveWorkspace`,
query: { query: {
warn: this.cloud_admin_warn, warn: this.cloud_admin_warn ? 1 : 0,
}, },
}); });
}, },
......
...@@ -318,7 +318,9 @@ export default { ...@@ -318,7 +318,9 @@ export default {
this.$refs.dialog.show(); this.$refs.dialog.show();
}, },
detailAction(item) { detailAction(item) {
console.log("detailAction"); this.$router.push({
path: `/fwgl/${this.level}/${this.type}/cloud_detail/${item.id}`,
});
}, },
stateAction(item) { stateAction(item) {
this.dialogInfo.msg = "您确认要禁用该工作区域吗?"; this.dialogInfo.msg = "您确认要禁用该工作区域吗?";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment