|
@@ -1,163 +1,3 @@
|
|
|
-
|
|
|
-<style lang="less" scoped>
|
|
|
-.add_assess {
|
|
|
- h5 {
|
|
|
- padding: 20px 35px 0 35px;
|
|
|
- // margin-bottom: 20px;
|
|
|
- font-size: 14px;
|
|
|
- span {
|
|
|
- color: #ff545b;
|
|
|
- margin-right: 3px;
|
|
|
- }
|
|
|
- }
|
|
|
- .table_map {
|
|
|
- border-bottom: 1px solid rgba(203, 207, 212, 0.3);
|
|
|
- padding-bottom: 10px;
|
|
|
- margin-top: 20px;
|
|
|
- .table_top_box {
|
|
|
- position: relative;
|
|
|
- display: flex;
|
|
|
- // align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- padding: 0 37px;
|
|
|
- .table_top_box_left {
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- /deep/.el-input--mini .el-input__inner {
|
|
|
- width: 200px;
|
|
|
- }
|
|
|
- .num_box {
|
|
|
- // margin-left: 50px;
|
|
|
- /deep/ .el-input__inner {
|
|
|
- width: 40px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- .num {
|
|
|
- display: flex;
|
|
|
- /deep/.el-form-item__error {
|
|
|
- width: 100px;
|
|
|
- margin-left: -20px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .move_btn {
|
|
|
- font-size: 14px;
|
|
|
- margin-left: 10px;
|
|
|
- margin-top: 5px;
|
|
|
- display: flex;
|
|
|
- div {
|
|
|
- width: 12px;
|
|
|
- height: 16px;
|
|
|
- margin-right: 8px;
|
|
|
- img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .right_hint_msg {
|
|
|
- position: absolute;
|
|
|
- right: 35px;
|
|
|
- bottom: 0;
|
|
|
- font-size: 12px;
|
|
|
- color: #999;
|
|
|
- margin-top: 14px;
|
|
|
- }
|
|
|
- &:nth-last-child(1) {
|
|
|
- border: none;
|
|
|
- }
|
|
|
- }
|
|
|
- /deep/ .el-form-item--mini.el-form-item,
|
|
|
- .el-form-item--small.el-form-item {
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
- .hint_msg {
|
|
|
- font-size: 12px;
|
|
|
- color: red;
|
|
|
- margin-top: 14px;
|
|
|
- }
|
|
|
- .change_table_btns {
|
|
|
- // width: 100%;
|
|
|
- margin-top: 20px;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- padding: 8px;
|
|
|
- border: 1px dashed #cbcfd4;
|
|
|
- margin: 2px 35px;
|
|
|
- box-sizing: border-box;
|
|
|
- div {
|
|
|
- width: 80px;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- border-radius: 2px;
|
|
|
- border: 1px solid #21cbc7;
|
|
|
- color: #21cbc7;
|
|
|
- font-size: 14px;
|
|
|
- padding: 0 5px;
|
|
|
- margin: 0 30px;
|
|
|
- cursor: pointer;
|
|
|
- &:nth-child(1) {
|
|
|
- &:hover {
|
|
|
- background: rgba(97, 218, 215, 0.1);
|
|
|
- }
|
|
|
- }
|
|
|
- &:nth-child(2) {
|
|
|
- border-color: #ff5b5b;
|
|
|
- color: #ff5b5b;
|
|
|
- &:hover {
|
|
|
- background: rgba(255, 91, 91, 0.1);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .rich_text {
|
|
|
- padding: 10px 37px;
|
|
|
- }
|
|
|
-}
|
|
|
-.rich_text {
|
|
|
-}
|
|
|
-.quill-editor.ql-editor {
|
|
|
- padding-left: 0 !important;
|
|
|
-}
|
|
|
-/**富文本编辑器样式修改***/
|
|
|
-.ql-snow .ql-picker.ql-size .ql-picker-label::before,
|
|
|
-.ql-snow .ql-picker.ql-size .ql-picker-item::before,
|
|
|
-.ql-snow .ql-picker.ql-header .ql-picker-label::before,
|
|
|
-it .ql-editor,
|
|
|
-.quill-editor {
|
|
|
- padding-top: 0px !important;
|
|
|
- margin-top: -8px;
|
|
|
- min-height: 48px;
|
|
|
- p {
|
|
|
- padding-top: 8px;
|
|
|
- }
|
|
|
-}
|
|
|
-.ql-editor.ql-blank::before {
|
|
|
- padding-top: 0px;
|
|
|
-}
|
|
|
-.btns {
|
|
|
- margin-top: 20px;
|
|
|
-}
|
|
|
-/deep/ .el-input--mini {
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-/deep/ .el-form-item.is-success .el-input__inner,
|
|
|
-.el-form-item.is-success .el-textarea__inner {
|
|
|
- border-color: #c9c9c9 !important;
|
|
|
-}
|
|
|
-/deep/ .el-form-item.is-success .el-textarea__inner {
|
|
|
- border-color: #c9c9c9 !important;
|
|
|
-}
|
|
|
-/deep/ .el-form-item.is-success .el-textarea__inner {
|
|
|
- border-color: #c9c9c9 !important;
|
|
|
-}
|
|
|
-/deep/.el-form-item__label {
|
|
|
- padding-right: 0;
|
|
|
-}
|
|
|
-</style>
|
|
|
<template>
|
|
|
<div class="add_assess">
|
|
|
<el-form
|
|
@@ -1226,7 +1066,11 @@ export default {
|
|
|
// 计算结果
|
|
|
scoreresults.scoreresultsdatas = table.subMenuList[0].subMenuList;
|
|
|
scoreresults.scoreresultsdatas.forEach((item) => {
|
|
|
- item.content = JSON.parse(item.content);
|
|
|
+ try {
|
|
|
+ item.content = JSON.parse(item.content);
|
|
|
+ } catch (e) {
|
|
|
+ console.log("e", e);
|
|
|
+ }
|
|
|
});
|
|
|
} else if (table.textType === 11) {
|
|
|
// 选项
|
|
@@ -1348,9 +1192,171 @@ export default {
|
|
|
this.toolbars[this.toolbarMode];
|
|
|
},
|
|
|
mounted() {
|
|
|
+ console.log("childScaleData", this.childScaleData);
|
|
|
setTimeout(() => {
|
|
|
this.initText();
|
|
|
}, 500);
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
+
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.add_assess {
|
|
|
+ h5 {
|
|
|
+ padding: 20px 35px 0 35px;
|
|
|
+ // margin-bottom: 20px;
|
|
|
+ font-size: 14px;
|
|
|
+ span {
|
|
|
+ color: #ff545b;
|
|
|
+ margin-right: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .table_map {
|
|
|
+ border-bottom: 1px solid rgba(203, 207, 212, 0.3);
|
|
|
+ padding-bottom: 10px;
|
|
|
+ margin-top: 20px;
|
|
|
+ .table_top_box {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ // align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 37px;
|
|
|
+ .table_top_box_left {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ /deep/.el-input--mini .el-input__inner {
|
|
|
+ width: 200px;
|
|
|
+ }
|
|
|
+ .num_box {
|
|
|
+ // margin-left: 50px;
|
|
|
+ /deep/ .el-input__inner {
|
|
|
+ width: 40px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .num {
|
|
|
+ display: flex;
|
|
|
+ /deep/.el-form-item__error {
|
|
|
+ width: 100px;
|
|
|
+ margin-left: -20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .move_btn {
|
|
|
+ font-size: 14px;
|
|
|
+ margin-left: 10px;
|
|
|
+ margin-top: 5px;
|
|
|
+ display: flex;
|
|
|
+ div {
|
|
|
+ width: 12px;
|
|
|
+ height: 16px;
|
|
|
+ margin-right: 8px;
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .right_hint_msg {
|
|
|
+ position: absolute;
|
|
|
+ right: 35px;
|
|
|
+ bottom: 0;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #999;
|
|
|
+ margin-top: 14px;
|
|
|
+ }
|
|
|
+ &:nth-last-child(1) {
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /deep/ .el-form-item--mini.el-form-item,
|
|
|
+ .el-form-item--small.el-form-item {
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
+ .hint_msg {
|
|
|
+ font-size: 12px;
|
|
|
+ color: red;
|
|
|
+ margin-top: 14px;
|
|
|
+ }
|
|
|
+ .change_table_btns {
|
|
|
+ // width: 100%;
|
|
|
+ margin-top: 20px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 8px;
|
|
|
+ border: 1px dashed #cbcfd4;
|
|
|
+ margin: 2px 35px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ div {
|
|
|
+ width: 80px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ border-radius: 2px;
|
|
|
+ border: 1px solid #21cbc7;
|
|
|
+ color: #21cbc7;
|
|
|
+ font-size: 14px;
|
|
|
+ padding: 0 5px;
|
|
|
+ margin: 0 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ &:nth-child(1) {
|
|
|
+ &:hover {
|
|
|
+ background: rgba(97, 218, 215, 0.1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:nth-child(2) {
|
|
|
+ border-color: #ff5b5b;
|
|
|
+ color: #ff5b5b;
|
|
|
+ &:hover {
|
|
|
+ background: rgba(255, 91, 91, 0.1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .rich_text {
|
|
|
+ padding: 10px 37px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.rich_text {
|
|
|
+}
|
|
|
+.quill-editor.ql-editor {
|
|
|
+ padding-left: 0 !important;
|
|
|
+}
|
|
|
+/**富文本编辑器样式修改***/
|
|
|
+.ql-snow .ql-picker.ql-size .ql-picker-label::before,
|
|
|
+.ql-snow .ql-picker.ql-size .ql-picker-item::before,
|
|
|
+.ql-snow .ql-picker.ql-header .ql-picker-label::before,
|
|
|
+it .ql-editor,
|
|
|
+.quill-editor {
|
|
|
+ padding-top: 0px !important;
|
|
|
+ margin-top: -8px;
|
|
|
+ min-height: 48px;
|
|
|
+ p {
|
|
|
+ padding-top: 8px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.ql-editor.ql-blank::before {
|
|
|
+ padding-top: 0px;
|
|
|
+}
|
|
|
+.btns {
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+/deep/ .el-input--mini {
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+/deep/ .el-form-item.is-success .el-input__inner,
|
|
|
+.el-form-item.is-success .el-textarea__inner {
|
|
|
+ border-color: #c9c9c9 !important;
|
|
|
+}
|
|
|
+/deep/ .el-form-item.is-success .el-textarea__inner {
|
|
|
+ border-color: #c9c9c9 !important;
|
|
|
+}
|
|
|
+/deep/ .el-form-item.is-success .el-textarea__inner {
|
|
|
+ border-color: #c9c9c9 !important;
|
|
|
+}
|
|
|
+/deep/.el-form-item__label {
|
|
|
+ padding-right: 0;
|
|
|
+}
|
|
|
+</style>
|