Browse Source

fix issue #160

tags/v1.21.12.1
zhoupzh 4 years ago
parent
commit
518368f90b
2 changed files with 27 additions and 24 deletions
  1. +12
    -14
      web_src/js/components/EditAboutInfo.vue
  2. +15
    -10
      web_src/js/components/basic/editDialog.vue

+ 12
- 14
web_src/js/components/EditAboutInfo.vue View File

@@ -1,9 +1,9 @@
<template>
<div>
<h4 id="about-desc" class="ui header">简介
<!-- <a class="edit-icon" href="javascript:void(0)" @click="editClick">
<i class="gray edit outline icon"></i>
</a> -->
<h4 id="about-desc" class="ui header desc-home">简介
<a class="edit-icon" href="javascript:void(0)" @click="editClick">
<i class="gray edit outline icon" style="margin-right: 0;"></i>
</a>
</h4>
<edit-dialog-cmpt
:vmContext="vmContext"
@@ -11,8 +11,8 @@
v-model="editDataDialog"
:deleteCallback="editDataFunc"
:deleteLoading ="editDataListLoading"
deleteParam = "ruleForm"
@input="initForm"
deleteParam = "ruleForm"
@input="initForm"
>
<div slot="title">
@@ -20,7 +20,7 @@
<div slot="content">
<el-form label-position="top" :model="info" :rules="rule" ref="ruleForm">
<el-form-item label="简介" prop="desc">
<el-input v-model="info.desc" type="textarea" :autosize="{minRows:2,maxRows:6}"></el-input>
<el-input v-model="info.desc" type="textarea" placeholder="请输入内容" :autosize="{minRows:4,maxRows:6}" maxlength="255" show-word-limit></el-input>
</el-form-item>
<el-form-item label="主页" prop="index_web" >
<el-input v-model="info.index_web" placeholder="主页(eg: https://git.openi.org.cn)"></el-input>
@@ -79,7 +79,6 @@ export default {
},
initForm(diaolog) {
if (diaolog === false) {
console.log("--watch----------")
this.getRepoName();
this.getDesc();
this.getWeb();
@@ -133,12 +132,11 @@ export default {

<style scoped>
.edit-icon{
float: right;
font-size: 16px;
display: block;
top: -2px;
color: #8c92a4;
background-color: transparent;
}
}
.desc-home{
display: flex;
justify-content: space-between;
}

</style>

+ 15
- 10
web_src/js/components/basic/editDialog.vue View File

@@ -14,8 +14,8 @@
<slot name="content"></slot>
<div slot="footer" class="dialog-footer">
<el-button @click="deleteDialog = false">{{"取消"}}</el-button>
<el-button type="primary" @click="deleteCallback.call(vmContext,deleteParam)">{{"确定"}}</el-button>
<el-button size="small" @click="deleteDialog = false">{{"取消"}}</el-button>
<el-button size="small" style="background-color: #21ba45;color: #fff;" @click="deleteCallback.call(vmContext,deleteParam)">{{"确定"}}</el-button>
</div>
</el-dialog>
</template>
@@ -80,26 +80,31 @@ export default {
.message-box__content .message-box-title{font-size:16px;padding:2px 0;color:#333;}
.message-box__content .message-box-p{font-size:16px;padding:20px 0;color:#333;}
.message-box__content .message-box-info{color:#999;padding:2px 0;}
.dialog-footer,.el-message-box__btns{text-align:center;}


/deep/ .el-dialog__body{
padding: 1rem;
}
/deep/ .el-dialog__header {
background: #0067b3;
padding: 12px 30px;
line-height: 25px;}
background: #f0f0f0;
padding: 1rem;
}
/deep/ .el-dialog__title {
font-family: PingFangSC-Regular;
font-size: 18px;
color: #fff;
font-size: 1.28571429rem;
color: rgba(0,0,0,.87);
font-weight: 200;
line-height: 25px;
height: 25px;
}
/deep/ .el-dialog__footer {
background: #eff3f9;
padding: 20px 30px;
padding: 1rem;
}
/deep/ .el-dialog{
width: 40%;
width: 30%;
}
/deep/ .el-form-item__label{
padding: 0;
}
</style>

Loading…
Cancel
Save