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
fe8bf76e
Commit
fe8bf76e
authored
Jun 30, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9074ba7c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
20 deletions
+66
-20
active-from.vue
src/components/activity/active-from.vue
+13
-4
activeDetail-item.vue
src/components/activity/activeDetail-item.vue
+37
-4
activeDetail.vue
src/pages/activity/activeDetail.vue
+12
-10
activeType.vue
src/pages/activity/activeType.vue
+2
-1
activityList.vue
src/pages/activity/activityList.vue
+2
-1
No files found.
src/components/activity/active-from.vue
View file @
fe8bf76e
...
...
@@ -193,15 +193,15 @@
</
template
>
</q-input>
<!-- 地图选址 -->
<el-dialog
title=
"地图展示"
:visible
.
sync=
"isShowMap"
width=
"960px"
style=
"z
-index:
99999"
>
<Map
@
map-submit=
"mapEvent"
:address=
"addMsg.LocationName"
></Map>
<el-dialog
title=
"地图展示"
:visible
.
sync=
"isShowMap"
width=
"960px"
style=
"z
Index:9
99999"
>
<Map
@
map-submit=
"mapEvent"
:address=
"addMsg.LocationName"
style=
"zIndex:999999"
></Map>
</el-dialog>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"q-mt-lg q-mb-sm"
>
活动特色
</div>
<div
class=
"col-12"
>
<Ueditor
:value=
"ueditor.value"
:config=
"ueditor.config"
@
input=
"setVal"
ref=
"ue"
no-margin
<Ueditor
:value=
"ueditor.value"
:config=
"ueditor.config"
@
input=
"setVal"
ref=
"ue"
id=
"ue"
no-margin
:isShowInsertImage=
"false"
:isShowAttachment=
"false"
:isShowVoice=
"false"
></Ueditor>
</div>
</div>
...
...
@@ -283,6 +283,7 @@
}
},
mounted
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
Id
>
0
)
{
this
.
addMsg
.
Id
=
this
.
saveObj
.
Id
this
.
addMsg
.
ActivityName
=
this
.
saveObj
.
ActivityName
...
...
@@ -339,8 +340,16 @@
LonLat
:
''
,
//经纬度(逗号分隔)
LocationName
:
''
,
//位置名称
},
this
.
setVal
(
""
);
this
.
setVal
(
""
);
}
this
.
$nextTick
(
function
(){
let
el
=
this
.
$refs
.
ue
el
.
$children
[
0
].
$el
.
style
.
zIndex
=
9
this
.
$forceUpdate
();
console
.
log
(
el
.
$children
[
0
].
$el
.
style
.
zIndex
)
})
},
methods
:
{
// 选择报名开始时间
...
...
src/components/activity/activeDetail-item.vue
View file @
fe8bf76e
...
...
@@ -40,7 +40,7 @@
</div>
<div
class=
"starttime"
>
<q-input
ref=
"
long
"
ref=
"
Duration
"
filled
stack-label
v-model
.
number=
"item.ActivityDuration"
...
...
@@ -52,7 +52,7 @@
</div>
<div
style=
"flex-grow:2"
>
<q-input
ref=
"
nam
e"
ref=
"
TripTitl
e"
filled
stack-label
v-model=
"item.TripTitle"
...
...
@@ -70,7 +70,6 @@
活动内容
<div
class=
"location"
@
click=
"getMapShow"
>
<i
class=
"iconfont icon-customer-visited"
></i>
<span
v-if=
"item.LocationName"
>
{{item.LocationName}}
</span>
<span
v-else
>
可设置活动定位
</span>
</div>
...
...
@@ -85,6 +84,8 @@
filled
type=
"textarea"
placeholder=
"输入活动内容..."
ref=
"TripContent"
:rules=
"[val => !!val || '请填写活动名称']"
/>
</div>
<div
class=
"item-name"
>
...
...
@@ -138,7 +139,24 @@ import {
watch
:{
itemMsg
:{
handler
(
val
){
this
.
$emit
(
"success"
,
val
)
// this.$refs.Title.validate();
// console.log(143, this.$refs)
// this.$refs.StartTime.map(item=>{
// item.validate()
// console.log(item.validate)
// })
// this.$refs.StartTime.validate();
// this.$refs.Duration.validate();
// this.$refs.TripTitle.validate();
// this.$refs.TripContent.validate();
// if (!this.$refs.Title.hasError &&
// !this.$refs.StartTime.hasError &&
// !this.$refs.Duration.hasError &&
// !this.$refs.TripTitle.hasError &&
// !this.$refs.TripContent.hasError) {
this
.
$emit
(
"success"
,
val
)
// }
},
deep
:
true
},
...
...
@@ -215,6 +233,21 @@ import {
getMapShow
()
{
this
.
isShowMap
=
true
;
},
ruleVerification
(){
this
.
$refs
.
Title
.
validate
();
this
.
$refs
.
StartTime
.
map
(
item
=>
{
item
.
validate
()
})
this
.
$refs
.
Duration
.
map
(
item
=>
{
item
.
validate
()
})
this
.
$refs
.
TripTitle
.
map
(
item
=>
{
item
.
validate
()
})
this
.
$refs
.
TripContent
.
map
(
item
=>
{
item
.
validate
()
})
}
}
}
...
...
src/pages/activity/activeDetail.vue
View file @
fe8bf76e
...
...
@@ -31,8 +31,8 @@
</div>
<div
class=
""
>
<div
v-for=
"(item,index) in ActivityTitle"
:key=
"item.id"
class=
"flex "
>
<DetailItem
:itemData=
"item"
:index=
"index+1"
@
success=
"getItemData($event,index)"
/>
<DetailItem
:itemData=
"item"
:index=
"index+1"
@
success=
"getItemData($event,index)"
ref=
"child"
/>
<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>
...
...
@@ -117,10 +117,12 @@ import DetailItem from "../../components/activity/activeDetail-item"
},
getItemData
(
val
,
index
){
console
.
log
(
'119'
,
val
,
index
)
this
.
msg
.
ActivityTitle
[
index
]
=
val
},
//保存信息
save
()
{
this
.
msg
.
ActivityTitle
=
this
.
ActivityTitle
console
.
log
(
this
.
$refs
)
// this.$refs.Name.validate();
// this.$refs.StartTime.validate();
// this.$refs.EndTime.validate();
...
...
@@ -132,14 +134,14 @@ import DetailItem from "../../components/activity/activeDetail-item"
// !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
);
}
})
//
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);
//
}
//
})
// }
},
}
...
...
src/pages/activity/activeType.vue
View file @
fe8bf76e
...
...
@@ -189,8 +189,9 @@ import ActiveTypeForm from '../../components/activity/activeType-from'
loading
:
true
,
msg
:
{
pageIndex
:
1
,
pageSize
:
5
,
pageSize
:
10
,
TypeName
:
''
,
rowsPerPage
:
10
},
pageCount
:
0
,
columns
:
[{
...
...
src/pages/activity/activityList.vue
View file @
fe8bf76e
...
...
@@ -347,11 +347,12 @@ import ActiveForm from '../../components/activity/active-from'
loading
:
true
,
msg
:
{
pageIndex
:
1
,
pageSize
:
5
,
pageSize
:
10
,
ActivityName
:
''
,
SelectStartTimeStr
:
""
,
SelectEndTimeStr
:
""
,
SelectIsEnd
:
-
1
,
rowsPerPage
:
10
},
pageCount
:
0
,
activityTypeList
:[],
...
...
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