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
48dba830
Commit
48dba830
authored
Apr 16, 2018
by
杨柠瑞
Browse files
Options
Browse Files
Download
Plain Diff
coding
parents
77477590
0d62ab88
Changes
2
Show 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 @
48dba830
...
@@ -80,13 +80,13 @@
...
@@ -80,13 +80,13 @@
</el-checkbox-group>
</el-checkbox-group>
<!-- 6 富文本 -->
<!-- 6 富文本 -->
<quill-editor
v-else-if=
"column.widgetType === 5"
<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]"
v-model=
"formModel[column.codeCamel]"
:style=
"formStyle && formStyle.quillEditor && formStyle.quillEditor.style ||
{width:'65%'}"
:style=
"formStyle && formStyle.quillEditor && formStyle.quillEditor.style ||
{width:'65%'}"
:options="editorOption"
:options="editorOption"
@blur="onEditorBlur($event)"
@blur="onEditorBlur($event)"
@focus="onEditorFocus($event)"
@focus="onEditorFocus($event)"
@change="
column.change
&&
column.change($event)
"
@change="
(column.change
&&
column.change($event)) || onEditorChange
"
@ready="onEditorReady($event)">
@ready="onEditorReady($event)">
</quill-editor>
</quill-editor>
<!-- 7 单选框 -->
<!-- 7 单选框 -->
...
@@ -533,12 +533,12 @@
...
@@ -533,12 +533,12 @@
// textareaChange(val) {
// textareaChange(val) {
// console.log(val)
// console.log(val)
// },
// },
//
onEditorChange({ quill, html, text }) {
onEditorChange
({
quill
,
html
,
text
})
{
//
console.log(quill)
console
.
log
(
quill
)
//
console.log(html)
console
.
log
(
html
)
//
console.log(text)
console
.
log
(
text
)
//
// this.content = html
// this.content = html
//
},
},
onEditorBlur
(
val
)
{
onEditorBlur
(
val
)
{
// console.log(val)
// console.log(val)
},
},
...
...
src/views/haomo/components/tables/HmComplexTable.vue
View file @
48dba830
...
@@ -574,10 +574,6 @@
...
@@ -574,10 +574,6 @@
}
else
{
}
else
{
self
.
list
=
resp
.
data
self
.
list
=
resp
.
data
}
}
// 数据库字段转化显示
if
(
self
.
options
&&
self
.
options
.
changeValue
)
{
self
.
list
=
self
.
changeValue
(
self
.
list
)
}
// 数据处理
// 数据处理
if
(
self
.
options
&&
self
.
options
.
dataProcessing
)
{
if
(
self
.
options
&&
self
.
options
.
dataProcessing
)
{
...
@@ -589,6 +585,12 @@
...
@@ -589,6 +585,12 @@
self
.
list
=
dataList
self
.
list
=
dataList
})
})
}
}
// 数据库字段转化显示
if
(
self
.
options
&&
self
.
options
.
changeValue
)
{
self
.
list
=
self
.
changeValue
(
self
.
list
)
}
self
.
total
=
parseInt
(
resp
.
headers
.
total
)
self
.
total
=
parseInt
(
resp
.
headers
.
total
)
self
.
listLoading
=
false
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