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
c3e0e97a
Commit
c3e0e97a
authored
Nov 20, 2018
by
燕南天
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台权限优化
parent
3b42857b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
storeList.vue
2code/web/mgt_pro/src/views/store/storeList.vue
+13
-3
workerList.vue
2code/web/mgt_pro/src/views/worker/workerList.vue
+10
-4
No files found.
2code/web/mgt_pro/src/views/store/storeList.vue
View file @
c3e0e97a
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
<!-- <el-table-column prop="isShopping" label="消费区间"></el-table-column> -->
<!-- <el-table-column prop="isShopping" label="消费区间"></el-table-column> -->
<el-table-column
label=
"是否展示"
>
<el-table-column
label=
"是否展示"
v-if=
"isAdmin==1"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
<span>
<el-switch
<el-switch
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
<!-- 审核 -->
<!-- 审核 -->
<el-popover
<el-popover
v-if=
"scope.row.isAuditing!=1"
v-if=
"scope.row.isAuditing!=1
&&isAdmin==1
"
placement=
"top"
placement=
"top"
width=
"160"
width=
"160"
v-model=
"scope.row.delState1"
>
v-model=
"scope.row.delState1"
>
...
@@ -450,7 +450,7 @@ import axios from 'axios';
...
@@ -450,7 +450,7 @@ import axios from 'axios';
import
UpLoadImg
from
"@/components/UpLoadImg"
;
import
UpLoadImg
from
"@/components/UpLoadImg"
;
import
Tinymce
from
"@/components/Tinymce"
;
import
Tinymce
from
"@/components/Tinymce"
;
import
ViewPage
from
"./components/ViewPage"
;
import
ViewPage
from
"./components/ViewPage"
;
import
*
as
cookie
from
'@/utils/auth'
import
*
as
Utils
from
"../../utils/index.js"
;
import
*
as
Utils
from
"../../utils/index.js"
;
import
*
as
store
from
"../../api/store"
;
import
*
as
store
from
"../../api/store"
;
import
*
as
common
from
"../../api/common"
;
import
*
as
common
from
"../../api/common"
;
...
@@ -532,14 +532,24 @@ export default {
...
@@ -532,14 +532,24 @@ export default {
// 全选的id
// 全选的id
tableItemIDS
:
''
,
tableItemIDS
:
''
,
// 登陆角色
isAdmin
:
'0'
};
};
},
},
beforeMount
()
{
beforeMount
()
{
this
.
isAdmin
=
this
.
getCookAdminType
()
this
.
getList
();
this
.
getList
();
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
// 登陆角色
getCookAdminType
(){
let
adminType
=
cookie
.
getUserInfro
()
return
JSON
.
parse
(
adminType
).
isAdmin
},
seachFun
()
{
seachFun
()
{
this
.
$seach
this
.
$seach
.
submmit
(
this
,
store
.
storeList
)
.
submmit
(
this
,
store
.
storeList
)
...
...
2code/web/mgt_pro/src/views/worker/workerList.vue
View file @
c3e0e97a
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
<!-- 审核 -->
<!-- 审核 -->
<el-popover
<el-popover
v-if=
"scope.row.isAuditing!=1"
v-if=
"scope.row.isAuditing!=1
&&isAdmin==1
"
placement=
"top"
placement=
"top"
width=
"160"
width=
"160"
v-model=
"scope.row.delState1"
>
v-model=
"scope.row.delState1"
>
...
@@ -385,7 +385,7 @@
...
@@ -385,7 +385,7 @@
import
UpLoadImg
from
"@/components/UpLoadImg"
;
import
UpLoadImg
from
"@/components/UpLoadImg"
;
import
Tinymce
from
"@/components/Tinymce"
;
import
Tinymce
from
"@/components/Tinymce"
;
import
ViewPage
from
"./components/ViewPage"
;
import
ViewPage
from
"./components/ViewPage"
;
import
*
as
cookie
from
'@/utils/auth'
import
*
as
Utils
from
"../../utils/index.js"
;
import
*
as
Utils
from
"../../utils/index.js"
;
import
*
as
worker
from
"../../api/worker"
;
import
*
as
worker
from
"../../api/worker"
;
import
*
as
common
from
"../../api/common"
;
import
*
as
common
from
"../../api/common"
;
...
@@ -452,13 +452,15 @@ export default {
...
@@ -452,13 +452,15 @@ export default {
tableItemIDS
:
''
tableItemIDS
:
''
,
isAdmin
:
'0'
};
};
},
},
beforeMount
()
{
beforeMount
()
{
this
.
isAdmin
=
this
.
getCookAdminType
()
worker
.
getStores
().
then
(
res
=>
{
worker
.
getStores
().
then
(
res
=>
{
this
.
ownStoreData
=
res
.
data
.
data
this
.
ownStoreData
=
res
.
data
.
data
this
.
getList
();
this
.
getList
();
...
@@ -467,6 +469,10 @@ export default {
...
@@ -467,6 +469,10 @@ export default {
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getCookAdminType
(){
let
adminType
=
cookie
.
getUserInfro
()
return
JSON
.
parse
(
adminType
).
isAdmin
},
seachFun
()
{
seachFun
()
{
this
.
$seach
this
.
$seach
.
submmit
(
this
,
worker
.
workerList
)
.
submmit
(
this
,
worker
.
workerList
)
...
...
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