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 @@
...
@@ -201,7 +201,7 @@
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<div
class=
"q-mt-lg q-mb-sm"
>
活动特色
</div>
<div
class=
"q-mt-lg q-mb-sm"
>
活动特色
</div>
<div
class=
"col-12"
>
<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>
:isShowInsertImage=
"false"
:isShowAttachment=
"false"
:isShowVoice=
"false"
></Ueditor>
</div>
</div>
</div>
</div>
...
...
src/components/activity/activeDetail-item.vue
View file @
1e8e0589
...
@@ -59,8 +59,10 @@
...
@@ -59,8 +59,10 @@
<Map
@
map-submit=
"mapEvent($event,index)"
:address=
"item.LocationName"
></Map>
<Map
@
map-submit=
"mapEvent($event,index)"
:address=
"item.LocationName"
></Map>
</el-dialog>
</el-dialog>
<div
class=
"active-con"
>
<div
class=
"active-con"
>
<q-input
v-model=
"item.TripContent"
filled
type=
"textarea"
placeholder=
"输入活动内容..."
ref=
"TripContent"
<!-- <q-input v-model="item.TripContent" filled type="textarea" placeholder="输入活动内容..." ref="TripContent"
:rules=
"[val => !!val || '请填写活动名称']"
/>
: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>
<div
class=
"item-name"
>
<div
class=
"item-name"
>
活动图片
活动图片
...
@@ -91,12 +93,14 @@
...
@@ -91,12 +93,14 @@
</template>
</template>
<
script
>
<
script
>
import
Map
from
"./commonMap"
;
import
Map
from
"./commonMap"
;
import
Ueditor
from
"../editor/UeEditor"
;
import
{
import
{
UploadSelfFile
,
UploadSelfFile
,
}
from
'../../api/common/common'
}
from
'../../api/common/common'
export
default
{
export
default
{
components
:
{
components
:
{
Map
Map
,
Ueditor
},
},
props
:
{
props
:
{
itemData
:
{
itemData
:
{
...
@@ -113,7 +117,6 @@
...
@@ -113,7 +117,6 @@
handler
(
val
)
{
handler
(
val
)
{
if
(
val
)
{
if
(
val
)
{
this
.
itemMsg
=
val
this
.
itemMsg
=
val
console
.
log
(
116
,
val
)
}
}
},
},
deep
:
true
deep
:
true
...
@@ -147,6 +150,16 @@
...
@@ -147,6 +150,16 @@
}
}
]
]
},
},
//富文本
ueditor
:
{
value
:
""
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
100
,
autoHeightEnabled
:
true
,
enableContextMenu
:
false
}
},
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -223,18 +236,23 @@
...
@@ -223,18 +236,23 @@
hasErr
.
push
(
item
.
hasError
)
hasErr
.
push
(
item
.
hasError
)
}
}
})
})
this
.
$refs
.
TripContent
.
map
(
item
=>
{
//
this.$refs.TripContent.map(item => {
item
.
validate
()
//
item.validate()
if
(
item
.
hasError
){
//
if(item.hasError){
hasErr
.
push
(
item
.
hasError
)
//
hasErr.push(item.hasError)
}
//
}
})
//
})
if
(
hasErr
.
length
>
0
){
if
(
hasErr
.
length
>
0
){
return
false
return
false
}
else
{
}
else
{
return
true
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"
...
@@ -145,7 +145,6 @@ import DetailItem from "../../components/activity/activeDetail-item"
this
.
apipostDS
(
"/api/Education/GetActivity"
,
{
Id
:
this
.
msg
.
Id
},
(
res
)
=>
{
this
.
apipostDS
(
"/api/Education/GetActivity"
,
{
Id
:
this
.
msg
.
Id
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
ActivityTitle
=
res
.
data
.
data
.
ActivityTitleList
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