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
72f149a0
Commit
72f149a0
authored
Jun 24, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用审批
parent
36e8624f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
218 additions
and
118 deletions
+218
-118
src/pages/workbench/yygl/apply_app_detail.vue
src/pages/workbench/yygl/apply_app_detail.vue
+47
-32
src/pages/workbench/yygl/approval_app_detail.vue
src/pages/workbench/yygl/approval_app_detail.vue
+171
-86
No files found.
src/pages/workbench/yygl/apply_app_detail.vue
View file @
72f149a0
...
@@ -24,8 +24,7 @@
...
@@ -24,8 +24,7 @@
<div
class=
"type_box_select"
>
<div
class=
"type_box_select"
>
<mavon-editor
v-model=
"list_arr"
:boxShadow=
"false"
:toolbarsFlag=
"false"
:subfield=
"false"
defaultOpen=
"preview"
:editable=
"false"
v-if=
"now_service == 0"
/>
<mavon-editor
v-model=
"list_arr"
:boxShadow=
"false"
:toolbarsFlag=
"false"
:subfield=
"false"
defaultOpen=
"preview"
:editable=
"false"
v-if=
"now_service == 0"
/>
<info-list
<info-list
v-if=
" now_service == 1"
v-if=
" now_service !== 0"
@
download=
"download"
:list_arr=
"servicead_arr
:list_arr=
"servicead_arr
"
"
>
>
...
@@ -171,12 +170,7 @@ export default {
...
@@ -171,12 +170,7 @@ export default {
],
],
},
},
],
],
approval_arr3
:[
approval_arr3
:[],
{
title
:
"
一级审批
"
,
result
:
"
审批中
"
,
},
],
service_arr
:
[
"
基本信息
"
,
"
申请审批信息
"
],
service_arr
:
[
"
基本信息
"
,
"
申请审批信息
"
],
service_header_arr
:
{
service_header_arr
:
{
id
:
""
,
id
:
""
,
...
@@ -280,7 +274,7 @@ export default {
...
@@ -280,7 +274,7 @@ export default {
created
()
{
created
()
{
this
.
getServiceInfo
();
this
.
getServiceInfo
();
this
.
getreadme
();
this
.
getreadme
();
//
this.getServiceBaseInfo();
this
.
getServiceBaseInfo
();
this
.
getServiceapplyInfo
();
this
.
getServiceapplyInfo
();
},
},
mounted
()
{},
mounted
()
{},
...
@@ -294,36 +288,57 @@ export default {
...
@@ -294,36 +288,57 @@ export default {
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
download
(
val
){
console
.
log
(
val
);
},
getServiceapplyInfo
()
{
getServiceapplyInfo
()
{
this
.
$http
this
.
$http
.
get
(
"
./static/applyappdetail.json
"
)
.
get
(
`/apaas/hubApi/market/approvalInfo/
${
this
.
$route
.
params
.
id
}
`
)
.
then
((
response
)
=>
{
let
data
=
response
.
data
.
data
;
if
(
!
(
data
&&
data
.
length
)){
this
.
approval_arr3
.
push
({
title
:
"
一级审批
"
,
result
:
"
待审批
"
})
return
}
data
.
forEach
(
e
=>
{
this
.
approval_arr3
.
push
({
title
:
e
.
level
==
1
?
"
一级审批
"
:
'
二级审批
'
,
result
:
e
.
apply_type_name
,
arr
:
[
{
title
:
"
审批时间:
"
,
info
:
e
.
created
,
},
{
title
:
"
审批单位:
"
,
info
:
e
.
department_name
,
},
{
title
:
"
审批人:
"
,
info
:
e
.
user_name
,
},
{
title
:
"
审批意见:
"
,
info
:
e
.
comments
,
}
]
})
});
})
.
catch
(
function
(
response
)
{});
},
getServiceBaseInfo
()
{
this
.
$http
.
get
(
"
/apaas/hubApi/market/applyDetailInfo/
"
+
this
.
$route
.
params
.
id
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
let
data
=
response
.
data
.
data
;
let
data
=
response
.
data
.
data
;
this
.
$set
(
this
.
servicead_arr
[
1
],
"
info
"
,
data
.
appapplyinfo
.
scene
);
this
.
$set
(
this
.
servicead_arr
[
1
],
"
info
"
,
data
.
scene
);
this
.
$set
(
this
.
servicead_arr
[
2
],
"
info
"
,
data
.
app
applyinfo
.
filenam
e
);
this
.
$set
(
this
.
servicead_arr
[
2
],
"
info
"
,
data
.
app
ly_fil
e
);
this
.
$set
(
this
.
servicead_arr
[
2
],
"
url
"
,
data
.
app
applyinfo
.
fileurl
);
this
.
$set
(
this
.
servicead_arr
[
2
],
"
url
"
,
data
.
app
ly_file
);
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
app
applyinfo
.
siz
e
);
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
app
ly_type_nam
e
);
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
// getServiceBaseInfo() {
// this.$http
// .get("/apaas/hubApi/market/applyDetailInfo/"+this.$route.params.id)
// .then((response) => {
// let data = response.data.data;
// this.$set(this.list_arr[0], "info", data.appbaseinfo.intorduce);
// this.$set(this.list_arr[1], "info", data.appbaseinfo.action);
// this.$set(this.list_arr[2], "info", data.scene);
// this.$set(this.list_arr[4], "info", data.contact_person);
// this.$set(this.list_arr[5], "info", data.contact_number);
// this.appcode = data.appbaseinfo.appcode;
// })
// .catch(function(response) {});
// },
deploy
(
val
){
deploy
(
val
){
console
.
log
(
val
);
console
.
log
(
val
);
},
},
...
...
src/pages/workbench/yygl/approval_app_detail.vue
View file @
72f149a0
...
@@ -17,9 +17,9 @@
...
@@ -17,9 +17,9 @@
>
{{
item
}}
</div>
>
{{
item
}}
</div>
</div>
</div>
<div
class=
"type_box_select"
>
<div
class=
"type_box_select"
>
<
info-list
@
download=
"download"
:list_arr=
"now_service==0?list_arr:servicead_arr[now_user]"
>
<
mavon-editor
v-model=
"list_arr"
:boxShadow=
"false"
:toolbarsFlag=
"false"
:subfield=
"false"
defaultOpen=
"preview"
:editable=
"false"
v-if=
"now_service == 0"
/
>
<table-um
:headers=
"header_arr"
url=
"params_arr"
slot=
"zd_table"
></table-um
>
<info-list
v-if=
"now_service!==0"
:list_arr=
"servicead_arr[now_user]"
>
<process-card
type=
"approval"
:data=
"approval_arr
[now_user]
"
slot=
"sp_card"
></process-card>
<process-card
type=
"approval"
:data=
"approval_arr"
slot=
"sp_card"
></process-card>
<div
class=
"info_contain1"
slot=
"sp_result"
>
<div
class=
"info_contain1"
slot=
"sp_result"
>
<el-form
ref=
"form"
:rules=
"rules"
:model=
"form"
label-width=
"0px"
>
<el-form
ref=
"form"
:rules=
"rules"
:model=
"form"
label-width=
"0px"
>
<el-form-item
prop=
"result"
>
<el-form-item
prop=
"result"
>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</el-form-item>
</el-form-item>
<el-form-item
class=
"btnsty"
>
<el-form-item
class=
"btnsty"
>
<el-button
@
click=
"onSubmit('form')"
class=
"right"
>
提交
</el-button>
<el-button
@
click=
"onSubmit('form')"
class=
"right"
>
提交
</el-button>
<el-button
class=
"right"
>
取消
</el-button>
<el-button
class=
"right"
@
click=
"back_page"
>
取消
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -57,6 +57,7 @@ import infoList from "@/components/infoList";
...
@@ -57,6 +57,7 @@ import infoList from "@/components/infoList";
import
tableUm
from
"
@/components/table/table-um
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
processCard
from
"
@/components/process-card
"
;
import
processCard
from
"
@/components/process-card
"
;
import
{
getRole
}
from
"
@/utils/common
"
import
{
getRole
}
from
"
@/utils/common
"
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
export
default
{
props
:
{},
props
:
{},
components
:
{
components
:
{
...
@@ -79,7 +80,7 @@ export default {
...
@@ -79,7 +80,7 @@ export default {
option
:[
option
:[
{
required
:
true
,
message
:
'
请输入意见
'
,
trigger
:
'
blur
'
},
{
required
:
true
,
message
:
'
请输入意见
'
,
trigger
:
'
blur
'
},
{
{
min
:
10
,
message
:
'
长度大于10个字符
'
,
trigger
:
'
blur
'
min
:
10
,
message
:
'
长度
应
大于10个字符
'
,
trigger
:
'
blur
'
}
}
]
]
},
},
...
@@ -91,37 +92,33 @@ export default {
...
@@ -91,37 +92,33 @@ export default {
},
},
{
{
label
:
"
不通过
"
,
label
:
"
不通过
"
,
value
:
0
value
:
-
1
}
}
],
],
approval_arr
:[
approval_arr
:[
[],
// {
[],
// title:'一级审批',
[
// result:'审批通过',
{
// arr:[
title
:
'
一级审批
'
,
// {
result
:
'
审批通过
'
,
// title:'审批时间:',
arr
:[
// info:'2020-02-28 15:23:45'
{
// },
title
:
'
审批时间:
'
,
// {
info
:
'
2020-02-28 15:23:45
'
// title:'审批单位:',
},
// info:'某某某城管局'
{
// },
title
:
'
审批单位:
'
,
// {
info
:
'
某某某城管局
'
// title:'审批人:',
},
// info:'张先生'
{
// },
title
:
'
审批人:
'
,
// {
info
:
'
张先生
'
// title:'审批意见:',
},
// info:'同意'
{
// },
title
:
'
审批意见:
'
,
// ]
info
:
'
同意
'
// },
},
],
]
},
],
],
header_arr
:
[
header_arr
:
[
{
{
prop
:
"
zdmc
"
,
prop
:
"
zdmc
"
,
...
@@ -157,15 +154,48 @@ export default {
...
@@ -157,15 +154,48 @@ export default {
service_header_arr
:
{
service_header_arr
:
{
name
:
""
,
name
:
""
,
pic
:
""
,
url
:
""
,
first
:
[],
first
:
[
second
:
[],
{
"
name
"
:
"
应用类型
"
,
"
text
"
:
""
},
{
"
name
"
:
"
业务领域
"
,
"
text
"
:
""
},
{
"
name
"
:
"
审批状态
"
,
"
text
"
:
""
,
"
color
"
:
"
#ef9433
"
}
],
second
:
[
{
"
name
"
:
"
在线区域
"
,
"
text
"
:
""
},
{
"
name
"
:
"
申请类型
"
,
"
text
"
:
""
},
{
"
name
"
:
"
所属组织
"
,
"
text
"
:
""
}
],
},
},
service_arr
:
[
"
应用申请信息
"
,
"
应用审批
"
],
service_arr
:
[
"
应用申请信息
"
,
"
应用审批
"
],
now_service
:
0
,
now_service
:
0
,
servicead_arr
:
[
servicead_arr
:
[
[],
[],
[
[
{
title
:
"
审批信息:
"
,
prop
:
"
title
"
,
type
:
"
solt
"
,
solt_name
:
"
sp_card
"
},
{
{
title
:
"
一级审批:
"
,
title
:
"
一级审批:
"
,
prop
:
"
title
"
,
prop
:
"
title
"
,
...
@@ -188,83 +218,138 @@ export default {
...
@@ -188,83 +218,138 @@ export default {
},
},
],
],
],
],
list_arr
:
[
list_arr
:
""
,
{
title
:
"
申请单位:
"
,
info
:
""
},
{
title
:
"
申请人:
"
,
info
:
""
},
{
title
:
"
申请人联系电话:
"
,
info
:
""
},
{
title
:
"
场景描述:
"
,
info
:
""
},
{
title
:
"
申请文件:
"
,
info
:
""
,
url
:
""
,
type
:
"
down
"
},
{
title
:
"
申请时间:
"
,
info
:
""
}
]
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
created
()
{
this
.
now_user
=
this
.
$store
.
state
.
role
;
console
.
log
(
this
.
level
);
getRole
().
then
((
data
)
=>
{
if
(
this
.
userInfo
){
this
.
now_user
=
data
;
this
.
now_user
=
this
.
level
console
.
log
(
data
);
this
.
$store
.
commit
(
"
rolefun
"
,
data
);
this
.
getheaderinfo
();
this
.
getheaderinfo
();
this
.
getapplyinfo
();
this
.
getapplyinfo
();
});
this
.
get_approval_info
();
}
else
{
this
.
getCurrentUser
()
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
download
(
val
){
getCurrentUser
()
{
console
.
log
(
val
);
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
this
.
getheaderinfo
();
this
.
getapplyinfo
();
this
.
get_approval_info
();
console
.
log
(
this
.
level
);
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
get_approval_info
(){
this
.
$http
.
get
(
`/apaas/hubApi/market/approvalInfo/
${
this
.
$route
.
params
.
id
}
`
)
.
then
((
response
)
=>
{
let
data
=
response
.
data
.
data
;
if
(
!
(
data
&&
data
.
length
)){
if
(
this
.
now_user
==
2
){
this
.
approval_arr
.
push
({
title
:
"
一级审批
"
,
result
:
"
待审批
"
})
}
else
{
this
.
servicead_arr
[
1
].
splice
(
0
,
1
)
}
return
}
data
.
forEach
(
e
=>
{
this
.
approval_arr
.
push
({
title
:
e
.
level
==
1
?
"
一级审批
"
:
'
二级审批
'
,
result
:
e
.
apply_type_name
,
arr
:
[
{
title
:
"
审批时间:
"
,
info
:
e
.
created
,
},
{
title
:
"
审批单位:
"
,
info
:
e
.
department_name
,
},
{
title
:
"
审批人:
"
,
info
:
e
.
user_name
,
},
{
title
:
"
审批意见:
"
,
info
:
e
.
comments
,
}
]
})
});
}).
catch
(
function
(
response
)
{});
},
},
getapplyinfo
(){
getapplyinfo
(){
this
.
$http
this
.
$http
.
get
(
"
./static/approvalappdetail.json
"
)
.
get
(
"
/apaas/hubApi/market/readme/
"
+
this
.
$route
.
params
.
app_id
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
let
data
=
response
.
data
.
data
;
let
data
=
response
.
data
.
data
;
this
.
$set
(
this
.
list_arr
[
0
],
"
info
"
,
data
.
appbaseinfo
.
company
);
this
.
list_arr
=
data
this
.
$set
(
this
.
list_arr
[
1
],
"
info
"
,
data
.
appbaseinfo
.
person
);
this
.
$set
(
this
.
list_arr
[
2
],
"
info
"
,
data
.
appbaseinfo
.
phone
);
this
.
$set
(
this
.
list_arr
[
3
],
"
info
"
,
data
.
appbaseinfo
.
desc
);
this
.
$set
(
this
.
list_arr
[
4
],
"
info
"
,
data
.
appbaseinfo
.
filename
);
this
.
$set
(
this
.
list_arr
[
4
],
"
url
"
,
data
.
appbaseinfo
.
fileurl
);
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
appbaseinfo
.
time
);
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
getheaderinfo
(){
getheaderinfo
(){
this
.
$http
this
.
$http
.
get
(
"
./static/approvalappdetail.json
"
)
.
get
(
"
/apaas/hubApi/market/applyInfo/
"
+
this
.
$route
.
params
.
id
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
let
data
=
response
.
data
.
data
;
let
data
=
response
.
data
.
data
;
this
.
$set
(
this
.
service_header_arr
,
"
name
"
,
data
.
appInfo
.
name
);
this
.
$set
(
this
.
service_header_arr
,
"
name
"
,
data
.
app_name
+
'
'
);
this
.
$set
(
this
.
service_header_arr
,
"
first
"
,
data
.
appInfo
.
first
);
this
.
$set
(
this
.
service_header_arr
,
"
url
"
,
data
.
logo
);
this
.
$set
(
this
.
service_header_arr
,
"
second
"
,
data
.
appInfo
.
second
);
this
.
$set
(
this
.
service_header_arr
.
first
[
0
],
"
text
"
,
data
.
type_name
);
this
.
$set
(
this
.
service_header_arr
.
first
[
1
],
"
text
"
,
data
.
ywly_name
);
this
.
$set
(
this
.
service_header_arr
.
first
[
2
],
"
text
"
,
data
.
apply_status
);
this
.
$set
(
this
.
service_header_arr
.
first
[
2
],
"
color
"
,
data
.
apply_status
==
"
审批中
"
||
data
.
apply_status
==
"
待审批
"
?
'
#ef9433
'
:
data
.
apply_status
==
"
审批通过
"
||
data
.
apply_status
==
"
已审批
"
?
'
#515fe7
'
:
'
#e15260
'
);
this
.
$set
(
this
.
service_header_arr
.
second
[
0
],
"
text
"
,
data
.
online_state_name
);
this
.
$set
(
this
.
service_header_arr
.
second
[
1
],
"
text
"
,
data
.
apply_type_name
);
this
.
$set
(
this
.
service_header_arr
.
second
[
2
],
"
text
"
,
data
.
department_name
);
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
back_page
(){
this
.
$router
.
back
(
-
1
)
},
post_result
(){
var
temp
=
{
"
app_id
"
:
this
.
$route
.
params
.
app_id
,
// 申请的应用的id
"
apply_id
"
:
this
.
$route
.
params
.
id
,
// 申请id
"
status
"
:
this
.
form
.
result
,
// 是否通过,-1 不通过 1 通过
"
comments
"
:
this
.
form
.
option
// 审批意见
}
this
.
$http
.
post
(
"
/apaas/hubApi/market/approval/
"
+
this
.
$route
.
params
.
id
,
temp
)
.
then
((
response
)
=>
{
if
(
response
.
data
.
success
){
this
.
$message
.
success
(
'
审批成功
'
)
}
else
{
this
.
$message
.
error
(
errMsg
)
}
}).
catch
(
function
(
response
)
{});
},
onSubmit
(
formName
){
onSubmit
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
alert
(
'
submit!
'
);
this
.
post_result
()
}
else
{
}
else
{
console
.
log
(
'
error submit!!
'
);
console
.
log
(
'
error submit!!
'
);
return
false
;
return
false
;
...
...
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