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
93863779
Commit
93863779
authored
Feb 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
d2b87f51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
180 additions
and
4 deletions
+180
-4
newsList.vue
src/components/tradePavilion/newsList.vue
+166
-0
tradePavilionIndex.vue
src/components/tradePavilion/tradePavilionIndex.vue
+4
-0
index.js
src/router/index.js
+10
-4
No files found.
src/components/tradePavilion/newsList.vue
0 → 100644
View file @
93863779
<
template
>
<div
class=
"companyList"
>
<div
class=
"head-title"
>
新闻管理
</div>
<div
class=
"content"
>
<div>
<div
class=
"searchInput"
style=
"width:150px"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:125px;height:30px"
placeholder=
"请输入公司名称"
v-model=
"msg.CompanyName"
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=
"CompanyId"
label=
"编号"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"CompanyName"
label=
"公司名称"
>
</el-table-column>
<el-table-column
prop=
"Principal"
label=
"联系人"
>
</el-table-column>
<el-table-column
prop=
"Mobile"
width=
"150"
label=
"联系电话"
>
</el-table-column>
<el-table-column
prop=
"EMail"
width=
"150"
label=
"邮箱"
>
</el-table-column>
<el-table-column
prop=
"Industry"
width=
"150"
label=
"行业"
>
</el-table-column>
<el-table-column
prop=
"AnnualSales"
width=
"150"
label=
"年销售(万元)"
>
</el-table-column>
<el-table-column
prop=
"AnnualImport"
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=
"EditgoUrl(scope.row)"
style=
"width:32px;height:32px"
src=
"../../assets/img/userman/edit.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>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
CompanyName
:
''
,
},
total
:
0
,
tableData
:
[],
//数据列表
};
},
created
()
{
this
.
getList
();
},
methods
:
{
EditgoUrl
(
row
)
{
this
.
$router
.
push
({
name
:
'companyinfo'
,
query
:
{
Id
:
row
.
CompanyId
,
blank
:
"y"
}
});
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/GetCompanyPageList"
,
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
();
},
//删除公司资料
delContactus
(
item
)
{
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveCompany"
,
{
CompanyId
:
item
.
CompanyId
,
Status
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
});
}
},
mounted
()
{}
};
</
script
>
<
style
>
.companyList
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.companyList
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
.companyList
.blue
{
color
:
#409EFF
;
}
.companyList
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
}
.companyList
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.companyList
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
}
.companyList
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
src/components/tradePavilion/tradePavilionIndex.vue
View file @
93863779
...
...
@@ -189,6 +189,10 @@
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/tradeactivityList'}"
@click="isChecked='/tradeactivityList',CommonJump('tradeactivityList')">
<i
class=
"el-icon-menu"
></i><span>
活动列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/newsList'}"
@click="isChecked='/newsList',CommonJump('newsList')">
<i
class=
"el-icon-menu"
></i><span>
新闻列表
</span>
</li>
</ul>
</div>
...
...
src/router/index.js
View file @
93863779
...
...
@@ -590,10 +590,16 @@ export default new Router({
},
//贸易管理--活动列表
{
path
:
'/tradeactivityList'
,
name
:
'tradeactivityList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/tradeactivityList'
],
resolve
),
},
path
:
'/tradeactivityList'
,
name
:
'tradeactivityList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/tradeactivityList'
],
resolve
),
},
//贸易管理--新闻列表
{
path
:
'/newsList'
,
name
:
'newsList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/newsList'
],
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