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
fe673e18
Commit
fe673e18
authored
Nov 16, 2018
by
燕南天
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台修改
parent
0b646031
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
83 additions
and
164 deletions
+83
-164
index.html
2code/web/h5_pro/index.html
+1
-1
hostCfg.js
2code/web/h5_pro/src/api/hostCfg.js
+2
-1
shopDetails.js
2code/web/h5_pro/src/api/shopDetails.js
+1
-1
index.vue
2code/web/h5_pro/src/components/CHeader/index.vue
+20
-12
index.vue
2code/web/h5_pro/src/views/home/index.vue
+9
-9
MoreShop.vue
2code/web/h5_pro/src/views/shopList/components/MoreShop.vue
+1
-1
index.vue
2code/web/h5_pro/src/views/shopList/index.vue
+3
-3
index.vue
2code/web/h5_pro/src/views/workerList/index.vue
+7
-1
index.js
2code/web/mgt_pro/src/router/index.js
+4
-4
advertList.vue
2code/web/mgt_pro/src/views/advert/advertList.vue
+13
-117
storeList.vue
2code/web/mgt_pro/src/views/store/storeList.vue
+11
-6
user.vue
2code/web/mgt_pro/src/views/system/user.vue
+1
-1
workerList.vue
2code/web/mgt_pro/src/views/worker/workerList.vue
+10
-7
No files found.
2code/web/h5_pro/index.html
View file @
fe673e18
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html>
<html>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0
,user-scalable=no
"
>
<title>
xule_pro
</title>
<title>
xule_pro
</title>
</head>
</head>
...
...
2code/web/h5_pro/src/api/hostCfg.js
View file @
fe673e18
const
host
=
" http://47.105.32.6:8990/storeSystem"
const
host
=
" http://47.105.32.6:8990/storeSystem"
// const host = "http://192.168.1.100:8080/store-system"
export
default
host
export
default
host
\ No newline at end of file
2code/web/h5_pro/src/api/shopDetails.js
View file @
fe673e18
...
@@ -11,7 +11,7 @@ export function storeDetails(data) {
...
@@ -11,7 +11,7 @@ export function storeDetails(data) {
export
function
searchWorkerResult
(
data
)
{
export
function
searchWorkerResult
(
data
)
{
return
request
({
return
request
({
url
:
'/h5/index/
searchWorkerResult
'
,
url
:
'/h5/index/
workers
'
,
method
:
'post'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
data
:
qs
.
stringify
(
data
)
})
})
...
...
2code/web/h5_pro/src/components/CHeader/index.vue
View file @
fe673e18
...
@@ -15,11 +15,12 @@
...
@@ -15,11 +15,12 @@
<span>
请选择地址
</span>
<span>
请选择地址
</span>
<span
class=
"choose-btn confirm"
@
click=
"handleConfirm"
>
确定
</span>
<span
class=
"choose-btn confirm"
@
click=
"handleConfirm"
>
确定
</span>
</div>
</div>
<div
class=
"radio"
v-for=
"(item,idx) in seach"
:key=
"idx"
>
<div
class=
"select-item"
>
<input
:id=
"item.codeC"
name=
'chooseCity'
type=
"radio"
:value=
"item"
v-model=
"cityItem"
>
<div
class=
"radio"
v-for=
"(item,idx) in seach"
:key=
"idx"
>
<label
:for=
"item.codeC"
><span>
{{
item
.
name
}}
</span></label>
<input
:id=
"item.codeC"
name=
'chooseCity'
type=
"radio"
:value=
"item"
v-model=
"cityItem"
>
<label
:for=
"item.codeC"
><span>
{{
item
.
name
}}
</span></label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -43,7 +44,7 @@ export default {
...
@@ -43,7 +44,7 @@ export default {
},
},
beforeMount
(){
beforeMount
(){
let
obj
=
{
name
:
'西安'
,
codeC
:
'610100'
}
let
obj
=
{
name
:
'西安'
,
codeC
:
'610100'
}
const
cityItem
=
local
Storage
.
getItem
(
'cityItem'
)
const
cityItem
=
session
Storage
.
getItem
(
'cityItem'
)
this
.
cityItem
=
cityItem
?
JSON
.
parse
(
cityItem
):
obj
this
.
cityItem
=
cityItem
?
JSON
.
parse
(
cityItem
):
obj
},
},
methods
:
{
methods
:
{
...
@@ -58,7 +59,7 @@ export default {
...
@@ -58,7 +59,7 @@ export default {
},
},
handleConfirm
(){
handleConfirm
(){
const
cityItem
=
this
.
cityItem
const
cityItem
=
this
.
cityItem
local
Storage
.
setItem
(
'cityItem'
,
JSON
.
stringify
(
cityItem
))
session
Storage
.
setItem
(
'cityItem'
,
JSON
.
stringify
(
cityItem
))
this
.
$emit
(
'emitChangeCity'
)
this
.
$emit
(
'emitChangeCity'
)
},
},
...
@@ -152,11 +153,10 @@ export default {
...
@@ -152,11 +153,10 @@ export default {
width: 100%;
width: 100%;
left: 0;
left: 0;
background: #fff;
background: #fff;
max-height: 400/@r;
overflow-y: auto;
opacity: 0;
opacity: 0;
bottom: -400/@r;
bottom: -400/@r;
transition: all .3s;
transition: all .3s;
&.active{
&.active{
opacity: 1;
opacity: 1;
bottom: 0;
bottom: 0;
...
@@ -166,12 +166,12 @@ export default {
...
@@ -166,12 +166,12 @@ export default {
}
}
}
}
.choose-header{
.choose-header{
position: fixed;
//
position: fixed;
width: 100%;
//
width: 100%;
height: 80/@r;
height: 80/@r;
line-height: 80/@r;
line-height: 80/@r;
left: 0;
//
left: 0;
bottom: 400/@r;
//
bottom: 400/@r;
background: #de4b4b;
background: #de4b4b;
color: #fff;
color: #fff;
font-size: 28/@r;
font-size: 28/@r;
...
@@ -179,6 +179,7 @@ export default {
...
@@ -179,6 +179,7 @@ export default {
opacity: 0;
opacity: 0;
bottom:-80/@r;
bottom:-80/@r;
transition: all .3s;
transition: all .3s;
z-index: 99999;
.cancle,
.cancle,
.confirm{
.confirm{
position: absolute;
position: absolute;
...
@@ -192,6 +193,13 @@ export default {
...
@@ -192,6 +193,13 @@ export default {
padding-right: 20/@r;
padding-right: 20/@r;
}
}
}
}
.select-item{
max-height: 400/@r;
overflow-y: auto;
}
// 自定义多选框的样式
// 自定义多选框的样式
label {
label {
margin: 0;
margin: 0;
...
...
2code/web/h5_pro/src/views/home/index.vue
View file @
fe673e18
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
getPageData
(
cb
)
{
getPageData
(
cb
)
{
const
cityItem
=
local
Storage
.
getItem
(
'cityItem'
)
const
cityItem
=
session
Storage
.
getItem
(
'cityItem'
)
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
const
getAdvertList
=
()
=>
{
const
getAdvertList
=
()
=>
{
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
};
};
const
getWorkerList
=
()
=>
{
const
getWorkerList
=
()
=>
{
home
.
getWorkerList
({}).
then
(
res
=>
{
home
.
getWorkerList
({
cityId
:
code
}).
then
(
res
=>
{
this
.
staffData
=
res
.
data
;
this
.
staffData
=
res
.
data
;
});
});
};
};
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
changeCityGetPgeData
(){
changeCityGetPgeData
(){
const
cityItem
=
local
Storage
.
getItem
(
'cityItem'
)
const
cityItem
=
session
Storage
.
getItem
(
'cityItem'
)
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
const
getStoreList
=
()
=>
{
const
getStoreList
=
()
=>
{
home
.
getStoreList
({
cityId
:
code
}).
then
(
res
=>
{
home
.
getStoreList
({
cityId
:
code
}).
then
(
res
=>
{
...
@@ -103,15 +103,15 @@ export default {
...
@@ -103,15 +103,15 @@ export default {
});
});
};
};
//
const getWorkerList = () => {
const
getWorkerList
=
()
=>
{
//
home.getWorkerList({cityId:code}).then(res => {
home
.
getWorkerList
({
cityId
:
code
}).
then
(
res
=>
{
//
this.staffData = res.data;
this
.
staffData
=
res
.
data
;
//
});
});
//
};
};
axios
.
all
([
getStoreList
()]).
then
((
s
,
f
)
=>
{
axios
.
all
([
getStoreList
()
,
getWorkerList
()
]).
then
((
s
,
f
)
=>
{
this
.
$refs
.
chanceCity
.
handleCancle
()
this
.
$refs
.
chanceCity
.
handleCancle
()
});
});
}
}
...
...
2code/web/h5_pro/src/views/shopList/components/MoreShop.vue
View file @
fe673e18
...
@@ -78,7 +78,7 @@ export default {
...
@@ -78,7 +78,7 @@ export default {
},
},
methods
:
{
methods
:
{
taggleModelFun
()
{
taggleModelFun
()
{
const
cityItem
=
local
Storage
.
getItem
(
'cityItem'
)
const
cityItem
=
session
Storage
.
getItem
(
'cityItem'
)
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
this
.
getChooseData
(
code
,()
=>
{
this
.
getChooseData
(
code
,()
=>
{
this
.
show
=
!
this
.
show
;
this
.
show
=
!
this
.
show
;
...
...
2code/web/h5_pro/src/views/shopList/index.vue
View file @
fe673e18
...
@@ -28,10 +28,10 @@ export default {
...
@@ -28,10 +28,10 @@ export default {
},
},
beforeMount
(){
beforeMount
(){
const
name
=
this
.
$route
.
query
const
name
=
this
.
$route
.
query
const
cityItem
=
local
Storage
.
getItem
(
'cityItem'
)
const
cityItem
=
session
Storage
.
getItem
(
'cityItem'
)
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
let
param
let
param
;
if
(
name
){
if
(
name
.
hasOwnProperty
(
'storeName'
)
){
param
=
{
param
=
{
storeName
:
name
.
storeName
storeName
:
name
.
storeName
}
}
...
...
2code/web/h5_pro/src/views/workerList/index.vue
View file @
fe673e18
...
@@ -28,7 +28,10 @@ export default {
...
@@ -28,7 +28,10 @@ export default {
};
};
},
},
beforeMount
(){
beforeMount
(){
this
.
getPageData
({})
const
cityItem
=
sessionStorage
.
getItem
(
'cityItem'
)
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
this
.
getPageData
({
cityId
:
code
})
},
},
methods
:{
methods
:{
toWorkerDetails
(
id
){
toWorkerDetails
(
id
){
...
@@ -42,6 +45,9 @@ export default {
...
@@ -42,6 +45,9 @@ export default {
},
},
handleChooseSuccess
(
data
){
handleChooseSuccess
(
data
){
const
cityItem
=
sessionStorage
.
getItem
(
'cityItem'
)
let
code
=
cityItem
?
JSON
.
parse
(
cityItem
).
codeC
:
'610100'
data
.
cityId
=
code
this
.
getPageData
(
data
,()
=>
{
this
.
getPageData
(
data
,()
=>
{
this
.
$refs
.
chooseMore
.
handleCancle
()
this
.
$refs
.
chooseMore
.
handleCancle
()
})
})
...
...
2code/web/mgt_pro/src/router/index.js
View file @
fe673e18
...
@@ -62,7 +62,7 @@ export const asyncRouterMap = [
...
@@ -62,7 +62,7 @@ export const asyncRouterMap = [
redirect
:
'/store/storeList'
,
redirect
:
'/store/storeList'
,
meta
:
{
meta
:
{
title
:
'店铺管理'
,
title
:
'店铺管理'
,
icon
:
'c
heliang
'
icon
:
'c
ommpany
'
},
},
children
:
[
children
:
[
{
path
:
'storeList'
,
component
:
_import
(
'store/storeList'
),
name
:
'store_storeList'
,
meta
:
{
title
:
'店铺列表'
}}
{
path
:
'storeList'
,
component
:
_import
(
'store/storeList'
),
name
:
'store_storeList'
,
meta
:
{
title
:
'店铺列表'
}}
...
@@ -77,7 +77,7 @@ export const asyncRouterMap = [
...
@@ -77,7 +77,7 @@ export const asyncRouterMap = [
redirect
:
'/advert/advertList'
,
redirect
:
'/advert/advertList'
,
meta
:
{
meta
:
{
title
:
'运营管理'
,
title
:
'运营管理'
,
icon
:
'
chelia
ng'
icon
:
'
yunyi
ng'
},
},
children
:
[
children
:
[
{
path
:
'advertList'
,
component
:
_import
(
'advert/advertList'
),
name
:
'advert_advertList'
,
meta
:
{
title
:
'活动列表'
}}
{
path
:
'advertList'
,
component
:
_import
(
'advert/advertList'
),
name
:
'advert_advertList'
,
meta
:
{
title
:
'活动列表'
}}
...
@@ -92,7 +92,7 @@ export const asyncRouterMap = [
...
@@ -92,7 +92,7 @@ export const asyncRouterMap = [
redirect
:
'/administrators/administratorstList'
,
redirect
:
'/administrators/administratorstList'
,
meta
:
{
meta
:
{
title
:
'店铺管理员'
,
title
:
'店铺管理员'
,
icon
:
'
chelia
ng'
icon
:
'
fangkeshuxi
ng'
},
},
children
:
[
children
:
[
{
path
:
'administratorstList'
,
component
:
_import
(
'administrators/administratorstList'
),
name
:
'administrators_administratorstList'
,
meta
:
{
title
:
'店铺管理员列表'
}}
{
path
:
'administratorstList'
,
component
:
_import
(
'administrators/administratorstList'
),
name
:
'administrators_administratorstList'
,
meta
:
{
title
:
'店铺管理员列表'
}}
...
@@ -107,7 +107,7 @@ export const asyncRouterMap = [
...
@@ -107,7 +107,7 @@ export const asyncRouterMap = [
redirect
:
'/worker/workerList'
,
redirect
:
'/worker/workerList'
,
meta
:
{
meta
:
{
title
:
'员工管理'
,
title
:
'员工管理'
,
icon
:
'
chelia
ng'
icon
:
'
fangkeshuxi
ng'
},
},
children
:
[
children
:
[
{
path
:
'workerList'
,
component
:
_import
(
'worker/workerList'
),
name
:
'worker_workerList'
,
meta
:
{
title
:
'员工列表'
}}
{
path
:
'workerList'
,
component
:
_import
(
'worker/workerList'
),
name
:
'worker_workerList'
,
meta
:
{
title
:
'员工列表'
}}
...
...
2code/web/mgt_pro/src/views/advert/advertList.vue
View file @
fe673e18
...
@@ -15,33 +15,6 @@
...
@@ -15,33 +15,6 @@
<el-col
:span=
"17"
><el-input
placeholder=
"请输入关键字"
v-model=
"seacherParam.advertTitle"
@
keyup
.
enter
.
native=
"seachFun"
></el-input></el-col>
<el-col
:span=
"17"
><el-input
placeholder=
"请输入关键字"
v-model=
"seacherParam.advertTitle"
@
keyup
.
enter
.
native=
"seachFun"
></el-input></el-col>
</el-col>
</el-col>
<el-col
:span=
"4"
:lg=
"6"
:md=
"6"
:sm=
"8"
>
<el-col
class=
"input-name"
:span=
"7"
>
启用状态
</el-col>
<el-col
:span=
"17"
style=
"line-height:40px"
>
<el-select
v-model=
"seacherParam.isAvailable"
placeholder=
"请选择"
>
<el-option
v-for=
"item in isAvailableData"
:key=
"item.code"
:label=
"item.name"
:value=
"item.code"
>
</el-option>
</el-select>
</el-col>
</el-col>
<!--
<el-col
:span=
"4"
>
<el-col
class=
"input-name"
:span=
"7"
>
审核状态
</el-col>
<el-col
:span=
"17"
style=
"line-height:40px"
>
<el-select
v-model=
"seacherParam.censorStatus"
placeholder=
"请选择"
>
<el-option
v-for=
"item in censorStatusData"
:key=
"item.code"
:label=
"item.name"
:value=
"item.code"
>
</el-option>
</el-select>
</el-col>
</el-col>
-->
</el-row>
</el-row>
</el-card>
</el-card>
<el-card>
<el-card>
...
@@ -58,7 +31,7 @@
...
@@ -58,7 +31,7 @@
<el-table-column
label=
"活动标题"
>
<el-table-column
label=
"活动标题"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
`${scope.row.advertTitle
}
-${scope.row.advertTitle
}
`
||
'暂无数据'
}}
<
/span
>
<span>
{{
scope
.
row
.
advertTitle
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"linkUrl"
label=
"链接地址"
></el-table-column>
<el-table-column
prop=
"linkUrl"
label=
"链接地址"
></el-table-column>
...
@@ -88,29 +61,11 @@
...
@@ -88,29 +61,11 @@
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
circle
class=
"table-icon"
@
click=
"check(scope.row)"
><i
class=
"iconfont icon-chakan"
></i></el-button>
<el-button
type=
"primary"
circle
class=
"table-icon"
@
click=
"check(scope.row)"
><i
class=
"iconfont icon-chakan"
></i></el-button>
<
el
-
button
v
-
if
=
"scope.row.isAvailable===0"
type
=
"primary"
icon
=
"el-icon-edit"
circle
class
=
"table-icon"
@
click
=
"edit(scope.row)"
><
/el-button
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"edit(scope.row)"
></el-button>
<!--
<
el
-
popover
v
-
if
=
"scope.row.censorStatus!=1"
placement
=
"top"
trigger
=
"hover"
width
=
"240"
v
-
model
=
"scope.row.delState1"
>
<
p
style
=
"margin-bottom:10px;font-weight:700;"
>
审核
<
/p
>
<
div
style
=
"padding:10px 0;"
>
<
template
>
<
el
-
radio
v
-
model
=
"censorStatus"
:
label
=
"1"
>
已审核
<
/el-radio
>
<
el
-
radio
v
-
model
=
"censorStatus"
:
label
=
"2"
>
未通过
<
/el-radio
>
<
/template
>
<
/div
>
<
div
style
=
"text-align: right; margin: 0"
>
<
el
-
button
size
=
"mini"
type
=
"text"
@
click
=
"scope.row.delState1 = false"
>
取消
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"mini"
@
click
=
"handleCensor(scope.row)"
>
确定
<
/el-button
>
<
/div
>
<
el
-
button
slot
=
"reference"
type
=
"warning"
circle
icon
=
"el-icon-setting"
class
=
"table-icon popver-btn"
><
/el-button
>
<
/el-popover> --
>
<el-popover
<el-popover
v
-
if
=
"scope.row.
censorStatus==1&&scope.row.
isAvailable==0"
v-if=
"scope.row.isAvailable==0"
placement=
"top"
placement=
"top"
width=
"160"
width=
"160"
trigger=
"hover"
trigger=
"hover"
...
@@ -125,7 +80,7 @@
...
@@ -125,7 +80,7 @@
</el-popover>
</el-popover>
<el-popover
<el-popover
v
-
if
=
"scope.row.
censorStatus==1&&scope.row.
isAvailable==1"
v-if=
"scope.row.isAvailable==1"
placement=
"top"
placement=
"top"
width=
"160"
width=
"160"
trigger=
"hover"
trigger=
"hover"
...
@@ -201,7 +156,7 @@
...
@@ -201,7 +156,7 @@
:viewUrl=
"this.dialogBindData.advertPicUrl"
:viewUrl=
"this.dialogBindData.advertPicUrl"
@
emitSuccess=
"handleImgLoad"
>
@
emitSuccess=
"handleImgLoad"
>
</up-load-img>
</up-load-img>
<
img
@
click
=
"magnify(dialogBindData.advertPicUrl)"
v
-
else
:
src
=
"dialogBindData.advertPicUrl"
width
=
"246"
height
=
"144"
>
<img
v-else
:src=
"dialogBindData.advertPicUrl"
width=
"246"
height=
"144"
>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -252,7 +207,8 @@ export default {
...
@@ -252,7 +207,8 @@ export default {
advertTitle
:
""
,
advertTitle
:
""
,
advertName
:
""
,
advertName
:
""
,
isAvailable
:
null
,
isAvailable
:
null
,
censorStatus
:
null
censorStatus
:
null
,
advertPicUrl
:
''
},
},
isAvailableData
:
[
isAvailableData
:
[
{
code
:
1
,
name
:
"已启用"
},
{
code
:
1
,
name
:
"已启用"
},
...
@@ -277,21 +233,6 @@ export default {
...
@@ -277,21 +233,6 @@ export default {
// ---------------------------------------查看和编辑dialog--------------------------------
// ---------------------------------------查看和编辑dialog--------------------------------
dialogState
:
false
,
dialogState
:
false
,
dialogType
:
1
,
// 1--增加 2--编辑 3--查看
dialogType
:
1
,
// 1--增加 2--编辑 3--查看
//dialog弹框绑定数据
// createTime:1527314737000
// createTimeEnd:null
// createTimeStart:null
// isVailable:
// memo:"日常拜访"
// operatorId:null
// operatorType:null
// pk:"1001"
// updateTime:null
// updateTimeEnd:null
// updateTimeStart:null
// visitReason:"日常拜访"
// visitReasonId:"1001"
dialogBindData
:
{
dialogBindData
:
{
advertId
:
""
,
advertId
:
""
,
...
@@ -379,39 +320,17 @@ export default {
...
@@ -379,39 +320,17 @@ export default {
}
}
},
},
submmitFun
()
{
submmitFun
()
{
// if (this.dialogType === 1)
{
// alert(`添加$
{
JSON
.
stringify
(
this
.
dialogBindData
)
}
`);
//
}
else {
// alert(`
编辑
$
{
JSON
.
stringify
(
this
.
dialogBindData
)
}
`);
//
}
// 发送添加请求
const
param
=
{
const
param
=
{
advertId
:
this
.
dialogBindData
.
advertId
,
advertId
:
this
.
dialogBindData
.
advertId
,
advertType
:
1
,
advertType
:
1
,
// advertName: this.dialogBindData.advertName,
advertTitle
:
this
.
dialogBindData
.
advertTitle
,
advertTitle
:
this
.
dialogBindData
.
advertTitle
,
// advertSubtitle: this.dialogBindData.advertSubtitle,
advertContent
:
this
.
dialogBindData
.
advertContent
,
advertContent
:
this
.
dialogBindData
.
advertContent
,
advertPicUrl:
advertPicUrl
:
this
.
dialogBindData
.
advertPicUrl
,
this.dialogBindData.advertType == 2
? null
: this.dialogBindData.advertPicUrl,
censorStatus
:
1
,
censorStatus
:
1
,
isAvailable
:
1
,
isAvailable
:
1
,
linkUrl
:
this
.
dialogBindData
.
linkUrl
linkUrl
:
this
.
dialogBindData
.
linkUrl
};
};
this
.
submmitSuccess
=
true
;
const isSubmitActive =
param.advertType &&
// param.advertName &&
param.advertTitle &&
// param.advertSubtitle &&
(param.advertPicUrl === null
? true
: this.dialogBindData.advertPicUrl) &&
param.advertContent;
if (isSubmitActive) {
this.submmitSuccess = true;
adver
.
addOrEditAdvert
(
param
).
then
(
res
=>
{
adver
.
addOrEditAdvert
(
param
).
then
(
res
=>
{
this
.
getList
(()
=>
{
this
.
getList
(()
=>
{
this
.
$message
({
this
.
$message
({
...
@@ -422,12 +341,6 @@ export default {
...
@@ -422,12 +341,6 @@ export default {
this
.
handleClose
();
this
.
handleClose
();
});
});
});
});
}
else {
this.$message({
message: "请完善提交信息",
type: "warning"
}
);
}
},
},
//关闭弹框
//关闭弹框
handleClose
()
{
handleClose
()
{
...
@@ -486,7 +399,6 @@ export default {
...
@@ -486,7 +399,6 @@ export default {
},
},
// 改变启用状态
// 改变启用状态
handleIsVailable
(
data
)
{
handleIsVailable
(
data
)
{
console.log(data.isAvailable);
const
param
=
{
const
param
=
{
advertId
:
data
.
advertId
,
advertId
:
data
.
advertId
,
isAvailable
:
data
.
isAvailable
?
1
:
0
isAvailable
:
data
.
isAvailable
?
1
:
0
...
@@ -513,7 +425,7 @@ export default {
...
@@ -513,7 +425,7 @@ export default {
},
},
// 上传图片成功
// 上传图片成功
handleImgLoad
(
data
)
{
handleImgLoad
(
data
)
{
this.dialogBindData.advertPicUrl = data
.url
;
this
.
dialogBindData
.
advertPicUrl
=
data
;
},
},
viewCensorStatus
(
code
)
{
viewCensorStatus
(
code
)
{
if
(
code
==
0
)
{
if
(
code
==
0
)
{
...
@@ -524,24 +436,8 @@ export default {
...
@@ -524,24 +436,8 @@ export default {
return
"未通过"
;
return
"未通过"
;
}
}
},
},
// 审核函数
handleCensor(data) {
const param = {
advertId: data.advertId,
censorStatus: this.censorStatus
}
;
adver.addOrEditAdvert(param).then(res => {
if (res.data.code === "1") {
this.getList(() => {
this.$message({
message: "审核完成",
type: "success"
}
);
this.submmitSuccess = false;
}
);
}
}
);
}
,
// 启用停用
// 启用停用
handleUserState
(
data
)
{
handleUserState
(
data
)
{
const
param
=
{
const
param
=
{
...
...
2code/web/mgt_pro/src/views/store/storeList.vue
View file @
fe673e18
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</div>
</div>
<div
class=
"table-wrapper"
>
<div
class=
"table-wrapper"
>
<el-table
empty-text=
"暂无数据"
:stripe=
"true"
:data=
"dataOption"
v-loading=
"!dataOption"
>
<el-table
empty-text=
"暂无数据"
:stripe=
"true"
:data=
"dataOption"
v-loading=
"!dataOption"
>
<el-table-column
prop=
"serialNumber"
label=
"推荐序号"
sortable
></el-table-column>
<el-table-column
prop=
"storeName"
label=
"店铺名称"
></el-table-column>
<el-table-column
prop=
"storeName"
label=
"店铺名称"
></el-table-column>
<el-table-column
prop=
"contactNumber"
label=
"联系电话"
></el-table-column>
<el-table-column
prop=
"contactNumber"
label=
"联系电话"
></el-table-column>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="memo" label="备注"></el-table-column> -->
...
@@ -80,7 +80,9 @@
...
@@ -80,7 +80,9 @@
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"edit(scope.row)"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"edit(scope.row)"
></el-button>
<!-- 推荐 -->
<!-- 推荐 -->
<el-button
v-if=
"scope.row.isAuditing==1 && scope.row.isShopping==1"
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"handleRecommendFun(scope.row)"
></el-button>
<el-button
v-if=
"scope.row.isAuditing==1 && scope.row.isShopping==1"
type=
"success"
circle
class=
"table-icon"
@
click=
"handleRecommendFun(scope.row)"
><i
class=
"iconfont icon-tijiao"
></i></el-button>
<!-- 删除 -->
<!-- 删除 -->
...
@@ -93,7 +95,7 @@
...
@@ -93,7 +95,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"del(scope.row)"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"del(scope.row)"
>
确定
</el-button>
</div>
</div>
<el-button
slot=
"reference"
type=
"
warning
"
circle
icon=
"el-icon-delete"
class=
"table-icon popver-btn"
></el-button>
<el-button
slot=
"reference"
type=
"
danger
"
circle
icon=
"el-icon-delete"
class=
"table-icon popver-btn"
></el-button>
</el-popover>
</el-popover>
<!-- 审核 -->
<!-- 审核 -->
...
@@ -107,7 +109,7 @@
...
@@ -107,7 +109,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState1 = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState1 = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAuditFun(scope.row)"
>
通过
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAuditFun(scope.row)"
>
通过
</el-button>
</div>
</div>
<el-button
slot=
"reference"
type=
"warning"
circle
icon=
"el-icon-
delete
"
class=
"table-icon popver-btn"
></el-button>
<el-button
slot=
"reference"
type=
"warning"
circle
icon=
"el-icon-
setting
"
class=
"table-icon popver-btn"
></el-button>
</el-popover>
</el-popover>
...
@@ -593,7 +595,9 @@ export default {
...
@@ -593,7 +595,9 @@ export default {
);
);
param
.
matureTime
=
this
.
fattTime
(
this
.
dialogBindData
.
matureTime
);
param
.
matureTime
=
this
.
fattTime
(
this
.
dialogBindData
.
matureTime
);
param
.
administratorsName
=
this
.
buildManagerName
(
this
.
managerData
,
this
.
dialogBindData
.
administratorsId
)
param
.
administratorsName
=
this
.
buildManagerName
(
this
.
managerData
,
this
.
dialogBindData
.
administratorsId
)
if
(
this
.
dialogType
==
1
){
param
.
serialNumber
=
99
}
this
.
submmitSuccess
=
true
;
this
.
submmitSuccess
=
true
;
store
.
addOrEditStore
(
param
).
then
(
res
=>
{
store
.
addOrEditStore
(
param
).
then
(
res
=>
{
this
.
getList
(()
=>
{
this
.
getList
(()
=>
{
...
@@ -645,6 +649,7 @@ export default {
...
@@ -645,6 +649,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
// 初始话表格数据
// 初始话表格数据
this
.
dataOption
=
res
.
data
.
data
;
this
.
dataOption
=
res
.
data
.
data
;
// 初始化分页数据
// 初始化分页数据
this
.
rowCount
=
res
.
data
.
rowCount
;
this
.
rowCount
=
res
.
data
.
rowCount
;
this
.
pageSize
=
res
.
data
.
pageSize
;
this
.
pageSize
=
res
.
data
.
pageSize
;
...
...
2code/web/mgt_pro/src/views/system/user.vue
View file @
fe673e18
...
@@ -355,7 +355,7 @@ export default {
...
@@ -355,7 +355,7 @@ export default {
},
},
check
(
data
)
{
check
(
data
)
{
this
.
dialogType
=
3
;
this
.
dialogType
=
3
;
this
.
get
SectionsByDeptId
(
data
.
deptId
,
()
=>
{
this
.
get
RoleAndUserData
(
()
=>
{
this
.
reBindData
(
data
);
this
.
reBindData
(
data
);
this
.
dialogState
=
true
;
this
.
dialogState
=
true
;
});
});
...
...
2code/web/mgt_pro/src/views/worker/workerList.vue
View file @
fe673e18
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
<el-row
:gutter=
"15"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-col
class=
"input-name"
:span=
"7"
>
维修工名称
</el-col>
<el-col
class=
"input-name"
:span=
"7"
>
员工姓名
</el-col>
<el-col
:span=
"17"
><el-input
placeholder=
"请输入关键字"
v-model=
"seacherParam.workerName"
@
keyup
.
enter
.
native=
"seachFun"
></el-input></el-col>
<el-col
:span=
"17"
><el-input
placeholder=
"请输入关键字"
v-model=
"seacherParam.workerName"
@
keyup
.
enter
.
native=
"seachFun"
></el-input></el-col>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<div
class=
"table-wrapper"
>
<div
class=
"table-wrapper"
>
<el-table
empty-text=
"暂无数据"
:stripe=
"true"
:data=
"dataOption"
v-loading=
"!dataOption"
>
<el-table
empty-text=
"暂无数据"
:stripe=
"true"
:data=
"dataOption"
v-loading=
"!dataOption"
>
<el-table-column
prop=
"serialNumber"
label=
"推荐序号"
sortable
></el-table-column>
<el-table-column
prop=
"workerNumber"
label=
"工号"
></el-table-column>
<el-table-column
prop=
"workerNumber"
label=
"工号"
></el-table-column>
<el-table-column
prop=
"workerName"
label=
"姓名"
></el-table-column>
<el-table-column
prop=
"workerName"
label=
"姓名"
></el-table-column>
<el-table-column
label=
"性别"
>
<el-table-column
label=
"性别"
>
...
@@ -66,15 +66,14 @@
...
@@ -66,15 +66,14 @@
<el-table-column
label=
"操作"
width=
"200"
>
<el-table-column
label=
"操作"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
circle
class=
"table-icon"
@
click=
"check(scope.row)"
><i
class=
"iconfont icon-chakan"
></i></el-button>
<el-button
type=
"primary"
circle
class=
"table-icon"
@
click=
"check(scope.row)"
><i
class=
"iconfont icon-chakan"
></i></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"edit(scope.row)"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"edit(scope.row)"
></el-button>
<!-- 推荐 -->
<!-- 推荐 -->
<el-button
v-if=
"scope.row.isAuditing==1 && scope.row.isShopping==1"
type=
"primary"
icon=
"el-icon-edit"
circle
class=
"table-icon"
@
click=
"handleRecommendFun(scope.row)"
></el-button>
<el-button
v-if=
"scope.row.isAuditing==1 && scope.row.isShopping==1"
type=
"success"
circle
class=
"table-icon"
@
click=
"handleRecommendFun(scope.row)"
><i
class=
"iconfont icon-tijiao"
></i></el-button>
<!-- 删除 -->
<!-- 删除 -->
<el-popover
<el-popover
...
@@ -86,7 +85,7 @@
...
@@ -86,7 +85,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"del(scope.row)"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"del(scope.row)"
>
确定
</el-button>
</div>
</div>
<el-button
slot=
"reference"
type=
"
warning
"
circle
icon=
"el-icon-delete"
class=
"table-icon popver-btn"
></el-button>
<el-button
slot=
"reference"
type=
"
danger
"
circle
icon=
"el-icon-delete"
class=
"table-icon popver-btn"
></el-button>
</el-popover>
</el-popover>
<!-- 审核 -->
<!-- 审核 -->
...
@@ -100,7 +99,7 @@
...
@@ -100,7 +99,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState1 = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delState1 = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAuditFun(scope.row)"
>
通过
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleAuditFun(scope.row)"
>
通过
</el-button>
</div>
</div>
<el-button
slot=
"reference"
type=
"warning"
circle
icon=
"el-icon-
delete
"
class=
"table-icon popver-btn"
></el-button>
<el-button
slot=
"reference"
type=
"warning"
circle
icon=
"el-icon-
setting
"
class=
"table-icon popver-btn"
></el-button>
</el-popover>
</el-popover>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -471,6 +470,10 @@ export default {
...
@@ -471,6 +470,10 @@ export default {
this
.
dialogBindData
.
storeId
this
.
dialogBindData
.
storeId
);
);
param
.
matureTime
=
this
.
fattTime
(
this
.
dialogBindData
.
matureTime
);
param
.
matureTime
=
this
.
fattTime
(
this
.
dialogBindData
.
matureTime
);
if
(
this
.
dialogType
==
1
){
param
.
serialNumber
=
99
}
this
.
submmitSuccess
=
true
;
this
.
submmitSuccess
=
true
;
worker
.
addOrEditWorker
(
param
).
then
(
res
=>
{
worker
.
addOrEditWorker
(
param
).
then
(
res
=>
{
...
...
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