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
3c3362ce
Commit
3c3362ce
authored
Jun 23, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台首页跳转
parent
b8fa32d3
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
309 additions
and
108 deletions
+309
-108
src/components/comments-pagination.vue
src/components/comments-pagination.vue
+1
-1
src/components/order-list/order-list-cell.vue
src/components/order-list/order-list-cell.vue
+1
-1
src/components/table/table-um.vue
src/components/table/table-um.vue
+4
-0
src/components/table/table-umhref.vue
src/components/table/table-umhref.vue
+14
-3
src/pages/authority/organization/organizationdetail.vue
src/pages/authority/organization/organizationdetail.vue
+27
-2
src/pages/workbench/fwgl/approval_service_detail.vue
src/pages/workbench/fwgl/approval_service_detail.vue
+2
-1
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+1
-1
src/pages/workbench/workPlace.vue
src/pages/workbench/workPlace.vue
+254
-94
static/workpalce.json
static/workpalce.json
+5
-5
No files found.
src/components/comments-pagination.vue
View file @
3c3362ce
...
...
@@ -3,7 +3,7 @@
<div
class=
"total_info"
>
<span>
{{
`共${total
}
个条目`
}}
<
/span
>
<
/div
>
<
div
class
=
"
page_size_action
"
>
<
div
class
=
"
page_size_action
"
v
-
if
=
"
pageSizes.length
"
>
<
span
>
每页行数:
<
/span
>
<
el
-
select
:
value
=
"
pageSize
"
@
change
=
"
sizeChange
"
>
<
el
-
option
...
...
src/components/order-list/order-list-cell.vue
View file @
3c3362ce
...
...
@@ -30,7 +30,7 @@
<div>
规格:日访问次数:
{{
cellItem
.
spec_svc_count
}}
次,日访问量:
{{
cellItem
.
spec_svc_pv
}}
</div>
<div
class=
"cell_specification_type"
>
申请方式:
{{
cellItem
.
duration_unit
==
1
?
$t
(
'
lang.by
Year
'
)
:
$t
(
'
lang.byMonth
'
)
}}
</div>
>
申请方式:
{{
cellItem
.
duration_unit
==
1
?
$t
(
'
lang.by
Month
'
)
:
$t
(
'
lang.byYear
'
)
}}
</div>
</div>
</el-col>
<el-col
:span=
"4"
class=
"approval_status"
>
...
...
src/components/table/table-um.vue
View file @
3c3362ce
...
...
@@ -50,6 +50,7 @@
<el-table
:data=
"selectedTabsPage"
:size=
"size"
:height=
"height"
:border=
"border"
@
select=
"select"
@
select-all=
"selectAll"
...
...
@@ -139,6 +140,7 @@
v-else-if=
"item.type == 'href'"
:header=
"item"
:row=
"scope.row"
:ids=
"item.id"
:detailsUrl=
"detailsUrl"
></v-apaas-table-umhref>
<!-- could edit -->
...
...
@@ -264,6 +266,7 @@ export default {
"
v-apaas-table-filter
"
:
TableFilter
},
props
:
{
height
:
''
,
//是否滚动加载
asyn_load1
:
{
type
:
Boolean
,
default
:
false
},
// 表格型号:mini,medium,small
...
...
@@ -433,6 +436,7 @@ export default {
//本地删除
deleteLocal
(
val
)
{
this
.
selectedTabsPage
.
splice
(
val
.
$index
,
1
);
this
.
$emit
(
'
changeTable
'
,
this
.
selectedTabsPage
)
},
// get data
getDataFromApiSync
()
{
...
...
src/components/table/table-umhref.vue
View file @
3c3362ce
<
template
>
<div>
<span
v-if=
"this.row.id"
class=
"href"
@
click=
"goHref(baseVal)"
>
{{
text
}}
</span>
<span
v-if=
"this.row.id
||ids
"
class=
"href"
@
click=
"goHref(baseVal)"
>
{{
text
}}
</span>
<span
v-else
>
{{
text
}}
</span>
</div>
</
template
>
...
...
@@ -10,7 +10,7 @@ import helper from "@/services/helper";
import
format
from
"
string-format
"
;
export
default
{
props
:
[
"
header
"
,
"
row
"
,
"
detailsUrl
"
],
props
:
[
"
header
"
,
"
row
"
,
"
detailsUrl
"
,
"
ids
"
],
computed
:
{
text
:
function
()
{
let
text
=
helper
.
GetProperty
(
this
.
row
,
this
.
header
.
prop
);
...
...
@@ -21,11 +21,22 @@ export default {
let
baseVal
=
helper
.
GetProperty
(
this
.
row
,
"
id
"
);
return
baseVal
;
},
},
created
(){
},
methods
:
{
// Jump routing using id as parameter
goHref
(
val
)
{
this
.
$router
.
push
(
this
.
detailsUrl
+
val
)
if
(
this
.
ids
){
if
(
this
.
ids
.
indexOf
(
'
.
'
)
==-
1
){
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
])
}
else
{
this
.
$router
.
push
(
this
.
detailsUrl
+
this
.
row
[
this
.
ids
.
split
(
'
.
'
)[
0
]][
this
.
ids
.
split
(
'
.
'
)[
1
]])
}
}
else
{
this
.
$router
.
push
(
this
.
detailsUrl
+
val
)
}
}
}
};
...
...
src/pages/authority/organization/organizationdetail.vue
View file @
3c3362ce
<
template
>
<div
class=
"detail_contain"
>
<p
class=
"now_page_title"
>
权限管理 / 组织用户 /
<span>
用户管理
</span></p>
<p
class=
"now_page_title"
v-if=
"now_user==2"
>
权限管理 / 组织用户 /
<span>
用户管理
</span></p>
<div
class=
"info_contain"
>
<service-header
v-if=
"service_header_arr.name"
...
...
@@ -39,6 +39,7 @@ import serviceHeader from "@/components/service-header";
import
apassTable
from
"
@/components/apass-table
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
ListPagination
from
"
@/components/comments-pagination
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
props
:
[],
components
:
{
...
...
@@ -52,6 +53,7 @@ export default {
table_url
:
""
,
listTotal
:
0
,
currentPage
:
1
,
now_user
:
2
,
//0:普通用户,1:组织管理员,2:超级管理员
pageSize
:
10
,
pageSizes
:
[
10
,
50
,
100
],
service_header_arr
:
{
...
...
@@ -98,13 +100,36 @@ export default {
},
1000
);
},
},
computed
:
{},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
this
.
get_user
();
this
.
get_list
();
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
}
else
{
this
.
getCurrentUser
()
}
},
mounted
()
{},
methods
:
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
changePageSize
(
value
)
{
this
.
pageSize
=
value
;
this
.
currentPage
=
1
;
...
...
src/pages/workbench/fwgl/approval_service_detail.vue
View file @
3c3362ce
...
...
@@ -352,7 +352,8 @@ export default {
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
service_apply_info
.
business_url
);
this
.
$set
(
this
.
list_arr
[
6
],
"
info
"
,
data
.
service_apply_info
.
apply_file
.
split
(
'
/
'
)[
data
.
service_apply_info
.
apply_file
.
split
(
'
/
'
).
length
-
1
]);
this
.
$set
(
this
.
list_arr
[
6
],
"
url
"
,
data
.
service_apply_info
.
apply_file
);
this
.
$set
(
this
.
list_arr
[
8
],
"
info
"
,
data
.
service_apply_info
.
duration
+
data
.
service_apply_info
.
duration_unit
);
debugger
this
.
$set
(
this
.
list_arr
[
8
],
"
info
"
,
data
.
service_apply_info
.
duration
+
(
data
.
service_apply_info
.
duration_unit
==
1
?
'
月
'
:
'
年
'
));
this
.
$set
(
this
.
list_arr
[
9
],
"
info
"
,
"
访问次数:
"
+
data
.
service_apply_info
.
request_spcs
.
pv
+
"
/日 访问量:
"
+
data
.
service_apply_info
.
request_spcs
.
count
+
"
/日
"
);
this
.
id
=
data
.
service_apply_info
.
id
if
(
data
.
service_apply_info
.
approval_status
!==
0
){
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
3c3362ce
...
...
@@ -608,7 +608,7 @@ export default {
);
this
.
$set
(
this
.
servicead_arr
[
2
],
"
info
"
,
data
.
req_fields
);
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
encode_method
);
this
.
code_arr
=
data
.
res_fields
;
this
.
code_arr
=
data
.
res_fields
_example
;
this
.
res_data
=
JSON
.
parse
(
data
.
res_fields
);
this
.
service_size_data
=
data
.
request_spcs_info
;
this
.
size_arr_down
=
data
.
request_spcs_info
;
...
...
src/pages/workbench/workPlace.vue
View file @
3c3362ce
This diff is collapsed.
Click to expand it.
static/workpalce.json
View file @
3c3362ce
...
...
@@ -70,23 +70,23 @@
"fwlxdata"
:[
{
"name"
:
"数据服务"
,
"value"
:
1
0
"value"
:
4
0
},
{
"name"
:
"感知服务"
,
"value"
:
10
"value"
:
3
},
{
"name"
:
"视频服务"
,
"value"
:
10
"value"
:
2
},
{
"name"
:
"时空服务"
,
"value"
:
1
0
"value"
:
5
0
},
{
"name"
:
"综合服务"
,
"value"
:
1
0
"value"
:
0
}
],
"yylxdata"
:[
...
...
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