右上角用户信息修改

This commit is contained in:
zhaoxiao
2021-12-23 17:43:07 +08:00
parent 5e8f2b1e45
commit 9cd215f04e
2 changed files with 30 additions and 37 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<a-dropdown>
<span class="action action-full ant-dropdown-link user-dropdown-menu">
<a-avatar class="avatar" size="small" :src="getAvatar()"/>
<span v-if="isDesktop()"><j-ellipsis :value="`欢迎您,${nickname()}`" :length="10"></j-ellipsis></span>
<span v-if="isDesktop()">{{ nickname() | ellipsis(15) }}</span>
</span>
<a-menu slot="overlay" class="user-dropdown-menu-wrapper">
<!-- <a-menu-item key="0">-->
@@ -246,7 +246,7 @@
</div>
<!-- /分期信息-->
<a-form-item class="table-operator">
<a-button type="primary" @click="save" v-preventclick>提交</a-button>
<a-button type="primary" @click="save" v-preventclick>保存</a-button>
<a-button @click="handleCancle">取消</a-button>
</a-form-item>
</a-form>
@@ -444,44 +444,37 @@ export default {
}
this.form.validateFields((err, values) => {
if (!err) {
const that = this
this.$confirm({
title: '确认提交?',
content: '提交后将给存档人发送提醒消息',
onOk: function () {
that.confirmLoading = true
if (that.installmentList && that.installmentList.length > 0) {
let formData = {}
formData.installment = that.installmentList
formData.contract = Object.assign(that.model, values)
console.log('表单提交数据', formData)
let url = ''
if (!that.model.id) {
url = that.url.add
} else {
url = that.url.edit
}
postAction(url, formData).then(res => {
if (res.success) {
that.contractId = res.result.id
that.$message.success(res.message)
// 跳转至支出合同list页面
that.$router.push({
path: '/contractManagement/ExpenditureContract'
})
} else {
that.$message.warning(res.message)
}
}).finally(() => {
setTimeout(() => {
that.confirmLoading = false
}, 1000)
this.confirmLoading = true
if (this.installmentList && this.installmentList.length > 0) {
let formData = {}
formData.installment = this.installmentList
formData.contract = Object.assign(this.model, values)
console.log('表单提交数据', formData)
let url = ''
if (!this.model.id) {
url = this.url.add
} else {
url = this.url.edit
}
postAction(url, formData).then(res => {
if (res.success) {
this.contractId = res.result.id
this.$message.success(res.message)
// 跳转至支出合同list页面
this.$router.push({
path: '/contractManagement/ExpenditureContract'
})
} else {
that.confirmLoading = false
this.$message.warning(res.message)
}
}
})
}).finally(() => {
setTimeout(() => {
this.confirmLoading = false
}, 1000)
})
} else {
that.confirmLoading = false
}
} else {
this.confirmLoading = false
}