提交 66058f80 authored 作者: 龙菲's avatar 龙菲

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

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