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
1233cff2
Commit
1233cff2
authored
Feb 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
93863779
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
596 additions
and
177 deletions
+596
-177
addLecturer.vue
src/components/education/addLecturer.vue
+79
-112
investmentList.vue
src/components/tradePavilion/investmentList.vue
+166
-0
newsList.vue
src/components/tradePavilion/newsList.vue
+164
-64
procurementList.vue
src/components/tradePavilion/procurementList.vue
+166
-0
tradePavilionIndex.vue
src/components/tradePavilion/tradePavilionIndex.vue
+9
-1
index.js
src/router/index.js
+12
-0
No files found.
src/components/education/addLecturer.vue
View file @
1233cff2
...
...
@@ -5,28 +5,26 @@
</div>
<div
class=
"content"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
style=
"width:50%"
>
<el-form-item
label=
"讲师名称"
prop=
"Name"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.Name"
placeholder=
"请输入讲师名称"
/>
</el-form-item>
<el-form-item
label=
"头像"
class=
"is-required"
size=
"small"
>
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
<img
v-if=
"!addMsg.TeacherLogo || addMsg.TeacherLogo==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.TeacherLogo"
alt=
""
>
<img
v-if=
"!addMsg.TeacherLogo || addMsg.TeacherLogo==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.TeacherLogo"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"关联用户"
size=
"small"
>
<el-select
size=
"small"
v-model=
"addMsg.UserId"
filterable
remote
reserve-keyword
placeholder=
"关联用户"
:remote-method=
"remoteMethod"
:loading=
"loadingPeople"
>
<el-select
size=
"small"
v-model=
"addMsg.UserId"
filterable
remote
reserve-keyword
placeholder=
"关联用户"
:remote-method=
"remoteMethod"
:loading=
"loadingPeople"
>
<el-option
v-for=
"item in peopleData"
:key=
"item.Id"
:label=
"`$
{item.AliasName}`" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"电话"
prop=
"Telephone"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.Telephone"
placeholder=
"请输入电话"
type=
"number"
/>
<el-input
v-model=
"addMsg.Telephone"
placeholder=
"请输入电话"
type=
"number"
/>
</el-form-item>
<el-form-item
label=
"专业"
prop=
"Major"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.Major"
placeholder=
"请输入专业"
/>
...
...
@@ -35,69 +33,42 @@
<el-input
v-model=
"addMsg.WorkYears"
@
keyup
.
native=
"checkInteger(addMsg,'WorkYears')"
placeholder=
"请输入工作年限"
/>
</el-form-item>
<el-form-item
label=
"讲师国籍"
prop=
"Nationality"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.Nationality"
/>
<el-input
v-model=
"addMsg.Nationality"
/>
</el-form-item>
<el-form-item
label=
"国旗"
class=
"is-required"
size=
"small"
>
<el-button
@
click=
"openChangeDig(2)"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
<img
v-if=
"!addMsg.ForeignersUrl || addMsg.ForeignersUrl==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.ForeignersUrl"
alt=
""
>
<img
v-if=
"!addMsg.ForeignersUrl || addMsg.ForeignersUrl==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.ForeignersUrl"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"上架状态"
size=
"small"
>
<el-switch
v-model=
"addMsg.TeacherStatus"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
<el-switch
v-model=
"addMsg.TeacherStatus"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"标签"
size=
"small"
>
<el-tag
:key=
"tag"
v-for=
"tag in dynamicTags"
closable
:disable-transitions=
"false"
@
close=
"handleClose(tag)"
>
<el-form-item
label=
"标签"
size=
"small"
>
<el-tag
:key=
"tag"
v-for=
"tag in dynamicTags"
closable
:disable-transitions=
"false"
@
close=
"handleClose(tag)"
>
{{
tag
}}
</el-tag>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible"
v-model=
"inputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible"
v-model=
"inputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
>
</el-input>
<el-button
v-else
class=
"button-new-tag"
size=
"small"
@
click=
"showInput"
>
+ 标签
</el-button>
</el-form-item>
<el-form-item
label=
"擅长课程"
size=
"small"
>
<el-tag
:key=
"tag"
v-for=
"tag in dynamicTags2"
closable
:disable-transitions=
"false"
<el-form-item
label=
"擅长课程"
size=
"small"
>
<el-tag
:key=
"tag"
v-for=
"tag in dynamicTags2"
closable
:disable-transitions=
"false"
@
close=
"handleClose2(tag)"
>
{{
tag
}}
</el-tag>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible2"
v-model=
"inputValue2"
ref=
"saveTagInput2"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm2"
@
blur=
"handleInputConfirm2"
>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible2"
v-model=
"inputValue2"
ref=
"saveTagInput2"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm2"
@
blur=
"handleInputConfirm2"
>
</el-input>
<el-button
v-else
class=
"button-new-tag"
size=
"small"
@
click=
"showInput2"
>
+ 标签
</el-button>
</el-form-item>
<el-form-item
label=
"简介"
>
<UE
style=
"width:750px;"
:defaultMsg=
"defaultMsg"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE>
</el-form-item>
</el-form>
</div>
<div
style=
"margin-top:20px"
>
...
...
@@ -106,10 +77,9 @@
<!-- 选择文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"changeState"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
</el-dialog>
</div>
</
template
>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
...
...
@@ -124,20 +94,20 @@
return
{
addMsg
:
{
ID
:
0
,
TeacherLogo
:
''
,
Name
:
''
,
Telephone
:
""
,
UserId
:
''
,
Introduction
:
''
,
Major
:
''
,
WorkYears
:
''
,
TeacherStatus
:
2
,
LableNameList
:
''
,
GoodCourseList
:
''
,
Nationality
:
''
,
//老师国籍
ForeignersUrl
:
''
,
//国家图片
TeacherLogo
:
''
,
Name
:
''
,
Telephone
:
""
,
UserId
:
''
,
Introduction
:
''
,
Major
:
''
,
WorkYears
:
''
,
TeacherStatus
:
2
,
LableNameList
:
''
,
GoodCourseList
:
''
,
Nationality
:
''
,
//老师国籍
ForeignersUrl
:
''
,
//国家图片
},
loadingPeople
:
false
,
loadingPeople
:
false
,
dynamicTags
:
[],
dynamicTags2
:
[],
inputVisible
:
false
,
...
...
@@ -149,7 +119,7 @@
initialFrameWidth
:
null
,
initialFrameHeight
:
350
},
Picindex
:
0
,
Picindex
:
0
,
rules
:
{
Name
:
[{
...
...
@@ -183,62 +153,55 @@
trigger
:
'blur'
}],
},
loading
:
false
,
changeState
:
false
,
imgType
:
0
,
peopleData
:[],
changeState
:
false
,
imgType
:
0
,
peopleData
:
[],
};
},
created
()
{
if
(
this
.
$route
.
query
.
ID
){
if
(
this
.
$route
.
query
.
ID
)
{
this
.
getData
(
this
.
$route
.
query
.
ID
)
}
},
methods
:
{
SelectId
(
msg
){
if
(
this
.
imgType
==
1
){
let
url
=
this
.
getIconLink
(
msg
.
url
)
SelectId
(
msg
)
{
if
(
this
.
imgType
==
1
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
this
.
addMsg
.
TeacherLogo
=
url
}
if
(
this
.
imgType
==
2
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
if
(
this
.
imgType
==
2
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
this
.
addMsg
.
ForeignersUrl
=
url
}
this
.
changeState
=
false
;
},
openChangeDig
(
num
)
{
this
.
changeState
=
true
;
this
.
imgType
=
num
;
this
.
imgType
=
num
;
},
Save
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
addMsg
.
TeacherLogo
==
''
)
{
if
(
this
.
addMsg
.
TeacherLogo
==
''
)
{
this
.
Error
(
'请上传品牌Logo'
)
return
false
}
if
(
this
.
addMsg
.
ForeignersUrl
==
''
)
{
if
(
this
.
addMsg
.
ForeignersUrl
==
''
)
{
this
.
Error
(
'请上传国家国旗'
)
return
false
}
this
.
addMsg
.
LableNameList
=
this
.
dynamicTags
if
(
this
.
dynamicTags2
.
length
==
''
||
this
.
dynamicTags2
.
length
==
0
)
{
if
(
this
.
dynamicTags2
.
length
==
''
||
this
.
dynamicTags2
.
length
==
0
)
{
this
.
Error
(
'请填写教师擅长课程'
)
return
false
}
this
.
addMsg
.
GoodCourseList
=
this
.
dynamicTags2
let
content
=
this
.
$refs
.
ue
.
getUEContent
();
this
.
addMsg
.
Introduction
=
content
;
let
msg
=
this
.
addMsg
if
(
msg
.
UserId
==
''
)
{
msg
.
UserId
=
0
if
(
msg
.
UserId
==
''
)
{
msg
.
UserId
=
0
}
this
.
apipost
(
"/api/Education/AddOrUpdateTeacher"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -259,7 +222,6 @@
handleClose2
(
tag
)
{
this
.
dynamicTags2
.
splice
(
this
.
dynamicTags2
.
indexOf
(
tag
),
1
);
},
showInput
()
{
this
.
inputVisible
=
true
;
this
.
$nextTick
(
_
=>
{
...
...
@@ -272,7 +234,6 @@
this
.
$refs
.
saveTagInput2
.
$refs
.
input
.
focus
();
});
},
handleInputConfirm
()
{
let
inputValue
=
this
.
inputValue
;
if
(
inputValue
)
{
...
...
@@ -289,8 +250,6 @@
this
.
inputVisible2
=
false
;
this
.
inputValue2
=
''
;
},
getData
(
ID
)
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Education/GetTeacherModel"
,
{
...
...
@@ -301,40 +260,40 @@
if
(
this
.
addMsg
.
Introduction
&&
this
.
addMsg
.
Introduction
!=
""
)
{
this
.
defaultMsg
=
this
.
addMsg
.
Introduction
;
}
if
(
this
.
addMsg
.
LableNameList
!=
null
)
{
if
(
this
.
addMsg
.
LableNameList
!=
null
)
{
this
.
dynamicTags
=
this
.
addMsg
.
LableNameList
}
if
(
this
.
addMsg
.
GoodCourseList
!=
null
)
{
if
(
this
.
addMsg
.
GoodCourseList
!=
null
)
{
this
.
dynamicTags2
=
this
.
addMsg
.
GoodCourseList
}
if
(
this
.
addMsg
.
UserId
==
0
){
this
.
addMsg
.
UserId
=
''
}
else
if
(
this
.
addMsg
.
UserId
>
0
){
this
.
peopleData
=
[
{
Id
:
this
.
addMsg
.
UserId
,
AliasName
:
this
.
addMsg
.
UserName
}
]
if
(
this
.
addMsg
.
UserId
==
0
)
{
this
.
addMsg
.
UserId
=
''
}
else
if
(
this
.
addMsg
.
UserId
>
0
)
{
this
.
peopleData
=
[{
Id
:
this
.
addMsg
.
UserId
,
AliasName
:
this
.
addMsg
.
UserName
}]
}
})
},
remoteMethod
(
val
){
console
.
log
(
val
)
remoteMethod
(
val
)
{
this
.
loadingPeople
=
true
;
this
.
apipost
(
"/api/User/GetListByPhoneOrAliasName"
,{
'AliasName'
:
val
,
SmallShopId
:
0
},
res
=>
{
this
.
apipost
(
"/api/User/GetListByPhoneOrAliasName"
,
{
'AliasName'
:
val
,
SmallShopId
:
0
},
res
=>
{
this
.
loadingPeople
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
peopleData
=
res
.
data
.
data
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
},
mounted
()
{
}
mounted
()
{}
};
</
script
>
<
style
>
.app-add-cat
.el-checkbox-group
{
...
...
@@ -388,7 +347,8 @@
padding
:
20px
;
box-sizing
:
border-box
;
}
.addLecturer
.gez_list
{
.addLecturer
.gez_list
{
/*width: 650px;*/
margin-bottom
:
12px
;
padding
:
20px
;
...
...
@@ -397,7 +357,8 @@
color
:
#303133
;
}
.addLecturer
.quyu
{
.addLecturer
.quyu
{
background-color
:
#f4f4f5
;
color
:
#909399
;
padding
:
10px
;
...
...
@@ -408,9 +369,11 @@
white-space
:
nowrap
;
margin
:
5px
;
}
.addLecturer
.el-tag
+
.el-tag
{
.addLecturer
.el-tag
+
.el-tag
{
margin-left
:
10px
;
}
.addLecturer
.button-new-tag
{
margin-left
:
10px
;
height
:
32px
;
...
...
@@ -418,15 +381,19 @@
padding-top
:
0
;
padding-bottom
:
0
;
}
.addLecturer
.input-new-tag
{
width
:
90px
;
margin-left
:
10px
;
vertical-align
:
bottom
;
}
.addLecturer
.el-form-item__content
{
.addLecturer
.el-form-item__content
{
line-height
:
0
;
}
.addLecturer
.app-gallery-item
{
border
:
none
.addLecturer
.app-gallery-item
{
border
:
none
}
</
style
>
src/components/tradePavilion/investmentList.vue
0 → 100644
View file @
1233cff2
<
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/newsList.vue
View file @
1233cff2
<
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
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: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.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=
"封面图"
>
</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"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"delNews(scope.row)"
circle
style=
"padding:6px;"
>
</el-button>
</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>
<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
class=
"content"
>
<el-form
label-width=
"120px"
>
<el-form-item
label=
"新闻标题"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Title"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"发布时间"
>
<el-date-picker
class=
"w300"
v-model=
"addMsg.PublishTime"
type=
"date"
placeholder=
"发布时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"行业"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Industry"
size=
"small"
></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=
"活动详情"
>
<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()"
>
保存
</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
:
15
,
CompanyNam
e
:
''
,
Titl
e
:
''
,
},
total
:
0
,
tableData
:
[],
//数据列表
isShowImage
:
false
,
//是否显示选择图片弹窗
isShowAdd
:
false
,
//是否显示新增
addMsg
:
{
Id
:
0
,
//主键编号
CoverImg
:
""
,
//封面图
Title
:
""
,
//新闻标题
Industry
:
""
,
//行业
PublishTime
:
""
,
//发布时间
NewsInfo
:
""
,
//新闻详情
},
};
},
created
()
{
this
.
getList
();
},
methods
:
{
EditgoUrl
(
row
)
{
this
.
$router
.
push
({
name
:
'companyinfo'
,
query
:
{
Id
:
row
.
CompanyId
,
blank
:
"y"
}
});
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
=
""
;
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/GetCom
panyPageList
"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Trade/GetCom
merceNewsPage
"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
...
...
@@ -87,13 +151,13 @@
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//删除
公司资料
del
Contactu
s
(
item
)
{
//删除
新闻
del
New
s
(
item
)
{
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveCom
pany
"
,
{
CompanyId
:
item
.
Company
Id
,
"/api/Trade/RemoveCom
merceNews
"
,
{
Id
:
item
.
Id
,
Status
:
1
},
res
=>
{
...
...
@@ -106,6 +170,42 @@
},
);
});
},
//修改新闻
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
;
if
(
tempData
.
NewsInfo
)
{
this
.
defaultMsg
=
tempData
.
NewsInfo
;
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
//新增修改
submitform
()
{
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
);
}
})
}
},
mounted
()
{}
...
...
@@ -113,14 +213,14 @@
</
script
>
<
style
>
.
company
List
.remark_name
{
.
news
List
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.
company
List
.app-image
{
.
news
List
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
...
...
@@ -129,24 +229,24 @@
margin-right
:
8px
;
}
.
company
List
.blue
{
.
news
List
.blue
{
color
:
#409EFF
;
}
.
company
List
.content
.searchInput
{
.
news
List
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
}
.
company
List
.content
.searchInput
.el-input__inner
{
.
news
List
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.
company
List
.content
.searchInput
{
.
news
List
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
...
...
@@ -156,7 +256,7 @@
margin-right
:
20px
;
}
.
company
List
.content
{
.
news
List
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
...
...
src/components/tradePavilion/procurementList.vue
0 → 100644
View file @
1233cff2
<
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 @
1233cff2
...
...
@@ -190,10 +190,18 @@
@click="isChecked='/tradeactivityList',CommonJump('tradeactivityList')">
<i
class=
"el-icon-menu"
></i><span>
活动列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/newsList'}"
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/newsList'}"
@click="isChecked='/newsList',CommonJump('newsList')">
<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>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/procurementList'}"
@click="isChecked='/procurementList',CommonJump('procurementList')">
<i
class=
"el-icon-menu"
></i><span>
采购管理
</span>
</li>
</ul>
</div>
</div>
...
...
src/router/index.js
View file @
1233cff2
...
...
@@ -600,6 +600,18 @@ export default new Router({
name
:
'newsList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/newsList'
],
resolve
),
},
//贸易管理--投资列表
{
path
:
'/investmentList'
,
name
:
'investmentList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/investmentList'
],
resolve
),
},
//贸易管理--采购列表
{
path
:
'/procurementList'
,
name
:
'procurementList'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/procurementList'
],
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