diff --git a/src/components/table-um.vue b/src/components/table-um.vue index 5e9fa9a8901c6e65acbe6b501a467496b4c5e6ce..0e704ac2edccef0511d544f9b3bbfa928785e06e 100644 --- a/src/components/table-um.vue +++ b/src/components/table-um.vue @@ -133,6 +133,12 @@ > {{ btn.label }} + + {{ btn.label }} + {{ btn.label }} + @@ -619,11 +620,10 @@ export default { btnList: [ { label: "分配", - type: 1 + type: "distribut" }, { label: "已分配", - type: 1 } ] } @@ -974,6 +974,10 @@ export default { }, 500); }, methods: { + //分配接口调用 + distribut(val){ + console.log(val); + }, manage_func(n) { console.log(n); }, diff --git a/static/data.json b/static/data.json index 5cefa60650c68226dada4305afd168eeb9a062e1..46004c0b5697f645e9262f1d21da9b26b84ee1a5 100644 --- a/static/data.json +++ b/static/data.json @@ -283,7 +283,8 @@ "cpu": "2", "ncgb": "12", "zyzlgb": "1024", - "sqzt": "审批通过" + "sqzt": "审批通过", + "state":1 }, { "id": 1, @@ -292,7 +293,8 @@ "cpu": "2", "ncgb": "12", "zyzlgb": "1024", - "sqzt": "审批通过" + "sqzt": "审批通过", + "state":0 }, { "id": 1, @@ -301,7 +303,8 @@ "cpu": "2", "ncgb": "12", "zyzlgb": "1024", - "sqzt": "审批通过" + "sqzt": "审批通过", + "state":0 }, { "id": 1, @@ -310,7 +313,8 @@ "cpu": "2", "ncgb": "12", "zyzlgb": "1024", - "sqzt": "审批通过" + "sqzt": "审批通过", + "state":0 }, { "id": 1, @@ -319,7 +323,8 @@ "cpu": "2", "ncgb": "12", "zyzlgb": "1024", - "sqzt": "审批通过" + "sqzt": "审批通过", + "state":1 } ], "nor_cloud_manage":[