|
@@ -85,7 +85,7 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="saveList()">{{ $t('save') }}</el-button>
|
|
|
+ <el-button type="primary" @click="saveList()" :loading="saveListDialogVisible">{{ $t('save') }}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 添加角色弹窗 -->
|
|
@@ -134,6 +134,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ saveListDialogVisible: false,
|
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
|
tableData: [],
|
|
|
total: 0,
|
|
@@ -438,12 +439,13 @@ export default {
|
|
|
},
|
|
|
saveList() {
|
|
|
this.dialogVisible = false
|
|
|
- console.log(this.moduleList)
|
|
|
+ this.saveListDialogVisible = true
|
|
|
this.http.post('/permission/savePermission', {
|
|
|
role: this.roles,
|
|
|
moduleList: JSON.stringify(this.moduleList),
|
|
|
},
|
|
|
res => {
|
|
|
+ this.saveListDialogVisible = false
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
message: this.$t('operationissuccessful'),
|
|
@@ -458,6 +460,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
error => {
|
|
|
+ this.saveListDialogVisible = false
|
|
|
this.$message({
|
|
|
message: error,
|
|
|
type: "error"
|