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
dbd1c02b
Commit
dbd1c02b
authored
Nov 13, 2018
by
燕南天
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善飞飞后台项目
parent
f7380696
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
313 additions
and
93 deletions
+313
-93
host.cfg.js
2code/web/mgt_pro/config/host.cfg.js
+2
-6
index.js
2code/web/mgt_pro/config/index.js
+1
-1
common.js
2code/web/mgt_pro/src/api/common.js
+19
-11
store.js
2code/web/mgt_pro/src/api/store.js
+6
-4
worker.js
2code/web/mgt_pro/src/api/worker.js
+9
-1
viewImg.css
2code/web/mgt_pro/src/directive/viewImg/viewImg.css
+26
-0
viewImg.js
2code/web/mgt_pro/src/directive/viewImg/viewImg.js
+94
-1
advertList.vue
2code/web/mgt_pro/src/views/advert/advertList.vue
+0
-61
ViewPage.vue
2code/web/mgt_pro/src/views/store/components/ViewPage.vue
+77
-0
storeList.vue
2code/web/mgt_pro/src/views/store/storeList.vue
+0
-0
dataDictItem.vue
2code/web/mgt_pro/src/views/system/dataDictItem.vue
+1
-3
param.vue
2code/web/mgt_pro/src/views/system/param.vue
+1
-5
ViewPage.vue
2code/web/mgt_pro/src/views/worker/components/ViewPage.vue
+77
-0
workerList.vue
2code/web/mgt_pro/src/views/worker/workerList.vue
+0
-0
No files found.
2code/web/mgt_pro/config/host.cfg.js
View file @
dbd1c02b
...
...
@@ -4,12 +4,8 @@
* @param prod==>正式上线环境
* */
module
.
exports
=
{
// sit: "http://192.168.1.102:8080/logistics-mgt",//超哥本地
// sit: "http://192.168.200.173:8080",//杨飞本地
// sit:"http://flynet.imwork.net:35609/logistics-mgt",
// sit:"https://chalk.fqyxa.com", //上线环境
// sit:"http://192.168.1.103:8781",//毅豪本地
sit
:
"http://192.168.1.112:8080/store-system"
,
sit
:
"http://192.168.1.104:8080/store-system"
,
//毅豪本地
// sit:"http://192.168.1.112:8080/store-system",
// -----------------------------------------------------------------
prod
:
"http:正式环境"
}
2code/web/mgt_pro/config/index.js
View file @
dbd1c02b
...
...
@@ -14,7 +14,7 @@ module.exports = {
// Various Dev Server settings
// host: 'localhost', // can be overwritten by process.env.HOST
host
:
'192.168.1.1
12
'
,
// can be overwritten by process.env.HOST
host
:
'192.168.1.1
07
'
,
// can be overwritten by process.env.HOST
port
:
9527
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
true
,
errorOverlay
:
true
,
...
...
2code/web/mgt_pro/src/api/common.js
View file @
dbd1c02b
import
request
from
'./request'
import
qs
from
'qs'
// 获取单位组织架构数据
export
function
getDepsInfo
()
{
// 地址三级联动
export
function
getProviceList
()
{
return
request
({
url
:
'/common/getDepsInfo
'
,
method
:
'post'
url
:
'/pca/getProviceList
'
,
method
:
'post'
,
})
}
// 获取访问事由列表
export
function
get
VisitReasons
(
)
{
export
function
get
CityList
(
data
)
{
return
request
({
url
:
'/common/getVisitReasons'
,
method
:
'post'
url
:
'/pca/getCityList'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
// 根据科室id查询,人员信息
export
function
getMemberListBySection
(
data
)
{
export
function
getAreaList
(
data
)
{
return
request
({
url
:
'/
member/getMemberListBySection
'
,
url
:
'/
pca/getAreaList
'
,
method
:
'post'
,
data
:
qs
.
stringify
(
data
)
})
}
2code/web/mgt_pro/src/api/store.js
View file @
dbd1c02b
...
...
@@ -9,8 +9,6 @@ export function storeList(data) {
})
}
export
function
addOrEditStore
(
data
)
{
return
request
({
url
:
'/store/addOrEditStore'
,
...
...
@@ -29,7 +27,11 @@ export function delStore(data) {
})
}
export
function
getStoreAdministrators
()
{
return
request
({
url
:
'/administrators/getStoreAdministrators'
,
method
:
'post'
})
}
2code/web/mgt_pro/src/api/worker.js
View file @
dbd1c02b
...
...
@@ -10,7 +10,6 @@ export function workerList(data) {
}
export
function
addOrEditWorker
(
data
)
{
return
request
({
url
:
'/worker/addOrEditWorker'
,
...
...
@@ -33,3 +32,12 @@ export function delWorker(data) {
export
function
getStores
()
{
return
request
({
url
:
'/store/getStores'
,
method
:
'post'
})
}
2code/web/mgt_pro/src/directive/viewImg/viewImg.css
0 → 100644
View file @
dbd1c02b
.dir-view-bg
{
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
.7
);
position
:
fixed
;
top
:
0
;
left
:
0
;
z-index
:
10001
;
}
.dir-view-img
{
position
:
fixed
;
transition
:
all
.3s
;
z-index
:
10002
;
cursor
:
pointer
;
}
.dir-img-style
{
height
:
60px
;
width
:
60px
;
background-size
:
60px
60px
;
background-image
:
url("../../../static/images/xuanzhuan.png")
;
position
:
absolute
;
right
:
200px
;
top
:
120px
;
}
2code/web/mgt_pro/src/directive/viewImg/viewImg.js
View file @
dbd1c02b
export
default
{
import
"./viewImg.css"
export
default
{
bind
(
el
,
binding
)
{
// 第一步先改变hover样式
el
.
style
.
cursor
=
"pointer"
;
el
.
addEventListener
(
'click'
,
e
=>
{
// copy,移动图片
copyAndMoveImg
(
e
)
// 关闭遮罩,还原图片
},
false
)
}
}
function
copyAndMoveImg
(
e
)
{
// 创建遮罩
let
current
=
0
let
content
=
`<img :src=require("../../../../static/images/xuanzhuan.png") style='height:30px;width=30px;margin-right:200px;margin-bottom:120px;'>`
let
viewImgBg
=
document
.
createElement
(
'div'
);
let
div1
=
document
.
createElement
(
'div'
);
viewImgBg
.
className
=
"dir-view-bg"
;
viewImgBg
.
appendChild
(
div1
)
div1
.
innerHTML
=
content
document
.
body
.
appendChild
(
viewImgBg
);
const
ele
=
e
.
target
const
elePositionParam
=
ele
.
getBoundingClientRect
();
const
imgSrc
=
ele
.
getAttribute
(
"src"
);
const
newParam
=
caculNewParam
(
elePositionParam
);
let
newImg
=
document
.
createElement
(
"img"
);
newImg
.
className
=
"dir-view-img"
;
renderImg
(
newImg
,
elePositionParam
);
newImg
.
setAttribute
(
"src"
,
imgSrc
);
document
.
body
.
appendChild
(
newImg
);
div1
.
className
=
"dir-img-style"
div1
.
onclick
=
function
(
e
)
{
current
=
current
+
90
;
newImg
.
style
.
transform
=
'rotate('
+
current
+
'deg)'
e
.
stopPropagation
()
}
setTimeout
(()
=>
{
renderImg
(
newImg
,
newParam
,
el
=>
{
el
.
addEventListener
(
'click'
,
e
=>
{
const
cfg
=
{
newImg
:
newImg
,
elePositionParam
:
elePositionParam
}
removeDom
(
cfg
)
},
false
)
})
},
100
)
viewImgBg
.
addEventListener
(
'click'
,
e
=>
{
const
cfg
=
{
newImg
:
newImg
,
elePositionParam
:
elePositionParam
}
removeDom
(
cfg
)
},
false
)
}
function
renderImg
(
ele
,
imgParam
,
cb
)
{
ele
.
style
.
width
=
`
${
imgParam
.
width
}
px`
;
ele
.
style
.
height
=
`
${
imgParam
.
height
}
px`
;
ele
.
style
.
top
=
`
${
imgParam
.
top
}
px`
;
ele
.
style
.
left
=
`
${
imgParam
.
left
}
px`
;
cb
?
cb
(
ele
)
:
''
}
// 计算图片的新参数
function
caculNewParam
(
param
)
{
const
_WIN_HEIGHT
=
document
.
body
.
clientHeight
;
const
_WIN_WIDTH
=
document
.
body
.
clientWidth
;
return
{
left
:
(
_WIN_WIDTH
-
param
.
width
*
3
)
/
2
,
top
:
(
_WIN_HEIGHT
-
param
.
height
*
3
)
/
2
,
width
:
param
.
width
*
3
,
height
:
param
.
height
*
3
,
}
}
// 还原,销毁dom
function
removeDom
(
cfg
)
{
renderImg
(
cfg
.
newImg
,
cfg
.
elePositionParam
,
el
=>
{
setTimeout
(()
=>
{
const
willRemoveImg
=
document
.
getElementsByClassName
(
"dir-view-img"
)[
0
]
const
willRemoveBg
=
document
.
getElementsByClassName
(
"dir-view-bg"
)[
0
]
document
.
body
.
removeChild
(
willRemoveBg
)
document
.
body
.
removeChild
(
willRemoveImg
)
},
300
)
})
}
2code/web/mgt_pro/src/views/advert/advertList.vue
View file @
dbd1c02b
...
...
@@ -177,25 +177,6 @@
<
el
-
col
:
span
=
"dialogType==3?12:8"
>
<
h1
class
=
"food-title"
>
活动信息
<
/h1
>
<!--
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
类型
<
/label></
el
-
col
>
<
el
-
col
:
span
=
"18"
class
=
"content-right"
style
=
"width:330px"
>
<
el
-
radio
-
group
v
-
if
=
"dialogType===1 || dialogType===2"
v
-
model
=
"dialogBindData.advertType"
>
<
el
-
radio
size
=
"small"
:
label
=
"1"
>
活动广告
<
/el-radio
>
<
el
-
radio
size
=
"small"
:
label
=
"2"
>
系统公告
<
/el-radio
>
<
el
-
radio
size
=
"small"
:
label
=
"3"
>
新闻资讯
<
/el-radio
>
<
/el-radio-group
>
<
span
v
-
else
>
{{
viewAdverType
(
dialogBindData
.
advertType
)
}}
<
/span
>
<
/el-col
>
<
/el-row> --
>
<!--
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
名称
<
/label></
el
-
col
>
<
el
-
col
:
span
=
"18"
class
=
"content-right"
>
<
el
-
input
v
-
if
=
"dialogType===1 || dialogType===2"
size
=
"small"
placeholder
=
"请输入活动名称"
resize
=
"none"
v
-
model
=
"dialogBindData.advertName"
><
/el-input
>
<
span
v
-
else
>
{{
dialogBindData
.
advertName
}}
<
/span
>
<
/el-col
>
<
/el-row> --
>
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
标题
<
/label></
el
-
col
>
...
...
@@ -205,39 +186,7 @@
<
/el-col
>
<
/el-row
>
<!--
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
副标题
<
/label></
el
-
col
>
<
el
-
col
:
span
=
"18"
class
=
"content-right"
>
<
el
-
input
v
-
if
=
"dialogType===1 || dialogType===2"
size
=
"small"
type
=
"textarea"
rows
=
"3"
placeholder
=
"请输入活动副标题"
resize
=
"none"
v
-
model
=
"dialogBindData.advertSubtitle"
><
/el-input
>
<
span
v
-
else
>
{{
dialogBindData
.
advertSubtitle
}}
<
/span
>
<
/el-col
>
<
/el-row> --
>
<!--
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
外链地址
<
/label></
el
-
col
>
<
el
-
col
:
span
=
"18"
class
=
"content-right"
>
<
el
-
input
v
-
if
=
"dialogType===1 || dialogType===2"
size
=
"small"
placeholder
=
"请插入外链地址"
v
-
model
=
"dialogBindData.linkUrl"
><
/el-input
>
<
span
v
-
else
>
{{
dialogBindData
.
linkUrl
}}
<
/span
>
<
/el-col
>
<
/el-row> --
>
<!--
<
el
-
row
:
gutter
=
"15"
v
-
if
=
"dialogBindData.advertType!==2"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
图片
<
/label></
el
-
col
>
<
el
-
col
:
span
=
"18"
class
=
"content-right"
>
<
tailor
width
=
"246"
height
=
"144"
imageType
=
'banner'
resPath
=
"advertImg"
:
type
=
"dialogType"
@
emitSuccess
=
"handleImgLoad"
:
viewUrl
=
"this.dialogBindData.advertPicUrl"
v
-
if
=
"dialogType===1 || dialogType===2"
>
<
/tailor
>
<
img
v
-
else
:
src
=
"this.dialogBindData.advertPicUrl"
width
=
"216"
height
=
"144"
>
<
/el-col
>
<
/el-row> --
>
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
图片
<
/label></
el
-
col
>
...
...
@@ -257,16 +206,6 @@
<
/el-row
>
<!--
<
el
-
row
:
gutter
=
"15"
>
<
el
-
col
:
span
=
"6"
class
=
"content-left"
><
label
>
二级链接
<
/label></
el
-
col
>
<
el
-
col
:
span
=
"18"
class
=
"content-right"
>
<
el
-
input
v
-
if
=
"dialogType===1 || dialogType===2"
size
=
"small"
type
=
"text"
placeholder
=
"请输入二级链接"
resize
=
"none"
v
-
model
=
"dialogBindData.linkUrl"
><
/el-input
>
<
span
v
-
else
>
{{
dialogBindData
.
linkUrl
}}
<
/span
>
<
/el-col
>
<
/el-row> --
>
<!--
<
el
-
input
v
-
if
=
"dialogType===1 || dialogType===2"
size
=
"small"
type
=
"textarea"
rows
=
"3"
placeholder
=
"请输入备注"
resize
=
"none"
v
-
model
=
"dialogBindData.memo"
><
/el-input> --
>
<
/el-col
>
...
...
2code/web/mgt_pro/src/views/store/components/ViewPage.vue
0 → 100644
View file @
dbd1c02b
<
template
>
<div
class=
"view-page"
>
<div
class=
"phone-bg"
>
<img
:src=
"require('../../../../static/images/phone-bg.png')"
alt=
""
>
</div>
<div
class=
"page-infro"
>
<!--
<el-carousel
height=
"202px"
indicator-position=
"none"
>
<el-carousel-item
v-for=
"(item,index) in imageArr"
:key=
"index"
>
<div
class=
"bannerImg"
><img
:src=
"item"
alt=
""
></div>
</el-carousel-item>
</el-carousel>
-->
<!--
<div
class=
"bannerImg"
>
<img
:src=
"data.advertPicUrl"
alt=
""
height=
"202"
>
</div>
-->
<div
class=
"text-infro"
v-html=
"data.storeDetails"
></div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:[
"data"
],
data
(){
return
{
imageArr
:[]
}
},
beforeMount
(){
const
data
=
this
.
data
;
// let arr = [];
// for(const key in data){
// if(key.indexOf('dishesPicUrl')>-1 && data[key]){
// arr.push(data[key])
// }
// }
// this.imageArr = arr
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.view-page
{
position
:
relative
;
.phone-bg
{
width
:
360px
;
img
{
width
:
100%
;
}
}
.page-infro
{
background
:
#fff
;
position
:
absolute
;
top
:
110px
;
left
:
30px
;
width
:
304px
;
height
:
540px
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
.bannerImg
{
width
:
100%
;
height
:
202px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.text-infro
{
padding
:
0
15px
;
}
}
}
</
style
>
\ No newline at end of file
2code/web/mgt_pro/src/views/store/storeList.vue
View file @
dbd1c02b
This diff is collapsed.
Click to expand it.
2code/web/mgt_pro/src/views/system/dataDictItem.vue
View file @
dbd1c02b
...
...
@@ -133,9 +133,7 @@
<el-col
:span=
"8"
class=
"content-left"
><label>
分类代码
</label></el-col>
<el-col
:span=
"16"
class=
"content-right"
>
<el-select
v-if=
"dialogType===1 || dialogType===2"
size=
"small"
v-model=
"dialogBindData.dataDictCatCode"
placeholder=
"请选择"
>
<el-option
value=
""
>
--请选择--
</el-option>
<el-option
value=
""
>
--请选择--
</el-option>
<el-option
v-for=
"item in dataDicts"
:key=
"item.dataDictCatCode"
...
...
2code/web/mgt_pro/src/views/system/param.vue
View file @
dbd1c02b
...
...
@@ -117,7 +117,7 @@
<!-- 查看,编辑dialog -->
<el-dialog
v-el
v-dragv
-dialog
v-el
-drag
-dialog
:title=
"dialogTitle"
:visible
.
sync=
"dialogState"
width=
"30%"
...
...
@@ -132,10 +132,6 @@
</el-col>
</el-row>
<el-row
:gutter=
"15"
>
<el-col
:span=
"8"
class=
"content-left"
><label>
参数名
</label></el-col>
<el-col
:span=
"16"
class=
"content-right"
>
...
...
2code/web/mgt_pro/src/views/worker/components/ViewPage.vue
0 → 100644
View file @
dbd1c02b
<
template
>
<div
class=
"view-page"
>
<div
class=
"phone-bg"
>
<img
:src=
"require('../../../../static/images/phone-bg.png')"
alt=
""
>
</div>
<div
class=
"page-infro"
>
<!--
<el-carousel
height=
"202px"
indicator-position=
"none"
>
<el-carousel-item
v-for=
"(item,index) in imageArr"
:key=
"index"
>
<div
class=
"bannerImg"
><img
:src=
"item"
alt=
""
></div>
</el-carousel-item>
</el-carousel>
-->
<!--
<div
class=
"bannerImg"
>
<img
:src=
"data.advertPicUrl"
alt=
""
height=
"202"
>
</div>
-->
<div
class=
"text-infro"
v-html=
"data.workerResume"
></div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:[
"data"
],
data
(){
return
{
imageArr
:[]
}
},
beforeMount
(){
const
data
=
this
.
data
;
// let arr = [];
// for(const key in data){
// if(key.indexOf('dishesPicUrl')>-1 && data[key]){
// arr.push(data[key])
// }
// }
// this.imageArr = arr
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.view-page
{
position
:
relative
;
.phone-bg
{
width
:
360px
;
img
{
width
:
100%
;
}
}
.page-infro
{
background
:
#fff
;
position
:
absolute
;
top
:
110px
;
left
:
30px
;
width
:
304px
;
height
:
540px
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
.bannerImg
{
width
:
100%
;
height
:
202px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.text-infro
{
padding
:
0
15px
;
}
}
}
</
style
>
\ No newline at end of file
2code/web/mgt_pro/src/views/worker/workerList.vue
View file @
dbd1c02b
This diff is collapsed.
Click to expand it.
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