|
@ -85,7 +85,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="resi-btns"> |
|
|
<div class="resi-btns"> |
|
|
<el-button size="small" @click="handlerCancle">取消</el-button> |
|
|
<el-button size="small" @click="handlerCancle">取消</el-button> |
|
|
<el-button type="primary" size="small" @click="handleSUbmit">提交</el-button> |
|
|
<el-button type="primary" size="small" :loading="btnLoading" @click="handleSUbmit">提交</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
@ -111,7 +111,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="resi-btns"> |
|
|
<div class="resi-btns"> |
|
|
<el-button size="small" @click="handlerEditCancle">取消</el-button> |
|
|
<el-button size="small" @click="handlerEditCancle">取消</el-button> |
|
|
<el-button v-if="!disabled" type="primary" size="small" @click="handleEditSUbmit">提交</el-button> |
|
|
<el-button v-if="!disabled" type="primary" size="small" :loading="btnLoading" @click="handleEditSUbmit">提交</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
@ -130,6 +130,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
|
|
|
btnLoading: false, |
|
|
disabled: false, |
|
|
disabled: false, |
|
|
pageLoading: false, |
|
|
pageLoading: false, |
|
|
dialogEditVisible: false, |
|
|
dialogEditVisible: false, |
|
@ -400,8 +401,9 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.dialogVisible = false |
|
|
this.dialogVisible = false |
|
|
}, |
|
|
}, |
|
|
submitAdd (arr) { |
|
|
async submitAdd (arr) { |
|
|
this.$http |
|
|
this.btnLoading = true |
|
|
|
|
|
await this.$http |
|
|
.post('/epmetuser/icresiuser/add', arr) |
|
|
.post('/epmetuser/icresiuser/add', arr) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
@ -420,12 +422,15 @@ export default { |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
return this.$message.error('网络错误') |
|
|
return this.$message.error('网络错误') |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.btnLoading = false |
|
|
}, |
|
|
}, |
|
|
submitEdit (arr) { |
|
|
async submitEdit (arr) { |
|
|
this.$http |
|
|
this.btnLoading = true |
|
|
|
|
|
await this.$http |
|
|
.post('/epmetuser/icresiuser/edit', arr) |
|
|
.post('/epmetuser/icresiuser/edit', arr) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
|
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} else { |
|
|
} else { |
|
|
this.$message.success('提交成功') |
|
|
this.$message.success('提交成功') |
|
@ -441,6 +446,7 @@ export default { |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
return this.$message.error('网络错误') |
|
|
return this.$message.error('网络错误') |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.btnLoading = false |
|
|
}, |
|
|
}, |
|
|
getTableHeader () { |
|
|
getTableHeader () { |
|
|
this.$http |
|
|
this.$http |
|
|