提交 cee9e8a5 authored 作者: 龙菲's avatar 龙菲

修改取消编辑后loading暂停;修改布展详情预览效果

上级 c7964cd1
......@@ -9,7 +9,7 @@
color: loveCountStatus ? selectColor : '#61666d',
}"
></svg-icon>
<span>{{ formatNum(loveCount) }}</span>
<span>{{ formatNum(loveCount)?formatNum(loveCount):'点赞' }}</span>
</span>
<span class="operation-item" v-if="collect">
<svg-icon
......@@ -92,7 +92,7 @@ export default {
},
iconSize: {
type: [Number, String],
default: 32,
default:40,
},
selectColor: {
type: String,
......
......@@ -52,7 +52,7 @@ export default {
[{ font: [] }], // 字体种类-----[{ font: [] }]
[{ align: [] }], // 对齐方式-----[{ align: [] }]
["clean"], // 清除文本格式-----['clean']
// ["image", "video"], // 链接、图片、视频-----['link', 'image', 'video']
["image"], // 链接、图片、视频-----['link', 'image', 'video']
];
return {
content: this.value, //内容
......
......@@ -187,7 +187,6 @@ export function getFullUrl(url) {
*/
export function formatNum(num) {
num = Number(num);
console.log(num);
if (num == 0) {
return num + '';
} else
......
......@@ -420,6 +420,10 @@ export default {
// 取消编辑
cancelForm() {
this.$emit("handleClose");
//TODO:如果正在编辑需要处理正在编辑
if (this.loading) {
this.loading = false;
}
this.reset();
},
async handleSubmit() {
......
......@@ -466,11 +466,7 @@ export default {
// 预览图片
handelPreviewImages(images) {
this.imgViewerVisible = true;
if (images.length > 1) {
this.imgList = images.split(",");
} else {
this.imgList = [images];
}
this.imgList = [images];
},
async handleChangeStatus(row) {
const { status } = row;
......@@ -538,9 +534,9 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
.tools-item{
.tools-item {
display: flex;
&:last-child{
&:last-child {
justify-content: flex-end;
}
}
......
......@@ -131,7 +131,6 @@
:sourceId="displayDetail.exhibitionId"
:title="displayDetail.title"
:sourceType="'biz_exhibition'"
:iconSize="24"
/>
</div>
</el-col>
......
......@@ -324,11 +324,7 @@ export default {
// 预览图片
handelPreviewImages(images) {
this.imgViewerVisible = true;
if (images.length > 1) {
this.imgList = images.split(",");
} else {
this.imgList = [images];
}
this.imgList = [images];
},
handleClosePreviewDialog() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论