Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
c8cee3d4
Commit
c8cee3d4
authored
Mar 01, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
3508da5e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
354 additions
and
34 deletions
+354
-34
investmentList.vue
src/components/tradePavilion/investmentList.vue
+1
-1
newsList.vue
src/components/tradePavilion/newsList.vue
+11
-5
serviceTypeList.vue
src/components/tradePavilion/serviceTypeList.vue
+305
-0
tradePavilionIndex.vue
src/components/tradePavilion/tradePavilionIndex.vue
+16
-11
index.js
src/router/index.js
+21
-17
No files found.
src/components/tradePavilion/investmentList.vue
View file @
c8cee3d4
...
...
@@ -2,7 +2,7 @@
<div
class=
"investmentList"
>
<template
v-if=
"!isShowInfo"
>
<div
class=
"head-title"
>
投资
管理
招商
管理
</div>
<div
class=
"content"
>
<div>
...
...
src/components/tradePavilion/newsList.vue
View file @
c8cee3d4
...
...
@@ -10,7 +10,7 @@
<div>
<div
class=
"searchInput"
style=
"width:250px"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入标题"
v-model=
"msg.Title"
size=
"small"
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入
新闻
标题"
v-model=
"msg.Title"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
...
...
@@ -59,14 +59,16 @@
<div
class=
"content"
>
<el-form
label-width=
"120px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<el-form-item
label=
"新闻标题"
class=
"is-required"
prop=
"Title"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.Title"
size=
"small"
placeholder=
"新闻标题"
maxlength=
"100"
></el-input>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.Title"
size=
"small"
placeholder=
"新闻标题"
maxlength=
"100"
>
</el-input>
</el-form-item>
<el-form-item
label=
"发布时间"
class=
"is-required"
prop=
"PublishTime"
>
<el-date-picker
class=
"w400"
v-model=
"addMsg.PublishTime"
size=
"small"
type=
"date"
placeholder=
"发布时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"行业"
class=
"is-required"
prop=
"Industry"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.Industry"
size=
"small"
placeholder=
"行业"
maxlength=
"50"
></el-input>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.Industry"
size=
"small"
placeholder=
"行业"
maxlength=
"50"
>
</el-input>
</el-form-item>
<el-form-item
label=
"封面图"
size=
"small"
>
<el-button
@
click=
"isShowImage=true"
size=
"small"
>
选择文件
</el-button>
...
...
@@ -76,7 +78,7 @@
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.CoverImg"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"
活动
详情"
style=
"line-height:0;"
>
<el-form-item
label=
"
新闻
详情"
style=
"line-height:0;"
>
<UE
style=
"width:750px;"
:defaultMsg=
"defaultMsg"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE>
</el-form-item>
</el-form>
...
...
@@ -109,6 +111,7 @@
pageIndex
:
1
,
pageSize
:
10
,
Title
:
''
,
Type
:
1
,
},
total
:
0
,
tableData
:
[],
//数据列表
...
...
@@ -121,6 +124,7 @@
Industry
:
""
,
//行业
PublishTime
:
""
,
//发布时间
NewsInfo
:
""
,
//新闻详情
Type
:
1
,
},
rules
:
{
Title
:
[{
...
...
@@ -157,7 +161,8 @@
this
.
addMsg
.
Industry
=
""
;
this
.
addMsg
.
PublishTime
=
""
;
this
.
addMsg
.
NewsInfo
=
""
;
this
.
defaultMsg
=
""
;
this
.
addMsg
.
Type
=
1
;
this
.
defaultMsg
=
""
;
},
getList
()
{
this
.
loading
=
true
;
...
...
@@ -208,6 +213,7 @@
this
.
addMsg
.
Industry
=
tempData
.
Industry
;
this
.
addMsg
.
PublishTime
=
tempData
.
PublishTime
;
this
.
addMsg
.
NewsInfo
=
tempData
.
NewsInfo
;
this
.
addMsg
.
Type
=
tempData
.
Type
;
if
(
tempData
.
NewsInfo
)
{
this
.
defaultMsg
=
tempData
.
NewsInfo
;
}
...
...
src/components/tradePavilion/serviceTypeList.vue
0 → 100644
View file @
c8cee3d4
<
template
>
<div
class=
"newsList"
>
<template
v-if=
"!isShowAdd"
>
<div
class=
"head-title"
>
服务类型管理
<el-button
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
@
click=
"isShowAdd=true,clearMsg()"
>
新增
</el-button>
</div>
<div
class=
"content"
>
<div>
<div
class=
"searchInput"
style=
"width:250px"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入标题"
v-model=
"msg.Title"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
</div>
</div>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%;margin:20px 0"
>
<el-table-column
prop=
"Id"
label=
"编号"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"Title"
label=
"标题"
>
</el-table-column>
<el-table-column
prop=
"CoverImg"
width=
"150"
label=
"封面图"
>
<template
slot-scope=
"scope"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + scope.row.CoverImg + ')',backgroundSize:'cover'}">
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"PublishTimeStr"
width=
"200"
label=
"发布时间"
>
</el-table-column>
<el-table-column
prop=
"Industry"
width=
"150"
label=
"行业"
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"200"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"editNews(scope.row)"
style=
"width:32px;height:32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<img
@
click=
"delNews(scope.row)"
style=
"width:32px;height:32px;margin:0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</template>
<
template
v-else
>
<div
class=
"head-title"
>
<span
@
click=
"isShowAdd=false"
style=
"color:rgb(64, 158, 255);cursor:pointer;"
>
服务类型管理
</span><span
style=
"margin:0 9px;color:#C0C4CC"
>
/
</span><span>
服务类型详情信息
</span>
</div>
<div
class=
"content"
>
<el-form
label-width=
"120px"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<el-form-item
label=
"标题"
class=
"is-required"
prop=
"Title"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.Title"
size=
"small"
placeholder=
"标题"
maxlength=
"100"
>
</el-input>
</el-form-item>
<el-form-item
label=
"发布时间"
class=
"is-required"
prop=
"PublishTime"
>
<el-date-picker
class=
"w400"
v-model=
"addMsg.PublishTime"
size=
"small"
type=
"date"
placeholder=
"发布时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"行业"
class=
"is-required"
prop=
"Industry"
>
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.Industry"
size=
"small"
placeholder=
"行业"
maxlength=
"50"
>
</el-input>
</el-form-item>
<el-form-item
label=
"封面图"
size=
"small"
>
<el-button
@
click=
"isShowImage=true"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;border:none;"
>
<img
v-if=
"!addMsg.CoverImg || addMsg.CoverImg==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.CoverImg"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"服务详情"
style=
"line-height:0;"
>
<UE
style=
"width:750px;"
:defaultMsg=
"defaultMsg"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE>
</el-form-item>
</el-form>
</div>
<el-button
size=
"small"
style=
"margin-top:20px;padding:9px 25px;"
type=
"primary"
@
click=
"submitform('addMsg')"
>
保存
</el-button>
</
template
>
<!-- 选择文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"isShowImage"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
</el-dialog>
</div>
</template>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
UE
from
"@/components/global/UE.vue"
;
export
default
{
components
:
{
ChooseImg
,
UE
,
},
data
()
{
return
{
defaultMsg
:
""
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
350
},
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
Title
:
''
,
Type
:
2
,
},
total
:
0
,
tableData
:
[],
//数据列表
isShowImage
:
false
,
//是否显示选择图片弹窗
isShowAdd
:
false
,
//是否显示新增
addMsg
:
{
Id
:
0
,
//主键编号
CoverImg
:
""
,
//封面图
Title
:
""
,
//新闻标题
Industry
:
""
,
//行业
PublishTime
:
""
,
//发布时间
NewsInfo
:
""
,
//新闻详情
Type
:
2
,
},
rules
:
{
Title
:
[{
required
:
true
,
message
:
'请输入新闻标题'
,
trigger
:
'blur'
}],
PublishTime
:
[{
required
:
true
,
message
:
'请选择发布时间'
,
trigger
:
'blur'
}],
Industry
:
[{
required
:
true
,
message
:
'请输入行业'
,
trigger
:
'blur'
}]
},
};
},
created
()
{
this
.
getList
();
},
methods
:
{
SelectId
(
msg
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
this
.
addMsg
.
CoverImg
=
url
this
.
isShowImage
=
false
;
},
clearMsg
()
{
this
.
addMsg
.
Id
=
0
;
this
.
addMsg
.
CoverImg
=
""
;
this
.
addMsg
.
Title
=
""
;
this
.
addMsg
.
Industry
=
""
;
this
.
addMsg
.
PublishTime
=
""
;
this
.
addMsg
.
NewsInfo
=
""
;
this
.
addMsg
.
Type
=
2
;
this
.
defaultMsg
=
""
;
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/GetCommerceNewsPage"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
}
})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//删除新闻
delNews
(
item
)
{
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveCommerceNews"
,
{
Id
:
item
.
Id
,
Status
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
//修改新闻
editNews
(
item
)
{
this
.
apipost
(
"/api/Trade/GetCommerceNews"
,
{
Id
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowAdd
=
true
;
var
tempData
=
res
.
data
.
data
;
this
.
addMsg
.
Id
=
tempData
.
Id
;
this
.
addMsg
.
CoverImg
=
tempData
.
CoverImg
;
this
.
addMsg
.
Title
=
tempData
.
Title
;
this
.
addMsg
.
Industry
=
tempData
.
Industry
;
this
.
addMsg
.
PublishTime
=
tempData
.
PublishTime
;
this
.
addMsg
.
NewsInfo
=
tempData
.
NewsInfo
;
this
.
addMsg
.
Type
=
tempData
.
Type
;
if
(
tempData
.
NewsInfo
)
{
this
.
defaultMsg
=
tempData
.
NewsInfo
;
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
//新增修改
submitform
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
content
=
this
.
$refs
.
ue
.
getUEContent
();
this
.
addMsg
.
NewsInfo
=
content
;
this
.
apipost
(
"/api/Trade/SetCommerceNews"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
isShowAdd
=
false
;
this
.
getList
();
this
.
clearMsg
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
else
{
return
false
;
}
});
}
},
mounted
()
{}
};
</
script
>
<
style
>
.newsList
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.newsList
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
.newsList
.blue
{
color
:
#409EFF
;
}
.newsList
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
}
.newsList
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.newsList
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
}
.newsList
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
.newsList
.el-form-item__content
{
line-height
:
0
;
}
</
style
>
src/components/tradePavilion/tradePavilionIndex.vue
View file @
c8cee3d4
...
...
@@ -174,14 +174,14 @@
</div>
</div>
<ul
class=
"FsettingUU"
>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/contactus'}"
@click="isChecked='/contactus',CommonJump('contactus')">
<i
class=
"el-icon-menu"
></i><span>
联系我们
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/companyList'}"
@click="isChecked='/companyList',CommonJump('companyList')">
<i
class=
"el-icon-menu"
></i><span>
公司资料
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/contactus'}"
@click="isChecked='/contactus',CommonJump('contactus')">
<i
class=
"el-icon-menu"
></i><span>
联系我们
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/activityType'}"
@click="isChecked='/activityType',CommonJump('activityType')">
<i
class=
"el-icon-menu"
></i><span>
活动类型管理
</span>
...
...
@@ -194,18 +194,23 @@
@click="isChecked='/newsList',CommonJump('newsList')">
<i
class=
"el-icon-menu"
></i><span>
新闻列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/serviceTypeList'}"
@click="isChecked='/serviceTypeList',CommonJump('serviceTypeList')">
<i
class=
"el-icon-menu"
></i><span>
服务类型列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/consultList'}"
@click="isChecked='/consultList',CommonJump('consultList')">
<i
class=
"el-icon-menu"
></i><span>
咨询管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/investmentList'}"
@click="isChecked='/investmentList',CommonJump('investmentList')">
<i
class=
"el-icon-menu"
></i><span>
投资
管理
</span>
<i
class=
"el-icon-menu"
></i><span>
招商
管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/procurementList'}"
@click="isChecked='/procurementList',CommonJump('procurementList')">
<i
class=
"el-icon-menu"
></i><span>
采购管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/consultList'}"
@click="isChecked='/consultList',CommonJump('consultList')">
<i
class=
"el-icon-menu"
></i><span>
咨询管理
</span>
</li>
</ul>
</div>
</div>
...
...
@@ -261,8 +266,8 @@
this
.
ERPEmpId
=
this
.
currentUser
.
ERPEmpId
this
.
isChecked
=
this
.
$route
.
path
;
if
(
this
.
$route
.
query
.
FIndex
)
{
this
.
CommonJump
(
'co
ntactus
'
);
this
.
isChecked
=
'/co
ntactus
'
this
.
CommonJump
(
'co
mpanyList
'
);
this
.
isChecked
=
'/co
mpanyList
'
}
},
methods
:
{},
...
...
src/router/index.js
View file @
c8cee3d4
...
...
@@ -274,17 +274,15 @@ export default new Router({
path
:
'/blindDateIndex'
,
//相亲专区
name
:
'blindDateIndex'
,
component
:
resolve
=>
require
([
'@/components/blindDate/blindDateIndex'
],
resolve
),
children
:[
{
path
:
'/plateList'
,
name
:
'plateList'
,
component
:
resolve
=>
require
([
'@/components/blindDate/plateList'
],
resolve
),
},{
path
:
'/addplate'
,
name
:
'addplate'
,
component
:
resolve
=>
require
([
'@/components/blindDate/addplate'
],
resolve
),
},
]
children
:
[{
path
:
'/plateList'
,
name
:
'plateList'
,
component
:
resolve
=>
require
([
'@/components/blindDate/plateList'
],
resolve
),
},
{
path
:
'/addplate'
,
name
:
'addplate'
,
component
:
resolve
=>
require
([
'@/components/blindDate/addplate'
],
resolve
),
},
]
},
{
path
:
'/educationIndex'
,
//网课专区
...
...
@@ -616,6 +614,12 @@ export default new Router({
name
:
'newsList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/newsList'
],
resolve
),
},
//贸易管理--服务类型
{
path
:
'/serviceTypeList'
,
name
:
'serviceTypeList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/serviceTypeList'
],
resolve
),
},
//贸易管理--投资列表
{
path
:
'/investmentList'
,
...
...
@@ -628,12 +632,12 @@ export default new Router({
name
:
'procurementList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/procurementList'
],
resolve
),
},
//贸易管理--咨询管理
{
path
:
'/consultList'
,
name
:
'consultList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/consultList'
],
resolve
),
},
//贸易管理--咨询管理
{
path
:
'/consultList'
,
name
:
'consultList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/consultList'
],
resolve
),
},
]
},
...
...
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