|
@@ -14,7 +14,7 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
<a-form-item name="info" label="问题">
|
|
<a-form-item name="info" label="问题">
|
|
|
- <xn-editor v-model="formDataAdd.info" placeholder="请输入问题" :height="400"></xn-editor>
|
|
|
|
|
|
|
+ <xn-editor v-model="formDataAdd.info" placeholder="请输入问题" :toolbar="toolbar" :height="400"></xn-editor>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -112,7 +112,7 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-form-item name="info" label="问题">
|
|
<a-form-item name="info" label="问题">
|
|
|
- <xn-editor v-model="formData.info" placeholder="请输入问题" :height="400"></xn-editor>
|
|
|
|
|
|
|
+ <xn-editor v-model="formData.info" :toolbar="toolbar" placeholder="请输入问题" :height="400"></xn-editor>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -140,6 +140,10 @@
|
|
|
const formRefAdd = ref()
|
|
const formRefAdd = ref()
|
|
|
const submitLoading = ref(false)
|
|
const submitLoading = ref(false)
|
|
|
const confirmLoading = ref(false)
|
|
const confirmLoading = ref(false)
|
|
|
|
|
+ const toolbar = ref(
|
|
|
|
|
+ 'undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \
|
|
|
|
|
+ alignleft aligncenter alignright alignjustify outdent indent lineheight | bullist numlist | \ table preview | code selectall'
|
|
|
|
|
+ )
|
|
|
// 默认要校验的
|
|
// 默认要校验的
|
|
|
const formRules = {
|
|
const formRules = {
|
|
|
info: [required('请输入问题')],
|
|
info: [required('请输入问题')],
|
|
@@ -208,7 +212,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const editNote = (e) => {
|
|
const editNote = (e) => {
|
|
|
- formData.value = Object.assign(formData.value, {id:e.id,info:e.info,infoType:e.infoType})
|
|
|
|
|
|
|
+ formData.value = Object.assign(formData.value, { id: e.id, info: e.info, infoType: e.infoType })
|
|
|
visible.value = true
|
|
visible.value = true
|
|
|
}
|
|
}
|
|
|
const delNote = (e) => {
|
|
const delNote = (e) => {
|