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
1e8e0589
Commit
1e8e0589
authored
Jun 30, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f2f67eeb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
13 deletions
+30
-13
active-from.vue
src/components/activity/active-from.vue
+1
-1
activeDetail-item.vue
src/components/activity/activeDetail-item.vue
+29
-11
activeDetail.vue
src/pages/activity/activeDetail.vue
+0
-1
No files found.
src/components/activity/active-from.vue
View file @
1e8e0589
...
...
@@ -201,7 +201,7 @@
<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"
id=
"ue"
no-margin
<Ueditor
:value=
"ueditor.value"
:config=
"ueditor.config"
@
input=
"setVal"
ref=
"ue"
no-margin
:isShowInsertImage=
"false"
:isShowAttachment=
"false"
:isShowVoice=
"false"
></Ueditor>
</div>
</div>
...
...
src/components/activity/activeDetail-item.vue
View file @
1e8e0589
...
...
@@ -59,8 +59,10 @@
<Map
@
map-submit=
"mapEvent($event,index)"
:address=
"item.LocationName"
></Map>
</el-dialog>
<div
class=
"active-con"
>
<q-input
v-model=
"item.TripContent"
filled
type=
"textarea"
placeholder=
"输入活动内容..."
ref=
"TripContent"
:rules=
"[val => !!val || '请填写活动名称']"
/>
<!-- <q-input v-model="item.TripContent" filled type="textarea" placeholder="输入活动内容..." ref="TripContent"
:rules="[val => !!val || '请填写活动名称']" /> -->
<Ueditor
:value=
"item.TripContent"
:config=
"ueditor.config"
@
input=
"setVal($event,index)"
ref=
"ue"
no-margin
:isShowInsertImage=
"false"
:isShowAttachment=
"false"
:isShowVoice=
"false"
></Ueditor>
</div>
<div
class=
"item-name"
>
活动图片
...
...
@@ -91,12 +93,14 @@
</template>
<
script
>
import
Map
from
"./commonMap"
;
import
Ueditor
from
"../editor/UeEditor"
;
import
{
UploadSelfFile
,
}
from
'../../api/common/common'
export
default
{
components
:
{
Map
Map
,
Ueditor
},
props
:
{
itemData
:
{
...
...
@@ -113,7 +117,6 @@
handler
(
val
)
{
if
(
val
)
{
this
.
itemMsg
=
val
console
.
log
(
116
,
val
)
}
},
deep
:
true
...
...
@@ -147,6 +150,16 @@
}
]
},
//富文本
ueditor
:
{
value
:
""
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
100
,
autoHeightEnabled
:
true
,
enableContextMenu
:
false
}
},
}
},
mounted
()
{
...
...
@@ -223,18 +236,23 @@
hasErr
.
push
(
item
.
hasError
)
}
})
this
.
$refs
.
TripContent
.
map
(
item
=>
{
item
.
validate
()
if
(
item
.
hasError
){
hasErr
.
push
(
item
.
hasError
)
}
})
//
this.$refs.TripContent.map(item => {
//
item.validate()
//
if(item.hasError){
//
hasErr.push(item.hasError)
//
}
//
})
if
(
hasErr
.
length
>
0
){
return
false
}
else
{
return
true
}
}
},
// 富文本
setVal
(
val
,
index
)
{
this
.
itemMsg
.
ActivityPlanList
[
index
].
TripContent
=
val
;
// this.ueditor.value = decodeURIComponent(val);
},
}
}
...
...
src/pages/activity/activeDetail.vue
View file @
1e8e0589
...
...
@@ -145,7 +145,6 @@ import DetailItem from "../../components/activity/activeDetail-item"
this
.
apipostDS
(
"/api/Education/GetActivity"
,
{
Id
:
this
.
msg
.
Id
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
ActivityTitle
=
res
.
data
.
data
.
ActivityTitleList
console
.
log
(
152
,
res
.
data
.
data
.
ActivityTitleList
)
}
})
}
...
...
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