Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
8db64d34
Commit
8db64d34
authored
Jun 29, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b8b5662c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
436 additions
and
105 deletions
+436
-105
App.vue
src/App.vue
+1
-1
common.js
src/api/common/common.js
+0
-1
active-item.vue
src/components/activity/active-item.vue
+0
-10
activeDetail-item.vue
src/components/activity/activeDetail-item.vue
+340
-0
activeDetail.vue
src/pages/activity/activeDetail.vue
+95
-93
No files found.
src/App.vue
View file @
8db64d34
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
<
style
>
<
style
>
@import
url('~assets/css/font.css')
;
@import
url('~assets/css/font.css')
;
@import
url('//at.alicdn.com/t/font_2077629_
w06lw9ydl0q
.css')
;
@import
url('//at.alicdn.com/t/font_2077629_
byb6agikplo
.css')
;
html
,
html
,
body
,
body
,
...
...
src/api/common/common.js
View file @
8db64d34
...
@@ -231,7 +231,6 @@ export function UploadFileToSystem(uploadConfig, fileFullPath, fileObj, uploadLo
...
@@ -231,7 +231,6 @@ export function UploadFileToSystem(uploadConfig, fileFullPath, fileObj, uploadLo
xhr
.
onload
=
function
()
{
xhr
.
onload
=
function
()
{
uploadLoadding
.
hide
();
uploadLoadding
.
hide
();
var
jsonObj
=
JSON
.
parse
(
xhr
.
responseText
);
var
jsonObj
=
JSON
.
parse
(
xhr
.
responseText
);
console
.
log
(
206
,
jsonObj
,
successCall
)
if
(
jsonObj
.
StatusCode
===
1
&&
successCall
)
{
if
(
jsonObj
.
StatusCode
===
1
&&
successCall
)
{
var
tempArray
=
[];
var
tempArray
=
[];
if
(
jsonObj
.
OtherFile
&&
jsonObj
.
OtherFile
.
length
>
0
)
{
if
(
jsonObj
.
OtherFile
&&
jsonObj
.
OtherFile
.
length
>
0
)
{
...
...
src/components/activity/active-item.vue
deleted
100644 → 0
View file @
b8b5662c
<
template
>
<div>
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
\ No newline at end of file
src/components/activity/activeDetail-item.vue
0 → 100644
View file @
8db64d34
This diff is collapsed.
Click to expand it.
src/pages/activity/activeDetail.vue
View file @
8db64d34
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
40px
;
}
}
.p_title
{
.p_title
{
color
:
#000000
;
color
:
#000000
;
...
@@ -11,6 +12,9 @@
...
@@ -11,6 +12,9 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.activeDetail
{
overflow-y
:
scroll
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body activeDetail"
>
<div
class=
"page-body activeDetail"
>
...
@@ -19,127 +23,125 @@
...
@@ -19,127 +23,125 @@
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"返回"
@
click=
"goBack"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"返回"
@
click=
"goBack"
/>
<span
class=
"p_title"
>
活动详情
</span>
<span
class=
"p_title"
>
活动详情
</span>
</div>
</div>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增活动"
@
click=
""
/>
<div>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增活动"
@
click=
"addActiveList"
/>
<q-btn
color=
"accent"
size=
"sm"
label=
"保存"
@
click=
"save"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
""
>
<div
v-for=
"(item,index) in ActivityTitle"
:key=
"item.id"
class=
"flex "
>
<DetailItem
:itemData=
"item"
:index=
"index+1"
@
success=
"getItemData($event,index)"
/>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除当前活动"
placement=
"top"
v-if=
"index>0"
>
<i
class=
"iconfont icon-img_delete_small q-ml-sm"
style=
"color: #2961FE"
@
click=
"delActiveList(index)"
></i>
</el-tooltip>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
DetailItem
from
"../../components/activity/activeDetail-item"
export
default
{
export
default
{
meta
:
{
meta
:
{
title
:
"活动详情"
title
:
"活动详情"
},
},
components
:
{
components
:
{
DetailItem
},
},
data
()
{
data
()
{
return
{
return
{
data
:
[],
msg
:{
loading
:
true
,
Id
:
0
,
ActivityTitle
:[]
},
ActivityTitle
:[
{
Title
:
""
,
//活动大标题
TripSort
:
0
,
//活动排序
ActivityPlanList
:[
//活动安排
{
TripSort
:
0
,
//排序
StartTime
:
""
,
//开始时间
ActivityDuration
:
""
,
//活动时长(单位:分钟)
LonLat
:
""
,
//活动地址经纬度
LocationName
:
""
,
//活动地址
TripTitle
:
""
,
//安排标题
TripContent
:
""
,
//内容
TripPicList
:[]
//图片
}
]
}
],
item
:{
}
}
}
},
},
mounted
()
{
mounted
(){
if
(
this
.
$route
.
query
.
Id
){
},
this
.
msg
.
Id
=
this
.
$route
.
query
.
Id
}
},
methods
:
{
methods
:
{
goBack
(){
goBack
(){
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
},
addActiveList
(){
let
obj
=
{
//获取活动类型下拉
Title
:
""
,
//活动大标题
getActiveTypeList
(){
TripSort
:
this
.
ActivityTitle
.
length
,
//活动排序
this
.
apipostDS
(
"/api/Education/GetCommerceActivityTypeList"
,{},(
res
)
=>
{
ActivityPlanList
:[
//活动安排
if
(
res
.
data
.
resultCode
===
1
){
{
this
.
activityTypeList
=
res
.
data
.
data
;
TripSort
:
0
,
//排序
this
.
activityTypeList
.
unshift
({
StartTime
:
""
,
//开始时间
Id
:
-
1
,
ActivityDuration
:
""
,
//活动时长(单位:分钟)
TypeName
:
"不限"
LonLat
:
""
,
//活动地址经纬度
})
LocationName
:
""
,
//活动地址
TripTitle
:
""
,
//安排标题
TripContent
:
""
,
//内容
TripPicList
:[]
//图片
}
}
})
]
},
getList
(){
this
.
loading
=
true
;
this
.
apipostDS
(
"/api/Education/GetActivityPage"
,
this
.
msg
,(
res
)
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
===
1
){
this
.
data
=
res
.
data
.
data
.
pageData
;
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
})
},
delActive
(
item
){
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipostDS
(
"/api/Education/RemoveActivity"
,
{
Id
:
item
.
Id
,
Status
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
);
})
},
//刷新页面
refreshPage
()
{
this
.
showForm
=
false
;
this
.
getList
();
},
//显示修改
editQuotation
(
item
)
{
this
.
showForm
=
true
;
if
(
item
)
{
this
.
typeObj
=
item
;
}
else
{
this
.
typeObj
=
{};
}
}
this
.
ActivityTitle
.
push
(
obj
)
},
},
//重新查询
delActiveList
(
index
){
resetSearch
()
{
this
.
ActivityTitle
.
splice
(
index
,
1
)
this
.
msg
.
pageIndex
=
1
;
this
.
getList
();
},
},
//翻页
getItemData
(
val
,
index
){
changePage
(
val
)
{
console
.
log
(
'119'
,
val
,
index
)
this
.
msg
.
pageIndex
=
val
;
this
.
getList
()
},
},
//关闭弹窗
//保存信息
closeruleset
()
{
save
()
{
this
.
showForm
=
false
;
this
.
msg
.
ActivityTitle
=
this
.
ActivityTitle
// this.$refs.Name.validate();
// this.$refs.StartTime.validate();
// this.$refs.EndTime.validate();
// this.$refs.SignStartTime.validate();
// this.$refs.SignEndTime.validate();
// if (!this.$refs.Name.hasError &&
// !this.$refs.StartTime.hasError &&
// !this.$refs.EndTime.hasError &&
// !this.$refs.SignStartTime.hasError &&
// !this.$refs.SignEndTime.hasError) {
this
.
apipostDS
(
"/api/Education/GetSetActivityPlan"
,
this
.
msg
,
(
res
)
=>
{
console
.
log
(
136
,
res
)
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
// }
},
},
goUrl
(
url
,
item
,
type
=
0
){
if
(
type
===
1
){
this
.
$router
.
push
({
path
:
url
,
query
:{
name
:
item
.
ActivityName
}
})
}
else
{
this
.
$router
.
push
({
path
:
url
,
query
:{
Id
:
item
.
Id
}
})
}
}
}
}
}
}
...
...
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