Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
topology
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
姜立玮
topology
Commits
b0965653
提交
b0965653
authored
10月 10, 2020
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除不必要的代码
上级
e472f625
变更
20
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
116 行增加
和
176 行删除
+116
-176
index-tree.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+7
-11
index.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+8
-12
index.vue
ruoyi-ui/src/views/monitor/job/index.vue
+9
-13
log.vue
ruoyi-ui/src/views/monitor/job/log.vue
+3
-3
index.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
+3
-3
index.vue
ruoyi-ui/src/views/monitor/online/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
+3
-3
index.vue
ruoyi-ui/src/views/system/config/index.vue
+9
-15
index.vue
ruoyi-ui/src/views/system/dept/index.vue
+7
-11
data.vue
ruoyi-ui/src/views/system/dict/data.vue
+8
-12
index.vue
ruoyi-ui/src/views/system/dict/index.vue
+8
-12
index.vue
ruoyi-ui/src/views/system/menu/index.vue
+7
-11
index.vue
ruoyi-ui/src/views/system/notice/index.vue
+7
-11
index.vue
ruoyi-ui/src/views/system/post/index.vue
+8
-12
index.vue
ruoyi-ui/src/views/system/role/index.vue
+11
-17
index.vue
ruoyi-ui/src/views/system/user/index.vue
+9
-15
resetPwd.vue
ruoyi-ui/src/views/system/user/profile/resetPwd.vue
+1
-3
userAvatar.vue
ruoyi-ui/src/views/system/user/profile/userAvatar.vue
+4
-6
userInfo.vue
ruoyi-ui/src/views/system/user/profile/userInfo.vue
+1
-3
index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+2
-2
没有找到文件。
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
浏览文件 @
b0965653
...
@@ -420,19 +420,15 @@ export default {
...
@@ -420,19 +420,15 @@ export default {
#end
#end
if (this.form.${pkColumn.javaField} != null) {
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
update${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.msgSuccess("修改成功");
this.open = false;
this.open = false;
this.getList();
this.getList();
}
});
});
} else {
} else {
add${BusinessName}(this.form).then(response => {
add${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.msgSuccess("新增成功");
this.open = false;
this.open = false;
this.getList();
this.getList();
}
});
});
}
}
}
}
...
@@ -449,7 +445,7 @@ export default {
...
@@ -449,7 +445,7 @@ export default {
}).then(() => {
}).then(() => {
this.getList();
this.getList();
this.msgSuccess("删除成功");
this.msgSuccess("删除成功");
})
.catch(function() {});
})
}
}
}
}
};
};
...
...
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
浏览文件 @
b0965653
...
@@ -436,19 +436,15 @@ export default {
...
@@ -436,19 +436,15 @@ export default {
#end
#end
if (this.form.${pkColumn.javaField} != null) {
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
update${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.msgSuccess("修改成功");
this.open = false;
this.open = false;
this.getList();
this.getList();
}
});
});
} else {
} else {
add${BusinessName}(this.form).then(response => {
add${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.msgSuccess("新增成功");
this.open = false;
this.open = false;
this.getList();
this.getList();
}
});
});
}
}
}
}
...
@@ -466,7 +462,7 @@ export default {
...
@@ -466,7 +462,7 @@ export default {
}).then(() => {
}).then(() => {
this.getList();
this.getList();
this.msgSuccess("删除成功");
this.msgSuccess("删除成功");
})
.catch(function() {});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport() {
handleExport() {
...
@@ -479,7 +475,7 @@ export default {
...
@@ -479,7 +475,7 @@ export default {
return export${BusinessName}(queryParams);
return export${BusinessName}(queryParams);
}).then(response => {
}).then(response => {
this.download(response.msg);
this.download(response.msg);
})
.catch(function() {});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/monitor/job/index.vue
浏览文件 @
b0965653
...
@@ -402,7 +402,7 @@ export default {
...
@@ -402,7 +402,7 @@ export default {
return
runJob
(
row
.
jobId
,
row
.
jobGroup
);
return
runJob
(
row
.
jobId
,
row
.
jobGroup
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
msgSuccess
(
"执行成功"
);
this
.
msgSuccess
(
"执行成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 任务详细信息 */
/** 任务详细信息 */
handleView
(
row
)
{
handleView
(
row
)
{
...
@@ -437,19 +437,15 @@ export default {
...
@@ -437,19 +437,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
jobId
!=
undefined
)
{
if
(
this
.
form
.
jobId
!=
undefined
)
{
updateJob
(
this
.
form
).
then
(
response
=>
{
updateJob
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addJob
(
this
.
form
).
then
(
response
=>
{
addJob
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -467,7 +463,7 @@ export default {
...
@@ -467,7 +463,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -480,7 +476,7 @@ export default {
...
@@ -480,7 +476,7 @@ export default {
return
exportJob
(
queryParams
);
return
exportJob
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/monitor/job/log.vue
浏览文件 @
b0965653
...
@@ -263,7 +263,7 @@ export default {
...
@@ -263,7 +263,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 清空按钮操作 */
/** 清空按钮操作 */
handleClean
()
{
handleClean
()
{
...
@@ -276,7 +276,7 @@ export default {
...
@@ -276,7 +276,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"清空成功"
);
this
.
msgSuccess
(
"清空成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -289,7 +289,7 @@ export default {
...
@@ -289,7 +289,7 @@ export default {
return
exportJobLog
(
queryParams
);
return
exportJobLog
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/monitor/logininfor/index.vue
浏览文件 @
b0965653
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 清空按钮操作 */
/** 清空按钮操作 */
handleClean
()
{
handleClean
()
{
...
@@ -209,7 +209,7 @@ export default {
...
@@ -209,7 +209,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"清空成功"
);
this
.
msgSuccess
(
"清空成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -222,7 +222,7 @@ export default {
...
@@ -222,7 +222,7 @@ export default {
return
exportLogininfor
(
queryParams
);
return
exportLogininfor
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/monitor/online/index.vue
浏览文件 @
b0965653
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"强退成功"
);
this
.
msgSuccess
(
"强退成功"
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/monitor/operlog/index.vue
浏览文件 @
b0965653
...
@@ -284,7 +284,7 @@ export default {
...
@@ -284,7 +284,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 清空按钮操作 */
/** 清空按钮操作 */
handleClean
()
{
handleClean
()
{
...
@@ -297,7 +297,7 @@ export default {
...
@@ -297,7 +297,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"清空成功"
);
this
.
msgSuccess
(
"清空成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -310,7 +310,7 @@ export default {
...
@@ -310,7 +310,7 @@ export default {
return
exportOperlog
(
queryParams
);
return
exportOperlog
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/system/config/index.vue
浏览文件 @
b0965653
...
@@ -304,19 +304,15 @@ export default {
...
@@ -304,19 +304,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
configId
!=
undefined
)
{
if
(
this
.
form
.
configId
!=
undefined
)
{
updateConfig
(
this
.
form
).
then
(
response
=>
{
updateConfig
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addConfig
(
this
.
form
).
then
(
response
=>
{
addConfig
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -334,7 +330,7 @@ export default {
...
@@ -334,7 +330,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -347,14 +343,12 @@ export default {
...
@@ -347,14 +343,12 @@ export default {
return
exportConfig
(
queryParams
);
return
exportConfig
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
},
},
/** 清理缓存按钮操作 */
/** 清理缓存按钮操作 */
handleClearCache
()
{
handleClearCache
()
{
clearCache
().
then
(
response
=>
{
clearCache
().
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"清理成功"
);
this
.
msgSuccess
(
"清理成功"
);
}
});
});
}
}
}
}
...
...
ruoyi-ui/src/views/system/dept/index.vue
浏览文件 @
b0965653
...
@@ -284,19 +284,15 @@ export default {
...
@@ -284,19 +284,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
deptId
!=
undefined
)
{
if
(
this
.
form
.
deptId
!=
undefined
)
{
updateDept
(
this
.
form
).
then
(
response
=>
{
updateDept
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addDept
(
this
.
form
).
then
(
response
=>
{
addDept
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -313,7 +309,7 @@ export default {
...
@@ -313,7 +309,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/system/dict/data.vue
浏览文件 @
b0965653
...
@@ -304,19 +304,15 @@ export default {
...
@@ -304,19 +304,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
dictCode
!=
undefined
)
{
if
(
this
.
form
.
dictCode
!=
undefined
)
{
updateData
(
this
.
form
).
then
(
response
=>
{
updateData
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addData
(
this
.
form
).
then
(
response
=>
{
addData
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -334,7 +330,7 @@ export default {
...
@@ -334,7 +330,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -347,7 +343,7 @@ export default {
...
@@ -347,7 +343,7 @@ export default {
return
exportData
(
queryParams
);
return
exportData
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/system/dict/index.vue
浏览文件 @
b0965653
...
@@ -308,19 +308,15 @@ export default {
...
@@ -308,19 +308,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
dictId
!=
undefined
)
{
if
(
this
.
form
.
dictId
!=
undefined
)
{
updateType
(
this
.
form
).
then
(
response
=>
{
updateType
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addType
(
this
.
form
).
then
(
response
=>
{
addType
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -338,7 +334,7 @@ export default {
...
@@ -338,7 +334,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -351,7 +347,7 @@ export default {
...
@@ -351,7 +347,7 @@ export default {
return
exportType
(
queryParams
);
return
exportType
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
},
},
/** 清理缓存按钮操作 */
/** 清理缓存按钮操作 */
handleClearCache
()
{
handleClearCache
()
{
...
...
ruoyi-ui/src/views/system/menu/index.vue
浏览文件 @
b0965653
...
@@ -367,19 +367,15 @@ export default {
...
@@ -367,19 +367,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
menuId
!=
undefined
)
{
if
(
this
.
form
.
menuId
!=
undefined
)
{
updateMenu
(
this
.
form
).
then
(
response
=>
{
updateMenu
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addMenu
(
this
.
form
).
then
(
response
=>
{
addMenu
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -396,7 +392,7 @@ export default {
...
@@ -396,7 +392,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/system/notice/index.vue
浏览文件 @
b0965653
...
@@ -307,19 +307,15 @@ export default {
...
@@ -307,19 +307,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
noticeId
!=
undefined
)
{
if
(
this
.
form
.
noticeId
!=
undefined
)
{
updateNotice
(
this
.
form
).
then
(
response
=>
{
updateNotice
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
}
);
}
);
}
else
{
}
else
{
addNotice
(
this
.
form
).
then
(
response
=>
{
addNotice
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
}
);
}
);
}
}
}
}
...
@@ -337,7 +333,7 @@ export default {
...
@@ -337,7 +333,7 @@ export default {
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
}
)
.
catch
(
function
()
{
}
);
}
)
}
}
}
}
}
;
}
;
...
...
ruoyi-ui/src/views/system/post/index.vue
浏览文件 @
b0965653
...
@@ -276,19 +276,15 @@ export default {
...
@@ -276,19 +276,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
postId
!=
undefined
)
{
if
(
this
.
form
.
postId
!=
undefined
)
{
updatePost
(
this
.
form
).
then
(
response
=>
{
updatePost
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addPost
(
this
.
form
).
then
(
response
=>
{
addPost
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -306,7 +302,7 @@ export default {
...
@@ -306,7 +302,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -319,7 +315,7 @@ export default {
...
@@ -319,7 +315,7 @@ export default {
return
exportPost
(
queryParams
);
return
exportPost
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/system/role/index.vue
浏览文件 @
b0965653
...
@@ -537,20 +537,16 @@ export default {
...
@@ -537,20 +537,16 @@ export default {
if
(
this
.
form
.
roleId
!=
undefined
)
{
if
(
this
.
form
.
roleId
!=
undefined
)
{
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
();
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
();
updateRole
(
this
.
form
).
then
(
response
=>
{
updateRole
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
();
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
();
addRole
(
this
.
form
).
then
(
response
=>
{
addRole
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -561,11 +557,9 @@ export default {
...
@@ -561,11 +557,9 @@ export default {
if
(
this
.
form
.
roleId
!=
undefined
)
{
if
(
this
.
form
.
roleId
!=
undefined
)
{
this
.
form
.
deptIds
=
this
.
getDeptAllCheckedKeys
();
this
.
form
.
deptIds
=
this
.
getDeptAllCheckedKeys
();
dataScope
(
this
.
form
).
then
(
response
=>
{
dataScope
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
openDataScope
=
false
;
this
.
openDataScope
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
},
},
...
@@ -581,7 +575,7 @@ export default {
...
@@ -581,7 +575,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -594,7 +588,7 @@ export default {
...
@@ -594,7 +588,7 @@ export default {
return
exportRole
(
queryParams
);
return
exportRole
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
ruoyi-ui/src/views/system/user/index.vue
浏览文件 @
b0965653
...
@@ -582,9 +582,7 @@ export default {
...
@@ -582,9 +582,7 @@ export default {
cancelButtonText
:
"取消"
cancelButtonText
:
"取消"
}).
then
(({
value
})
=>
{
}).
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
this
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
}
});
});
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
},
...
@@ -594,19 +592,15 @@ export default {
...
@@ -594,19 +592,15 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
userId
!=
undefined
)
{
if
(
this
.
form
.
userId
!=
undefined
)
{
updateUser
(
this
.
form
).
then
(
response
=>
{
updateUser
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
else
{
}
else
{
addUser
(
this
.
form
).
then
(
response
=>
{
addUser
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
});
});
}
}
}
}
...
@@ -624,7 +618,7 @@ export default {
...
@@ -624,7 +618,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -637,7 +631,7 @@ export default {
...
@@ -637,7 +631,7 @@ export default {
return
exportUser
(
queryParams
);
return
exportUser
(
queryParams
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
},
},
/** 导入按钮操作 */
/** 导入按钮操作 */
handleImport
()
{
handleImport
()
{
...
...
ruoyi-ui/src/views/system/user/profile/resetPwd.vue
浏览文件 @
b0965653
...
@@ -57,9 +57,7 @@ export default {
...
@@ -57,9 +57,7 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
updateUserPwd
(
this
.
user
.
oldPassword
,
this
.
user
.
newPassword
).
then
(
updateUserPwd
(
this
.
user
.
oldPassword
,
this
.
user
.
newPassword
).
then
(
response
=>
{
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
}
}
}
);
);
}
}
...
...
ruoyi-ui/src/views/system/user/profile/userAvatar.vue
浏览文件 @
b0965653
...
@@ -125,12 +125,10 @@ export default {
...
@@ -125,12 +125,10 @@ export default {
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
"avatarfile"
,
data
);
formData
.
append
(
"avatarfile"
,
data
);
uploadAvatar
(
formData
).
then
(
response
=>
{
uploadAvatar
(
formData
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
open
=
false
;
this
.
open
=
false
;
this
.
options
.
img
=
process
.
env
.
VUE_APP_BASE_API
+
response
.
imgUrl
;
this
.
options
.
img
=
process
.
env
.
VUE_APP_BASE_API
+
response
.
imgUrl
;
store
.
commit
(
'SET_AVATAR'
,
this
.
options
.
img
);
store
.
commit
(
'SET_AVATAR'
,
this
.
options
.
img
);
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
}
this
.
visible
=
false
;
this
.
visible
=
false
;
});
});
});
});
...
...
ruoyi-ui/src/views/system/user/profile/userInfo.vue
浏览文件 @
b0965653
...
@@ -62,9 +62,7 @@ export default {
...
@@ -62,9 +62,7 @@ export default {
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
updateUserProfile
(
this
.
user
).
then
(
response
=>
{
updateUserProfile
(
this
.
user
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
}
});
});
}
}
});
});
...
...
ruoyi-ui/src/views/tool/gen/index.vue
浏览文件 @
b0965653
...
@@ -270,7 +270,7 @@ export default {
...
@@ -270,7 +270,7 @@ export default {
return
synchDb
(
tableName
);
return
synchDb
(
tableName
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
msgSuccess
(
"同步成功"
);
this
.
msgSuccess
(
"同步成功"
);
})
.
catch
(
function
()
{});
})
},
},
/** 打开导入表弹窗 */
/** 打开导入表弹窗 */
openImportTable
()
{
openImportTable
()
{
...
@@ -313,7 +313,7 @@ export default {
...
@@ -313,7 +313,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
"删除成功"
);
})
.
catch
(
function
()
{});
})
}
}
}
}
};
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论