Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
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
华国豪
CRM
Commits
d6849564
Commit
d6849564
authored
Feb 07, 2020
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e189a143
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
757 additions
and
58 deletions
+757
-58
App.vue
src/App.vue
+10
-4
init.css
src/assets/css/init.css
+73
-1
default_head_img.jpg
src/assets/img/default_head_img.jpg
+0
-0
HomeNavLeft.vue
src/components/HomeNav/HomeNavLeft.vue
+14
-4
HomeNavTop.vue
src/components/HomeNav/HomeNavTop.vue
+20
-9
customerManage.vue
src/components/customerManage/customerManage.vue
+483
-0
index.js
src/plugins/index.js
+4
-20
router.js
src/router.js
+9
-0
login.vue
src/views/login.vue
+53
-2
table.vue
src/views/table.vue
+89
-17
vue.config.js
vue.config.js
+2
-1
No files found.
src/App.vue
View file @
d6849564
...
...
@@ -10,9 +10,15 @@ export default {
}
},
mounted
()
{
if
(
!
this
.
getLocalStorage
())
{
this
.
$router
.
push
({
path
:
'/login'
})
}
else
{
this
.
$router
.
push
({
name
:
"Home"
});
}
},
methods
:
{
...
...
@@ -22,7 +28,7 @@ export default {
<
style
>
@import
'./assets/global/font.css'
;
@import
'//at.alicdn.com/t/font_1627123_
b01m6uprnb
.css'
;
@import
'//at.alicdn.com/t/font_1627123_
6rkscxbqh43
.css'
;
/* @import './assets/css/common.css'; */
@import
'./assets/css/init.css'
;
body
,
html
{
...
...
src/assets/css/init.css
View file @
d6849564
...
...
@@ -22,3 +22,75 @@ table { border-collapse:collapse; border-spacing:0; }
.perfectFont
{
font-family
:
'perfectFont'
;
}
.crm-btn.query-btn
{
background
:
rgba
(
13
,
36
,
129
,
1
);
border-color
:
rgba
(
13
,
36
,
129
,
1
);
color
:
white
;
}
.crm-btn.query-btn
:hover
{
background
:
rgba
(
13
,
36
,
129
,
.8
);
border-color
:
rgba
(
13
,
36
,
129
,
.8
);
color
:
white
;
}
.crm-btn.easy-btn
{
background
:
white
;
border-color
:
rgba
(
13
,
36
,
129
,
1
);
color
:
rgba
(
13
,
36
,
129
,
1
);
}
.crm-btn.easy-btn
:hover
{
background
:
white
;
border-color
:
rgba
(
13
,
36
,
129
,
.8
);
color
:
rgba
(
13
,
36
,
129
,
.8
);
}
.crm-btn.org-btn
{
background
:
white
;
border-color
:
rgba
(
255
,
164
,
117
,
1
);
color
:
rgba
(
255
,
164
,
117
,
1
);
}
.crm-btn.org-btn
:hover
{
background
:
white
;
border-color
:
rgba
(
255
,
164
,
117
,
.8
);
color
:
rgba
(
255
,
164
,
117
,
.8
);
;
}
.el-input__inner
{
border-radius
:
0
!important
;
}
.MyEditForm
.el-form-item
.label
{
font-size
:
10px
;
color
:
#888888
;
padding-left
:
15px
;
font-family
:
"Microsoft YaHei"
;
}
.MyEditForm
.MyEditForm-item
{
padding
:
9px
19px
;
background-color
:
white
;
margin-bottom
:
20px
;
}
.MyEditForm
.MyEditForm-item
.el-form-item
{
margin-bottom
:
0
;
}
.MyEditForm
.el-form-item
.el-form-item__content
{
line-height
:
initial
;
}
.MyEditForm
.el-form-item
.el-input__inner
{
border
:
none
;
outline
:
none
;
width
:
200px
;
height
:
14px
;
line-height
:
14px
;
padding-left
:
10px
;
font-size
:
12px
;
}
.MyEditForm
.el-form-item
.el-form-item__label
{
line-height
:
initial
;
color
:
rgba
(
136
,
136
,
136
,
1
);
font-size
:
12px
;
}
.MyEditForm
.el-form-item
.el-form-item__error
{
top
:
0
;
right
:
0
;
left
:
initial
;
font-size
:
12px
;
padding-top
:
2px
;
}
src/assets/img/default_head_img.jpg
0 → 100644
View file @
d6849564
4.99 KB
src/components/HomeNav/HomeNavLeft.vue
View file @
d6849564
...
...
@@ -86,7 +86,8 @@ export default {
navList
:
[
{
class
:
"iconfont iconyibiaopan"
,
name
:
"仪表盘"
name
:
"仪表盘"
,
path
:
'/Home'
},
{
class
:
"iconfont icondaiban"
,
...
...
@@ -98,7 +99,8 @@ export default {
},
{
class
:
"iconfont iconkehu"
,
name
:
"客户"
name
:
"客户"
,
path
:
'/customerManage'
},
{
class
:
"iconfont iconkehu1"
,
...
...
@@ -119,10 +121,18 @@ export default {
]
};
},
mounted
()
{},
mounted
()
{
let
$this
=
this
this
.
MsgBus
.
$on
(
'setLeftNav'
,
function
(
val
){
$this
.
activeIndex
=
val
;
})
},
methods
:
{
changeMenu
:
function
(
it
,
ind
)
{
changeMenu
:
function
(
it
em
,
ind
)
{
this
.
activeIndex
=
ind
;
this
.
$router
.
push
({
path
:
item
.
path
});
}
}
};
...
...
src/components/HomeNav/HomeNavTop.vue
View file @
d6849564
...
...
@@ -77,7 +77,7 @@
<div
class=
"nav-right"
>
<div
class=
"nav-right-menu"
>
<ul>
<li
:class=
"
{'active':chosenMenuId==item.id}" v-for="(item, index) in menuList" :key="index" @click="chosenFirstLeaveMenu(item
.id
)">
<li
:class=
"
{'active':chosenMenuId==item.id}" v-for="(item, index) in menuList" :key="index" @click="chosenFirstLeaveMenu(item)">
<i
class=
"iconfont"
:class=
"[item.icon]"
></i>
{{
item
.
name
}}
</li>
</ul>
...
...
@@ -88,11 +88,11 @@
</div>
<div
class=
"right-item"
>
<span
class=
"welcomne-txt"
>
Good Job,
</span>
<span
class=
"usr-name"
>
吴彦祖
</span>
<span
class=
"usr-name"
>
{{
userInfo
.
EmName
}}
</span>
</div>
<div
class=
"right-item"
>
<el-avatar
:size=
"34"
src=
"
https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1580985297255&di=d10539f3a69a8507564aaa3ac4fc131b&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fq_mini%2Cc_zoom%2Cw_640%2Fimages%2F20170728%2F5843abd8cdb74745a2fe2349879cb055.jpe
g"
@
error=
"errorHandler"
>
<img
src=
"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png
"
/>
<el-avatar
:size=
"34"
src=
"
../../assets/img/default_head_img.jp
g"
@
error=
"errorHandler"
>
<img
:src=
"userInfo.Icon
"
/>
</el-avatar>
</div>
</div>
...
...
@@ -108,7 +108,7 @@ export default {
{
id
:
1
,
name
:
"客户管理"
,
path
:
"/
h
ome"
,
path
:
"/
H
ome"
,
icon
:
"iconcompany"
},
{
...
...
@@ -136,13 +136,24 @@ export default {
icon
:
"iconareachart"
}
],
chosenMenuId
:
0
chosenMenuId
:
0
,
userInfo
:
{
EmName
:
''
,
Icon
:
''
,
}
};
},
mounted
()
{},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
()
this
.
userInfo
=
userInfo
},
methods
:
{
chosenFirstLeaveMenu
(
id
){
this
.
chosenMenuId
=
id
chosenFirstLeaveMenu
(
item
){
this
.
chosenMenuId
=
item
.
id
this
.
MsgBus
.
$emit
(
'setLeftNav'
,
0
)
this
.
$router
.
push
({
path
:
item
.
path
});
},
errorHandler
()
{
return
false
...
...
src/components/customerManage/customerManage.vue
0 → 100644
View file @
d6849564
This diff is collapsed.
Click to expand it.
src/plugins/index.js
View file @
d6849564
...
...
@@ -11,15 +11,7 @@ export default {
},
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
// var domainUrl = "http://test_reborn.oytour.com";//主域名
// var domainUrl = "http://reborn.oytour.com"; //主域名
//var domainUrl = "http://192.168.2.65:8025"//主域名
// let domainUrl = "https://reborn.oytour.com";
// let domainUrl = "http://testapi.oytour.com"
let
domainUrl
=
"http://192.168.2.65:8069"
//let domainUrl = "http://192.168.0.106"
// let domainUrl = "http://192.168.2.214:8082"
// var domainUrl = "http://reborn.oytour.com";
let
domainUrl
=
"http://crm.oytour.com"
let
locationName
=
window
.
location
.
hostname
;
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'testb2b.oytour.com'
)
!=
-
1
)
...
...
@@ -31,15 +23,10 @@ export default {
//主地址
DomainUrl
:
domainUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
// javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000",
PostUrl
:
domainUrl
,
javaUrl
:
locationName
.
indexOf
(
'testb2b'
)
==
-
1
?
"http://efficient.oytour.com"
:
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://47.96.12.235:9001"
:
"http://192.168.2.215:9000"
,
//javaUrl:'http://192.168.2.215:9000',
// javaUrl: "http://efficient.oytour.com",
// javaUrl: "http://47.96.12.235:9001",
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://staticfile.oytour.com"
:
'http://192.168.2.214:8130'
,
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://uploadfile.oytour.com"
:
"http://192.168.2.214:8130"
,
// UploadUrl: "http://uploadfile.oytour.com",
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
};
return
obj
;
...
...
@@ -171,22 +158,19 @@ export default {
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
PostUrl
;
var
apiurl
=
this
.
domainManager
().
PostUrl
+
cmd
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
secretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
//
"cmd": cmd,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
...
...
src/router.js
View file @
d6849564
...
...
@@ -3,6 +3,7 @@ import Router from "vue-router";
import
index
from
"./views/index"
;
import
login
from
"./views/login"
;
import
Home
from
"./components/Home"
import
customerManage
from
"./components/customerManage/customerManage"
Vue
.
use
(
Router
);
export
default
new
Router
({
...
...
@@ -46,6 +47,14 @@ export default new Router({
meta
:
{
title
:
"CRM-仪表盘"
,
},
},
{
path
:
"/customerManage"
,
name
:
"customerManage"
,
component
:
customerManage
,
meta
:
{
title
:
"客户管理"
}
}
]
},
...
...
src/views/login.vue
View file @
d6849564
...
...
@@ -2,7 +2,7 @@
<div
class=
"login"
>
<div
class=
"login-box"
>
<div
class=
"left-card"
>
<el-carousel
trigger=
"click"
height=
"560px"
interval=
"10000"
width=
"100%"
arrow=
"never"
>
<el-carousel
trigger=
"click"
height=
"560px"
:
interval=
"10000"
width=
"100%"
arrow=
"never"
>
<el-carousel-item
v-for=
"item in 2"
:key=
"item"
>
<div
class=
"item-card"
>
<div
class=
"head-icon"
>
...
...
@@ -49,7 +49,7 @@
<div
class=
"mu-text-field-content"
>
<div
class=
"mu-text-field-label"
>
密码
</div>
<input
type=
"
text
"
type=
"
password
"
v-model=
"pwd"
class=
"mu-text-field-input"
@
focus=
"pwdStatus=true"
...
...
@@ -67,6 +67,7 @@
<el-button
type=
"primary"
:loading=
"isLogining"
@
click=
"goLogin()"
style=
"width:100%; font-family:perfectFont;font-size: 16px;"
>
立即登录
</el-button>
</div>
...
...
@@ -105,6 +106,53 @@ export default {
isLogining
:
false
,
isAutoLogin
:
false
};
},
created
(){
let
autoLogin
=
localStorage
.
autoLogin
?
JSON
.
parse
(
localStorage
.
autoLogin
)
:
null
this
.
account
=
autoLogin
?
autoLogin
.
acc
:
''
this
.
pwd
=
autoLogin
?
autoLogin
.
pwd
:
''
this
.
isAutoLogin
=
autoLogin
?
true
:
false
},
methods
:
{
goLogin
(){
if
(
this
.
account
==
""
)
{
return
this
.
$message
({
message
:
'请输入账号!'
,
type
:
'warning'
});
}
if
(
this
.
pwd
==
""
)
{
return
this
.
$message
({
message
:
'请输入密码!'
,
type
:
'warning'
});
}
var
msg
=
{
EmAccount
:
this
.
account
,
EmPassword
:
this
.
pwd
,
Domain
:
'crmtesterp.oytour.com'
};
this
.
apipost
(
'/api/Login/UserLogin'
,
msg
,
res
=>
{
var
jsonData
=
res
.
data
;
if
(
jsonData
.
resultCode
==
1
)
{
//登录成功
let
autoLogin
=
this
.
isAutoLogin
?
{
acc
:
this
.
account
,
pwd
:
this
.
pwd
,
}
:
null
;
localStorage
.
autoLogin
=
JSON
.
stringify
(
autoLogin
)
var
userData
=
jsonData
.
data
;
var
userJson
=
JSON
.
stringify
(
userData
);
localStorage
.
userInfo
=
userJson
;
this
.
loginState
=
0
;
this
.
$router
.
push
({
path
:
"/Home"
});
}
else
{
this
.
$message
({
message
:
res
.
data
.
message
,
type
:
'error'
});
this
.
loginState
=
0
;
}
})
}
}
};
</
script
>
...
...
@@ -274,6 +322,9 @@ export default {
font-family
:
inherit
;
position
:
relative
;
}
.field_wrap
.el-button
,
.field_wrap
.el-checkbox__inner
{
border-radius
:
0
;
}
.mu-text-field-line
{
background-color
:
rgba
(
0
,
0
,
0
,
0.4
);
margin
:
0
;
...
...
src/views/table.vue
View file @
d6849564
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
d6849564
...
...
@@ -8,7 +8,8 @@ module.exports = {
}
},
devServer
:
{
// host: 'www.B2B.com',
host
:
'crmyx.oytour.com'
,
port
:
8080
,
},
externals
:
[
'BMap'
,
...
...
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