From 7d286a4f501b625104935322e78f4ffb7a34b157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 11 Dec 2019 12:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PathDetail/DetailCardsEditAndEdit.js | 2 +- .../modules/tpm/TPMsettings/Configuration.js | 98 ++++++++++++++++++- .../tpm/TPMsettings/Shixuninformation.js | 1 + .../modules/tpm/TPMsettings/TPMsettings.js | 67 +------------ 4 files changed, 100 insertions(+), 68 deletions(-) diff --git a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js index 20d9ce9ed..e7701f4b8 100644 --- a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js +++ b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndEdit.js @@ -430,7 +430,7 @@ class DetailCardsEditAndEdit extends Component{
diff --git a/public/react/src/modules/tpm/TPMsettings/Configuration.js b/public/react/src/modules/tpm/TPMsettings/Configuration.js index c639692c6..a0ac8146e 100644 --- a/public/react/src/modules/tpm/TPMsettings/Configuration.js +++ b/public/react/src/modules/tpm/TPMsettings/Configuration.js @@ -1,6 +1,15 @@ import React, { Component } from 'react'; -import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Icon,DatePicker,Breadcrumb,Upload,Button,notification, Tooltip,Tabs} from 'antd'; +import MonacoEditor from 'react-monaco-editor'; + +//MonacoDiffEditor 对比模式 +import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Icon,DatePicker,Breadcrumb,Upload,Button,notification, Tooltip} from 'antd'; + +// import "antd/dist/antd.css"; + +import locale from 'antd/lib/date-picker/locale/zh_CN'; + +import moment from 'moment'; import axios from 'axios'; @@ -8,6 +17,22 @@ import './css/TPMsettings.css'; import { getImageUrl, toPath, getUrl ,appendFileSizeToUploadFileAll, getUploadActionUrl} from 'educoder'; +let origin = getUrl(); + +let path = getUrl("/editormd/lib/") + +const $ = window.$; + +let timeout; + +let currentValue; + +const Option = Select.Option; + +const RadioGroup = Radio.Group; +const confirm = Modal.confirm; + + export default class Shixuninformation extends Component { @@ -22,15 +47,82 @@ export default class Shixuninformation extends Component { render() { let {can_copy}=this.state; + let options; + + if (this.props.departmentslist != undefined) { + options = this.props.departmentslist.map((d, k) => { + return ( + + ) + }) + } return (公开程度
+