Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
b4c70c60
Commit
b4c70c60
authored
May 06, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
8a26a769
cde5bb7a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
src/components/table-um.vue
src/components/table-um.vue
+7
-0
src/pages/workPlace.vue
src/pages/workPlace.vue
+6
-2
static/data.json
static/data.json
+10
-5
No files found.
src/components/table-um.vue
View file @
b4c70c60
...
@@ -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)"
...
...
src/pages/workPlace.vue
View file @
b4c70c60
...
@@ -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
);
},
},
...
...
static/data.json
View file @
b4c70c60
...
@@ -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"
:[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment