Commit 8cb153a7 authored by 皮倩雯's avatar 皮倩雯

修改富文本样式

parent 78934a8b
Pipeline #60139 passed with stages
...@@ -30,7 +30,6 @@ import { PlusOutlined, LoadingOutlined } from '@ant-design/icons'; ...@@ -30,7 +30,6 @@ import { PlusOutlined, LoadingOutlined } from '@ant-design/icons';
import { get, PUBLISH_SERVICE } from '@/services'; import { get, PUBLISH_SERVICE } from '@/services';
import PreviewModal from './PreviewModal'; import PreviewModal from './PreviewModal';
const { Item } = Form; const { Item } = Form;
const { TextArea } = Input;
const modules = { const modules = {
toolbar: [ toolbar: [
[{ header: [1, 2, 3, 4, 5, 6, false] }], [{ header: [1, 2, 3, 4, 5, 6, false] }],
...@@ -57,16 +56,6 @@ const AddModal = props => { ...@@ -57,16 +56,6 @@ const AddModal = props => {
const [optionslist, setOptionsList] = useState([]); const [optionslist, setOptionsList] = useState([]);
const [keepLength, setKeeplength] = useState(''); const [keepLength, setKeeplength] = useState('');
const [fileList, setFileList] = useState([]); const [fileList, setFileList] = useState([]);
// const [formats, setFormats] = useState([
// 'bold',
// 'italic',
// 'underline',
// 'strike',
// 'blockquote',
// 'list',
// 'bullet',
// 'indent',
// ]);
const { Option } = Select; const { Option } = Select;
...@@ -245,7 +234,6 @@ const AddModal = props => { ...@@ -245,7 +234,6 @@ const AddModal = props => {
if (validate) { if (validate) {
setLoading(true); setLoading(true);
let obj = form.getFieldsValue(); let obj = form.getFieldsValue();
console.log(obj);
if (obj.internetAddress || obj.intranetAddress) { if (obj.internetAddress || obj.intranetAddress) {
if (obj.accountParamValue == '熊猫ticket') { if (obj.accountParamValue == '熊猫ticket') {
obj.accountParamValue = 1; obj.accountParamValue = 1;
...@@ -253,7 +241,6 @@ const AddModal = props => { ...@@ -253,7 +241,6 @@ const AddModal = props => {
obj.accountParamValue = 2; obj.accountParamValue = 2;
} }
let aa = { key: obj.accountParamKey, value: obj.accountParamValue }; let aa = { key: obj.accountParamKey, value: obj.accountParamValue };
console.log(aa);
let bb = []; let bb = [];
bb.push(aa); bb.push(aa);
if (obj.iconUrl.file) { if (obj.iconUrl.file) {
...@@ -263,7 +250,6 @@ const AddModal = props => { ...@@ -263,7 +250,6 @@ const AddModal = props => {
if (obj.coordinate) { if (obj.coordinate) {
data = obj.coordinate.split(','); data = obj.coordinate.split(',');
} }
console.log(fileList);
let dataList = []; let dataList = [];
if (fileList.length > 0) { if (fileList.length > 0) {
fileList.map(i => { fileList.map(i => {
...@@ -273,7 +259,6 @@ const AddModal = props => { ...@@ -273,7 +259,6 @@ const AddModal = props => {
dataList.push(i.response.data); dataList.push(i.response.data);
} }
}); });
console.log(dataList);
} }
if (type === 'add') { if (type === 'add') {
AddIntegratedLogin({ AddIntegratedLogin({
...@@ -763,14 +748,13 @@ const AddModal = props => { ...@@ -763,14 +748,13 @@ const AddModal = props => {
{fileList.length >= 3 ? null : uploadButton1} {fileList.length >= 3 ? null : uploadButton1}
</Upload> </Upload>
</Item> </Item>
<Item label="站点详情" name="siteDescription"> <Item label="站点简介" name="siteDescription">
{/* <TextArea /> */}
<ReactQuill <ReactQuill
style={{ height: '150px' }}
placeholder="请输入内容" placeholder="请输入内容"
theme="snow" // 主题 theme="snow" // 主题
modules={modules} modules={modules}
onChange={onQuillChange} onChange={onQuillChange}
// formats={formats}
/> />
</Item> </Item>
</> </>
......
...@@ -95,3 +95,4 @@ ...@@ -95,3 +95,4 @@
.ant-popover-message > .anticon { .ant-popover-message > .anticon {
margin-top: 6px; margin-top: 6px;
} }
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