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

Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev

parents 8a26a769 cde5bb7a
...@@ -115,6 +115,13 @@ ...@@ -115,6 +115,13 @@
<span v-if="item.type === 'Button'"> <span v-if="item.type === 'Button'">
<b v-for="(btn, key) in item.btnList" :key="key"> <b v-for="(btn, key) in item.btnList" :key="key">
<em <em
v-if="btn.label == '分配'||btn.label == '已分配'"
>
<em v-if="btn.label == '分配'&&scope.row.state == 0" style="color: #0f2683" @click="handleClick(btn.type, scope.row)">{{ btn.label }}</em>
<em v-if="btn.label == '已分配'&&scope.row.state == 1">{{ btn.label }}</em>
</em>
<em
v-else
:class="btn.type" :class="btn.type"
:style="{color: btn.label=='删除' ? '#830f53' : '#0f2683'}" :style="{color: btn.label=='删除' ? '#830f53' : '#0f2683'}"
@click="handleClick(btn.type, scope.row)" @click="handleClick(btn.type, scope.row)"
......
...@@ -189,6 +189,7 @@ ...@@ -189,6 +189,7 @@
:headers="service_head[now_user][now_type]" :headers="service_head[now_user][now_type]"
:url="service_url_arr[now_user][now_type]" :url="service_url_arr[now_user][now_type]"
:paginationShow="true" :paginationShow="true"
@distribut="distribut"
></table-um> ></table-um>
</div> </div>
</div> </div>
...@@ -619,11 +620,10 @@ export default { ...@@ -619,11 +620,10 @@ export default {
btnList: [ btnList: [
{ {
label: "分配", label: "分配",
type: 1 type: "distribut"
}, },
{ {
label: "已分配", label: "已分配",
type: 1
} }
] ]
} }
...@@ -974,6 +974,10 @@ export default { ...@@ -974,6 +974,10 @@ export default {
}, 500); }, 500);
}, },
methods: { methods: {
//分配接口调用
distribut(val){
console.log(val);
},
manage_func(n) { manage_func(n) {
console.log(n); console.log(n);
}, },
......
...@@ -283,7 +283,8 @@ ...@@ -283,7 +283,8 @@
"cpu": "2", "cpu": "2",
"ncgb": "12", "ncgb": "12",
"zyzlgb": "1024", "zyzlgb": "1024",
"sqzt": "审批通过" "sqzt": "审批通过",
"state":1
}, },
{ {
"id": 1, "id": 1,
...@@ -292,7 +293,8 @@ ...@@ -292,7 +293,8 @@
"cpu": "2", "cpu": "2",
"ncgb": "12", "ncgb": "12",
"zyzlgb": "1024", "zyzlgb": "1024",
"sqzt": "审批通过" "sqzt": "审批通过",
"state":0
}, },
{ {
"id": 1, "id": 1,
...@@ -301,7 +303,8 @@ ...@@ -301,7 +303,8 @@
"cpu": "2", "cpu": "2",
"ncgb": "12", "ncgb": "12",
"zyzlgb": "1024", "zyzlgb": "1024",
"sqzt": "审批通过" "sqzt": "审批通过",
"state":0
}, },
{ {
"id": 1, "id": 1,
...@@ -310,7 +313,8 @@ ...@@ -310,7 +313,8 @@
"cpu": "2", "cpu": "2",
"ncgb": "12", "ncgb": "12",
"zyzlgb": "1024", "zyzlgb": "1024",
"sqzt": "审批通过" "sqzt": "审批通过",
"state":0
}, },
{ {
"id": 1, "id": 1,
...@@ -319,7 +323,8 @@ ...@@ -319,7 +323,8 @@
"cpu": "2", "cpu": "2",
"ncgb": "12", "ncgb": "12",
"zyzlgb": "1024", "zyzlgb": "1024",
"sqzt": "审批通过" "sqzt": "审批通过",
"state":1
} }
], ],
"nor_cloud_manage":[ "nor_cloud_manage":[
......
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