style: 优化OSS管理
This commit is contained in:
parent
4f24da7b1c
commit
fac39c6a35
@ -53,7 +53,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button size="small" @click="showDialog = false">取消</el-button>
|
<el-button size="small" @click="showDialog = false">取消</el-button>
|
||||||
<el-button size="small" type="primary" @click="submitForm">确定</el-button>
|
<el-button size="small" type="primary" @click="submitForm" v-loading="submitLoading">确定</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@ -91,6 +91,7 @@ export default {
|
|||||||
folderName: "",
|
folderName: "",
|
||||||
platform: "",
|
platform: "",
|
||||||
},
|
},
|
||||||
|
submitLoading: false,
|
||||||
tableHeader: [
|
tableHeader: [
|
||||||
{prop: 'platform', label: '平台', noScope: true, align: 'left',
|
{prop: 'platform', label: '平台', noScope: true, align: 'left',
|
||||||
formatData: (platform)=> {
|
formatData: (platform)=> {
|
||||||
@ -167,11 +168,15 @@ export default {
|
|||||||
this.putOssTitle = '修改OSS'
|
this.putOssTitle = '修改OSS'
|
||||||
},
|
},
|
||||||
putOssConfig() {
|
putOssConfig() {
|
||||||
|
this.submitLoading = true
|
||||||
this.formData.userId = this.$store.getters.userId
|
this.formData.userId = this.$store.getters.userId
|
||||||
ossApi.putOssConfig(this.formData).then(() => {
|
ossApi.putOssConfig(this.formData).then(() => {
|
||||||
this.getOssConfigList()
|
this.getOssConfigList()
|
||||||
this.$message.success(this.putOssTitle + "成功!")
|
this.$message.success(this.putOssTitle + "成功!")
|
||||||
this.showDialog = false;
|
this.showDialog = false
|
||||||
|
this.submitLoading = false
|
||||||
|
}).catch(() => {
|
||||||
|
this.submitLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addOSS() {
|
addOSS() {
|
||||||
@ -208,4 +213,10 @@ export default {
|
|||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> > > .dialog-footer {
|
||||||
|
.el-loading-spinner .circular {
|
||||||
|
width: 25px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user