Merge branch 'master' of github.com:gcpaas/DataRoom

main
liu.shiyi 2 years ago
commit a0beca4c23

@ -93,9 +93,15 @@ public class DataRoomPageDTO extends BasePageDTO {
@ApiModelProperty(notes = "背景色")
private String bgColor;
@ApiModelProperty(notes = "明亮模式背景色")
private String lightBgColor;
@ApiModelProperty(notes = "背景图")
private String bg;
@ApiModelProperty(notes = "明亮模式背景图")
private String lightBg;
@ApiModelProperty(notes = "自定义主题")
private String customTheme;

@ -237,17 +237,18 @@ export default {
backManagement () {
// 3
this.$confirm('确定返回主页面吗?未保存的配置将会丢失。', '提示', {
distinguishCancelAndClose: true,
confirmButtonText: '保存后离开页面',
cancelButtonText: '离开页面',
cancelButtonClass: 'cancel-btn',
cancelButtonColor: '#FF6F6F',
showCancelButton: true,
type: 'warning',
customClass: 'bs-el-message-box'
}).then(() => {
this.save(true)
}).catch(() => {
this.pageJump()
}).catch((action) => {
if (action === 'cancel') {
this.pageJump()
}
})
},
save (pageJump = false) {
@ -271,12 +272,18 @@ export default {
translateBlobToBase64(res, function (e) {
this.form.coverPicture = e.result
updateBizComponent(this.form)
.then((res) => {
that.$message.success('保存成功')
console.log(pageJump)
if (pageJump) {
this.pageJump()
}
.then(() => {
this.$message({
message: '保存成功',
type: 'success',
duration: 800,
onClose: () => {
//
if (pageJump) {
this.pageJump()
}
}
})
})
.finally(() => {
that.loading = false
@ -287,11 +294,17 @@ export default {
this.form.coverPicture = dataUrl
updateBizComponent(this.form)
.then(() => {
console.log(1122)
this.$message.success('保存成功')
if (pageJump) {
this.pageJump()
}
this.$message({
message: '保存成功',
type: 'success',
duration: 800,
onClose: () => {
//
if (pageJump) {
this.pageJump()
}
}
})
})
.finally(() => {
this.loading = false

@ -15,6 +15,16 @@
@change="changeTab"
/>
</div>
<a
class="fork-me-on-gitee"
href="https://gitee.com/gcpaas/DataRoom"
target="_blank"
>
<img
src="https://gitee.com/gcpaas/DataRoom/widgets/widget_1.svg?color=007bff"
alt="Fork me on Gitee"
>
</a>
</header>
<div class="big-screen-router-view-wrap">
<keep-alive>
@ -197,4 +207,14 @@ export default {
-webkit-background-clip: text;
}
}
.fork-me-on-gitee{
position: absolute;
top: 0;
right: 0;
z-index: 999;
img{
width: 120px;
height: 120px;
}
}
</style>

Loading…
Cancel
Save