Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
Project
Project
Details
Activity
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
luoyangfei
store-system
Commits
5cd3b049
Commit
5cd3b049
authored
Nov 25, 2018
by
燕南天
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复跳转逻辑 11-25
parent
a16bc3db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
21 deletions
+53
-21
storeList.vue
2code/web/mgt_pro/src/views/store/storeList.vue
+23
-10
workerList.vue
2code/web/mgt_pro/src/views/worker/workerList.vue
+30
-11
No files found.
2code/web/mgt_pro/src/views/store/storeList.vue
View file @
5cd3b049
...
...
@@ -89,6 +89,13 @@
</
template
>
</el-table-column>
<el-table-column
label=
"审核状态"
v-if=
"isAdmin!=1"
>
<
template
slot-scope=
"scope"
>
<span
:style=
"
{'color':(scope.row.isAuditing==1?'#67C23A':'#F56C6C'),'font-weight':700}">
{{
scope
.
row
.
isAuditing
==
1
?
'已审核'
:
'未审核'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"240"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
circle
class=
"table-icon"
@
click=
"check(scope.row)"
>
...
...
@@ -125,7 +132,7 @@
<!-- 跳转到添加员工-->
<el-popover
v-if=
"scope.row.isAuditing==1"
placement=
"top"
width=
"160"
v-model=
"scope.row.delState2"
>
<p
style=
"margin-bottom:10px;font-weight:700;"
>
将要跳转页面,去添加去添加员工
</p>
<p
style=
"margin-bottom:10px;font-weight:700;"
>
跳转去添加员工?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState2 = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleToAddPeople(scope.row)"
>
去添加
</el-button>
...
...
@@ -986,9 +993,14 @@ export default {
const
param
=
{
storeIds
:
this
.
tableItemIDS
};
store
.
batchStores
(
param
).
then
(
res
=>
{
this
.
getList
();
if
(
res
.
data
.
code
==
1
){
this
.
getList
(()
=>
{
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
})
});
}
else
{
this
.
$message
({
message
:
'操作失败'
,
type
:
'warning'
})
}
});
},
...
...
@@ -997,20 +1009,21 @@ export default {
storeIds
:
this
.
tableItemIDS
};
store
.
batchStoreShop
(
param
).
then
(
res
=>
{
this
.
getList
();
if
(
res
.
data
.
code
==
1
){
this
.
getList
(()
=>
{
this
.
$message
({
message
:
'操作成功!'
,
type
:
'success'
})
});
}
else
{
this
.
$message
({
message
:
'操作失败!'
,
type
:
'warning'
})
}
});
},
// 审核完成之后 跳转到添加员工
handleToAddPeople
(
data
)
{
const
host
=
window
.
location
.
origin
;
const
url
=
`
${
host
}
/#/worker/workerList`
;
sessionStorage
.
setItem
(
'_storeId_'
,
data
.
storeId
)
setTimeout
(()
=>
{
window
.
location
.
href
=
url
;
},
200
);
this
.
$router
.
push
(
'/worker'
)
}
},
computed
:
{
...
...
2code/web/mgt_pro/src/views/worker/workerList.vue
View file @
5cd3b049
...
...
@@ -93,6 +93,12 @@
</
template
>
</el-table-column>
<el-table-column
label=
"审核状态"
v-if=
"isAdmin!=1"
>
<
template
slot-scope=
"scope"
>
<span
:style=
"
{'color':(scope.row.isAuditing==1?'#67C23A':'#F56C6C'),'font-weight':700}">
{{
scope
.
row
.
isAuditing
==
1
?
'已审核'
:
'未审核'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
circle
class=
"table-icon"
@
click=
"check(scope.row)"
>
...
...
@@ -442,20 +448,17 @@ export default {
dImg2
:
""
,
dImg3
:
""
,
dImg4
:
""
,
dImg5
:
""
,
dImg5
:
""
};
},
beforeMount
()
{
let
_storeId_
=
sessionStorage
.
getItem
(
'_storeId_'
)
let
_storeId_
=
sessionStorage
.
getItem
(
"_storeId_"
);
if
(
!!
_storeId_
)
{
this
.
dialogBindData
.
storeId
=
_storeId_
this
.
dialogBindData
.
storeId
=
_storeId_
;
this
.
getStoreData
(()
=>
{
this
.
dialogType
=
1
;
this
.
dialogState
=
true
;
this
.
$message
({
name
:
"添加员工信息"
})
});
}
...
...
@@ -465,7 +468,11 @@ export default {
this
.
getList
();
});
},
mounted
()
{},
beforeDestroy
()
{
if
(
sessionStorage
.
getItem
(
'_storeId_'
)){
sessionStorage
.
clear
();
}
},
methods
:
{
getCookAdminType
()
{
let
adminType
=
cookie
.
getUserInfro
();
...
...
@@ -496,6 +503,7 @@ export default {
this
.
$seach
.
reset
(
this
);
this
.
getList
();
},
add
()
{
// 强制处理详情回显问题
this
.
dialogBindData
.
workerResume
=
""
;
...
...
@@ -659,8 +667,7 @@ export default {
this
.
$refs
.
imgComponent4
?
this
.
$refs
.
imgComponent4
.
clearImg
()
:
""
;
this
.
$refs
.
imgComponent5
?
this
.
$refs
.
imgComponent5
.
clearImg
()
:
""
;
sessionStorage
.
clear
()
sessionStorage
.
clear
();
// 销毁富文本编辑器的dom对象
setTimeout
(()
=>
{
this
.
dialogType
=
0
;
...
...
@@ -833,7 +840,13 @@ export default {
};
worker
.
batchWorkers
(
param
).
then
(
res
=>
{
this
.
getList
();
if
(
res
.
data
.
code
==
1
)
{
this
.
getList
(()
=>
{
this
.
$message
({
message
:
"操作成功!"
,
type
:
"success"
});
});
}
else
{
this
.
$message
({
message
:
"操作失败!"
,
type
:
"warning"
});
}
});
},
...
...
@@ -842,7 +855,13 @@ export default {
workerIds
:
this
.
tableItemIDS
};
worker
.
batchWorkerShop
(
param
).
then
(
res
=>
{
this
.
getList
();
if
(
res
.
data
.
code
==
1
)
{
this
.
getList
(()
=>
{
this
.
$message
({
message
:
"操作成功!"
,
type
:
"success"
});
});
}
else
{
this
.
$message
({
message
:
"操作失败!"
,
type
:
"warning"
});
}
});
}
},
...
...
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