Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
0d62ab88
Commit
0d62ab88
authored
Apr 15, 2018
by
王康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
e3ca3004
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
HmComplexForm.vue
src/views/haomo/components/forms/HmComplexForm.vue
+8
-8
HmComplexTable.vue
src/views/haomo/components/tables/HmComplexTable.vue
+6
-4
No files found.
src/views/haomo/components/forms/HmComplexForm.vue
View file @
0d62ab88
...
...
@@ -80,13 +80,13 @@
</el-checkbox-group>
<!-- 6 富文本 -->
<quill-editor
v-else-if=
"column.widgetType === 5"
:ref=
"column.ref || ''"
:disabled=
"column.disabled"
:ref=
"column.ref || '
textEditor
'"
:disabled=
"column.disabled"
v-model=
"formModel[column.codeCamel]"
:style=
"formStyle && formStyle.quillEditor && formStyle.quillEditor.style ||
{width:'65%'}"
:options="editorOption"
@blur="onEditorBlur($event)"
@focus="onEditorFocus($event)"
@change="
column.change
&&
column.change($event)
"
@change="
(column.change
&&
column.change($event)) || onEditorChange
"
@ready="onEditorReady($event)">
</quill-editor>
<!-- 7 单选框 -->
...
...
@@ -533,12 +533,12 @@
// textareaChange(val) {
// console.log(val)
// },
//
onEditorChange({ quill, html, text }) {
//
console.log(quill)
//
console.log(html)
//
console.log(text)
//
// this.content = html
//
},
onEditorChange
({
quill
,
html
,
text
})
{
console
.
log
(
quill
)
console
.
log
(
html
)
console
.
log
(
text
)
// this.content = html
},
onEditorBlur
(
val
)
{
// console.log(val)
},
...
...
src/views/haomo/components/tables/HmComplexTable.vue
View file @
0d62ab88
...
...
@@ -572,10 +572,6 @@
}
else
{
self
.
list
=
resp
.
data
}
// 数据库字段转化显示
if
(
self
.
options
&&
self
.
options
.
changeValue
)
{
self
.
list
=
self
.
changeValue
(
self
.
list
)
}
// 数据处理
if
(
self
.
options
&&
self
.
options
.
dataProcessing
)
{
...
...
@@ -587,6 +583,12 @@
self
.
list
=
dataList
})
}
// 数据库字段转化显示
if
(
self
.
options
&&
self
.
options
.
changeValue
)
{
self
.
list
=
self
.
changeValue
(
self
.
list
)
}
self
.
total
=
parseInt
(
resp
.
headers
.
total
)
self
.
listLoading
=
false
})
...
...
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