Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 92eae658
authored
Jul 13, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹-textbox
1 parent
ff2fe551
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
src/components/glsx-combi-form/index.vue
src/views/material/components/textBox.vue
src/views/seckillActivity/crowdFundList.vue
src/components/glsx-combi-form/index.vue
View file @
92eae65
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
</template>
</template>
<!-- 图文编辑器 -->
<!-- 图文编辑器 -->
<textBox
v-else-if=
"item.type === 'textBox'"
:ref=
"item.name + 'TextBox'"
@
change=
"e => handleTextBoxChange(e, item)"
></textBox>
<textBox
v-else-if=
"item.type === 'textBox'"
:ref=
"item.name + 'TextBox'"
@
change=
"e => handleTextBoxChange(e, item)"
@
focus=
"handleTextBoxFocus(item)"
></textBox>
<!-- 地图 -->
<!-- 地图 -->
<div
v-else-if=
"item.type === 'map'"
class=
"flex"
>
<div
v-else-if=
"item.type === 'map'"
class=
"flex"
>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:isDisabled=
"item.isDisabled"
@
selectProvince=
"e => handleSelectProvince(e, item)"
@
selectCity=
"e => handleSelectCity(e, item)"
></Province>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:isDisabled=
"item.isDisabled"
@
selectProvince=
"e => handleSelectProvince(e, item)"
@
selectCity=
"e => handleSelectCity(e, item)"
></Province>
...
@@ -265,6 +265,9 @@ export default {
...
@@ -265,6 +265,9 @@ export default {
handleTextBoxChange
(
val
,
targetItem
)
{
handleTextBoxChange
(
val
,
targetItem
)
{
this
.
formObj
[
targetItem
.
name
]
=
val
this
.
formObj
[
targetItem
.
name
]
=
val
},
},
handleTextBoxFocus
(
targetItem
)
{
this
.
$refs
[
targetItem
.
name
+
'TextBox'
][
0
].
setEdit
(
this
.
formObj
[
targetItem
.
name
])
},
// 禁用富文本
// 禁用富文本
forbidEdit
()
{
forbidEdit
()
{
this
.
$refs
.
textBox
.
forbidEdit
()
this
.
$refs
.
textBox
.
forbidEdit
()
...
...
src/views/material/components/textBox.vue
View file @
92eae65
...
@@ -33,8 +33,11 @@ export default {
...
@@ -33,8 +33,11 @@ export default {
this
.
content
=
html
// 绑定当前逐渐地值
this
.
content
=
html
// 绑定当前逐渐地值
this
.
$emit
(
'change'
,
this
.
content
)
// 将内容同步到父组件中
this
.
$emit
(
'change'
,
this
.
content
)
// 将内容同步到父组件中
}
}
this
.
editor
.
config
.
onfocus
=
()
=>
{
this
.
$emit
(
'focus'
)
}
// 上传图片
// 上传图片
this
.
editor
.
config
.
customUploadImg
=
function
(
resultFiles
,
insertImgFn
)
{
this
.
editor
.
config
.
customUploadImg
=
function
(
resultFiles
,
insertImgFn
)
{
var
file
=
resultFiles
[
0
]
var
file
=
resultFiles
[
0
]
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
// 默认1MB
// 默认1MB
...
@@ -60,7 +63,7 @@ export default {
...
@@ -60,7 +63,7 @@ export default {
}
}
}
}
// 上传视频
// 上传视频
this
.
editor
.
config
.
customUploadVideo
=
function
(
resultFiles
,
insertVideoFn
)
{
this
.
editor
.
config
.
customUploadVideo
=
function
(
resultFiles
,
insertVideoFn
)
{
var
file
=
resultFiles
[
0
]
var
file
=
resultFiles
[
0
]
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
// 默认1MB
// 默认1MB
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
92eae65
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
listeners
:
{
listeners
:
{
click
:
this
.
handleShare
click
:
this
.
handleShare
}
}
}
,
}
],
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
seckillActivity
.
getCrowdfundListApi
,
getListApi
:
this
.
$apis
.
seckillActivity
.
getCrowdfundListApi
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment