Commit 1c4f25d1 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化站点中心简介编辑

parent 91a4a745
...@@ -179,13 +179,22 @@ ...@@ -179,13 +179,22 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="中心简介" prop="siteRemark"> <a-form-model-item
<a-textarea class="siteRemark"
label="中心简介"
prop="siteRemark"
>
<div class="content-box">
<y-quill-editor
v-model="formInfo.siteRemark"
></y-quill-editor>
</div>
<!-- <a-textarea
v-model="formInfo.siteRemark" v-model="formInfo.siteRemark"
class="siteRemark" class="siteRemark"
placeholder="请输入中心简介" placeholder="请输入中心简介"
allow-clear allow-clear
/> /> -->
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
...@@ -302,6 +311,7 @@ import { modelList, siteSave } from "@/services/basicsetFun"; ...@@ -302,6 +311,7 @@ import { modelList, siteSave } from "@/services/basicsetFun";
import YCheckbox from "@/components/ycheckbox/YCheckbox.vue"; import YCheckbox from "@/components/ycheckbox/YCheckbox.vue";
import YSwitch from "@/components/yswitch/YSwitch.vue"; import YSwitch from "@/components/yswitch/YSwitch.vue";
import YUpload from "@/components/YUpload.vue"; import YUpload from "@/components/YUpload.vue";
import YQuillEditor from "@/components/YQuillEditor.vue";
// import options from "@/utils/city"; // import options from "@/utils/city";
import { regionData } from "element-china-area-data"; import { regionData } from "element-china-area-data";
import { checkPort, checkIp, checkPhone } from "@/utils/validate"; import { checkPort, checkIp, checkPhone } from "@/utils/validate";
...@@ -329,6 +339,7 @@ export default { ...@@ -329,6 +339,7 @@ export default {
YCheckbox, YCheckbox,
YSwitch, YSwitch,
YUpload, YUpload,
YQuillEditor,
}, },
data() { data() {
return { return {
...@@ -752,8 +763,13 @@ export default { ...@@ -752,8 +763,13 @@ export default {
} }
} }
.siteRemark { .siteRemark {
/deep/ textarea { display: flex;
width: 990px !important; align-items: flex-start;
/deep/.ant-form-item-label {
flex-shrink: 0;
}
.content-box {
height: 400px;
} }
} }
/deep/.ant-form-explain { /deep/.ant-form-explain {
......
<template> <template>
<a-modal <a-modal
centered centered
title="查看所有" title="中心简介"
:visible="VisibleShow" :visible="VisibleShow"
:footer="null" width="60%"
:width="900"
@cancel="clickClose" @cancel="clickClose"
> >
{{ details }} <div class="content ql-editor" v-html="details"></div>
<div class="close_btn"> <div slot="footer">
<a-button @click="clickClose">关闭</a-button> <a-button type="primary" @click="clickClose">关闭</a-button>
</div> </div>
</a-modal> </a-modal>
</template> </template>
...@@ -54,4 +53,17 @@ export default { ...@@ -54,4 +53,17 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
/deep/.ql-editor {
padding: 0 !important;
}
/deep/.ant-modal-body {
max-height: 600px;
overflow: auto;
}
.content {
width: 100%;
/deep/ img {
max-width: 100%;
}
}
</style> </style>
...@@ -117,12 +117,13 @@ ...@@ -117,12 +117,13 @@
<a-row> <a-row>
<a-col :span="19"> <a-col :span="19">
<span>中心简介:</span> <span>中心简介:</span>
<div class="col_item"> <span @click="cookAll(item.siteRemark)">查看全部</span>
<!-- <div class="col_item">
<div class="detail_place">{{ item.siteRemark }}</div> <div class="detail_place">{{ item.siteRemark }}</div>
<span @click="cookAll(item.siteRemark)" <span @click="cookAll(item.siteRemark)"
>查看全部</span >查看全部</span
> >
</div> </div> -->
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
...@@ -576,7 +577,7 @@ export default { ...@@ -576,7 +577,7 @@ export default {
text-align: center; text-align: center;
color: #fff; color: #fff;
border-radius: 5px; border-radius: 5px;
.item-text{ .item-text {
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
......
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