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 = "背景色") @ApiModelProperty(notes = "背景色")
private String bgColor; private String bgColor;
@ApiModelProperty(notes = "明亮模式背景色")
private String lightBgColor;
@ApiModelProperty(notes = "背景图") @ApiModelProperty(notes = "背景图")
private String bg; private String bg;
@ApiModelProperty(notes = "明亮模式背景图")
private String lightBg;
@ApiModelProperty(notes = "自定义主题") @ApiModelProperty(notes = "自定义主题")
private String customTheme; private String customTheme;

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

@ -15,6 +15,16 @@
@change="changeTab" @change="changeTab"
/> />
</div> </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> </header>
<div class="big-screen-router-view-wrap"> <div class="big-screen-router-view-wrap">
<keep-alive> <keep-alive>
@ -197,4 +207,14 @@ export default {
-webkit-background-clip: text; -webkit-background-clip: text;
} }
} }
.fork-me-on-gitee{
position: absolute;
top: 0;
right: 0;
z-index: 999;
img{
width: 120px;
height: 120px;
}
}
</style> </style>

Loading…
Cancel
Save