Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
assets
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄媛媛
assets
Commits
30856620
Commit
30856620
authored
Jul 08, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权管理
parent
ef987a51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
205 additions
and
3 deletions
+205
-3
Archivesmaterials.vue
src/components/Materialman/Archivesmaterials.vue
+1
-1
groupEmpowerMan.vue
src/components/approval/groupEmpowerMan.vue
+194
-0
index.js
src/plugins/index.js
+4
-2
config.js
src/router/config.js
+6
-0
No files found.
src/components/Materialman/Archivesmaterials.vue
View file @
30856620
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<p>
安全库存:
{{
row
.
SafetyStock
}}
</p>
<p>
安全库存:
{{
row
.
SafetyStock
}}
</p>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<vxe-table-column
field=
"
UpdateDate
"
title=
"型号"
></vxe-table-column>
<vxe-table-column
field=
"
SuppliesModel
"
title=
"型号"
></vxe-table-column>
<vxe-table-column
field=
"Mobile"
title=
"操作人/时间"
>
<vxe-table-column
field=
"Mobile"
title=
"操作人/时间"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
<p>
{{
row
.
UpdateBy
}}
</p>
<p>
{{
row
.
UpdateBy
}}
</p>
...
...
src/components/approval/groupEmpowerMan.vue
0 → 100644
View file @
30856620
<
template
>
<div
class=
"spotquery"
>
<div
class=
"routerTitle"
style=
"padding-bottom:15px"
>
<span
class=
"pageTitle"
>
授权管理
</span>
<div
class=
"groupempowerman"
>
<span
class=
"ChangeTable"
>
<span
@
click=
"msg.type=2,msg.pageIndex=1,msg.Status=0,getList()"
:class=
"msg.type==2?'spanActive':''"
>
集团
</span>
<span
@
click=
"msg.type=1,msg.pageIndex=1,msg.Status=0,getList()"
:class=
"msg.type==1?'spanActive':''"
>
个人用户
</span>
</span>
<span
class=
"ChangeTable"
style=
"margin-Top:10px"
>
<span
@
click=
"msg.Status=0,msg.pageIndex=1,getList()"
:class=
"msg.Status==0?'spanActive':''"
>
全部
</span>
<span
@
click=
"msg.Status=1,msg.pageIndex=1,getList()"
:class=
"msg.Status==1?'spanActive':''"
>
待审核
</span>
<span
@
click=
"msg.Status=2,msg.pageIndex=1,getList()"
:class=
"msg.Status==2?'spanActive':''"
>
已通过
</span>
<span
@
click=
"msg.Status=3,msg.pageIndex=1,getList()"
:class=
"msg.Status==3?'spanActive':''"
>
已拒绝
</span>
</span>
</div>
<span
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
</span>
</div>
<div
class=
"padContent groupempowerman_list"
>
<vxe-table
stripe
style=
"margin-top:15px"
:loading=
"loading"
:data=
"tableData"
>
<vxe-table-column
title=
"状态"
>
<template
v-slot=
"
{ row }">
<span
v-if=
"row.Status==1"
>
待审核
</span>
<span
v-if=
"row.Status==2"
>
已通过
</span>
<span
v-if=
"row.Status==3"
>
已拒绝
</span>
</
template
>
</vxe-table-column>
<vxe-table-column
field=
"DomainName"
title=
"集团域名"
></vxe-table-column>
<vxe-table-column
field=
"Account"
title=
"账户"
v-if=
'msg.type==1'
></vxe-table-column>
<vxe-table-column
field=
"MallBaseName"
title=
"小程序名字"
v-if=
'msg.type==1'
></vxe-table-column>
<vxe-table-column
field=
"TenantName"
title=
"商户名称"
v-if=
'msg.type==1'
></vxe-table-column>
<vxe-table-column
field=
"UpdateDate"
title=
"更新时间"
v-if=
'msg.type==1'
></vxe-table-column>
<vxe-table-column
field=
"CreateDate"
title=
"创建时间"
></vxe-table-column>
<vxe-table-column
title=
"操作"
>
<
template
v-slot=
"{ row }"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"同意"
placement=
"top"
v-if=
'row.Status==1'
>
<img
@
click=
"agree(row)"
style=
"width:24px;height:24px"
src=
"../../assets/img/step1.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"拒绝"
placement=
"top"
v-if=
'row.Status==1'
>
<img
@
click=
"refuse(row)"
style=
"width:24px;height:24px"
src=
"../../assets/img/qx.png"
alt=
""
>
</el-tooltip>
<div
style=
"width:24px;height:24px"
v-if=
'row.Status!=1'
></div>
</
template
>
</vxe-table-column>
</vxe-table>
<el-pagination
@
current-change=
"currentChange"
background
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</div>
</template>
<
script
>
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
export
default
{
name
:
'groupEmpowerMan'
,
components
:
{
},
data
(){
return
{
showTable
:
0
,
tableData
:
[],
loading
:
false
,
total
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
type
:
2
,
Status
:
0
},
rules
:{
AuditEmId
:
[
{
required
:
true
,
message
:
'请选择转交人'
,
trigger
:
'change'
}
]
},
}
},
created
(){
},
mounted
(){
console
.
log
(
2
)
this
.
getList
();
},
methods
:{
goUrl
(
path
){
this
.
$router
.
push
({
path
:
"/"
+
path
,
query
:
{
}
});
},
getList
(){
this
.
loading
=
true
;
this
.
apiJavaPost
(
"/api/Authorize/GetMaterialPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
currentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
agree
(
row
){
this
.
$confirm
(
"同意审核!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apiJavaPost
(
"/api/Authorize/UpdateAuthorize"
,{
ID
:
row
.
ID
,
Status
:
2
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
msg
.
Status
=
2
this
.
getList
();
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消审核!'
)
});
},
refuse
(
row
){
this
.
$confirm
(
"是否拒绝?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apiJavaPost
(
"/api/Authorize/UpdateAuthorize"
,{
ID
:
row
.
ID
,
Status
:
3
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
msg
.
Status
=
3
this
.
getList
();
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消删除!'
)
});
}
},
}
</
script
>
<
style
scoped
>
.spotquery
{
box-sizing
:
border-box
;
}
.groupempowerman
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-start
;
}
</
style
>
src/plugins/index.js
View file @
30856620
...
@@ -14,6 +14,7 @@ export default {
...
@@ -14,6 +14,7 @@ export default {
// var domainUrl = "http://test_reborn.oytour.com";//主域名
// var domainUrl = "http://test_reborn.oytour.com";//主域名
// var domainUrl = "http://reborn.oytour.com"; //主域名
// var domainUrl = "http://reborn.oytour.com"; //主域名
var
domainUrl
=
"http://192.168.2.17:8087"
;
//主域名
var
domainUrl
=
"http://192.168.2.17:8087"
;
//主域名
domainUrl
=
"http://192.168.2.65"
;
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
let
javaUrldo
=
""
;
let
javaUrldo
=
""
;
javaUrldo
=
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://property.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.17:8087"
;
javaUrldo
=
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://property.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.17:8087"
;
...
@@ -34,8 +35,9 @@ export default {
...
@@ -34,8 +35,9 @@ export default {
// javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000",
// javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000",
// javaUrl: locationName.indexOf('zcyx') == -1 ? "http://property.oytour.com" : locationName.indexOf('zcyx.oytour.com') !== -1 ? "http://property.oytour.com" : "http://192.168.2.17:8087",
// javaUrl: locationName.indexOf('zcyx') == -1 ? "http://property.oytour.com" : locationName.indexOf('zcyx.oytour.com') !== -1 ? "http://property.oytour.com" : "http://192.168.2.17:8087",
javaUrl
:
"http://192.168.2.17:8087"
,
// javaUrl: "http://192.168.2.65:8018",
javaUrl
:
"http://192.168.2.16:8087"
,
// javaUrl: "http://property.oytour.com",
// javaUrl: "http://property.oytour.com",
ViittoFileUrl
:
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'zcyx.oytour.com'
)
!==
-
1
?
"http://staticfile.oytour.com"
:
'http://192.168.2.214:8130'
,
ViittoFileUrl
:
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'zcyx.oytour.com'
)
!==
-
1
?
"http://staticfile.oytour.com"
:
'http://192.168.2.214:8130'
,
UploadUrl
:
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'zcyx.oytour.com'
)
!==
-
1
?
"http://uploadfile.oytour.com"
:
"http://192.168.2.214:8120"
,
UploadUrl
:
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'zcyx.oytour.com'
)
!==
-
1
?
"http://uploadfile.oytour.com"
:
"http://192.168.2.214:8120"
,
...
...
src/router/config.js
View file @
30856620
...
@@ -217,6 +217,12 @@ export default {
...
@@ -217,6 +217,12 @@ export default {
path
:
'/approvalMan'
,
path
:
'/approvalMan'
,
name
:
'approvalMan'
,
name
:
'approvalMan'
,
component
:
resolve
=>
require
([
'@/components/approval/approvalMan'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/approval/approvalMan'
],
resolve
),
},
// 集团授权管理
{
path
:
'/groupEmpowerMan'
,
name
:
'groupEmpowerMan'
,
component
:
resolve
=>
require
([
'@/components/approval/groupEmpowerMan'
],
resolve
),
},
},
// 审批管理
// 审批管理
{
{
...
...
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