Commit 8e079ba3 by yuananting

fix:样式调整,模板替换

parent 500a480a
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
} }
.iconfont { .iconfont {
color: #BFBFBF; color: #BFBFBF;
font-size:12px; font-size: 16px;
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-23 18:28:50 * @Date: 2021-02-23 18:28:50
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-24 14:51:17 * @LastEditTime: 2021-03-24 17:18:20
* @Description: 助学工具-题库-主页面分类管理 * @Description: 助学工具-题库-主页面分类管理
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -599,7 +599,7 @@ class QuestionCategoryManage extends Component { ...@@ -599,7 +599,7 @@ class QuestionCategoryManage extends Component {
<span className="search-label">搜索名称:</span> <span className="search-label">搜索名称:</span>
<Search <Search
placeholder="请输入名称" placeholder="请输入名称"
style={{ width: "calc(100% - 84px)" }} style={{ width: "300px" }}
onSearch={(value) => this.queryCategoryTree("search", value)} onSearch={(value) => this.queryCategoryTree("search", value)}
className="search-input" className="search-input"
enterButton={<span className="icon iconfont">&#xe832;</span>} enterButton={<span className="icon iconfont">&#xe832;</span>}
...@@ -623,7 +623,7 @@ class QuestionCategoryManage extends Component { ...@@ -623,7 +623,7 @@ class QuestionCategoryManage extends Component {
</Button> </Button>
<div <div
className="show-tips" className="show-tips"
style={{ marginTop: "12px", width: "700px" }} style={{ marginTop: "12px", width: "900px" }}
> >
<ShowTips message="为方便管理,该分类用于课程、培训计划、题库、知识库等模块,改动将同步各模块更新" /> <ShowTips message="为方便管理,该分类用于课程、培训计划、题库、知识库等模块,改动将同步各模块更新" />
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-23 19:41:42 * @Date: 2021-02-23 19:41:42
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-24 14:57:20 * @LastEditTime: 2021-03-24 17:16:43
* @Description: 助学工具-题库-题目分类管理样式 * @Description: 助学工具-题库-题目分类管理样式
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
.course-category-tree { .course-category-tree {
position: relative; position: relative;
margin-top: 16px; margin-top: 16px;
width: 700px; width: 900px;
border: 1px solid #E8E8E8; border: 1px solid #E8E8E8;
.ant-tree.ant-tree-directory { .ant-tree.ant-tree-directory {
font-size: 14px; font-size: 14px;
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
justify-content: space-between; justify-content: space-between;
.title-opts { .title-opts {
visibility: hidden; visibility: hidden;
margin-right: 16px;
} }
} }
} }
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
border-radius: 2px; border-radius: 2px;
padding: 16px; padding: 16px;
position: relative; position: relative;
margin-bottom: 50px;
.editor-fill-box_single { .editor-fill-box_single {
border-radius: 4px; border-radius: 4px;
...@@ -51,7 +50,7 @@ ...@@ -51,7 +50,7 @@
} }
.question-answer_control { .question-answer_control {
margin: 40px 0 !important; margin: 40px 0 24px !important;
.answer-tip { .answer-tip {
font-size: 14px; font-size: 14px;
color: #cccccc; color: #cccccc;
...@@ -286,7 +285,7 @@ ...@@ -286,7 +285,7 @@
.question-desc-box { .question-desc-box {
margin-top: 24px; margin-top: 24px;
.desc-picture-box { .desc-picture-box {
margin-bottom: 28px; margin-bottom: 16px;
.picture-box { .picture-box {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
...@@ -317,7 +316,7 @@ ...@@ -317,7 +316,7 @@
} }
} }
.desc-audio-box { .desc-audio-box {
margin-bottom: 28px; margin-bottom: 16px;
.audio-box { .audio-box {
position: relative; position: relative;
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
...@@ -381,26 +380,29 @@ ...@@ -381,26 +380,29 @@
.gap-answer-label { .gap-answer-label {
margin-right: 12px; margin-right: 12px;
white-space: nowrap; white-space: nowrap;
margin-top: 6px;
} }
.gap-answer-content { .gap-answer-content {
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
padding: 8px 12px 0; padding: 3px 12px;
width: calc(100% - 50px); width: calc(100% - 50px);
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
overflow: hidden; overflow: hidden;
.ant-tag { .ant-tag {
margin-bottom: 8px !important;
border: none; border: none;
font-size: 14px;
line-height: 24px; line-height: 24px;
vertical-align: middle;
} }
.gap-tag-input { .gap-tag-input {
margin-right: 5px; margin-right: 5px;
border: 1px solid rgb(165, 165, 165); border: 1px solid rgb(165, 165, 165);
} }
.ant-tag-close-icon {
font-size: 14px;
}
::-webkit-input-placeholder { ::-webkit-input-placeholder {
/* WebKit browsers */ /* WebKit browsers */
color: #ff4f4f; color: #ff4f4f;
......
...@@ -345,13 +345,12 @@ class QuestionEditor extends Component { ...@@ -345,13 +345,12 @@ class QuestionEditor extends Component {
{isGapFilling && contentType === "QUESTION_STEM" && ( {isGapFilling && contentType === "QUESTION_STEM" && (
<div className="editor-fill-info"> <div className="editor-fill-info">
在需要填写答案的地方 在需要填写答案的地方
<Button <span
type="link"
className="editor-fill-info_icon icon iconfont" className="editor-fill-info_icon icon iconfont"
onClick={this.insertBlank} onClick={this.insertBlank}
> >
&#xe83e; 插入占位符 &#xe83e; 插入占位符
</Button> </span>
</div> </div>
)} )}
<div <div
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-25 11:23:47 * @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-24 14:55:54 * @LastEditTime: 2021-03-24 17:34:44
* @Description: 助学工具-题库-题目管理主页面列表数据 * @Description: 助学工具-题库-题目管理主页面列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -231,6 +231,9 @@ class QuestionManageContent extends Component { ...@@ -231,6 +231,9 @@ class QuestionManageContent extends Component {
title: "题目", title: "题目",
key: "questionStem", key: "questionStem",
dataIndex: "questionStem", dataIndex: "questionStem",
ellipsis: {
showTitle: false,
},
render: (val, record) => { render: (val, record) => {
var handleVal = val; var handleVal = val;
handleVal = handleVal.replace(/<(?!img|input).*?>/g, ""); handleVal = handleVal.replace(/<(?!img|input).*?>/g, "");
...@@ -239,7 +242,7 @@ class QuestionManageContent extends Component { ...@@ -239,7 +242,7 @@ class QuestionManageContent extends Component {
handleVal = handleVal.replace(/\&nbsp\;/gi, " "); handleVal = handleVal.replace(/\&nbsp\;/gi, " ");
return ( return (
<Tooltip title={handleVal}> <Tooltip title={handleVal}>
<div className="record-name">{handleVal}</div> {handleVal}
</Tooltip> </Tooltip>
); );
}, },
...@@ -248,7 +251,7 @@ class QuestionManageContent extends Component { ...@@ -248,7 +251,7 @@ class QuestionManageContent extends Component {
title: "题型", title: "题型",
key: "questionTypeEnum", key: "questionTypeEnum",
dataIndex: "questionTypeEnum", dataIndex: "questionTypeEnum",
width: 200, width: "16%",
render: (val) => { render: (val) => {
return questionTypeEnum[val]; return questionTypeEnum[val];
}, },
...@@ -259,7 +262,7 @@ class QuestionManageContent extends Component { ...@@ -259,7 +262,7 @@ class QuestionManageContent extends Component {
dataIndex: "accuracy", dataIndex: "accuracy",
sorter: true, sorter: true,
showSorterTooltip: false, showSorterTooltip: false,
width: 142, width: "14%",
render: (val) => { render: (val) => {
return val + "%"; return val + "%";
}, },
...@@ -270,7 +273,7 @@ class QuestionManageContent extends Component { ...@@ -270,7 +273,7 @@ class QuestionManageContent extends Component {
dataIndex: "updateTime", dataIndex: "updateTime",
sorter: true, sorter: true,
showSorterTooltip: false, showSorterTooltip: false,
width: 200, width: "24%",
render: (val) => { render: (val) => {
return formatDate("YYYY-MM-DD H:i:s", val); return formatDate("YYYY-MM-DD H:i:s", val);
}, },
...@@ -279,7 +282,7 @@ class QuestionManageContent extends Component { ...@@ -279,7 +282,7 @@ class QuestionManageContent extends Component {
title: "操作", title: "操作",
key: "operate", key: "operate",
dataIndex: "operate", dataIndex: "operate",
width: 232, width: "24%",
render: (val, record) => { render: (val, record) => {
return ( return (
<div className="record-operate"> <div className="record-operate">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-25 11:26:28 * @Date: 2021-02-25 11:26:28
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-24 15:57:41 * @LastEditTime: 2021-03-24 18:25:57
* @Description: 助学工具-题库-题目管理右侧内容样式 * @Description: 助学工具-题库-题目管理右侧内容样式
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -33,7 +33,7 @@ class BatchImportQuestionModal extends Component { ...@@ -33,7 +33,7 @@ class BatchImportQuestionModal extends Component {
// 下载题目模板 // 下载题目模板
handleDownTemplate = () => { handleDownTemplate = () => {
const a = document.createElement("a"); const a = document.createElement("a");
a.href = "https://image.xiaomaiketang.com/xm/questionImport.xlsx"; a.href = "https://image.xiaomaiketang.com/xm/题目批量导入标准模版.xlsx";
a.click(); a.click();
}; };
......
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
} }
.status-tip { .status-tip {
line-height: 20px; line-height: 20px;
color: #666666;
margin-bottom: 16px;
.num { .num {
color: #FC9C6B; color: #FC9C6B;
} }
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
color: #666666; color: #666666;
margin-bottom: 8px; margin-bottom: 8px;
.option-box-header { .option-box-header {
margin-bottom: 8px;
.option-sort { .option-sort {
display: inline-block; display: inline-block;
margin-right: 5px; margin-right: 5px;
...@@ -198,7 +199,7 @@ ...@@ -198,7 +199,7 @@
} }
.desc-picture-box { .desc-picture-box {
display: inline-flex; display: inline-flex;
margin-bottom: 28px; margin-bottom: 16px;
.picture-box { .picture-box {
width: 88px; width: 88px;
height: 88px; height: 88px;
...@@ -225,7 +226,7 @@ ...@@ -225,7 +226,7 @@
} }
} }
.desc-audio-box { .desc-audio-box {
margin-bottom: 28px; margin-bottom: 16px;
.audio-box { .audio-box {
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
padding: 10px 20px; padding: 10px 20px;
......
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