From cc8079ebb2b23ae752977113c6e1f4858c55d2fc Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Wed, 6 May 2020 15:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=85=8D=E6=9C=AA=E5=88=86=E9=85=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table-um.vue | 6 ++++++ src/pages/workPlace.vue | 8 ++++++-- static/data.json | 15 ++++++++++----- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/components/table-um.vue b/src/components/table-um.vue index 5e9fa9a..0e704ac 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 5cefa60..46004c0 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":[ -- 2.26.0