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
43c7903c
Commit
43c7903c
authored
Jun 15, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ef082a06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
188 additions
and
154 deletions
+188
-154
WebSiteConfig.vue
src/components/WebSet/WebSiteConfig.vue
+185
-151
WebSiteTemplateDetails.vue
src/components/WebSet/WebSiteTemplateDetails.vue
+3
-3
No files found.
src/components/WebSet/WebSiteConfig.vue
View file @
43c7903c
...
...
@@ -129,7 +129,7 @@
<
template
>
<!--网站设定(网站设置)-->
<div
class=
"WebSiteConfig"
>
<el-form
:model=
"msg"
ref=
"msg"
label-width=
"130px"
>
<el-form
label-width=
"130px"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"基本設定"
name=
"first"
>
<el-row>
...
...
@@ -140,10 +140,10 @@
</div>
<el-col
:span=
"12"
>
<el-form-item
label=
"網站名稱"
label-width=
"80px"
>
<el-input
v-model=
"PostMsg.WebSiteName"
></el-input>
<el-input
v-model=
"PostMsg.WebSiteName"
maxlength=
"80"
></el-input>
</el-form-item>
<el-form-item
label=
""
label-width=
"80px"
>
<el-button
type=
"primary"
size=
"small"
>
儲存修改
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"saveData()"
>
儲存修改
</el-button>
</el-form-item>
</el-col>
</el-card>
...
...
@@ -159,27 +159,27 @@
</div>
<el-col
:span=
"8"
>
<el-form-item
label=
"旅行社名稱"
>
<el-input
v-model=
"PostMsg.TAName"
></el-input>
<el-input
v-model=
"PostMsg.TAName"
maxlength=
"80"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"代表人"
>
<el-input
v-model=
"PostMsg.TABehalf"
></el-input>
<el-input
v-model=
"PostMsg.TABehalf"
maxlength=
"20"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"交觀証號"
>
<el-input
v-model=
"PostMsg.TAJiaoGuanCode"
></el-input>
<el-input
v-model=
"PostMsg.TAJiaoGuanCode"
maxlength=
"30"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"品保編號"
>
<el-input
v-model=
"PostMsg.TA
JiaoGuanCode
"
></el-input>
<el-input
v-model=
"PostMsg.TA
PingBaoCode"
maxlength=
"30
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"統一編號"
>
<el-input
v-model=
"PostMsg.TAUnifyCode"
></el-input>
<el-input
v-model=
"PostMsg.TAUnifyCode"
maxlength=
"30"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -238,32 +238,32 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"電話"
>
<el-input
v-model=
"PostMsg.TATel"
></el-input>
<el-input
v-model=
"PostMsg.TATel"
maxlength=
"30"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"傳真"
>
<el-input
v-model=
"PostMsg.TAFax"
></el-input>
<el-input
v-model=
"PostMsg.TAFax"
maxlength=
"30"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"聯絡人"
>
<el-input
v-model=
"PostMsg.TALinkMan"
></el-input>
<el-input
v-model=
"PostMsg.TALinkMan"
maxlength=
"30"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"地址"
>
<el-input
v-model=
"PostMsg.TAAddress"
></el-input>
<el-input
v-model=
"PostMsg.TAAddress"
maxlength=
"200"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"服務信箱"
>
<el-input
v-model=
"PostMsg.TAServiceMail"
></el-input>
<el-input
v-model=
"PostMsg.TAServiceMail"
maxlength=
"50"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"服務時間"
>
<el-input
v-model=
"PostMsg.TAServiceTime"
></el-input>
<el-input
v-model=
"PostMsg.TAServiceTime"
maxlength=
"80"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
...
...
@@ -272,12 +272,12 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"Line行動條碼網址"
>
<el-input
v-model=
"PostMsg.TALineUrl"
></el-input>
<el-input
v-model=
"PostMsg.TALineUrl"
maxlength=
"200"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"Facebook粉絲團網址"
label-width=
"150px"
>
<el-input
v-model=
"PostMsg.TAFaceBookUrl"
></el-input>
<el-input
v-model=
"PostMsg.TAFaceBookUrl"
maxlength=
"200"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
...
...
@@ -294,7 +294,7 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"不公開價格文字設定"
label-width=
"140px"
>
<el-input
v-model=
"PostMsg.TANoPublicPrice"
></el-input>
<el-input
v-model=
"PostMsg.TANoPublicPrice"
maxlength=
"100"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -317,7 +317,7 @@
</el-col>
<el-col
:span=
"24"
style=
"margin-bottom:50px"
>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
>
儲存修改
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"saveData()"
>
儲存修改
</el-button>
</el-form-item>
</el-col>
</el-card>
...
...
@@ -335,24 +335,12 @@
</div>
<div
class=
"WebSite_body"
>
<ul
class=
"todo-list"
>
<li>
<li
v-for=
"(headItem,headIndex) in PostMsg.HeaderNavList"
:key=
"headIndex"
>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
519住宿趣
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
<i
class=
"iconfont icon-guanbi del-btn"
></i>
</div>
</li>
<li>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
519住宿趣
</a>
<a
class=
"WebNav_link"
:href=
"headItem.NavUrl"
>
{{
headItem
.
NavTitle
}}
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
...
...
@@ -370,28 +358,15 @@
<div
class=
"Web_BtnDiv"
>
<el-button
type=
"primary"
size=
"small"
>
新增選單
</el-button>
</div>
</div>
<div
class=
"WebSite_body"
>
<ul
class=
"todo-list"
>
<li>
<li
v-for=
"(bottomItem,bottomIndex) in PostMsg.BottomNavList"
:key=
"bottomIndex"
>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
關於我們
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
<i
class=
"iconfont icon-guanbi del-btn"
></i>
</div>
</li>
<li>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
關於我們
</a>
<a
class=
"WebNav_link"
:href=
"bottomItem.NavUrl"
>
{{
bottomItem
.
NavTitle
}}
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
...
...
@@ -413,24 +388,12 @@
</div>
<div
class=
"WebSite_body"
>
<ul
class=
"todo-list"
>
<li>
<li
v-for=
"(footItem,footIndex) in PostMsg.FooterNavList"
:key=
"footIndex"
>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
玩家旅行社-台中公司
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
<i
class=
"iconfont icon-guanbi del-btn"
></i>
</div>
</li>
<li>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
玩家旅行社-台中公司
</a>
<a
class=
"WebNav_link"
:href=
"footItem.NavUrl"
>
{{
footItem
.
NavTitle
}}
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
...
...
@@ -451,24 +414,12 @@
</div>
<div
class=
"WebSite_body"
>
<ul
class=
"todo-list"
>
<li>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
關於我們
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
<i
class=
"iconfont icon-guanbi del-btn"
></i>
</div>
</li>
<li>
<li
v-for=
"(branchItem,branchIndex) in PostMsg.WebSiteBranchConfigList"
:key=
"branchIndex"
>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
關於我們
</a>
<a
class=
"WebNav_link"
>
{{
branchItem
.
BName
}}
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
...
...
@@ -489,12 +440,12 @@
</div>
<div
class=
"WebSite_body"
>
<ul
class=
"todo-list"
>
<li>
<li
v-for=
"(positionItem,positionIndex) in PostMsg.PositionList"
:key=
"positionIndex"
>
<span
class=
"handle"
>
<i
class=
"iconfont icon-diandiandian"
></i>
</span>
<span
class=
"WebSite_text"
>
<a
class=
"WebNav_link"
href=
""
>
職位名稱
</a>
<a
class=
"WebNav_link"
>
{{
positionItem
.
Name
}}
</a>
</span>
<div
class=
"WebSite_tools"
>
<i
class=
"iconfont icon-xiugai"
></i>
...
...
@@ -590,7 +541,7 @@
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"isShowDialog = false"
size=
"small"
>
取 消
</el-button>
<el-button
type=
"danger"
@
click=
"
AddTicd
"
size=
"small"
>
确 定
</el-button>
<el-button
type=
"danger"
@
click=
"
saveData()
"
size=
"small"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
...
...
@@ -602,7 +553,8 @@
//弹窗
isShowDialog
:
false
,
//选项卡
activeName
:
'first'
,
activeName
:
'third'
,
//上传图片类型
commonType
:
1
,
//旅行社类型
travelAgencyType
:
[{
...
...
@@ -640,91 +592,169 @@
Id
:
3
,
Name
:
'大'
}],
msg
:
{
},
PostMsg
:
{
Id
:
0
,
WebSiteName
:
"网站名称"
,
TAName
:
"旅行社名称"
,
TABehalf
:
"代表人"
,
TAJiaoGuanCode
:
"交观证号"
,
TAUnifyCode
:
"统一编号"
,
TAType
:
1
,
TALogo
:
"第一个Logo"
,
TALogo2
:
"第二个Logo"
,
TAIcon
:
"Icon"
,
TATel
:
"联系电话"
,
TAFax
:
"传真"
,
TALinkMan
:
"联系人"
,
TAAddress
:
"联系地址"
,
TAServiceMail
:
"服务邮箱"
,
TAServiceTime
:
"服务时间"
,
TALineUrl
:
"Line行動條碼網址"
,
TAFaceBookUrl
:
"FaceBook地址"
,
TASeatShowType
:
1
,
TANoPublicPrice
:
"不公開價格文字設定"
,
TAWordSize
:
1
,
TABgColor
:
"背景颜色"
,
TAOrderInfoDes
:
"订购页面价格标准内容"
,
Id
:
0
,
//编号
WebSiteName
:
""
,
//网站名称
TAName
:
""
,
//旅行社名称
TABehalf
:
""
,
//代表人
TAJiaoGuanCode
:
""
,
//交观证号
TAPingBaoCode
:
""
,
//品保编号
TAUnifyCode
:
""
,
//统一编号
TAType
:
1
,
//旅行社類型
TALogo
:
""
,
//企业Logo(彩色)
TALogo2
:
""
,
//企业Logo(黑白)
TAIcon
:
""
,
//企业Icon
TATel
:
""
,
//联系电话
TAFax
:
""
,
//传真
TALinkMan
:
""
,
//联系人
TAAddress
:
""
,
//联系地址
TAServiceMail
:
""
,
//服务邮箱
TAServiceTime
:
""
,
//服务时间
TALineUrl
:
""
,
//Line行動條碼網址
TAFaceBookUrl
:
""
,
//FaceBook地址
TASeatShowType
:
1
,
//可售位顯示方式
TANoPublicPrice
:
""
,
//不公開價格文字設定
TAWordSize
:
1
,
//全站字體大小
TABgColor
:
""
,
//背景颜色
TAOrderInfoDes
:
""
,
//订购页面价格标准内容
//網站選單設定
HeaderNavList
:
[{
Id
:
0
,
Type
:
1
,
Icon
:
""
,
NavTitle
:
"导航名称"
,
NavUrl
:
"导航链接"
,
IsNewOpen
:
1
,
SortNum
:
1
}],
HeaderNavList
:
[],
//刊尾選單設定
BottomNavList
:
[{
Id
:
0
,
Type
:
3
,
Icon
:
""
,
NavTitle
:
"导航名称"
,
NavUrl
:
"导航链接"
,
IsNewOpen
:
1
,
SortNum
:
1
}],
BottomNavList
:
[],
//刊尾小圖設定
FooterNavList
:
[{
Id
:
0
,
Type
:
2
,
Icon
:
""
,
NavTitle
:
"导航名称"
,
NavUrl
:
"导航链接"
,
IsNewOpen
:
1
,
SortNum
:
1
}],
FooterNavList
:
[],
//分公司資訊設定
WebSiteBranchConfigList
:
[{
Id
:
0
,
BName
:
"分公司名称"
,
BTel
:
"分公司电话"
,
BAddress
:
"分公司地址"
,
BFax
:
"分公司地址"
,
BType
:
1
,
BXieHuiCode
:
"協會證號"
,
BUnifyCode
:
"統一編號"
}],
WebSiteBranchConfigList
:
[],
//表單簽核職位設定
PositionList
:
[{
Id
:
0
,
Name
:
"职位名称"
,
SortNum
:
1
}]
}
PositionList
:
[]
},
//操作类型[1-網站選單設定,2-刊尾選單設定,3-刊尾小圖設定,4-分公司資訊設定,5-表單簽核職位設定]
OpType
:
0
};
},
mounted
()
{
//
this.getData();
this
.
getData
();
},
methods
:
{
//获取配置
getData
()
{
this
.
apipost
(
"ws_get_GetBasicConfig"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
if
(
tempData
)
{
if
(
tempData
.
Id
)
{
this
.
PostMsg
.
Id
=
tempData
.
Id
;
}
if
(
tempData
.
WebSiteName
)
{
this
.
PostMsg
.
WebSiteName
=
tempData
.
WebSiteName
;
}
if
(
tempData
.
TAName
)
{
this
.
PostMsg
.
TAName
=
tempData
.
TAName
;
}
if
(
tempData
.
TABehalf
)
{
this
.
PostMsg
.
TABehalf
=
tempData
.
TABehalf
;
}
if
(
tempData
.
TAJiaoGuanCode
)
{
this
.
PostMsg
.
TAJiaoGuanCode
=
tempData
.
TAJiaoGuanCode
;
}
if
(
tempData
.
TAPingBaoCode
)
{
this
.
PostMsg
.
TAPingBaoCode
=
tempData
.
TAPingBaoCode
;
}
if
(
tempData
.
TAUnifyCode
)
{
this
.
PostMsg
.
TAUnifyCode
=
tempData
.
TAUnifyCode
;
}
if
(
tempData
.
TAType
)
{
this
.
PostMsg
.
TAType
=
tempData
.
TAType
;
}
if
(
tempData
.
TALogo
)
{
this
.
PostMsg
.
TALogo
=
tempData
.
TALogo
;
}
if
(
tempData
.
TALogo2
)
{
this
.
PostMsg
.
TALogo2
=
tempData
.
TALogo2
;
}
if
(
tempData
.
TAIcon
)
{
this
.
PostMsg
.
TAIcon
=
tempData
.
TAIcon
;
}
if
(
tempData
.
TATel
)
{
this
.
PostMsg
.
TATel
=
tempData
.
TATel
;
}
if
(
tempData
.
TAFax
)
{
this
.
PostMsg
.
TAFax
=
tempData
.
TAFax
;
}
if
(
tempData
.
TALinkMan
)
{
this
.
PostMsg
.
TALinkMan
=
tempData
.
TALinkMan
;
}
if
(
tempData
.
TAAddress
)
{
this
.
PostMsg
.
TAAddress
=
tempData
.
TAAddress
;
}
if
(
tempData
.
TAServiceMail
)
{
this
.
PostMsg
.
TAServiceMail
=
tempData
.
TAServiceMail
;
}
if
(
tempData
.
TAServiceTime
)
{
this
.
PostMsg
.
TAServiceTime
=
tempData
.
TAServiceTime
;
}
if
(
tempData
.
TALineUrl
)
{
this
.
PostMsg
.
TALineUrl
=
tempData
.
TALineUrl
;
}
if
(
tempData
.
TAFaceBookUrl
)
{
this
.
PostMsg
.
TAFaceBookUrl
=
tempData
.
TAFaceBookUrl
;
}
if
(
tempData
.
TASeatShowType
)
{
this
.
PostMsg
.
TASeatShowType
=
tempData
.
TASeatShowType
;
}
if
(
tempData
.
TANoPublicPrice
)
{
this
.
PostMsg
.
TANoPublicPrice
=
tempData
.
TANoPublicPrice
;
}
if
(
tempData
.
TAWordSize
)
{
this
.
PostMsg
.
TAWordSize
=
tempData
.
TAWordSize
;
}
if
(
tempData
.
TABgColor
)
{
this
.
PostMsg
.
TABgColor
=
tempData
.
TABgColor
;
}
if
(
tempData
.
TAOrderInfoDes
)
{
this
.
PostMsg
.
TAOrderInfoDes
=
tempData
.
TAOrderInfoDes
;
}
if
(
tempData
.
HeaderNavList
)
{
this
.
PostMsg
.
HeaderNavList
=
tempData
.
HeaderNavList
;
}
if
(
tempData
.
BottomNavList
)
{
this
.
PostMsg
.
BottomNavList
=
tempData
.
BottomNavList
;
}
if
(
tempData
.
FooterNavList
)
{
this
.
PostMsg
.
FooterNavList
=
tempData
.
FooterNavList
;
}
if
(
tempData
.
WebSiteBranchConfigList
)
{
this
.
PostMsg
.
WebSiteBranchConfigList
=
tempData
.
WebSiteBranchConfigList
;
}
if
(
tempData
.
PositionList
)
{
this
.
PostMsg
.
PositionList
=
tempData
.
PositionList
;
}
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
//保存数据
saveData
()
{
this
.
apipost
(
"ws_post_SetBasicConfig"
,
this
.
PostMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getData
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
//选项卡切换
handleClick
(
val
)
{
},
...
...
@@ -737,7 +767,6 @@
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
var
str
=
x
.
data
.
FilePath
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
str
;
console
.
log
(
this
.
commonType
,
'type'
)
if
(
this
.
commonType
==
1
)
{
this
.
PostMsg
.
TALogo
=
imgUrl
;
}
else
if
(
this
.
commonType
==
2
)
{
...
...
@@ -747,7 +776,12 @@
}
});
},
//操作项目
OperateDialog
(
index
)
{
}
}
}
...
...
src/components/WebSet/WebSiteTemplateDetails.vue
View file @
43c7903c
<
style
>
.WebSiteTemplate
.el-button.is-circle
{
.WebSiteTemplate
Details
.el-button.is-circle
{
padding
:
6px
;
}
.WebSiteTemplate
.preview
{
.WebSiteTemplate
Details
.preview
{
color
:
#409eff
;
text-decoration
:
underline
}
...
...
@@ -11,7 +11,7 @@
</
style
>
<
template
>
<!--契约管理-->
<div
class=
"WebSiteTemplate"
>
<div
class=
"WebSiteTemplate
Details
"
>
<div
class=
"query-box"
>
<ul>
<li>
...
...
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