Commit 48dba830 authored by 杨柠瑞's avatar 杨柠瑞

coding

parents 77477590 0d62ab88
...@@ -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)
}, },
......
...@@ -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
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment