Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
c31aa949
Commit
c31aa949
authored
Mar 12, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
7b03438e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
571 additions
and
523 deletions
+571
-523
Login.vue
src/components/Login.vue
+0
-16
gonggao.vue
src/components/personalCenter/gonggao.vue
+3
-7
groupManagement.vue
src/components/platformModule/groupManagement.vue
+568
-500
No files found.
src/components/Login.vue
View file @
c31aa949
...
@@ -304,25 +304,9 @@ export default {
...
@@ -304,25 +304,9 @@ export default {
this
.
$cookie
.
set
(
"RB_Group_id"
,
userData
.
RB_Group_id
);
this
.
$cookie
.
set
(
"RB_Group_id"
,
userData
.
RB_Group_id
);
localStorage
.
menu
=
JSON
.
stringify
(
firstTire
)
localStorage
.
menu
=
JSON
.
stringify
(
firstTire
)
this
.
loginState
=
0
;
this
.
loginState
=
0
;
// let previousPathInfo = localStorage.previousPathInfo ? JSON.parse(localStorage.previousPathInfo) : ''
// if (previousPathInfo) {
// let path = previousPathInfo.path.indexOf('login') === -1 ? previousPathInfo.path : 'index'
// let query = previousPathInfo.query ? previousPathInfo.query : {}
// this.$router.push({ path: "/"+ path, query: query });
// }else {
// this.$router.push({ path: "/index" });
// }
this
.
$router
.
push
({
path
:
"/personalCenter"
});
this
.
$router
.
push
({
path
:
"/personalCenter"
});
//登录成功后跳转页面
// this.$notify.success({
// title:'提示',
// customClass:'msgTips',
// message: '登陆成功',
// showClose: false,
// duration:1000
// });
}
else
{
}
else
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
"提示"
,
title
:
"提示"
,
...
...
src/components/personalCenter/gonggao.vue
View file @
c31aa949
<
template
>
<
template
>
<div
class=
"ad"
v-loading=
"loading"
>
<div
class=
"ad"
v-loading=
"loading"
>
<div
class=
"content"
>
<div
class=
"content"
v-if=
"notices"
>
<div
class=
"notice-title"
>
{{
notices
.
title
}}
</div>
<div
class=
"notice-title"
>
{{
notices
.
title
}}
</div>
<div
v-html=
"notices.content"
></div>
<div
v-html=
"notices.content"
></div>
<div
class=
"user"
>
{{
notices
.
updateName
}}
</div>
<div
class=
"user"
>
{{
notices
.
updateName
}}
</div>
<div
class=
"time"
>
{{
notices
.
updateTime
?
notices
.
updateTime
.
replace
(
"T"
,
" "
):
""
}}
</div>
<div
class=
"time"
>
{{
notices
.
updateTime
?
notices
.
updateTime
.
replace
(
"T"
,
" "
):
""
}}
</div>
</div>
</div>
<div
class=
"foot"
>
<div
class=
"foot"
v-if=
"notices"
>
<div
class=
"lt"
>
<div
class=
"lt"
>
<!--
<div>
附件:
</div>
<div
class=
"v"
>
<a
href=
"javascript:void(0);"
>
关于库存现金管理的通知.jpg
</a>
</div>
-->
</div>
</div>
<div
class=
"rt"
>
<div
class=
"rt"
>
<span
:class=
"
{'disable':notices.maxID==0}" @click="queryNotice(notices.maxID)">
<span
:class=
"
{'disable':notices.maxID==0}" @click="queryNotice(notices.maxID)">
...
...
src/components/platformModule/groupManagement.vue
View file @
c31aa949
<
style
>
<
style
>
.groupManagement
.avatar-uploader
.el-upload
{
border
:
1px
dashed
#d9d9d9
;
cursor
:
pointer
;
position
:
relative
;
overflow
:
hidden
;
width
:
100px
;
height
:
100px
;
border-radius
:
50%
}
.groupManagement
.avatar-uploader
.el-upload
{
.groupManagement
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;}
border
:
1px
dashed
#d9d9d9
;
.groupManagement
.avatar-uploader-icon
{
font-size
:
28px
;
color
:
white
;
width
:
100px
;
height
:
100px
;
line-height
:
80px
;
text-align
:
center
;
position
:
absolute
;
left
:
0
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);}
cursor
:
pointer
;
position
:
relative
;
overflow
:
hidden
;
width
:
100px
;
height
:
100px
;
border-radius
:
50%
}
.groupManagement
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;
}
.groupManagement
.avatar-uploader-icon
{
font-size
:
28px
;
color
:
white
;
width
:
100px
;
height
:
100px
;
line-height
:
80px
;
text-align
:
center
;
position
:
absolute
;
left
:
0
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
}
/* 上传样式 */
/* 上传样式 */
.groupManagement
.avatar-uploader
.el-upload
{
border
:
1px
dashed
#d9d9d9
;
cursor
:
pointer
;
position
:
relative
;
overflow
:
hidden
;
width
:
100px
;
height
:
100px
;
border-radius
:
50%
}
.groupManagement
.avatar-uploader
.el-upload
{
.groupManagement
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;}
border
:
1px
dashed
#d9d9d9
;
.groupManagement
.avatar-uploader-icon
{
font-size
:
28px
;
color
:
white
;
width
:
100px
;
height
:
100px
;
line-height
:
80px
;
text-align
:
center
;
position
:
absolute
;
left
:
0
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);}
cursor
:
pointer
;
.groupManagement
.avatar
{
width
:
100px
;
height
:
100px
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
}
position
:
relative
;
overflow
:
hidden
;
width
:
100px
;
height
:
100px
;
border-radius
:
50%
}
.groupManagement
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;
}
.groupManagement
.avatar-uploader-icon
{
font-size
:
28px
;
color
:
white
;
width
:
100px
;
height
:
100px
;
line-height
:
80px
;
text-align
:
center
;
position
:
absolute
;
left
:
0
;
top
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
}
.groupManagement
.avatar
{
width
:
100px
;
height
:
100px
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
}
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -15,8 +71,8 @@
...
@@ -15,8 +71,8 @@
<div
class=
"combottomTitle"
>
<div
class=
"combottomTitle"
>
{{
msgTitle
}}
{{
msgTitle
}}
<span
class=
"fr"
>
<span
class=
"fr"
>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"取消"
@
click=
"systemShow=false"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"取消"
@
click=
"systemShow=false"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"submitForm1('addMsg1')"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"submitForm1('addMsg1')"
/>
</span>
</span>
</div>
</div>
<el-form
:model=
"addMsg1"
:rules=
"rules1"
ref=
"addMsg1"
label-width=
"100px"
>
<el-form
:model=
"addMsg1"
:rules=
"rules1"
ref=
"addMsg1"
label-width=
"100px"
>
...
@@ -53,18 +109,24 @@
...
@@ -53,18 +109,24 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
</div>
</div>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<ul>
<ul>
<li>
<li>
<span><em>
{{
$t
(
'admin.admin_group'
)
}}
</em><el-input
class=
'w210'
v-model=
"msg.GroupName"
:placeholder=
"$t('pub.pleaseImport')"
@
keyup
.
enter
.
native=
"getList"
></el-input></span>
<span><em>
{{
$t
(
'admin.admin_group'
)
}}
</em>
<el-input
class=
'w210'
v-model=
"msg.GroupName"
:placeholder=
"$t('pub.pleaseImport')"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</span>
</li>
</li>
<li>
<li>
<span><em>
{{
$t
(
'admin.admin_domain'
)
}}
</em><el-input
class=
'w210'
v-model=
"msg.Domain"
:placeholder=
"$t('pub.pleaseImport')"
@
keyup
.
enter
.
native=
"getList"
></el-input></span>
<span><em>
{{
$t
(
'admin.admin_domain'
)
}}
</em>
<el-input
class=
'w210'
v-model=
"msg.Domain"
:placeholder=
"$t('pub.pleaseImport')"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</span>
</li>
</li>
<li>
<li>
<span><em>
{{
$t
(
'admin.admin_status'
)
}}
</em><el-select
class=
'w210'
clearable
v-model=
"msg.Status"
:placeholder=
"$t('pub.unlimitedSel')"
>
<span><em>
{{
$t
(
'admin.admin_status'
)
}}
</em>
<el-select
class=
'w210'
clearable
v-model=
"msg.Status"
:placeholder=
"$t('pub.unlimitedSel')"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
''
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
''
></el-option>
<el-option
:label=
"$t('pub.openSel')"
value=
'0'
></el-option>
<el-option
:label=
"$t('pub.openSel')"
value=
'0'
></el-option>
<el-option
:label=
"$t('pub.closeSel')"
value=
'1'
></el-option>
<el-option
:label=
"$t('pub.closeSel')"
value=
'1'
></el-option>
...
@@ -72,8 +134,10 @@
...
@@ -72,8 +134,10 @@
</span>
</span>
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
<input
type=
"button"
@
click=
"outerVisible = true,dialogTitle='新增集团信息'"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
/>
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
@
click=
"outerVisible = true,dialogTitle='新增集团信息'"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -95,24 +159,25 @@
...
@@ -95,24 +159,25 @@
<td>
{{
item
.
Status
==
0
?
'开启'
:
'关闭'
}}
</td>
<td>
{{
item
.
Status
==
0
?
'开启'
:
'关闭'
}}
</td>
<td>
{{
item
.
EmAccount
}}
</td>
<td>
{{
item
.
EmAccount
}}
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
>
<el-button
@
click=
"outerVisible = true,dialogTitle='修改集团信息',updateData(item.Id)"
type=
"primary"
icon=
"el-icon-edit"
circle
></el-button>
<el-button
@
click=
"outerVisible = true,dialogTitle='修改集团信息',updateData(item.Id)"
type=
"primary"
icon=
"el-icon-edit"
circle
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"公司"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"公司"
placement=
"top-start"
>
<el-button
@
click=
"goUrl('companyManagement',item.Id)"
type=
"primary"
icon=
"iconfont icon-gongsi1"
circle
></el-button>
<el-button
@
click=
"goUrl('companyManagement',item.Id)"
type=
"primary"
icon=
"iconfont icon-gongsi1"
circle
>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"管理员"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"管理员"
placement=
"top-start"
>
<el-button
@
click=
"getSystem(item)"
type=
"primary"
icon=
"iconfont icon-guanliyuan"
circle
></el-button>
<el-button
@
click=
"getSystem(item)"
type=
"primary"
icon=
"iconfont icon-guanliyuan"
circle
></el-button>
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
</table>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
</el-pagination>
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<el-form-item
class=
'w400'
:label=
"$t('admin.admin_group')"
prop=
"GroupName"
>
<el-form-item
class=
'w400'
:label=
"$t('admin.admin_group')"
prop=
"GroupName"
>
<el-input
type=
"text"
v-model=
"addMsg.GroupName"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.GroupName"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
...
@@ -120,8 +185,17 @@
...
@@ -120,8 +185,17 @@
<el-form-item
class=
'w400'
:label=
"$t('admin.admin_domain')"
prop=
"Domain"
>
<el-form-item
class=
'w400'
:label=
"$t('admin.admin_domain')"
prop=
"Domain"
>
<el-input
type=
"text"
v-model=
"addMsg.Domain"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.Domain"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
'w400'
label=
"B2B域名"
prop=
"B2BDomain"
>
<el-form-item
class=
'w400'
label=
'同业网站'
>
<el-input
type=
"text"
v-model=
"addMsg.B2BDomain "
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-switch
v-model=
"addMsg.IsOpenB2B"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</el-form-item>
<el-form-item
class=
'w400'
label=
"B2B域名"
v-if=
"addMsg.IsOpenB2B==1"
>
<el-input
type=
"text"
v-model=
"addMsg.B2BDomain"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
<el-form-item
class=
'w400'
label=
'直客网站'
>
<el-switch
v-model=
"addMsg.IsOpenB2C"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</el-form-item>
<el-form-item
class=
'w400'
label=
'行程特色'
>
<el-switch
v-model=
"addMsg.IsOpenTripFeature"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</el-form-item>
</el-form-item>
<el-form-item
class=
'w400'
:label=
"$t('admin.admin_address')"
prop=
"Address"
>
<el-form-item
class=
'w400'
:label=
"$t('admin.admin_address')"
prop=
"Address"
>
<el-input
type=
"text"
v-model=
"addMsg.Address"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.Address"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
...
@@ -129,27 +203,12 @@
...
@@ -129,27 +203,12 @@
<el-form-item
class=
'w400'
:label=
"$t('pub.telphone')"
prop=
"Tel"
>
<el-form-item
class=
'w400'
:label=
"$t('pub.telphone')"
prop=
"Tel"
>
<el-input
type=
"text"
v-model=
"addMsg.Tel"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.Tel"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
'w400'
label=
'联系人姓名'
prop=
"ContactPersion"
>
<el-form-item
class=
'w400'
label=
'联系人姓名'
prop=
"ContactPersion"
>
<el-input
type=
"text"
v-model=
"addMsg.ContactPersion"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.ContactPersion"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
'w400'
label=
'联系人手机'
prop=
"MobilePhone"
>
<el-form-item
class=
'w400'
label=
'联系人手机'
prop=
"MobilePhone"
>
<el-input
type=
"text"
v-model=
"addMsg.MobilePhone"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.MobilePhone"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
</el-form-item>
<!--
<el-form-item
class=
'w400'
label=
'接机人姓名'
prop=
"AirportServicePerson"
>
<el-input
type=
"text"
v-model=
"addMsg.AirportServicePerson"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
<el-form-item
class=
'w400'
label=
'接机人手机'
prop=
"AirportServicePhone"
>
<el-input
type=
"text"
v-model=
"addMsg.AirportServicePhone"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
<el-form-item
class=
'w400'
label=
'出团通知名'
prop=
"NoticesName"
>
<el-input
type=
"text"
v-model=
"addMsg.NoticesName"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
<el-form-item
class=
'w400'
label=
'别名'
prop=
"Aliases"
>
<el-input
type=
"text"
v-model=
"addMsg.Aliases"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
-->
<el-form-item
class=
'w400'
label=
'系统版本'
prop=
"Versions_Id"
>
<el-form-item
class=
'w400'
label=
'系统版本'
prop=
"Versions_Id"
>
<el-select
v-model=
"addMsg.Versions_Id"
placeholder=
"请选项"
@
change=
'sendVal(addMsg.Versions_Id)'
>
<el-select
v-model=
"addMsg.Versions_Id"
placeholder=
"请选项"
@
change=
'sendVal(addMsg.Versions_Id)'
>
<el-option
v-for=
'item in versions'
:label=
'item.VersionsName'
:key=
'item.Id'
:value=
'item.Id'
></el-option>
<el-option
v-for=
'item in versions'
:label=
'item.VersionsName'
:key=
'item.Id'
:value=
'item.Id'
></el-option>
...
@@ -162,16 +221,21 @@
...
@@ -162,16 +221,21 @@
<el-input
type=
"text"
v-model=
"addMsg.MaxDepartmentTier"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.MaxDepartmentTier"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'Logo'
>
<el-form-item
label=
'Logo'
>
<el-upload
<el-upload
class=
"avatar-uploader"
:http-request=
"UploadImage"
action=
""
:show-file-list=
"false"
class=
"avatar-uploader"
>
:http-request=
"UploadImage"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
class=
"avatar"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
class=
"avatar"
>
<i
class=
"el-icon-upload2 avatar-uploader-icon"
></i>
<i
class=
"el-icon-upload2 avatar-uploader-icon"
@
click=
"imgType=1"
></i>
<span
v-if=
"imageUrl"
class=
"repUp"
>
{{
$t
(
'system.up_againUp'
)
}}
</span>
<span
v-if=
"imageUrl"
class=
"repUp"
@
click=
"imgType=1"
>
{{
$t
(
'system.up_againUp'
)
}}
</span>
<span
v-else
class=
"repUp"
>
{{
$t
(
'system.up_upImg'
)
}}
</span>
<span
v-else
class=
"repUp"
@
click=
"imgType=1"
>
{{
$t
(
'system.up_upImg'
)
}}
</span>
</el-upload>
</el-form-item>
<el-form-item
label=
'行程特色背景图片'
v-if=
"addMsg.IsOpenTripFeature==1"
>
<el-upload
class=
"avatar-uploader"
:http-request=
"UploadImage"
action=
""
:show-file-list=
"false"
>
<img
v-if=
"tripImageUrl"
:src=
"tripImageUrl"
class=
"avatar"
>
<i
class=
"el-icon-upload2 avatar-uploader-icon"
@
click=
"imgType=2"
></i>
<span
v-if=
"tripImageUrl"
class=
"repUp"
@
click=
"imgType=2"
>
{{
$t
(
'system.up_againUp'
)
}}
</span>
<span
v-else
class=
"repUp"
@
click=
"imgType=2"
>
{{
$t
(
'system.up_upImg'
)
}}
</span>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
class=
'w400'
label=
'状态'
prop=
"Status"
>
<el-form-item
class=
'w400'
label=
'状态'
prop=
"Status"
>
...
@@ -186,15 +250,13 @@
...
@@ -186,15 +250,13 @@
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
保存
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
保存
</button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
msgTitle
:
'添加管理员'
,
msgTitle
:
'添加管理员'
,
loading
:
true
,
loading
:
true
,
value
:
''
,
value
:
''
,
DataList
:
''
,
DataList
:
''
,
...
@@ -208,7 +270,9 @@
...
@@ -208,7 +270,9 @@
innerVisible
:
false
,
innerVisible
:
false
,
isRight
:
true
,
isRight
:
true
,
dialogTitle
:
''
,
dialogTitle
:
''
,
imageUrl
:
''
,
imgType
:
1
,
//1-Logo,2-行程特色图片
imageUrl
:
''
,
tripImageUrl
:
""
,
//行程特色图片
rules
:
{
//表单验证
rules
:
{
//表单验证
GroupName
:
[{
GroupName
:
[{
required
:
true
,
required
:
true
,
...
@@ -253,19 +317,27 @@
...
@@ -253,19 +317,27 @@
Remarks
:
[{
Remarks
:
[{
required
:
false
,
required
:
false
,
}],
}],
EmployeeNum
:
[{
EmployeeNum
:
[{
required
:
true
,
required
:
true
,
message
:
'请输入账户人数'
,
message
:
'请输入账户人数'
,
trigger
:
'blur'
trigger
:
'blur'
}],
}],
MaxDepartmentTier
:
[
MaxDepartmentTier
:
[{
{
required
:
true
,
pattern
:
/^
([
1-9
][
0-9
]{0,1}
|100
)
$/
,
message
:
'部门最大层级为1~100'
}
required
:
true
,
],
pattern
:
/^
([
1-9
][
0-9
]{0,1}
|100
)
$/
,
message
:
'部门最大层级为1~100'
}],
},
rules1
:
{
EmLoginMobile
:
[{
required
:
true
,
message
:
'请输入手机号码'
,
trigger
:
'blur'
},
},
rules1
:
{
{
EmLoginMobile
:
[
pattern
:
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
012356789
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
,
{
required
:
true
,
message
:
'请输入手机号码'
,
trigger
:
'blur'
},
message
:
'请输入正确的手机'
{
pattern
:
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
012356789
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
,
message
:
'请输入正确的手机'
}
}
],
],
AdminAccount
:
[{
AdminAccount
:
[{
required
:
true
,
required
:
true
,
...
@@ -300,20 +372,20 @@
...
@@ -300,20 +372,20 @@
'GroupName'
:
''
,
'GroupName'
:
''
,
'Domain'
:
''
'Domain'
:
''
},
},
addMsg1
:
{
addMsg1
:
{
GroupId
:
''
,
GroupId
:
''
,
RoleName
:
''
,
RoleName
:
''
,
AdminAccount
:
''
,
AdminAccount
:
''
,
AdminPassword
:
''
,
AdminPassword
:
''
,
AdminName
:
''
,
AdminName
:
''
,
PostName
:
''
,
PostName
:
''
,
EmLoginMobile
:
''
EmLoginMobile
:
''
},
},
addMsg
:
{
addMsg
:
{
'GroupName'
:
''
,
'GroupName'
:
''
,
'Domain'
:
''
,
'Domain'
:
''
,
'B2BDomain'
:
''
,
'B2BDomain'
:
''
,
'EmployeeNum'
:
'0'
,
'EmployeeNum'
:
'0'
,
'ContactPersion'
:
''
,
'ContactPersion'
:
''
,
'MobilePhone'
:
''
,
'MobilePhone'
:
''
,
'Tel'
:
''
,
'Tel'
:
''
,
...
@@ -325,15 +397,19 @@
...
@@ -325,15 +397,19 @@
'AirportServicePhone'
:
''
,
'AirportServicePhone'
:
''
,
'Aliases'
:
''
,
'Aliases'
:
''
,
'Versions_Id'
:
''
,
'Versions_Id'
:
''
,
"MaxDepartmentTier"
:
''
,
"MaxDepartmentTier"
:
''
,
"Logo"
:
''
"Logo"
:
''
,
IsOpenB2B
:
0
,
//是否有同业网站(0-没有,1-有)
IsOpenB2C
:
0
,
//是否有直客网站(0-没有,1-有)
IsOpenTripFeature
:
0
,
//是否有行程特色(0-没有,1-有)
TripFeatureImg
:
""
,
//行程特色背景图片
},
},
verSionMsg
:
{
verSionMsg
:
{
Status
:
0
Status
:
0
},
},
canSave
:
true
,
canSave
:
true
,
systemShow
:
false
,
systemShow
:
false
,
newUserList
:
[]
newUserList
:
[]
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -348,20 +424,24 @@
...
@@ -348,20 +424,24 @@
let
fileName
=
file
.
file
.
name
;
let
fileName
=
file
.
file
.
name
;
var
path
=
"/Upload/Temporary/"
;
var
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
if
(
this
.
imgType
==
1
)
{
this
.
imageUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
imageUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
addMsg
.
Logo
=
x
.
data
.
FilePath
;
this
.
addMsg
.
Logo
=
x
.
data
.
FilePath
;
}
else
{
this
.
tripImageUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
addMsg
.
TripFeatureImg
=
x
.
data
.
FilePath
;
}
});
});
},
},
sendVal
(
id
){
sendVal
(
id
)
{
let
obj
=
this
.
versions
.
find
(
item
=>
item
.
Id
===
id
)
let
obj
=
this
.
versions
.
find
(
item
=>
item
.
Id
===
id
)
if
(
obj
)
if
(
obj
)
{
{
this
.
addMsg
.
EmployeeNum
=
obj
.
EmployeeNum
this
.
addMsg
.
EmployeeNum
=
obj
.
EmployeeNum
}
}
},
},
saveSystem
()
{
saveSystem
()
{
this
.
apipost
(
'admin_post_SetAdminAccount'
,
this
.
addMsg1
,
res
=>
{
this
.
apipost
(
'admin_post_SetAdminAccount'
,
this
.
addMsg1
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
systemShow
=
false
;
this
.
systemShow
=
false
;
this
.
getList
()
this
.
getList
()
...
@@ -371,58 +451,45 @@
...
@@ -371,58 +451,45 @@
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getSystem
(
obj
){
getSystem
(
obj
)
{
this
.
addMsg1
.
GroupId
=
obj
.
Id
this
.
addMsg1
.
GroupId
=
obj
.
Id
this
.
systemShow
=
true
this
.
systemShow
=
true
if
(
obj
.
EmAccount
==
''
||
obj
.
EmAccount
==
null
)
if
(
obj
.
EmAccount
==
''
||
obj
.
EmAccount
==
null
)
{
{
this
.
canSave
=
true
this
.
canSave
=
true
this
.
msgTitle
=
'添加管理员'
this
.
msgTitle
=
'添加管理员'
}
else
{
}
else
{
this
.
canSave
=
false
this
.
canSave
=
false
this
.
msgTitle
=
'修改管理员'
this
.
msgTitle
=
'修改管理员'
}
}
this
.
apipost
(
'admin_get_GetAdminAccountForRoleList'
,{
GroupId
:
obj
.
Id
},
res
=>
{
this
.
apipost
(
'admin_get_GetAdminAccountForRoleList'
,
{
if
(
res
.
data
.
resultCode
==
1
){
GroupId
:
obj
.
Id
this
.
newUserList
=
res
.
data
.
data
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
newUserList
=
res
.
data
.
data
this
.
getSystemInfo
(
obj
.
Id
)
this
.
getSystemInfo
(
obj
.
Id
)
}
}
},
err
=>
{})
},
err
=>
{})
},
getSystemInfo
(
id
){
this
.
apipost
(
'admin_get_GetAdminAccount'
,{
GroupId
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
addMsg1
.
PostName
=
res
.
data
.
data
.
PostName
this
.
addMsg1
.
AdminName
=
res
.
data
.
data
.
AdminName
this
.
addMsg1
.
AdminAccount
=
res
.
data
.
data
.
AdminAccount
this
.
addMsg1
.
AdminPassWord
=
res
.
data
.
data
.
AdminPassWord
this
.
addMsg1
.
RoleName
=
res
.
data
.
data
.
RoleName
this
.
addMsg1
.
EmLoginMobile
=
res
.
data
.
data
.
EmLoginMobile
}
},
err
=>
{})
},
},
handleAvatarSuccess
(
res
,
file
)
{
//上传
getSystemInfo
(
id
)
{
if
(
res
.
resultCode
==
1
){
this
.
apipost
(
'admin_get_GetAdminAccount'
,
{
var
img_path
=
res
.
data
.
FullFilePath
GroupId
:
id
this
.
addMsg
.
Logo
=
res
.
data
.
FilePath
},
res
=>
{
this
.
imageUrl
=
img_path
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg1
.
PostName
=
res
.
data
.
data
.
PostName
this
.
addMsg1
.
AdminName
=
res
.
data
.
data
.
AdminName
this
.
addMsg1
.
AdminAccount
=
res
.
data
.
data
.
AdminAccount
this
.
addMsg1
.
AdminPassWord
=
res
.
data
.
data
.
AdminPassWord
this
.
addMsg1
.
RoleName
=
res
.
data
.
data
.
RoleName
this
.
addMsg1
.
EmLoginMobile
=
res
.
data
.
data
.
EmLoginMobile
}
}
},
err
=>
{})
},
},
beforeAvatarUpload
(
file
)
{
//上传-
// const isJPG = file.type === 'image/jpeg';
// const isLt2M = file.size / 1024 / 1024
<
2
;
// if (!isJPG) {
// this.$message.error('上传头像图片只能是 JPG 格式!');
// }
// if (!isLt2M) {
// this.$message.error('上传头像图片大小不能超过 2MB!');
// }
// return isJPG && isLt2M;
},
getList
()
{
//获取数据
getList
()
{
//获取数据
this
.
loading
=
true
this
.
loading
=
true
this
.
apipost
(
'admin_get_GroupGetPageList'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'admin_get_GroupGetPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
loading
=
false
this
.
loading
=
false
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
...
@@ -432,13 +499,11 @@
...
@@ -432,13 +499,11 @@
getVersion
()
{
//获取版本信息
getVersion
()
{
//获取版本信息
this
.
apipost
(
'admin_get_SysVersionsGetList'
,
this
.
verSionMsg
,
res
=>
{
this
.
apipost
(
'admin_get_SysVersionsGetList'
,
this
.
verSionMsg
,
res
=>
{
this
.
versions
=
res
.
data
.
data
;
this
.
versions
=
res
.
data
.
data
;
},
err
=>
{
},
err
=>
{})
})
},
},
addData
()
{
//新增数据
addData
()
{
//新增数据
this
.
apipost
(
'admin_post_GroupSet'
,
this
.
addMsg
,
res
=>
{
this
.
apipost
(
'admin_post_GroupSet'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
outerVisible
=
false
;
this
.
outerVisible
=
false
;
this
.
getList
()
this
.
getList
()
...
@@ -447,16 +512,16 @@
...
@@ -447,16 +512,16 @@
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
updateData
(
id
)
{
updateData
(
id
)
{
this
.
apipost
(
'admin_get_GroupGet'
,
{
this
.
apipost
(
'admin_get_GroupGet'
,
{
GroupId
:
id
GroupId
:
id
},
res
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
this
.
addMsg
.
Status
=
res
.
data
.
data
.
Status
.
toString
()
this
.
addMsg
.
Status
=
res
.
data
.
data
.
Status
.
toString
()
this
.
imageUrl
=
this
.
addMsg
.
Logo
;
this
.
imageUrl
=
this
.
addMsg
.
Logo
;
this
.
tripImageUrl
=
this
.
addMsg
.
TripFeatureImg
;
}
else
{}
}
else
{}
},
err
=>
{})
},
err
=>
{})
},
},
...
@@ -476,13 +541,15 @@
...
@@ -476,13 +541,15 @@
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
path
,
name
:
path
,
query
:
{
query
:
{
"id"
:
id
,
blank
:
'y'
,
tab
:
'公司管理'
"id"
:
id
,
blank
:
'y'
,
tab
:
'公司管理'
}
}
})
})
},
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
submitForm
(
addMsg
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
addData
()
this
.
addData
()
}
else
{
}
else
{
return
false
;
return
false
;
...
@@ -491,7 +558,7 @@
...
@@ -491,7 +558,7 @@
},
},
submitForm1
(
addMsg
)
{
//提交创建、修改表单
submitForm1
(
addMsg
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
saveSystem
()
this
.
saveSystem
()
}
else
{
}
else
{
return
false
;
return
false
;
...
@@ -504,10 +571,11 @@
...
@@ -504,10 +571,11 @@
},
},
resetForm
(
formName
)
{
//弹出框取消 初始化谈框内表单
resetForm
(
formName
)
{
//弹出框取消 初始化谈框内表单
this
.
$refs
[
formName
].
resetFields
();
this
.
$refs
[
formName
].
resetFields
();
this
.
addMsg
.
Id
=
'-1'
this
.
addMsg
.
Id
=
'-1'
this
.
addMsg
.
Logo
=
''
;
this
.
addMsg
.
Logo
=
''
;
this
.
imageUrl
=
''
;
this
.
imageUrl
=
''
;
}
}
}
}
}
}
</
script
>
</
script
>
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