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
cc8079eb
Commit
cc8079eb
authored
May 06, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分配未分配展示
parent
92e5d88e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
src/components/table-um.vue
src/components/table-um.vue
+6
-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 @
cc8079eb
...
@@ -133,6 +133,12 @@
...
@@ -133,6 +133,12 @@
>
>
{{
btn
.
label
}}
{{
btn
.
label
}}
</em>
</em>
<em
v-else-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
<em
v-else
v-else
:class=
"btn.type"
:class=
"btn.type"
...
...
src/pages/workPlace.vue
View file @
cc8079eb
...
@@ -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 @
cc8079eb
...
@@ -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