Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
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
marketing-web
marketing
Commits
1c52075f
Commit
1c52075f
authored
Jun 09, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/门店签到需求' of
http://git.gicdev.com/marketing-web/marketing
into dev
parents
e8aa4285
61a10ec0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
20 deletions
+1
-20
auth.js
src/service/api/auth.js
+0
-8
plan-list.vue
src/views/sign/plan-list.vue
+1
-12
No files found.
src/service/api/auth.js
deleted
100644 → 0
View file @
e8aa4285
import
{
requests
}
from
'./index'
;
const
PREFIX
=
'api-auth/'
;
import
config
from
'@/config'
;
export
const
url
=
config
.
api
+
PREFIX
;
// 门店签到计划新建权限
export
const
getLoginUserInfo
=
params
=>
requests
(
PREFIX
+
'get-login-user-info'
,
params
);
src/views/sign/plan-list.vue
View file @
1c52075f
...
...
@@ -9,7 +9,7 @@
</el-select>
<el-input
v-model=
"pageParams.storeSignName"
class=
"w300"
placeholder=
"计划名称"
clearable
@
change=
"refresh"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
</div>
<el-button
type=
"primary"
@
click=
"goAddPlan"
v-if=
"rightCode"
>
新建计划
</el-button>
<el-button
type=
"primary"
@
click=
"goAddPlan"
>
新建计划
</el-button>
</div>
<el-table
tooltipEffect=
"light"
:data=
"tableList"
style=
"width: 100%"
>
<el-table-column
:show-overflow-tooltip=
"true"
align=
"left"
prop=
"storeSignName"
label=
"计划名称"
></el-table-column>
...
...
@@ -45,7 +45,6 @@
<
script
>
/* eslint-disable */
import
{
getPageSignPlan
,
delSignPlan
}
from
'@/service/api/storeSign.js'
;
import
{
getLoginUserInfo
}
from
'@/service/api/auth.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
export
default
{
name
:
'sign-record'
,
...
...
@@ -60,7 +59,6 @@ export default {
},
total
:
0
,
tableList
:
[],
rightCode
:
false
,
// 门店单选
storeName
:
''
,
storeDialog
:
false
,
...
...
@@ -103,18 +101,9 @@ export default {
},
created
()
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'门店签到'
},
{
name
:
'计划列表'
,
path
:
''
}]);
this
.
getInfo
();
this
.
fetch
();
},
methods
:
{
async
getInfo
()
{
let
res
=
await
getLoginUserInfo
({});
if
(
res
.
errorCode
===
0
&&
res
.
result
&&
Array
.
isArray
(
res
.
result
.
aclList
))
{
res
.
result
.
aclList
.
map
((
item
)
=>
{
if
(
item
.
rightCode
===
'sign_setting_build'
)
this
.
rightCode
=
true
;
});
}
},
async
fetch
()
{
try
{
this
.
loading
=
true
;
...
...
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